/* =========================================
   THREAD CO. — PREMIUM CSS SYSTEM
   Version 2.0 — Full Redesign
   
   Design Philosophy:
   - Refined luxury editorial aesthetic
   - Warm ivory + deep espresso palette
   - Cinzel serif headlines, Lato body
   - Fluid motion with purposeful animation
   - Mobile-first, truly responsive
   ========================================= */

/* =========================================
   0. DESIGN TOKENS (CSS VARIABLES)
   ========================================= */
:root {
  /* — Core Palette — */
  --espresso:      #2c1f17;
  --mahogany:      #3c2a21;
  --walnut:        #5a4033;
  --sienna:        #8b6b5d;
  --sand:          #c8a98a;
  --cream:         #f4ede4;
  --ivory:         #faf8f4;
  --white:         #ffffff;

  /* — Accent — */
  --gold:          #b89650;
  --gold-light:    #d4b06e;
  --success:       #2e7d32;
  --success-light: #4caf50;

  /* — Neutrals — */
  --text-primary:  #1a1208;
  --text-body:     #3a3028;
  --text-muted:    #7a6a5a;
  --border:        #e8ddd0;
  --border-light:  #f0e8dc;
  --surface:       #fdfbf8;

  /* — Typography — */
  --font-display:  'Cinzel', serif;
  --font-body:     'Lato', sans-serif;

  /* — Spacing Scale — */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  20px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* — Radius — */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* — Shadows — */
  --shadow-xs:  0 1px 3px rgba(44, 31, 23, 0.06);
  --shadow-sm:  0 4px 12px rgba(44, 31, 23, 0.08);
  --shadow-md:  0 8px 24px rgba(44, 31, 23, 0.12);
  --shadow-lg:  0 16px 48px rgba(44, 31, 23, 0.16);
  --shadow-xl:  0 32px 80px rgba(44, 31, 23, 0.20);

  /* — Transitions — */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    150ms;
  --dur-base:    280ms;
  --dur-slow:    500ms;
  --dur-xslow:   700ms;
}

/* =========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--surface);
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(32px, 5vw, 64px); letter-spacing: 0.04em; }
h2 { font-size: clamp(22px, 3vw, 36px); letter-spacing: 0.03em; }
h3 { font-size: clamp(18px, 2vw, 24px); letter-spacing: 0.02em; }

p {
  color: var(--text-body);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* =========================================
   2. CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb {
  background: var(--sand);
  border-radius: var(--radius-pill);
  transition: background var(--dur-base) var(--ease-smooth);
}
::-webkit-scrollbar-thumb:hover { background: var(--mahogany); }

/* =========================================
   3. ANNOUNCEMENT BAR
   ========================================= */
.announcement-bar {
  background-color: var(--espresso);
  color: var(--cream);
  padding: 10px 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 200;

  /* Subtle gold shimmer underline */
  border-bottom: 1px solid rgba(184, 150, 80, 0.3);
}

.marquee-text {
  display: inline-block;
  animation: scrollText 28s linear infinite;
}

@keyframes scrollText {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* =========================================
   4. TOP BAR
   ========================================= */
.top-bar {
  background: var(--mahogany);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 9px var(--space-md);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* =========================================
   5. MAIN NAVIGATION
   ========================================= */

/* Premium Desktop Cart Badge */
.desktop-cart-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: var(--success);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    border-radius: var(--radius-pill);
    min-width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
    border: 2px solid var(--ivory); /* Matches navbar background to create a "cutout" effect */
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  background-color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 995;
  transition: all var(--dur-base) var(--ease-smooth);

  /* Refined glass-like border */
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 20px rgba(44, 31, 23, 0.06);
}

/* Shrink nav on scroll — add .scrolled via JS */
.main-nav.scrolled {
  padding: 12px 6%;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--mahogany);
  letter-spacing: 0.06em;
  position: relative;

  /* Gold underline accent */
  background: linear-gradient(135deg, var(--mahogany) 0%, var(--walnut) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-body);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--dur-base) var(--ease-smooth);
}

/* Animated underline on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--dur-slow) var(--ease-out);
}

.nav-links a:hover { color: var(--mahogany); }
.nav-links a:hover::after { width: 100%; }

/* — Right Cluster — */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--mahogany);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 1px;
  transition: all var(--dur-base) var(--ease-smooth);
}

.lang-btn:hover {
  background: var(--mahogany);
  color: var(--white);
  border-color: var(--mahogany);
  transform: translateY(-1px);
}

.cart-icon {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  color: var(--mahogany);
  transition: transform var(--dur-base) var(--ease-spring);
}

.cart-icon:hover { transform: scale(1.1); }

.hamburger-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--mahogany);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
  line-height: 1;
}

.hamburger-btn:hover { background: var(--cream); }

/* =========================================
   6. SIDE NAVIGATION DRAWER
   ========================================= */
