/* CARTSPHERE Main Stylesheet — Responsive Mobile-First Boutique Design */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-charcoal);
  background: var(--bg-ivory);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Typography Helpers */
.font-serif { font-family: var(--font-serif); }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 10px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.18;
  margin: 0 0 10px;
  color: var(--text-charcoal);
}
.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.section-pad { padding: 76px 0; }
.section-pad-sm { padding: 52px 0; }
.bg-white { background: var(--bg-white); }
.bg-ivory { background: var(--bg-ivory); }
.bg-beige-soft { background: #F4EFE7; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--text-charcoal);
  color: var(--bg-white);
  border-color: var(--text-charcoal);
}
.btn-primary:hover {
  background: var(--accent-gold-dark);
  border-color: var(--accent-gold-dark);
}
.btn-gold {
  background: var(--accent-gold);
  color: var(--bg-white);
  border-color: var(--accent-gold);
}
.btn-gold:hover { background: var(--accent-gold-dark); border-color: var(--accent-gold-dark); }
.btn-outline {
  background: transparent;
  color: var(--text-charcoal);
  border-color: var(--text-charcoal);
}
.btn-outline:hover { background: var(--text-charcoal); color: var(--bg-white); }
.btn-outline-light {
  background: rgba(255,255,255,0.12);
  color: var(--bg-white);
  border-color: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: var(--bg-white); color: var(--text-charcoal); }
.btn-sm { padding: 9px 16px; font-size: 11px; letter-spacing: 0.12em; }
.btn-block { width: 100%; }

/* A. Announcement Bar */
.announcement-bar {
  background: var(--text-charcoal);
  color: var(--bg-ivory);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 9px 16px;
}

/* B. Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.brand-wordmark .wordmark-main {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-charcoal);
}
.brand-wordmark .wordmark-sub {
  font-size: 8.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brand-orange, #FF6900);
  margin-top: 3px;
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.nav-item { position: relative; }
.nav-link {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-charcoal);
}
.nav-link:hover, .nav-link.active { color: var(--accent-gold-dark); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 240px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 950;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-charcoal);
}
.nav-dropdown a:hover { background: var(--bg-ivory); color: var(--accent-gold-dark); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--bg-ivory); color: var(--accent-gold-dark); }
.badge-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-gold-dark);
  color: var(--bg-white);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn { display: none; }

/* Live Search Bar Overlay */
.search-overlay {
  display: none;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  position: relative;
  z-index: 890;
}
.search-overlay.open { display: block; }
.search-form-wrap { position: relative; max-width: 720px; margin: 0 auto; }
.search-input-row {
  display: flex;
  gap: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 4px 6px 4px 16px;
  background: var(--bg-ivory);
}
.search-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 0;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  z-index: 960;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.search-suggestions.show { display: block; }
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg-light-grey);
}
.search-suggest-item:hover { background: var(--bg-ivory); }
.search-suggest-item img {
  width: 44px; height: 56px; object-fit: cover; border-radius: 4px;
}

/* C. Hero Banner */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #231F1B;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.hero-media-mobile { display: none; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(24, 20, 17, 0.78) 0%, rgba(24, 20, 17, 0.42) 48%, rgba(24, 20, 17, 0.08) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: var(--bg-white);
  padding: 64px 0;
}
.hero-content .eyebrow { color: #EAD3A8; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 28px;
  max-width: 480px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* D. Featured Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-beige);
  box-shadow: var(--shadow-xs);
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-card:hover img { transform: scale(1.05); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(20,17,14,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--bg-white);
}
.category-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 6px;
}
.category-card-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EAD3A8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* E & G. Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.product-thumb-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-ivory);
  overflow: hidden;
}
.product-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.55s ease;
}
.product-card:hover .product-thumb-wrap img { transform: scale(1.04); }
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.pill-badge {
  display: inline-block;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}
.badge-sale { background: #8E2430; color: #fff; }
.badge-new { background: var(--text-charcoal); color: #fff; }
.badge-round { background: rgba(255,255,255,0.88); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.92);
  color: var(--text-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition);
}
.product-wishlist-btn.active, .product-wishlist-btn:hover {
  color: #9B2335;
  border-color: #9B2335;
  background: #fff;
}
.product-hover-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 2;
}
.product-card:hover .product-hover-actions {
  opacity: 1;
  transform: translateY(0);
}
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 4px;
}
.product-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
}
.product-title a:hover { color: var(--accent-gold-dark); }
.product-swatches {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
}
.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
}
.price-current { font-size: 16px; color: var(--text-charcoal); }
.price-original { font-size: 13px; color: var(--text-soft); text-decoration: line-through; font-weight: 400; }

/* F. Promotional Editorial Banner */
.promo-banner {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2C2620;
}
.promo-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,18,15,0.78) 0%, rgba(22,18,15,0.35) 55%, rgba(22,18,15,0.12) 100%);
}
.promo-content {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
  max-width: 540px;
  padding: 56px 0;
}

