/* ==========================================================================
   Maha — Women's Kurtas & Co-ord Sets
   Warm, ethnic-inspired light theme
   ========================================================================== */

/* Shared tokens (fonts, spacing — unchanged across themes) */
:root {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: 0.25s ease;
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   Site theme — light only
   -------------------------------------------------------------------------- */
:root,
html {
  color-scheme: light;

  --maroon: #68765c;
  --maroon-deep: #302f29;
  --gold: #9a7744;
  --gold-light: #c4a574;
  --cream: #f6f1e8;
  --cream-dark: #e5ddd0;
  --terracotta: #9a7744;
  --terracotta-soft: #b8925c;
  --ink: #302f29;
  --ink-muted: #655e53;
  --white: #fffcf6;

  --header-bg: rgba(255, 252, 246, 0.94);
  --hero-bg: #f6f1e8;
  --hero-glow-gold: rgba(154, 119, 68, 0.12);
  --hero-glow-maroon: rgba(104, 118, 92, 0.08);
  --hero-texture-opacity: 0.04;
  --overlay-bg: rgba(48, 47, 41, 0.42);
  --modal-backdrop: rgba(48, 47, 41, 0.5);
  --shadow-soft: 0 4px 24px rgba(48, 47, 41, 0.08);
  --shadow-hover: 0 8px 32px rgba(48, 47, 41, 0.12);
  --shadow-drawer: -8px 0 32px rgba(48, 47, 41, 0.14);
  --shadow-modal: 0 16px 48px rgba(48, 47, 41, 0.18);
  --tag-bg: rgba(255, 252, 246, 0.92);
  --thread-border: rgba(154, 119, 68, 0.4);
  --footer-border: rgba(229, 221, 208, 0.35);
  --footer-bg: #302f29;
  --footer-text: #f6f1e8;
  --btn-primary-bg: #68765c;
  --btn-primary-text: #fffcf6;
  --btn-primary-hover: #55634b;
  --catalog-scrim: rgba(246, 241, 232, 0.78);
  --catalog-pattern-opacity: 0.48;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

#new-arrivals,
#bestsellers,
#catalog,
#shop-categories,
#whatsapp-cta,
#main {
  scroll-margin-top: 6.5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--maroon);
  text-decoration: none;
}

a:hover {
  color: var(--terracotta);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Signature thread motif — stitched dashed lines with gold accent dots
   -------------------------------------------------------------------------- */
.thread-divider {
  height: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--maroon) 0 6px,
      transparent 6px 14px
    );
  opacity: 0.35;
  position: relative;
}

.thread-divider::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 3px,
    transparent 3px 18px
  );
  opacity: 0.6;
}

.thread-divider--hero {
  margin-top: 2.5rem;
}

.thread-divider--footer {
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover:not(:disabled) {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
}

.btn-outline:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
}

.header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  min-width: 0;
}

.header-identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--maroon);
  flex-shrink: 0;
}

.logo-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 0.375rem;
  background: #ffffff;
  border: 1px solid #eadece;
  box-shadow: 0 2px 12px rgba(62, 8, 16, 0.08);
}

.brand-logo-frame--header {
  padding: 0.3rem 0.55rem;
}

.brand-logo-frame--footer {
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}

.logo-img,
.footer-brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.logo-img {
  height: clamp(2.85rem, 7vw, 3.75rem);
  max-width: 12rem;
}

.footer-brand-logo {
  height: clamp(3.5rem, 9vw, 4.75rem);
  max-width: 13rem;
}

.header-tagline {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
  flex-shrink: 0;
}

.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border: 1.5px solid var(--maroon);
  border-radius: 50%;
  color: var(--maroon);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cart-toggle:hover {
  background: var(--gold-light);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 10px;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero — women's everyday fashion
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 1.75rem 0 0;
  background:
    radial-gradient(ellipse at 12% 88%, var(--hero-glow-gold) 0%, transparent 52%),
    radial-gradient(ellipse at 92% 8%, var(--hero-glow-maroon) 0%, transparent 48%),
    var(--hero-bg);
  overflow: hidden;
  transition: background 0.35s ease;
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: var(--hero-texture-opacity);
  pointer-events: none;
  z-index: 0;
}