.side-nav {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  transition: left var(--dur-slow) var(--ease-out);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  border-right: 1px solid var(--border-light);
}

.side-nav.active { left: 0; }

/* Gold accent top bar */
.side-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.close-side-btn {
  align-self: flex-end;
  background: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--mahogany);
  margin-bottom: var(--space-xl);
  transition: all var(--dur-base) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-side-btn:hover {
  background: var(--mahogany);
  color: var(--white);
  transform: rotate(90deg);
}

.side-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-nav-links li {
  border-bottom: 1px solid var(--border-light);
}

.side-nav-links a {
  display: block;
  padding: var(--space-md) var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-body);
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
}

.side-nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: var(--gold);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-base) var(--ease-spring);
}

.side-nav-links a:hover {
  color: var(--mahogany);
  padding-left: var(--space-md);
}

.side-nav-links a:hover::before {
  transform: translateY(-50%) scaleY(1);
}

/* =========================================
   7. HERO SECTIONS
   ========================================= */
.hero,
.hero-video-container {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--espresso);
}

/* Static Image Hero */
.hero {
  background-image:
    linear-gradient(
      160deg,
      rgba(44, 31, 23, 0.55) 0%,
      rgba(44, 31, 23, 0.25) 50%,
      rgba(44, 31, 23, 0.5) 100%
    ),
    url('banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Video Hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-xl);
  max-width: 700px;
  width: 100%;
  animation: heroFadeUp var(--dur-xslow) var(--ease-out) 0.2s both;
}

.hero h1,
.hero-overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  color: var(--white);
  letter-spacing: 0.05em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
  line-height: 1.1;
}

/* Decorative rule under hero title */
.hero-overlay h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold-light);
  margin: var(--space-sm) auto 0;
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 300;
}

.shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--white);
  padding: 14px 40px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-smooth),
    letter-spacing var(--dur-slow) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-smooth);
}

/* Corner-draw border effect using pseudo-elements */
.shop-now-btn::before,
.shop-now-btn::after {
  content: '';
  position: absolute;
  background: var(--white);
  transition: all var(--dur-slow) var(--ease-out);
}

/* Top + bottom bars */
.shop-now-btn::before {
  top: 0; left: 50%;
  width: 0; height: 1.5px;
  transform: translateX(-50%);
}

/* Left + right bars */
.shop-now-btn::after {
  left: 0; top: 50%;
  width: 1.5px; height: 0;
  transform: translateY(-50%);
}

.shop-now-btn:hover {
  border-color: transparent;
  letter-spacing: 4px;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* On hover, animated border "draws" itself */
.shop-now-btn:hover::before { width: 100%; }
.shop-now-btn:hover::after  { height: 100%; }

.shop-now-btn span {
  position: relative;
  z-index: 1;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   8. SHOP CONTROLS
   ========================================= */
.shop-controls {
  max-width: 1200px;
  margin: var(--space-xl) auto var(--space-sm);
  padding: 0 6%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
}

#price-filter {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  background-color: var(--white);
  color: var(--mahogany);
  cursor: pointer;
  outline: none;
  transition: all var(--dur-base) var(--ease-smooth);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233c2a21' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

#price-filter:hover,
#price-filter:focus {
  border-color: var(--mahogany);
  box-shadow: 0 0 0 3px rgba(60, 42, 33, 0.08);
}

/* =========================================
   9. SHOP SECTION & PRODUCT GRID
   ========================================= */
.shop-section {
  padding: var(--space-2xl) 6%;
  text-align: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: var(--space-md);
}

.section-header h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--mahogany);
  margin: 0;
  letter-spacing: 0.04em;
}

.see-all-btn {
  background: transparent;
  border: 1.5px solid var(--mahogany);
  color: var(--mahogany);
  padding: 9px 22px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  position: relative;
  transition:
    border-color var(--dur-base) var(--ease-smooth),
    color        var(--dur-base) var(--ease-smooth),
    letter-spacing var(--dur-slow) var(--ease-out),
    transform    var(--dur-fast) var(--ease-spring);
}

/* Right arrow that slides in on hover */
.see-all-btn::after {
  content: '→';
  position: absolute;
  right: -4px;
  opacity: 0;
  transition:
    right    var(--dur-base) var(--ease-out),
    opacity  var(--dur-base) var(--ease-smooth);
  font-size: 13px;
}

.see-all-btn:hover {
  color: var(--espresso);
  border-color: var(--espresso);
  letter-spacing: 2.5px;
  transform: translateY(-1px);
  padding-right: 30px; /* makes room for the arrow */
}

.see-all-btn:hover::after {
  right: 10px;
  opacity: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================
   10. PRODUCT CARD
   ========================================= */
.product-card {
  text-align: left;
  position: relative;
  border-radius: var(--radius-md);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

/* Image Wrapper */
.img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background-color: var(--cream);
  cursor: pointer;
}



.product-img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  object-position: top center;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding: 0 var(--space-sm);
}

