/* Page-specific styles for storefront products */
.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#products {
  grid-template-columns: repeat(3, 1fr);
}

#products .card,
.trust-grid .trust-card {
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.card-row {
  margin-top: auto;
  display: flex;
  justify-content: left;
  align-items: left;
}

.card-row button {
  margin-left: 10px;
}

#products .cta,
#products .card-row button {
  border-radius: 999px;
}

@media (max-width: 740px) {
  #products {
    grid-template-columns: 1fr;
  }
}

.trust-section {
  margin-top: 22px;
}

.trust-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-card {
  flex: 1;
  min-width: 220px;
}

/* 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;
}

/* 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;
}