.hero-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%2368765c' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: 0.5rem;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 9vw, 4.65rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.hero-subtitle {
  max-width: 36ch;
  margin: 0 auto 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero-actions .btn {
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}

.hero-actions .btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.hero-actions .btn-outline:hover {
  background: var(--ink);
  color: var(--hero-bg);
  border-color: var(--ink);
}

.hero-categories {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.hero-visual {
  width: min(100%, 22.5rem);
  margin: 0 auto;
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-dark);
  box-shadow: var(--shadow-soft);
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(201, 149, 42, 0.38);
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Shop by category
   -------------------------------------------------------------------------- */
.shop-categories {
  padding: 2.25rem 0 0.75rem;
  background: var(--hero-bg);
}

.shop-categories .section-header {
  margin-bottom: 1.75rem;
}

.shop-categories .section-title {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.category-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.category-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background-color: #ece4d6;
  flex: 0 0 auto;
}

.category-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.001);
  transition: transform 0.7s ease;
}

.category-card:hover .category-card-image {
  transform: scale(1.04);
}

.category-card-image--3piece {
  object-fit: contain;
  object-position: center;
  background: #f3ece4;
}

.category-card-media::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(201, 149, 42, 0.38);
  pointer-events: none;
}

.category-card-body {
  padding: 1.15rem 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  flex: 1;
}

.category-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.category-card-desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.category-card-btn {
  align-self: center;
  margin-top: auto;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
}

.category-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
}

.category-card-actions .category-card-btn {
  margin-top: 0;
}

.category-zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.category-card--3piece:hover .category-card-image {
  transform: none;
}

.image-zoom-wrap {
  overflow: hidden;
}

.image-zoom-wrap img {
  transform-origin: center center;
  will-change: transform;
}

.image-zoom-wrap.is-zooming img {
  transform: scale(2.35);
  transition: transform 0.12s ease-out;
}

.zoom-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(26, 18, 14, 0.94);
  z-index: 400;
}

.zoom-lightbox::backdrop {
  background: rgba(26, 18, 14, 0.6);
}

.zoom-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.zoom-lightbox-stage {
  height: calc(100% - 4.75rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
  cursor: grab;
  touch-action: none;
}

.zoom-lightbox-stage:active {
  cursor: grabbing;
}

.zoom-lightbox-image {
  max-width: min(96vw, 1200px);
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-lightbox-image.is-enlarged {
  max-width: none;
  max-height: none;
  width: 180%;
  cursor: grabbing;
}

.zoom-pan-pad {
  position: absolute;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px 44px 44px;
  grid-template-rows: 44px 44px 44px;
  gap: 0.35rem;
}

.zoom-pan-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--tag-bg);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}

.zoom-pan-btn:hover {
  background: var(--cream-dark);
}

.zoom-pan-btn[data-zoom-pan="up"] { grid-column: 2; grid-row: 1; }
.zoom-pan-btn[data-zoom-pan="left"] { grid-column: 1; grid-row: 2; }
.zoom-pan-btn[data-zoom-pan="right"] { grid-column: 3; grid-row: 2; }
.zoom-pan-btn[data-zoom-pan="down"] { grid-column: 2; grid-row: 3; }

.zoom-lightbox-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--white);
}

.zoom-lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.zoom-lightbox-bar .size-picker {
  margin: 0;
}

.zoom-lightbox-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-image-wrap.is-zooming .product-image {
  transform: scale(2.2);
  transition: transform 0.12s ease-out;
}

.product-card .product-image-wrap.is-zooming .product-image {
  transform: scale(2.2);
}

.product-image--lookbook {
  object-fit: contain;
  background: #f3ece4;
}
.catalog {
  position: relative;
  padding: 2rem 0 3rem;
  background-color: var(--cream);
}

.catalog > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.category-tab {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.category-tab:hover {
  border-color: var(--gold);
  color: var(--maroon);
}

.category-tab[aria-selected="true"] {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--cream-dark);
  transition: transform var(--transition), box-shadow var(--transition), background-color 0.35s ease, border-color 0.35s ease;
}

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

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--terracotta);
  border-radius: var(--radius-sm);
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--maroon);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.wishlist-btn:hover,
.wishlist-btn.is-active {
  color: var(--terracotta);
  transform: scale(1.05);
}