.product-price {
  font-size: 15px;
  color: var(--sienna);
  margin-bottom: var(--space-md);
  padding: 0 var(--space-sm);
  font-weight: 600;
}

/*
  Button hover philosophy:
  Instead of flooding the entire button with a background wipe,
  we use three layered signals that feel premium and intentional:
  1. Border thickens + turns solid espresso
  2. Text shifts to espresso (already was mahogany, deepens)
  3. A slim gold underline grows under the label text
  Result: the button feels "activated" without losing its shape.
*/
.add-btn {
  width: 100%;
  padding: 13px var(--space-md);
  background: var(--white);
  border: 1.5px solid var(--mahogany);
  color: var(--mahogany);
  cursor: pointer;
  transition:
    border-color var(--dur-base) var(--ease-smooth),
    color       var(--dur-base) var(--ease-smooth),
    box-shadow  var(--dur-base) var(--ease-smooth),
    transform   var(--dur-fast) var(--ease-spring);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: var(--font-body);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  position: relative;
  overflow: hidden;
}

/* Gold underline that grows from center on hover */
.add-btn::after {
  content: '';
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--dur-slow) var(--ease-out);
  border-radius: var(--radius-pill);
}

.add-btn:hover {
  color: var(--espresso);
  border-color: var(--espresso);
  box-shadow: inset 0 0 0 1px var(--espresso); /* double-border optical trick */
  transform: translateY(-1px);
}

.add-btn:hover::after {
  width: 40%;
}

.add-btn:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: none;
}
/* --- Wishlist Heart Button on Product Cards --- */
.wishlist-card-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-spring);
}

.wishlist-card-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  transition: all var(--dur-fast) var(--ease-smooth);
}

/* Hover State */
.wishlist-card-btn:hover {
  background: var(--white);
  transform: scale(1.1);
  color: var(--mahogany);
}

/* Active (Saved) State */
.wishlist-card-btn.active {
  color: #d32f2f; /* A premium deep red */
}
.wishlist-card-btn.active svg {
  fill: #d32f2f;
}

.add-btn span {
  position: relative;
  z-index: 1;
}

/* =========================================
   11. SOLD-OUT STATES
   ========================================= */
.sold-out-badge {
  display: inline-block;
  background: rgba(44, 31, 23, 0.85);
  color: var(--white);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  margin: 12px 12px 4px 12px; /* Pushes it slightly down from the image, aligns with the title */
}

.out-of-stock-btn {
  background-color: var(--ivory);
  color: #b0a090;
  border: 1.5px solid var(--border-light);
  cursor: not-allowed;
}

.out-of-stock-btn:hover,
.out-of-stock-btn::before {
  background-color: var(--ivory) !important;
  color: #b0a090 !important;
  transform: none !important;
}

/* =========================================
   12. SIZE BUTTON STATES
   ========================================= */
.size-btn:disabled {
  background-color: #f9f9f9;
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.55;
}

.size-btn:disabled:hover {
  border-color: #eee;
  background-color: #f9f9f9;
  color: #ccc;
}

/* =========================================
   13. CARD IMAGE SLIDER ARROWS
   ========================================= */
.card-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--mahogany);
  opacity: 0;
  transition: all var(--dur-base) var(--ease-spring);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.img-wrapper:hover .card-slider-btn { opacity: 1; }

.card-slider-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.12);
  box-shadow: var(--shadow-md);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* =========================================
   14. FREE DELIVERY BADGE
   ========================================= */
.free-delivery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--success) 0%, #1b5e20 100%);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
  z-index: 10;
  letter-spacing: 1px;
}

/* =========================================
   15. LOOKBOOK SLIDER
   ========================================= */
.lookbook-section {
  padding: var(--space-2xl) 0;
  background-color: var(--cream);
  position: relative;
}

/* Decorative top border */
.lookbook-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lookbook-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: var(--space-xl);
  color: var(--mahogany);
  letter-spacing: 0.05em;
}

.lookbook-slider {
  display: flex;
  gap: var(--space-lg);
  padding: 0 6% var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.lookbook-slider:active { cursor: grabbing; }
.lookbook-slider::-webkit-scrollbar { display: none; }

.lookbook-slide {
  flex: 0 0 80%;
  max-width: fit-content;
  height: 320px;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.lookbook-slide:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .lookbook-slide { flex: 0 0 45%; }
}

/* =========================================
   16. CART SIDEBAR
   ========================================= */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transition: right var(--dur-slow) var(--ease-out);
  border-left: 1px solid var(--border-light);
}

/* Gold accent top bar */
.cart-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 1;
}

.cart-sidebar.active { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  background-color: var(--white);
}

.cart-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--mahogany);
  letter-spacing: 0.04em;
}

#close-cart,
#close-wishlist {
  background: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--mahogany);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease-spring);
}

