

#gradient-canvas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw !important;
  height: 55vh !important;
  z-index: -1;
  pointer-events: none;
  opacity: .75;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 30%);
}

.products-hero {
  padding: 40px 0 24px 0;
}

.products-hero h1 {
  font-size: 32px;
  margin: 0 0 6px 0;
}

.products-hero .lead {
  margin: 0 0 6px 0;
}

.restock-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

/* Products-page card extras (shared card styles in base.css .gcard) */

.btn-details {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--soft-border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .12s, color .12s;
}

.btn-details:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.product-actions .cta {
  border-radius: 999px;
  font-size: 13px;
  padding: 8px 18px;
}

/* Rate toggle bar */
.rate-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.rate-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 4px;
}

.rate-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--soft-border);
  background: rgba(255,255,255,.82);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}

.rate-btn:hover {
  border-color: var(--accent);
}

.rate-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Crypto price under USD price on cards */
.product-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.crypto-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-height: 16px;
}

/* Trust cards */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.trust-card {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--soft-border);
}

.trust-card h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
}

.trust-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.trust-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.trust-link:hover {
  text-decoration: underline;
}

/* Rates card */
.trust-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.trust-rate {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
}

.trust-rate-name {
  font-weight: 700;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .03em;
}

.trust-rate-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.trust-rate-updated {
  font-size: 11px;
  color: var(--muted);
  opacity: .75;
}

@media (max-width: 700px) {
  .products-hero { padding: 28px 0 16px 0; }
  .products-hero h1 { font-size: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .trust-cards { grid-template-columns: 1fr; }
  .ticker-coins { flex-wrap: wrap; gap: 12px; }
}

/* Out of stock styling for product cards - subtle ribbon + muted card */
.card.out-of-stock {
  /* Avoid applying a filter to the whole card (that mutes the ribbon).
     Instead, dim individual text/buttons so the ribbon stays full-color. */
  opacity: 0.98;
  position: relative;
  overflow: hidden;
}

/* Dim important inner elements without affecting the overlay/ribbon */
.card.out-of-stock h3,
.card.out-of-stock .muted,
.card.out-of-stock p,
.card.out-of-stock .price {
  color: var(--muted-fg, #6b7173);
  opacity: 0.85;
}

/* Top-left diagonal ribbon */
.stock-overlay {
  position: absolute;
  right: -20px;
  top: 93px;
  transform: rotate(45deg);
  transform-origin: right top;
  background: var(--accent);
  color: #fff;
  padding: 6px 28px;
  font-weight: 700;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  pointer-events: none;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

/* Disabled button appearance */
button[disabled],
button[aria-disabled="true"] {
  background: var(--muted-button-bg, #e6e9ea);
  color: var(--muted-button-fg, #7a8184);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Notify modal styles */
#notify-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

#notify-modal[aria-hidden="false"] {
  display: flex;
}

#notify-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

#notify-modal .modal-content {
  position: relative;
  z-index: 1201;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 420px;
  max-width: calc(100% - 48px);
  box-shadow: var(--shadow);
}

#notify-modal .modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