.product-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.25;
}

.product-code,
.cart-item-code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0.05rem 0 0.15rem;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  flex: 1;
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-top: 0.2rem;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--terracotta);
}

.size-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.2rem 0 0.45rem;
}

.category-card .size-picker,
.quickview-body .size-picker,
.size-picker--compact {
  align-items: center;
}

.category-card .size-picker {
  width: 100%;
  margin-top: 0;
}

.size-picker-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.size-option {
  min-width: 2.4rem;
  height: 2.15rem;
  padding: 0 0.45rem;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.size-option:hover {
  border-color: var(--gold);
  color: var(--maroon);
}

.size-option.is-selected,
.size-option[aria-pressed="true"] {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.cart-item-size {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--maroon);
  margin: 0.05rem 0 0.15rem;
}

.product-price-mrp {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.product-price-off {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
}

.product-card .btn {
  margin-top: auto;
  width: 100%;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
}

/* Catalog search (visible when 15+ products) */
.catalog-search-wrap {
  margin-bottom: 1.25rem;
}

.catalog-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.catalog-search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235c524a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 0.875rem center;
  color: var(--ink);
  transition: border-color var(--transition);
}

.catalog-search:focus {
  outline: none;
  border-color: var(--gold);
}

.catalog-search::placeholder {
  color: var(--ink-muted);
}

/* Empty category / search state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--cream-dark);
  border-radius: var(--radius-md);
}

.empty-state-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 36ch;
  margin: 0 auto 1.25rem;
}

/* Stock badges */
.stock-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 0.375rem;
}

.stock-badge--limited {
  background: rgba(184, 92, 56, 0.12);
  color: var(--terracotta);
}

.stock-badge--sold-out {
  background: var(--cream-dark);
  color: var(--ink-muted);
}

.product-image-wrap .stock-badge {
  position: absolute;
  top: 52px;
  right: 12px;
  margin: 0;
  z-index: 2;
}

/* Image skeleton shimmer */
.image-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--cream-dark) 0%,
    var(--cream) 50%,
    var(--cream-dark) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.product-image {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-image.is-loaded {
  opacity: 1;
}

.product-image-wrap.is-loaded .image-skeleton {
  display: none;
}

/* Catalog loading skeleton cards */
.product-card--skeleton {
  pointer-events: none;
}

.product-card--skeleton:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.text-skeleton {
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--cream-dark) 0%,
    var(--cream) 50%,
    var(--cream-dark) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}

.text-skeleton--title {
  height: 22px;
  width: 75%;
}

.text-skeleton--line {
  width: 100%;
}

.text-skeleton--short {
  width: 60%;
}

.text-skeleton--price {
  height: 20px;
  width: 40%;
  margin-top: 4px;
}

.text-skeleton--btn {
  height: 36px;
  width: 110px;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Clickable product image for quick-view */
.product-image-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}

.product-image-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.product-card.is-sold-out {
  opacity: 0.85;
}

.product-card.is-sold-out .product-image {
  filter: grayscale(0.35);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Quick-view lightbox */
.quickview-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-modal);
  z-index: 302;
}

.quickview-modal::backdrop {
  background: var(--modal-backdrop);
}

.quickview-inner {
  position: relative;
}

.quickview-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--tag-bg);
}

.quickview-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-dark);
  overflow: hidden;
}

.quickview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quickview-image.is-loaded {
  opacity: 1;
}

.quickview-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0;
  overflow-x: auto;
}

.quickview-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 70px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-dark);
  cursor: pointer;
}

.quickview-thumb.is-active,
.quickview-thumb:focus-visible {
  border-color: var(--maroon);
}

.quickview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quickview-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.quickview-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.25;
}

.quickview-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--terracotta);
}

.quickview-desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

/* Toast snackbar */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 400;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Cart trust microcopy */
.cart-trust {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 0.875rem;
  line-height: 1.45;
}