#close-cart:hover,
#close-wishlist:hover {
  background: var(--mahogany);
  color: var(--white);
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-lg);
}

.cart-footer {
  padding: var(--space-lg);
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  background-color: var(--white);
}

.cart-footer h3 {
  margin: 0 0 var(--space-md) 0;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--mahogany);
  letter-spacing: 0.03em;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--mahogany);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  transition:
    letter-spacing var(--dur-slow) var(--ease-out),
    transform      var(--dur-base) var(--ease-spring),
    box-shadow     var(--dur-base) var(--ease-smooth);
}

/* Subtle shimmer sweep — feels premium, doesn't hide text */
.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.12) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left var(--dur-slow) var(--ease-out);
}

.checkout-btn:hover {
  letter-spacing: 3.5px;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 42, 33, 0.4);
}

.checkout-btn:hover::before {
  left: 125%;
}

.checkout-btn:active {
  transform: translateY(0) scale(0.99);
}

/* Checkout Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--border);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--sienna);
}

.trust-item span {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
/* =========================================
   17. OVERLAY BACKDROP
   ========================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 2, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  display: none;
  transition: opacity var(--dur-base) var(--ease-smooth);
}

.overlay.active { display: block; }

/* =========================================
   17.5. SIZE GUIDE POPUP & UNIT TOGGLE
   ========================================= */
/* The link below the size selector */
.size-guide-trigger {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--sienna);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-fast);
}
.size-guide-trigger:hover { color: var(--mahogany); }

/* The Dark Background Overlay */
.size-guide-popup {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.size-guide-popup.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   PRODUCT MODAL DESCRIPTION
   ========================================= */
.modal-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

/* Success Modal Animations */
#success-modal.active {
    display: flex !important;
    opacity: 1 !important;
}
#success-modal.active .modal-content {
    transform: scale(1) !important;
}

/* The White Modal Box (Desktop Default) */
.size-guide-sheet {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--dur-base) var(--ease-out);
  max-height: 85vh;
  overflow-y: auto;
}
.size-guide-popup.active .size-guide-sheet {
  transform: translateY(0);
}

.size-guide-sheet-inner { padding: 30px; }
.sheet-drag-handle { display: none; /* Hidden on desktop */ }

/* Inches / CM Toggle Buttons */
.size-unit-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--cream);
}
.size-unit-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--dur-fast);
}
.size-unit-btn.active {
  background: var(--mahogany);
  color: var(--white);
}

/* =========================================
   18. CHECKOUT MODAL
   ========================================= */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  background: var(--white);
  padding: var(--space-xl);
  width: 95%;
  max-width: 500px;
  z-index: 1001;
  display: none;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--dur-base) var(--ease-spring);
  border: 1px solid var(--border-light);
  
  /* 🛠️ THE FIX: Force the modal to stay on screen and scroll internally */
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Ensures buttery smooth scrolling on iPhones */
}

.checkout-modal.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

/* --- CHECKOUT MODAL SPLIT --- */
    .checkout-split-layout { grid-template-columns: 1fr; gap: 20px; }
    
    /* We removed 'order: -1' so it naturally flows below the form now! */
    .checkout-summary-column { padding: 15px; } 
    
    .checkout-modal.active { padding: 20px 15px; max-height: 85vh;}

.checkout-summary-column h2 {
  font-size: 18px;
  margin-bottom: var(--space-md);
  border-bottom: 1.5px solid var(--border);
  padding-bottom: var(--space-sm);
  letter-spacing: 0.04em;
}

/* Mini Cart */
.checkout-mini-cart {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: var(--space-md);
  padding-right: 4px;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.mini-cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mini-cart-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.mini-cart-details h4 {
  margin: 0;
  font-size: 13px;
  color: var(--mahogany);
  font-family: var(--font-display);
}

.mini-cart-details p {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Form Inputs */
.checkout-modal input,
.checkout-modal textarea,
#checkout-form select,
#checkout-form input[list] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: var(--space-md);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
  outline: none;
}

.checkout-modal input:focus,
.checkout-modal textarea:focus,
#checkout-form select:focus {
  border-color: var(--mahogany);
  box-shadow: 0 0 0 3px rgba(60, 42, 33, 0.1);
}

.submit-order-btn,
.cancel-btn {
  width: 100%;
  padding: 14px;
  cursor: pointer;
  margin-bottom: var(--space-sm);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--dur-base) var(--ease-smooth);
}

.submit-order-btn {
  background: linear-gradient(135deg, var(--success) 0%, #1b5e20 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.submit-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.cancel-btn {
  background: var(--cream);
  color: var(--text-body);
}

.cancel-btn:hover { background: var(--border); }

/* Order Summary Box */
.order-summary {
  background: var(--ivory);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: left;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 14px;
  color: var(--text-muted);
}

.summary-line.grand-total {
  font-weight: 700;
  font-size: 18px;
  color: var(--mahogany);
  border-top: 1.5px solid var(--border);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
}

/* =========================================
   19. SIZE SELECTION MODAL
   ========================================= */
.size-selection-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: var(--white);
  width: 95%;
  max-width: 1020px;
  z-index: 1002;
  display: none;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--dur-base) var(--ease-spring);
}

