/* =========================================================
   HOUSE OF SVARA — SHOP PAGE
   ========================================================= */

.site-nav a[aria-current="page"] {
  color: var(--purple-700);
}


/* Hero */

.shop-page-hero {
  padding: 5.5rem max(6vw, 2rem);
  text-align: center;
  background:
    linear-gradient(
      135deg,
      #f7efe8 0%,
      #ead8c4 48%,
      #dbc1cf 100%
    );
}

.shop-page-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--purple-950);
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 1;
}

.shop-page-hero > p:last-child {
  max-width: 720px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}


/* Catalogue */

.shop-page-section {
  padding-top: 5rem;
  padding-bottom: 6rem;
}


/* Empty state */

.shop-page-section .empty-state {
  padding: 4rem 1rem;
}

.shop-page-section .empty-state strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--purple-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.shop-page-section .empty-state span {
  display: block;
}


/* Help section */

.shop-help {
  padding: 5.5rem max(6vw, 2rem);
  text-align: center;
  background:
    linear-gradient(
      135deg,
      var(--olive-700),
      #424724
    );
  color: white;
}

.shop-help .eyebrow {
  color: var(--gold-300);
}

.shop-help h2 {
  color: white;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 500;
}

.shop-help > p:not(.eyebrow) {
  max-width: 650px;
  margin: 1rem auto 1.8rem;
  color: rgba(255,255,255,.8);
}


/* Mobile */

@media (max-width: 640px) {

  .shop-page-hero {
    padding: 4rem 1.3rem;
  }

  .shop-page-section {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .shop-help {
    padding: 4rem 1.3rem;
  }

}
/* =========================================================
   MOBILE SHOP — 2 PRODUCT CARDS PER ROW
   Added 15 Aug 2026
   ========================================================= */

@media (max-width: 640px) {

  .shop-page-section {
    width: calc(100% - 24px);
  }

  .shop-section .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shop-section .product-card {
    min-width: 0;
    border-radius: 18px;
  }

  .shop-section .product-image-wrap {
    aspect-ratio: 4 / 5;
  }

  .shop-section .product-body {
    padding: 12px;
  }

  .shop-section .product-meta {
    display: block;
  }

  .shop-section .product-category {
    display: block;
    margin-bottom: 5px;
    font-size: 0.56rem;
    line-height: 1.35;
  }

  .shop-section .product-price {
    display: block;
    font-size: 1.05rem;
  }

  .shop-section .product-card h3 {
    margin: 6px 0;
    font-size: 1.15rem;
    line-height: 1.1;
  }

  .shop-section .product-card p {
    font-size: 0.7rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .shop-section .product-availability {
    margin-top: 7px;
    font-size: 0.7rem;
  }

  .shop-section .product-badge {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 0.58rem;
  }

  .shop-section .card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
  }

  .shop-section .card-actions button,
  .shop-section .card-actions a {
    width: 100%;
    min-height: 36px;
    padding: 6px 5px;
    font-size: 0.66rem;
  }


  /* Shop heading becomes more compact */

  .shop-page-hero {
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .shop-page-section .section-head h2,
  .shop-head h2 {
    font-size: 2.5rem;
  }

}
/* Clear, readable numbers on Shop page */
.product-price,
.dialog-price {
  font-family: "DM Sans", Arial, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-weight: 600;
  letter-spacing: 0;
}
.product-price {
  font-size: 1.05rem;
}

.dialog-price {
  font-size: 1.35rem;
}
/* =========================================================
   PRODUCT DETAIL IMAGE ZOOM
   ========================================================= */

.dialog-zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-bottom: 10px;
}


.dialog-zoom-toolbar button {
  min-width: 42px;
  min-height: 38px;

  padding: 6px 12px;

  border:
    1px solid
    rgba(76, 31, 111, 0.22);

  border-radius: 999px;

  background: #ffffff;
  color: #4c1f6f;

  font:
    600 0.9rem/1
    "DM Sans",
    Arial,
    sans-serif;

  cursor: pointer;
}


.dialog-zoom-toolbar button:hover:not(:disabled) {
  background: #f5edf8;
}


.dialog-zoom-toolbar button:disabled {
  opacity: 0.35;
  cursor: default;
}


[data-dialog-zoom-reset] {
  min-width: 72px !important;
}



.dialog-image #dialog-main-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  cursor: zoom-in;

  transform: scale(1);
  transform-origin: center center;

  transition:
    transform 0.22s ease;
}
.dialog-image {
  position: relative;
  overflow: auto;

  overscroll-behavior: contain;

  -webkit-overflow-scrolling: touch;
}
/* =========================================================
   HOUSE OF SVARA — CART ACTIONS
   ========================================================= */

.card-actions button.primary-card {
  background: var(--purple-900);
  color: white;
  border-color: var(--purple-900);
}

.card-actions button:disabled,
.dialog-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.option-button {
  cursor: pointer;
}

.option-button.selected {
  background: var(--purple-900);
  border-color: var(--purple-900);
  color: white;
}

.option-button.sold-out {
  cursor: not-allowed;
}

.cart-notice {
  position: fixed;
  z-index: 100000;
  right: 24px;
  bottom: 24px;

  min-width: 280px;
  max-width: calc(100% - 48px);

  display: grid;
  gap: 4px;

  padding: 16px 18px;

  border:
    1px solid
    rgba(56, 19, 79, 0.14);

  border-radius: 18px;

  background: #ffffff;

  color: var(--purple-950);

  box-shadow:
    0 20px 55px
    rgba(42, 16, 59, 0.2);

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(12px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.cart-notice.show {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(0);
}

.cart-notice strong {
  font-size: 0.9rem;
}

.cart-notice span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-notice a {
  margin-top: 4px;

  color: var(--purple-800);

  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 640px) {

  .cart-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;

    min-width: 0;
    max-width: none;
  }

}
/* View Full Collection is only for New Arrivals */
#view-full-collection[hidden] {
  display: none !important;
}