/* Sticky mobile cart bar */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--cream-dark);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.mobile-cart-bar.is-visible {
  display: block;
}

.mobile-cart-bar.is-hidden-drawer {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-cart-bar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.mobile-cart-bar-btn:hover {
  background: var(--btn-primary-hover);
}

.mobile-cart-bar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-cart-bar-total {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

@media (max-width: 767px) {
  body.has-mobile-cart-bar {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    white-space: normal;
    text-align: center;
    max-width: min(22rem, calc(100% - 1.5rem));
  }

  body.has-mobile-cart-bar .toast,
  body.has-pdp-sticky .toast {
    bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
  }

  .cart-footer {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Netlify injects this fixed badge after load. It is not part of the site
   and sits on top of the mobile cart bar and product photos. */
#nl-badge-frame {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */
.cart-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--transition);
}

.cart-overlay.is-visible,
.modal-overlay.is-visible {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition), background-color 0.35s ease;
  box-shadow: var(--shadow-drawer);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px dashed var(--cream-dark);
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--maroon);
}

.cart-close,
.modal-close {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}

.cart-close:hover,
.modal-close:hover {
  background: var(--cream-dark);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-body.is-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem 2rem;
}

/* Author display:flex would otherwise override the hidden attribute and
   leave the empty-bag message visible beside real cart lines. */
.cart-empty[hidden],
.cart-footer[hidden],
.mobile-cart-bar[hidden] {
  display: none !important;
}

.cart-empty-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.cart-empty-bag {
  display: block;
  width: min(168px, 46vw);
  height: auto;
}

.cart-empty-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  max-width: 16rem;
}

.cart-empty-cta {
  min-width: min(100%, 220px);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  padding: 0.875rem 1.75rem;
}

.cart-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--cream-dark);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--gold-light);
}

.cart-item-details h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.125rem;
}

.cart-item-price {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  color: var(--maroon);
  cursor: pointer;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--gold-light);
}

.qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.cart-item-remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--terracotta);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item-subtotal {
  grid-column: 2;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terracotta);
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px dashed var(--gold-light);
  background: var(--cream);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--maroon);
}

.cart-total-amount {
  font-weight: 700;
  color: var(--terracotta);
}

/* --------------------------------------------------------------------------
   Checkout modal
   -------------------------------------------------------------------------- */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(420px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-modal);
  z-index: 301;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition), background-color 0.35s ease;
}

.checkout-modal[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-modal::backdrop {
  background: var(--modal-backdrop);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--maroon);
}

.modal-lead {
  padding: 0.5rem 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

#checkoutForm {
  padding: 0 1.25rem 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.375rem;
}

.form-group label span {
  color: var(--terracotta);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input.is-invalid {
  border-color: var(--terracotta);
}

.form-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--terracotta);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 0 1.5rem;
  transition: background-color 0.35s ease;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  opacity: 0.85;
  max-width: 28ch;
}

.footer-nav h3,
.footer-contact h3,
.footer-social h3,
.footer-social-heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.footer-social-heading {
  margin-top: 1.35rem;
}

.footer-nav ul,
.footer-contact ul,
.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-nav a,
.footer-contact a,
.social-links a {
  color: var(--footer-text);
  font-size: 0.9375rem;
  opacity: 0.9;
}

.footer-nav a:hover,
.footer-contact a:hover,
.social-links a:hover {
  color: var(--gold-light);
  opacity: 1;
}

.footer-copy {
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.6;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--footer-border);
}

/* --------------------------------------------------------------------------
   Responsive — tablet & up
   -------------------------------------------------------------------------- */
@media (min-width: 540px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 3.25rem 0 0;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    min-height: 0;
    padding-block: 0.75rem 0.5rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-subtitle {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    width: 100%;
    margin: 0;
  }

  .section-header {
    text-align: left;
  }

  .category-tabs {
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 4rem 0 0;
  }

  .hero-layout {
    gap: 4rem;
    min-height: 0;
    padding-block: 1rem 0.75rem;
  }

  .hero-actions .btn {
    padding: 0.95rem 1.75rem;
  }

  .product-grid {
    gap: 2rem;
  }
}