.size-selection-modal.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

/* Scrollable container */
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-wrap: wrap;
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  color: var(--mahogany);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease-spring);
}

.close-modal-btn:hover {
  background: var(--mahogany);
  color: var(--white);
  transform: rotate(90deg);
}

/* Modal Panels */
.product-selection-area {
  flex: 1;
  min-width: 280px;
  padding: var(--space-xl);
  background: var(--ivory);
}

.size-chart-area {
  flex: 1;
  min-width: 280px;
  padding: var(--space-xl);
  background: var(--white);
  border-left: 1px solid var(--border-light);
}

.product-selection-area h2 { font-size: 22px; }
.product-selection-area p { font-size: 17px; color: var(--text-muted); }

.size-selector h3,
.size-chart-area h3 {
  font-size: 11px;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--mahogany);
  font-family: var(--font-body);
  font-weight: 800;
}

.size-options {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.size-btn {
  min-width: 48px;
  height: 48px;
  padding: 0 var(--space-sm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--dur-base) var(--ease-smooth);
}

.size-btn:hover {
  border-color: var(--mahogany);
  background: var(--cream);
}

.size-btn.selected {
  background: var(--mahogany);
  color: var(--white);
  border-color: var(--mahogany);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(60, 42, 33, 0.25);
}

/* Size Chart Table */
.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13.5px;
}

.size-chart-table th,
.size-chart-table td {
  padding: 11px var(--space-md);
  border: 1px solid var(--border-light);
}

.size-chart-table th {
  background: var(--ivory);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--mahogany);
}

.size-chart-table tr:nth-child(even) td {
  background: var(--surface);
}

/* =========================================
   20. MODAL IMAGE GALLERY
   ========================================= */
.modal-gallery-area {
  flex: 1;
  min-width: 280px;
  padding: var(--space-lg);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.main-modal-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: zoom-in;
  transition: transform var(--dur-slow) var(--ease-out);
}

.main-modal-img:hover { transform: scale(1.02); }

.thumbnail-container {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnail-img {
  width: 70px;
  height: 88px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--dur-base) var(--ease-smooth);
  opacity: 0.6;
  flex-shrink: 0;
}

.thumbnail-img:hover,
.thumbnail-img.active {
  border-color: var(--mahogany);
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================================
   21. IMAGE ZOOM LIGHTBOX
   ========================================= */
#main-modal-img { cursor: zoom-in; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 4, 2, 0.96);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-smooth);
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: grab;
}

.lightbox-img-container:active { cursor: grabbing; }

#lightbox-img {
  max-width: 95vw;
  max-height: 88vh;
  object-fit: contain;
  transition: transform var(--dur-base) var(--ease-out);
  transform-origin: center center;
  border-radius: var(--radius-sm);
}

.close-lightbox-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10000;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease-smooth);
}

.close-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-controls {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-md);
  z-index: 10000;
}

.lightbox-controls button {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  transition: all var(--dur-base) var(--ease-smooth);
}

.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* =========================================
   22. FLOATING MENU (Three Dots)
   ========================================= */
/* =========================================
   22. VERTICAL RIGHT-SIDE NAVIGATION
   ========================================= */
.vertical-nav-panel {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.vertical-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  transition: all var(--dur-base) var(--ease-smooth);
  opacity: 0.5;
}

/* The text label is hidden and pushed right by default */
.vertical-nav-label {
  opacity: 0;
  transform: translateX(15px);
  transition: all var(--dur-base) var(--ease-out);
  pointer-events: none; /* Prevents accidental hovering on invisible text */
}

/* The unselected dot */
.vertical-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-spring);
  position: relative;
}

/* Hover & Active States */
.vertical-nav-item:hover,
.vertical-nav-item.active {
  opacity: 1;
  color: var(--mahogany);
}

/* Slide the text in */
.vertical-nav-item:hover .vertical-nav-label,
.vertical-nav-item.active .vertical-nav-label {
  opacity: 1;
  transform: translateX(0);
}

/* Enlarge the dot on hover */
.vertical-nav-item:hover .vertical-nav-dot {
  background-color: var(--mahogany);
  transform: scale(1.5);
}

/* Make the active dot glow gold */
.vertical-nav-item.active .vertical-nav-dot {
  background-color: var(--gold);
  transform: scale(1.8);
  box-shadow: 0 0 0 4px rgba(184, 150, 80, 0.2); 
}

/* 📱 Hide entirely on mobile (App bar takes over) */
@media (max-width: 768px) {
  .vertical-nav-panel {
    display: none;
  }
}

