/* =============================================================================
   Del Plaza — shop
   Shop / product listing page — product card grid.
   DESIGN_BIBLE-aligned palette, Univers typography, civic grid discipline.
   ============================================================================= */

/* =============================================================================
   Shop Page — (/shop.php)
   DESIGN_BIBLE §3 (Civic Grid), §4 (Grid Breakpoints), §6 (Typography),
   §7 (Color Architecture), §8 (Button Geometry), §10 (Card Layout Patterns),
   §15 (Responsive Behaviour)
   ============================================================================= */

.shop-page {
  padding-top: 0;
}

/* ---- Breadcrumb ---- */
.shop-breadcrumb {
  padding: var(--spacing-xs) 0 var(--spacing-xxs);
}

.shop-breadcrumb .breadcrumb {
  margin-bottom: 0;
}

.shop-breadcrumb .breadcrumb-item {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.shop-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--cognac);
  content: "\203A";
}

.shop-breadcrumb .breadcrumb-item a {
  color: var(--color-content-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.shop-breadcrumb .breadcrumb-item a:hover {
  color: var(--cognac);
}

.shop-breadcrumb .breadcrumb-item.active {
  color: var(--color-content-heading);
  font-weight: 600;
}

/* ---- Page Title ---- */
.shop-page__title {
  font-family: 'Univers', var(--font-primary);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-content-heading);
  margin-bottom: var(--spacing-xxs);
  padding-bottom: var(--spacing-xxs);
  border-bottom: 1px solid var(--color-border-primary);
}

.shop-page__lead {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-content-primary);
  max-width: 640px;
  margin-bottom: var(--spacing-md);
}

.shop-page__lead strong {
  font-weight: 600;
  color: var(--deep-navy);
}

/* =============================================================================
   Product Card — Grid Component
   DESIGN_BIBLE §10 (Card Layout Patterns — Feature Card)
   ============================================================================= */
.product-card {
  position: relative;
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border-primary);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-heavy);
  transform: translateY(-4px);
}

/* ---- Card Link (entire card clickable) ---- */
.product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.product-card__link:hover {
  color: inherit;
}

/* ---- Product Image ---- */
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--parchment-cream);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card__image {
  transform: scale(1.06);
}

/* ---- Sale Badge ---- */
.product-card__badge {
  position: absolute;
  top: var(--spacing-nano);
  left: var(--spacing-nano);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-quark) var(--spacing-nano);
  font-family: 'Univers Extended', var(--font-primary);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  border-radius: 0 0 6px 6px;
  pointer-events: none;
}

.product-card__badge--sale {
  background-color: var(--cognac);
  color: #ffffff;
}

/* ---- Wishlist Button ---- */
.product-card__wishlist {
  position: absolute;
  top: var(--spacing-nano);
  right: var(--spacing-nano);
  z-index: 6;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--muted-silver);
  color: var(--slate-charcoal);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0 0 6px 6px;
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(4px);
  padding: 0;
}

/* Wishlist heart glyph — slight margin-top for optical centring within the button */
.product-card__wishlist i {
  margin-top: var(--spacing-tiny);
}

.product-card__wishlist:hover {
  background-color: var(--golden-milk);
  color: var(--imperial-plum);
  border-color: var(--imperial-plum);
}

.product-card__wishlist:active {
  transform: translateY(1px);
  background-color: var(--imperial-plum);
  color: var(--golden-milk);
  border-color: var(--golden-milk);
}

.product-card__wishlist.is-wished {
  background-color: var(--imperial-plum);
  color: var(--golden-milk);
  border-color: var(--golden-milk);
}

.product-card__wishlist.is-wished:hover {
  background-color: var(--imperial-plum);
  color: var(--golden-milk);
  border-color: var(--golden-milk);
}

/* ---- Card Body ---- */
.product-card__body {
  padding: var(--spacing-xxs);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ---- Product Name ---- */
.product-card__name {
  font-family: 'Univers', var(--font-primary);
  font-weight: 600;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.25;
  color: var(--color-content-heading);
  margin-bottom: var(--spacing-nano);
  /* Clamp to 2 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Price ---- */
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-quark);
  margin-top: auto;
  flex-wrap: wrap;
}

.product-card__price-currency {
  font-family: 'Univers Extended', var(--font-primary);
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 400;
  color: var(--cognac);
}

.product-card__price-amount {
  font-family: 'Univers Extended', var(--font-primary);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--cognac);
  line-height: 1;
}

/* ---- Original Price (strikethrough when on sale) ---- */
.product-card__price-amount--original {
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  color: var(--ash-grey);
  text-decoration: line-through;
}

/* ---- Sale Price ---- */
.product-card__price-sale {
  display: inline-flex;
  align-items: baseline;
  gap: var(--spacing-quark);
  color: var(--cognac);
}

.product-card__price-sale .product-card__price-currency,
.product-card__price-sale .product-card__price-amount {
  color: var(--cognac);
}

.product-card__price-sale .product-card__price-amount {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

/* =============================================================================
   Grid Gutters — Responsive
   DESIGN_BIBLE §5 (Spacing System), §15 (Responsive Behaviour)
   ============================================================================= */
/* Mobile (< 660px): gap-xxs (16px) */
.gx-xxs {
  --bs-gutter-x: var(--spacing-xxs);
}

.mb-xxs {
  margin-bottom: var(--spacing-xxs);
}

/* Tablet (≥ 660px): gap-xs (20px) */
@media (min-width: 660px) {
  .gx-xs--tablet {
    --bs-gutter-x: var(--spacing-xs);
  }

  .mb-xs--tablet {
    margin-bottom: var(--spacing-xs);
  }
}

/* Desktop (≥ 1024px): gap-sm (24px) */
@media (min-width: 1024px) {
  .gx-sm--desktop {
    --bs-gutter-x: var(--spacing-sm);
  }

  .mb-sm--desktop {
    margin-bottom: var(--spacing-sm);
  }
}

/* =============================================================================
   Store Banner — Guarantee Badge Styles (moved from guarantee section)
   Shield icon, heading, and message in Imperial Plum banner.
   ============================================================================= */
.store-banner__heading {
  display: block;
  font-family: 'Univers Extended', var(--font-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--golden-milk);
  margin-top: 33px;
  margin-bottom: var(--spacing-quark);
}

.store-banner__message {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--parchment-cream);
  margin-bottom: 0;
  line-height: 1.6;
}

.store-banner__message strong {
  font-weight: 600;
  color: #ffffff;
}

/* =============================================================================
   Shop Page — Responsive Adjustments
   ============================================================================= */
@media (max-width: 575.98px) {
  .product-card__wishlist {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .product-card__body {
    padding: var(--spacing-xxxs);
  }

  .product-card__name {
    font-size: 0.8125rem;
  }

  .product-card__price-amount {
    font-size: 0.9375rem;
  }
}

.shop-page + .footer {
  margin-top: var(--spacing-sm);
}