/* H. Shop by Collection */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.collection-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.collection-card img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; object-position: top; }
.collection-card-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* I. Shop the Look (Hotspots) */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.lookbook-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-beige);
}
.lookbook-frame img { width: 100%; height: 100%; object-fit: cover; }
.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  border: 2px solid var(--accent-gold-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.hotspot-pin::after {
  content: "";
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-charcoal);
}
.hotspot-card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 195px;
  background: var(--bg-white);
  color: var(--text-charcoal);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.hotspot-pin:hover .hotspot-card, .hotspot-pin:focus .hotspot-card {
  opacity: 1; pointer-events: auto;
}

/* J. Why Choose CARTSPHERE */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.trust-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  text-align: center;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gold-soft);
  color: var(--accent-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* K. Customer Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(20,17,14,0.82));
  color: #fff;
  font-size: 12.5px;
}

/* L. Newsletter */
.newsletter-box {
  background: var(--bg-beige);
  border-radius: var(--radius-md);
  padding: 52px 32px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
  margin: 22px auto 12px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--bg-white);
}

/* M. Footer */
.site-footer {
  background: var(--brand-navy, #0B1F3A);
  color: #FFFFFF;
  padding: 64px 0 28px;
}
.footer-logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange, #FF6900);
  margin: 0 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.85); }
.footer-links a:hover { color: var(--brand-orange, #FF6900); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.footer-social a:hover { border-color: var(--brand-orange, #FF6900); color: var(--brand-orange, #FF6900); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
}

/* Shop Page Layout & Filters */
.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bg-light-grey);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-filter-toggle { display: none; }

/* Product Detail Page */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}
.pdp-gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
}
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp-thumb-btn {
  padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #fff;
}
.pdp-thumb-btn.active { border-color: var(--accent-gold-dark); }
.pdp-thumb-btn img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.pdp-main-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  cursor: zoom-in;
}
.pdp-main-img-wrap img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  transition: transform 0.25s ease;
}
.pdp-main-img-wrap.zoomed img { transform: scale(1.65); cursor: zoom-out; }
.size-pills, .colour-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.size-pill {
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
}
.size-pill.active {
  background: var(--text-charcoal);
  color: #fff;
  border-color: var(--text-charcoal);
}
.colour-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
}
.colour-pill.active { border-color: var(--text-charcoal); box-shadow: inset 0 0 0 1px var(--text-charcoal); }
.qty-control {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-xs); background: #fff;
}
.qty-control button { width: 36px; height: 42px; border: none; background: transparent; font-size: 16px; }
.qty-control input { width: 44px; text-align: center; border: none; background: transparent; font-weight: 600; }

/* Tabs */
.tabs-nav {
  display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 22px;
}
.tab-btn {
  padding: 12px 18px; border: none; background: transparent;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--text-charcoal); border-bottom-color: var(--accent-gold-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Drawers & Modals */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(20, 17, 14, 0.5);
  z-index: 1000; opacity: 0; visibility: hidden; transition: all var(--transition);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--bg-white); z-index: 1010;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%); transition: transform var(--transition);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--border-subtle); background: var(--bg-ivory); }
.modal-dialog {
  position: fixed; inset: 0; z-index: 1050;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-dialog.open { display: flex; }
.modal-card {
  position: relative; background: var(--bg-white); border-radius: var(--radius-md);
  max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-md); z-index: 2; padding: 28px;
}

/* Forms & Cards */
.card-box {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.field-input, .field-select, .field-textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs); background: var(--bg-white); color: var(--text-charcoal);
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: var(--accent-gold-dark);
}
.alert-banner {
  padding: 12px 16px; border-radius: var(--radius-xs); margin-bottom: 16px; font-size: 14px;
}
.alert-success { background: #E9F6EE; color: #1B5436; border: 1px solid #B7DEC6; }
.alert-error { background: #FCEEEE; color: #8D2323; border: 1px solid #EBC0C0; }
.alert-info { background: #F5EFE4; color: #5C4620; border: 1px solid #DFCCA8; }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #1D7A46;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(29, 122, 70, 0.34);
}
.floating-whatsapp:hover { background: #155E35; color: #fff; transform: translateY(-2px); }

/* Toast */
.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-charcoal);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast-notice.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mobile & Tablet Responsive */
@media (max-width: 1120px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand-wordmark { justify-self: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid, .lookbook-grid, .pdp-grid { grid-template-columns: 1fr; }
  .trust-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 90vw);
    z-index: 1020; overflow-y: auto; border-radius: 0;
    transform: translateX(-100%); transition: transform var(--transition);
  }
  .filter-sidebar.open { transform: translateX(0); }
  .mobile-filter-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section-pad { padding: 48px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 12px; }
  .product-title { font-size: 16px; }
  .product-hover-actions { position: static; opacity: 1; transform: none; padding: 0 12px 12px; }
  .categories-grid { gap: 12px; }
  .collection-card { grid-template-columns: 1fr; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .pdp-thumb-btn { width: 68px; flex-shrink: 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: 480px; }
  .hero-media-desktop { display: none; }
  .hero-media-mobile { display: block; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { padding: 13px; right: 16px; bottom: 16px; }
}