#menu-toggle {
  background: var(--mahogany);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease-spring);
}

#menu-toggle:hover {
  background: var(--walnut);
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.menu-content {
  display: none;
  position: absolute;
  bottom: 68px;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-direction: column;
  width: 210px;
  text-align: left;
  border: 1px solid var(--border-light);
  animation: menuPop var(--dur-base) var(--ease-spring);
}

.menu-content.active { display: flex; }

@keyframes menuPop {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.menu-content a {
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--dur-base) var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.menu-content a:last-child { border-bottom: none; }

.menu-content a:hover {
  background: var(--cream);
  color: var(--mahogany);
  padding-left: 26px;
}

/* =========================================
   23. MESSAGE / SOCIAL WIDGET
   ========================================= */
.message-widget {
  position: fixed;
  bottom: 95px;
  left: 28px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.main-msg-btn {
  background: var(--mahogany);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  transition: all var(--dur-base) var(--ease-smooth);
}

.main-msg-btn:hover {
  background: var(--walnut);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.message-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) scale(0.85);
  transform-origin: bottom left;
  transition: all var(--dur-slow) var(--ease-spring);
}

.message-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.msg-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-smooth);
  font-size: 20px;
}

.msg-btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

.fb-btn { background-color: #1877F2; }
.ig-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* =========================================
   24. POLICIES PAGES
   ========================================= */
.policy-container {
  display: flex;
  max-width: 1200px;
  margin: var(--space-2xl) auto;
  padding: 0 6%;
  gap: var(--space-2xl);
  align-items: flex-start;
}

.policy-sidebar {
  flex: 1;
  min-width: 240px;
  position: sticky;
  top: 100px;
  background: var(--ivory);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.policy-sidebar h3 {
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  color: var(--mahogany);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-sm);
}

.policy-sidebar ul { list-style: none; }

.policy-sidebar a {
  display: block;
  padding: 11px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--dur-base) var(--ease-smooth);
}

.policy-sidebar a:hover {
  color: var(--mahogany);
  font-weight: 700;
  padding-left: 6px;
}

.policy-content { flex: 3; }

.policy-section {
  margin-bottom: var(--space-3xl);
  scroll-margin-top: 120px;
}

.policy-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--mahogany);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1.5px solid var(--border-light);
  letter-spacing: 0.04em;
}

.policy-section h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 800;
}

.policy-section p,
.policy-section li {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-md);
  font-size: 15.5px;
}

/* =========================================
   25. STYLE & CARE GUIDE
   ========================================= */
.guide-container {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.guide-block h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--mahogany);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-sm);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.guide-card {
  background: var(--surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--dur-base) var(--ease-smooth);
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--sand);
}

.guide-card h4 {
  color: var(--mahogany);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}

.care-list {
  list-style-type: none;
  padding: 0;
  margin-top: var(--space-md);
}

.care-list li {
  background: var(--ivory);
  margin-bottom: var(--space-sm);
  padding: 14px var(--space-lg);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.65;
  font-size: 15px;
  color: var(--text-body);
  transition: border-color var(--dur-base);
}

.care-list li:hover { border-left-color: var(--mahogany); }

/* =========================================
   26. MINIMALIST SEARCH BAR
   ========================================= */
.mini-search {
  position: relative;
  display: flex;
  align-items: center;
}

#simple-search-input {
  width: 170px;
  padding: 8px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--dur-base) var(--ease-smooth);
  background: var(--ivory);
  color: var(--mahogany);
}

#simple-search-input::placeholder { color: var(--sand); }

#simple-search-input:focus {
  width: 210px;
  border-color: var(--mahogany);
  box-shadow: 0 0 0 3px rgba(60, 42, 33, 0.08);
  background: var(--white);
}

.simple-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  border: 1px solid var(--border-light);
  animation: dropdownFade var(--dur-base) var(--ease-out);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.simple-search-item {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--dur-fast);
}

.simple-search-item:last-child { border-bottom: none; }

.simple-search-item:hover { background-color: var(--ivory); }

.simple-search-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.simple-search-item h4 {
  font-size: 13px;
  margin: 0;
  color: var(--mahogany);
  font-family: var(--font-display);
}

/* =========================================
   27. FOOTER
   ========================================= */
.site-footer {
  background-color: var(--espresso);
  color: var(--white);
  padding: var(--space-2xl) 6% var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Decorative gold border top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: var(--space-xl);
}

.footer-brand h2 {
  font-size: 26px;
  margin-bottom: var(--space-sm);
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-brand p,
.footer-policies a,
.footer-contact p {
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  line-height: 1.75;
}

.footer-policies h3,
.footer-contact h3 {
  font-size: 11px;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 800;
}

.footer-policies ul { list-style: none; }

.footer-policies a {
  display: block;
  text-decoration: none;
  line-height: 2.5;
  transition: all var(--dur-base) var(--ease-smooth);
}

.footer-policies a:hover {
  color: var(--white);
  padding-left: 8px;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.social-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-smooth);
}

.social-links a:hover {
  color: var(--white);
  border-bottom-color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
}

/* Specifically target the 'p' tag so the global rules don't override it */
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7); /* Perfect, legible off-white */
  letter-spacing: 1px;
  margin: 0; 
}

/* =========================================
   28. TOAST NOTIFICATIONS
   ========================================= */
.toast {
  visibility: hidden;
  min-width: 260px;
  background: linear-gradient(135deg, var(--mahogany) 0%, var(--walnut) 100%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-md);
  padding: 16px var(--space-lg);
  position: fixed;
  z-index: 9000;
  left: 50%;
  bottom: var(--space-xl);
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-smooth),
              bottom var(--dur-base) var(--ease-out);
  letter-spacing: 0.5px;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 56px;
}

.toast.success {
  background: linear-gradient(135deg, var(--success) 0%, #1b5e20 100%);
}

/* =========================================
   29. ANIMATIONS & MICRO-INTERACTIONS
   ========================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-view {
  animation: fadeSlideUp 0.65s var(--ease-out) both;
}

/* Staggered children */
.animate-view:nth-child(1) { animation-delay: 0.05s; }
.animate-view:nth-child(2) { animation-delay: 0.10s; }
.animate-view:nth-child(3) { animation-delay: 0.15s; }
.animate-view:nth-child(4) { animation-delay: 0.20s; }
.animate-view:nth-child(5) { animation-delay: 0.25s; }
.animate-view:nth-child(6) { animation-delay: 0.30s; }

@keyframes buttonSuccessPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); background-color: var(--success); color: var(--white); }
  100% { transform: scale(1); }
}

.btn-success-anim {
  animation: buttonSuccessPop 0.55s var(--ease-spring);
}

/* =========================================
   30. FESTIVE DECORATIONS (Baishakh)
   ========================================= */
.festive-decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.alpana-motif {
  position: absolute;
}

/* Corner Placements */
.alpana-motif.top-left  { width: 200px; height: 200px; top: -50px;  left: -90px; }
.alpana-motif.top-right { width: 200px; height: 200px; top: 150px; right: -90px; }
.alpana-motif.mid-left  { width: 140px; height: 140px; top: 40%;    left: -28px; }
.alpana-motif.mid-right { width: 180px; height: 180px; top: 60%;   right: -38px; }
.alpana-motif.btm-left  { width: 150px; height: 150px; bottom: 10%; left: -38px; }
.alpana-motif.btm-right { width: 160px; height: 160px; bottom: 5%; right: -48px; }

/* Hilsha Fish */
.alpana-motif.ilish-motif {
  width: 160px;
  height: 160px;
  top: 35%;
  left: -22px;
  animation: swim-vertical 12s ease-in-out infinite;
}

@keyframes swim-vertical {
  0%   { transform: rotate(-90deg) translate(0px, 0px); }
  50%  { transform: rotate(-85deg) translate(30px, -5px); }
  100% { transform: rotate(-90deg) translate(0px, 0px); }
}

/* Section Divider */
.alpana-divider {
  width: 100%;
  margin: var(--space-xl) 0;
  display: flex;
  justify-content: center;
  opacity: 0.75;
}

/* Motion Classes */
.spin-slow         { animation: spin 42s linear infinite; }
.spin-slow-reverse { animation: spin-reverse 48s linear infinite; }
.float-up-down         { animation: float 8s ease-in-out infinite; }
.float-up-down-delayed { animation: float 11s ease-in-out 2s infinite; }

@keyframes spin         { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg);    } }
@keyframes float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-18px); }
}

/* =========================================
   31. MOBILE BOTTOM NAVIGATION
   ========================================= */
.mobile-bottom-nav { display: none; }

/* =========================================
   32. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {

  /* — Body — */
  body { padding-bottom: 74px; }

  /* — Nav: two-row layout, no absolute positioning — */
  .main-nav {
    flex-wrap: wrap;
    padding: 12px 18px 0;
    gap: 0;
    position: sticky; 
  }

  .hamburger-btn { order: 1; }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
    position: static;
    transform: none;
    font-size: 20px;
  }

  .nav-right {
    order: 3;
    gap: 10px;
  }

  .mini-search { display: none; }

  /* Row 2: full-width search bar */
  .nav-search-row {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    padding: 8px 0 12px; 
    position: relative; 
  }

  #mobile-search-input {
    width: 100%;
    padding: 12px 20px; 
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    background: var(--surface);
    color: var(--mahogany);
    transition: all var(--dur-base) var(--ease-smooth);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); 
  }

  #mobile-search-input::placeholder { color: var(--sand); }

  #mobile-search-input:focus {
    border-color: var(--mahogany);
    box-shadow: 0 0 0 3px rgba(60, 42, 33, 0.08);
    background: var(--white);
  }

  .nav-search-row .simple-search-dropdown {
    width: 100%;
    max-width: 100%;
    top: calc(100% - 6px);
  }

  #lang-text { display: none; }
  .nav-right .cart-icon { display: none; }

  /* — Hero — */
  .hero,
  .hero-video-container,
  .hero-section {
    height: 100svh;
    min-height: 480px;
  }

  .hero-overlay {
    padding: 0 var(--space-lg);
    width: 92%;
  }

  /* — Homepage: Horizontal scroll carousel — */
  #home-view .product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: var(--space-md);
    margin: 0 -6%;
    padding-left: 6%;
    padding-right: 6%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #home-view .product-grid::-webkit-scrollbar { display: none; }

  #home-view .product-card {
    flex: 0 0 60%; 
    scroll-snap-align: center;
  }

  .product-img {
    max-height: 320px;
    object-fit: contain;
    object-position: top center; 
  }

  /* — Category View: 2-column grid — */
  #category-view .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    overflow-x: visible;
    padding: 0;
    margin: 0;
  }

  #category-view .product-card {
    width: 100%;
    flex: none;
    scroll-snap-align: none;
  }

  #category-view .product-title { font-size: 13px; }
  #category-view .product-price { font-size: 12px; }
  #category-view .add-btn       { font-size: 10px; letter-spacing: 1px; padding: 10px; }

  .card-slider-btn {
    opacity: 1;
    width: 30px;
    height: 30px;
  }

  /* — Size Modal — */
  .close-modal-btn {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  /* — Fixed Add to Cart (Anchored to bottom, no floating) — */
  .product-selection-area {
    padding-bottom: 90px; /* Prevents the sizes from hiding behind the fixed button */
  }

  #confirm-add-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    border-radius: 0; 
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); 
    z-index: 1050;
    background-color: var(--white); 
    box-shadow: 0 -8px 20px rgba(0,0,0,0.08); 
  }

  .size-options { flex-wrap: wrap; }
  .size-btn { flex: 1 1 22%; padding: 14px 0; }

  /* — Policy sidebar goes full-width — */
  .policy-container {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .policy-sidebar {
    position: static;
    width: 100%;
  }

  /* — Checkout modal stacks — */
  .checkout-split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .checkout-summary-column {
    order: -1;
    padding: var(--space-md);
  }

  .checkout-modal.active {
    padding: var(--space-lg) var(--space-md);
    max-width: 100%;
    width: 95%;
    max-height: 85vh; 
  }

  /* =========================================
     SIZE GUIDE BOTTOM SHEET
     ========================================= */
  .size-guide-popup {
    align-items: flex-end; 
  }
  
  .size-guide-sheet {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0; 
    margin: 0;
    transform: translateY(100%); 
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .sheet-drag-handle {
    display: block;
    width: 40px;
    height: 5px;
    background: var(--border);
    border-radius: 10px;
    margin: 15px auto;
  }
  
  .size-guide-sheet-inner { padding: 0 20px 30px; }

  /* — Festive layer — */
  .festive-decor-layer { opacity: 0.45; }

  .alpana-motif.top-left,
  .alpana-motif.top-right  { width: 80px; height: 80px; top: -18px; }
  .alpana-motif.top-left   { left: -18px; }
  .alpana-motif.top-right  { right: -18px; }

  .alpana-motif.ilish-motif { width: 80px; height: 80px; top: 22%; left: -8px; }

  .alpana-motif.mid-left,
  .alpana-motif.mid-right,
  .alpana-motif.btm-left,
  .alpana-motif.btm-right  { display: none; }

  /* — Search — */
  #simple-search-input       { width: 90px; }
  #simple-search-input:focus { width: 130px; }
  .simple-search-dropdown    { width: 210px; }

  /* — Message widget — */
  .message-widget { bottom: 80px; left: 18px; }
  .floating-menu  { bottom: 80px; right: 18px; }

  /* — Bottom App Bar — */
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--ivory);
    box-shadow: 0 -4px 20px rgba(44, 31, 23, 0.1);
    z-index: 900;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--mahogany);
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: transform var(--dur-fast) var(--ease-spring);
    gap: 3px;
  }

  .nav-item:active { transform: scale(0.88); }

  .nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--success);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .logo { font-size: 17px; }

  .alpana-motif.top-left,
  .alpana-motif.top-right { width: 60px; height: 60px; }

  .alpana-motif.ilish-motif { width: 60px; height: 60px; }

  #home-view .product-card { flex: 0 0 82%; }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  .hero,
  .hero-video-container { height: 100vw; min-height: 320px; }

  .hero-overlay h1 { font-size: 28px; }
}

/* =========================================
   33. SLIDE-UP ANIMATION (Mobile Modal)
   ========================================= */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}