/* ============================================================
   VIOLET TEAR v2 — New Colour Palette
   Dark palette:  #452829 | #57595b | #e8d1c5 | #f3e8df
   Pink palette:  #ffcdb2 | #ffb4a2 | #e5989b | #b5828c
   ============================================================ */

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

:root {
  /* ── Dark / Neutral ── */
  --deep:        #452829;
  --deep-dark:   #301a1b;
  --deep-mid:    #5a3436;
  --slate:       #57595b;
  --slate-light: #74777a;
  --blush:       #e8d1c5;
  --cream:       #f3e8df;
  --cream-dark:  #ecddd3;

  /* ── Pink / Peach ── */
  --peach:       #ffcdb2;
  --salmon:      #ffb4a2;
  --rose:        #e5989b;
  --mauve:       #b5828c;
  --mauve-dark:  #9a6a74;

  /* ── Roles ── */
  --bg:          var(--cream);
  --bg-alt:      var(--blush);
  --text:        #3a2020;
  --text-light:  #7a5a5a;
  --border:      #ddc8be;
  --accent:      var(--mauve);
  --accent-dark: var(--mauve-dark);
  --btn-primary-bg:    var(--deep);
  --btn-primary-text:  var(--cream);
  --btn-primary-hover: var(--deep-mid);

  /* ── Typography ── */
  --font-serif:  'Abril Fatface', Georgia, serif;
  --font-body:   'McLaren', cursive;
  --font-sans:   'McLaren', cursive;
  --font-script: 'Pacifico', cursive;

  /* ── Misc ── */
  --radius:      6px;
  --shadow-sm:   0 2px 14px rgba(69,40,41,.08);
  --shadow-md:   0 6px 32px rgba(69,40,41,.14);
  --shadow-lg:   0 18px 64px rgba(69,40,41,.2);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul   { list-style: none; }
input, select { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 3px; }

/* ══════════════════════════════════════════
   ANNOUNCE BAR
══════════════════════════════════════════ */
.announce-bar {
  background: var(--deep);
  color: var(--peach);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-align: center;
  padding: 9px 16px;
  overflow: hidden;
  white-space: nowrap;
}
.announce-bar span {
  display: inline-block;
  animation: marqueeAnnounce 24s linear infinite;
}
@keyframes marqueeAnnounce {
  0%   { transform: translateX(40%); }
  100% { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 900;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  height: 78px;
  gap: 16px;
}

/* Logo */
.logo { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; }
.logo-brand { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: #5c1a2e; letter-spacing: .04em; line-height: 1; display: inline-flex; align-items: center; }
.logo-brand-sub { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: #5c1a2e; letter-spacing: .18em; line-height: 1; margin-top: -2px; }
.logo-tear { display: inline-block; vertical-align: middle; margin: 0 -1px; color: #5c1a2e; }

/* Nav */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text);
  position: relative; padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--rose);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--mauve); }
.nav-links a:hover::after { width: 100%; }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.icon-btn {
  position: relative; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  color: var(--deep);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--blush); color: var(--mauve); }

.cart-count, .wishlist-count {
  position: absolute; top: 1px; right: 1px;
  min-width: 18px; height: 18px;
  background: var(--mauve); color: #fff;
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  opacity: 0; transform: scale(0);
  transition: opacity .2s, transform .2s;
}
.cart-count.visible, .wishlist-count.visible { opacity: 1; transform: scale(1); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--deep); border-radius: 2px; transition: var(--transition); }

/* Search */
.search-bar { max-height: 0; overflow: hidden; transition: max-height .4s ease; border-top: 0 solid var(--border); }
.search-bar.open { max-height: 80px; border-top-width: 1px; }
.search-inner { display: flex; align-items: center; gap: 12px; padding: 16px 32px; }
.search-inner input { flex: 1; border: none; background: none; font-family: var(--font-body); font-size: 18px; color: var(--text); outline: none; }
.search-inner input::placeholder { color: var(--text-light); }
.search-close { font-size: 14px; color: var(--text-light); padding: 4px 8px; transition: color var(--transition); }
.search-close:hover { color: var(--mauve); }

/* ══════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(69,40,41,.45);
  backdrop-filter: blur(3px);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 400px; max-width: 95vw; height: 100vh;
  background: var(--cream);
  z-index: 1001;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; }
.cart-drawer-header h3 span { font-size: 14px; color: var(--text-light); font-family: var(--font-sans); font-weight: 400; }
.cart-close {
  font-size: 18px; color: var(--text-light);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.cart-close:hover { background: var(--blush); color: var(--mauve); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 12px; color: var(--text-light); text-align: center; }
.cart-empty-icon { font-size: 52px; }
.cart-empty p { font-family: var(--font-serif); font-size: 20px; }
.cart-empty span { font-family: var(--font-sans); font-size: 12px; letter-spacing: .08em; }

.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); max-height: 200px; overflow: hidden; transition: max-height 260ms ease, opacity 220ms ease, padding-top 260ms ease, padding-bottom 260ms ease, border-bottom-color 220ms ease; }
.cart-item.removing { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-bottom-color: transparent; }
.cart-item-img { width: 70px; height: 85px; object-fit: cover; border-radius: var(--radius); background: var(--blush); }
.cart-item-details { display: flex; flex-direction: column; gap: 4px; }
.cart-item-name { font-family: var(--font-serif); font-size: 15px; font-weight: 500; line-height: 1.3; }
.cart-item-size { font-family: var(--font-sans); font-size: 11px; letter-spacing: .08em; color: var(--text-light); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text); transition: border-color var(--transition), background var(--transition); }
.qty-btn:hover { border-color: var(--rose); background: var(--blush); }
.qty-btn:active { transform: scale(0.88); transition: transform 80ms; }
.qty-num { font-family: var(--font-sans); font-size: 13px; min-width: 20px; text-align: center; }
.cart-item-price { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--mauve); white-space: nowrap; }
.cart-item-remove { font-size: 11px; color: var(--text-light); margin-top: 6px; font-family: var(--font-sans); letter-spacing: .06em; text-decoration: underline; cursor: pointer; transition: color var(--transition); }
.cart-item-remove:hover { color: var(--mauve); }

.cart-footer { padding: 20px 28px 28px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-serif); font-size: 20px; }
.cart-subtotal span:last-child { color: var(--mauve); font-weight: 600; }
.cart-note { font-family: var(--font-sans); font-size: 11px; color: var(--text-light); letter-spacing: .06em; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--deep); color: var(--cream);
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius);
  border: 2px solid var(--deep);
  transition: background var(--transition), border-color var(--transition), transform .15s, box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--deep-mid); border-color: var(--deep-mid);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(69,40,41,.28);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--deep);
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 30px; border-radius: var(--radius); border: 2px solid var(--deep);
  transition: background var(--transition), color var(--transition), transform .15s;
}
.btn-ghost:hover { background: var(--deep); color: var(--cream); transform: translateY(-1px); }

.btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--cream);
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 30px; border-radius: var(--radius); border: 2px solid rgba(243,232,223,.6);
  transition: background var(--transition), border-color var(--transition), transform .15s;
}
.btn-ghost-light:hover { background: rgba(243,232,223,.18); border-color: var(--cream); transform: translateY(-1px); }

.btn-full { width: 100%; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 50vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #f0c4cf;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #5c1a2e 3px, transparent 3px);
  background-size: 32px 32px;
  opacity: .55;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(240,196,207,.6) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 40px 24px; max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: #5c1a2e;
  margin-bottom: 32px; opacity: 0; animation: fadeUp .8s ease .2s forwards;
}
.hero-title {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  margin-bottom: 32px; opacity: 0; animation: fadeUp .9s ease .4s forwards;
}
.hero-title-word {
  font-family: var(--font-serif); font-size: clamp(56px,13vw,130px); font-weight: 900;
  color: #5c1a2e; letter-spacing: .02em; line-height: .92;
  opacity: 0; animation: fadeUp .7s ease forwards;
}
.hero-title-word:nth-child(1) { animation-delay: .3s; }
.hero-title-word:nth-child(2) { animation-delay: .55s; }
.hero-title-accent {
  font-family: var(--font-serif); font-size: clamp(56px,13vw,130px); font-weight: 900;
  font-style: italic; color: #5c1a2e; line-height: .92;
  opacity: 0; animation: fadeUp .7s ease .8s forwards;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s ease 1s forwards; }
.hero .btn-ghost-light { color: #5c1a2e; border-color: #5c1a2e; }
.hero .btn-ghost-light:hover { background: rgba(92,26,46,.1); }

/* ══════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════ */
.marquee-wrap {
  background: var(--deep); padding: 13px 0; overflow: hidden;
  border-top: 1px solid rgba(255,180,162,.15); border-bottom: 1px solid rgba(255,180,162,.15);
}
.marquee-track { display: flex; gap: 40px; align-items: center; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-sans); font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--salmon); }
@keyframes marquee { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }

/* ══════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  font-family: var(--font-sans); font-size: 11px; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase; color: var(--mauve); margin-bottom: 10px;
}
.section-title { font-family: var(--font-serif); font-size: clamp(34px,4vw,52px); font-weight: 400; color: var(--deep); line-height: 1.15; }
.section-title.light { color: #fff; }
.section-title em { font-style: italic; color: var(--rose); }
.ornament { font-size: 28px; color: var(--rose); display: block; margin-top: 10px; line-height: 1; }
.ornament.light { color: var(--salmon); }

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */
.categories { padding: 88px 0 72px; background: var(--cream); }
.category-card-wide { width: 100%; border-radius: 10px; overflow: hidden; cursor: pointer; margin-bottom: 14px; transition: transform var(--transition), box-shadow var(--transition); }
.category-card-wide:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.categories-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.category-card { border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.category-card-inner {
  padding: 24px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 140px; justify-content: center;
  transition: filter var(--transition);
}
.category-card:hover .category-card-inner { filter: brightness(1.04); }
.category-icon { font-size: 24px; }
.category-card h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 400; color: var(--deep); }
.category-card span { font-family: var(--font-sans); font-size: 10px; letter-spacing: .1em; color: var(--slate); }

/* ══════════════════════════════════════════
   SHOP SECTION
══════════════════════════════════════════ */
.shop { padding: 72px 0 96px; background: var(--bg-alt); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; flex-wrap: wrap; gap: 16px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 20px; border-radius: 30px;
  border: 1.5px solid var(--border); color: var(--text-light); background: transparent;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--deep); border-color: var(--deep); color: var(--cream); }

.sort-select {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .08em;
  padding: 8px 36px 8px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a5a5a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; color: var(--text); cursor: pointer; outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--rose); }

/* ══════════════════════════════════════════
   PRODUCTS GRID
══════════════════════════════════════════ */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.product-card {
  background: var(--cream); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card.hidden { display: none; }

.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--blush); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

/* Placeholder */
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(145deg, var(--blush) 0%, var(--cream-dark) 100%);
  color: var(--text-light);
}
.product-img-placeholder svg { width: 48px; height: 48px; opacity: .3; }
.product-img-placeholder span { font-family: var(--font-sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: .45; }

/* Overlay */
.product-overlay {
  position: absolute; inset: 0; background: rgba(69,40,41,.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }
.btn-quickview {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 28px;
  background: rgba(243,232,223,.92); color: var(--deep); border-radius: var(--radius);
  transform: translateY(10px); transition: transform var(--transition), background var(--transition);
  backdrop-filter: blur(4px);
}
.product-card:hover .btn-quickview { transform: translateY(0); }
.btn-quickview:hover { background: #fff; }

/* Wishlist */
.wishlist-btn {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(243,232,223,.88); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform .2s; z-index: 2;
}
.wishlist-btn svg { width: 16px; height: 16px; color: var(--mauve); transition: color var(--transition); }
.wishlist-btn:hover { background: #fff; transform: scale(1.1); }
.wishlist-btn.active svg { fill: var(--mauve); color: var(--mauve); }

/* Badge */
.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-sans); font-size: 9px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; background: var(--peach); color: var(--deep); border-radius: 3px;
}
.sold-out-badge { background: var(--slate); color: #fff; }
.new-badge { background: var(--rose); color: #fff; }

/* Info */
.product-info { padding: 20px 22px 22px; }
.product-category { font-family: var(--font-sans); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); margin-bottom: 6px; }
.product-name { font-family: var(--font-serif); font-size: 20px; font-weight: 400; color: var(--deep); line-height: 1.25; margin-bottom: 8px; }
.product-desc { font-family: var(--font-body); font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-meta { display: flex; flex-direction: column; gap: 12px; }
.size-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.size-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.size-btn {
  font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .08em;
  width: 32px; height: 32px; border: 1.5px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: all var(--transition);
}
.size-btn:hover, .size-btn.active { border-color: var(--mauve); color: var(--mauve); background: rgba(181,130,140,.08); }

.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--deep); }
.btn-add-cart {
  font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 20px; background: var(--mauve); color: #fff; border-radius: var(--radius);
  transition: background var(--transition), transform .15s;
}
.btn-add-cart:hover { background: var(--mauve-dark); transform: translateY(-1px); }
.btn-add-cart:active { transform: translateY(0); }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.no-results { text-align: center; padding: 60px; font-family: var(--font-serif); font-size: 22px; color: var(--text-light); font-style: italic; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about { padding: 0; }
.about-inner {
  position: relative;
  background: linear-gradient(135deg, var(--deep-dark) 0%, #2e1516 50%, #1e0e0f 100%);
  overflow: hidden;
}
.about-deco {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(229,152,155,.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(181,130,140,.18) 0%, transparent 40%);
  pointer-events: none;
}
.about-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.about-text { color: rgba(255,255,255,.9); }
.about-text p { font-family: var(--font-body); font-size: 17px; color: rgba(255,255,255,.72); line-height: 1.9; margin-bottom: 20px; }
.about-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-serif); font-size: 36px; color: var(--salmon); line-height: 1; }
.stat-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.about-img-wrap { display: flex; justify-content: center; }
.about-img-stack { position: relative; width: 340px; height: 420px; }
.about-img-frame { position: absolute; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-img-placeholder { width: 100%; height: 100%; background: linear-gradient(145deg, #4a2a2c, #2e1618); display: flex; align-items: center; justify-content: center; }
.about-img-placeholder svg { width: 40px; height: 40px; color: var(--salmon); opacity: .3; }
.frame-1 { width: 260px; height: 320px; top: 0; left: 0; z-index: 2; border: 6px solid rgba(255,180,162,.25); }
.frame-2 { width: 200px; height: 260px; bottom: 0; right: 0; z-index: 3; border: 6px solid rgba(243,232,223,.18); }

/* ══════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════ */
.trust-strip { padding: 52px 0; background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-items { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 16px; padding: 0 20px; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 28px; flex-shrink: 0; }
.trust-item div { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-family: var(--font-serif); font-size: 16px; font-weight: 500; color: var(--deep); }
.trust-item span { font-family: var(--font-sans); font-size: 11px; letter-spacing: .06em; color: var(--text-light); }

/* ══════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════ */
.newsletter { padding: 96px 0; background: var(--blush); text-align: center; }
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 { font-family: var(--font-serif); font-size: clamp(32px,4vw,48px); font-weight: 400; color: var(--deep); margin-bottom: 14px; }
.newsletter-desc { font-family: var(--font-body); font-size: 17px; color: var(--text-light); margin-bottom: 32px; line-height: 1.7; }
.newsletter-form { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.newsletter-form input { flex: 1; padding: 14px 20px; border: none; font-family: var(--font-body); font-size: 16px; color: var(--text); background: transparent; outline: none; }
.newsletter-form input::placeholder { color: var(--text-light); }
.newsletter-form .btn-primary { border-radius: 0; border: none; padding: 14px 28px; flex-shrink: 0; }
.newsletter-note { font-family: var(--font-sans); font-size: 11px; letter-spacing: .06em; color: var(--text-light); margin-top: 14px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer { background: var(--deep); color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { font-family: var(--font-body); font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.8; margin-top: 16px; max-width: 260px; }
.footer-logo { display: flex; flex-direction: column; line-height: 1; }
.footer-logo .logo-brand { color: var(--salmon); font-size: 22px; }
.footer-logo .logo-brand-sub { color: rgba(255,255,255,.8); font-size: 18px; }
.footer-logo .logo-tear { color: var(--salmon); }

.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color var(--transition), background var(--transition); }
.social-links a svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); }
.social-links a:hover { border-color: var(--salmon); background: rgba(255,180,162,.12); }
.social-links a:hover svg { color: var(--salmon); }

.footer-links h4 { font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--peach); margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-family: var(--font-body); font-size: 15px; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--salmon); }
.footer-bottom { padding: 24px 0; text-align: center; }
.footer-bottom p { font-family: var(--font-sans); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.3); }

/* ══════════════════════════════════════════
   QUICK VIEW MODAL
══════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(69,40,41,.55); backdrop-filter: blur(4px); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.94);
  background: var(--cream); border-radius: 12px; z-index: 1101;
  width: 90%; max-width: 840px; max-height: 90vh; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; background: rgba(69,40,41,.08); border-radius: 50%;
  font-size: 14px; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); z-index: 2;
}
.modal-close:hover { background: rgba(181,130,140,.15); color: var(--mauve); }
.modal-content { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img { aspect-ratio: 3/4; overflow: hidden; border-radius: 12px 0 0 12px; background: var(--blush); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.modal-details { padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; }
.modal-category { font-family: var(--font-sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mauve); }
.modal-name { font-family: var(--font-serif); font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--deep); }
.modal-price { font-family: var(--font-serif); font-size: 26px; color: var(--mauve); font-weight: 600; }
.modal-desc { font-family: var(--font-body); font-size: 15px; color: var(--text-light); line-height: 1.8; }
.modal-divider { height: 1px; background: var(--border); }
.modal-size-label { font-family: var(--font-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.modal-sizes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--deep); color: var(--cream);
  font-family: var(--font-sans); font-size: 13px; letter-spacing: .06em;
  padding: 14px 24px; border-radius: var(--radius); box-shadow: var(--shadow-md);
  z-index: 2000; opacity: 0; transform: translateY(16px);
  transition: opacity .3s, transform .3s; pointer-events: none; max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-accent { color: var(--salmon); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0}to{opacity:1} }
@keyframes badgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.35)} }
.cart-count.pulse, .wishlist-count.pulse { animation: badgePulse 220ms ease; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.product-card { will-change: transform; }
.cart-drawer { will-change: transform; }

/* ══════════════════════════════════════════
   PRODUCT PAGE
══════════════════════════════════════════ */
.vr-product { padding: 48px 0 96px; }
.vr-breadcrumb { font-family: var(--font-sans); font-size: 11px; letter-spacing: .1em; color: var(--text-light); margin-bottom: 40px; }
.vr-breadcrumb a { transition: color var(--transition); }
.vr-breadcrumb a:hover { color: var(--mauve); }

.vr-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.vr-gallery-main {
  aspect-ratio: 3/4; overflow: hidden; border-radius: 10px;
  background: var(--blush); position: relative;
}
.vr-gallery-main img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: opacity .2s ease;
}
.vr-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.vr-thumb {
  width: 68px; height: 82px; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; transition: border-color var(--transition);
  flex-shrink: 0; cursor: pointer; padding: 0;
}
.vr-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vr-thumb.active, .vr-thumb:hover { border-color: var(--mauve); }

.vr-product-title { font-family: var(--font-serif); font-size: clamp(26px,3.5vw,42px); font-weight: 400; color: var(--deep); line-height: 1.15; margin: 8px 0 16px; }
.vr-product-price { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--deep); }
.vr-product-price s { font-size: 16px; font-weight: 400; color: var(--text-light); margin-right: 8px; vertical-align: middle; }
.vr-product-price .sale-price { color: var(--mauve); }
.vr-product-divider { height: 1px; background: var(--border); margin: 24px 0; }
.vr-variants { margin-bottom: 20px; display: flex; flex-direction: column; gap: 16px; }
.vr-atc-row { display: flex; gap: 10px; align-items: stretch; }
.vr-atc-row .btn-add-cart { flex: 1; padding: 16px 20px; font-size: 11px; letter-spacing: .2em; }
.vr-wishlist-btn {
  position: static; width: 52px; height: 52px; flex-shrink: 0;
  background: var(--blush); border-radius: var(--radius);
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.vr-wishlist-btn:hover { border-color: var(--rose); background: var(--cream-dark); }
.vr-wishlist-btn.active svg { fill: var(--mauve); color: var(--mauve); }
.vr-product-desc { font-family: var(--font-body); font-size: 16px; color: var(--text-light); line-height: 1.85; }
.vr-product-desc p { margin-bottom: 12px; }

/* ══════════════════════════════════════════
   QUICK VIEW GALLERY
══════════════════════════════════════════ */
.mg-container { position: relative; display: flex; flex-direction: column; }
.mg-gallery-wrap { position: relative; flex: 1; }
.mg-main-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; border-radius: 12px 0 0 12px; }
.mg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(243,232,223,.9); width: 36px; height: 36px;
  border-radius: 50%; font-size: 22px; color: var(--deep); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background var(--transition); z-index: 2;
}
.mg-prev { left: 10px; }
.mg-next { right: 10px; }
.mg-arrow:hover { background: #fff; }
.mg-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0 6px; background: var(--blush);
  border-radius: 0 0 0 12px;
}
.mg-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(69,40,41,.2); border: none; cursor: pointer; padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.mg-dot.active { background: var(--mauve); transform: scale(1.35); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vr-product-layout { grid-template-columns: 1fr; gap: 36px; }
  .vr-gallery-main { aspect-ratio: 4/3; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .about-content { grid-template-columns: 1fr; gap: 52px; }
  .about-img-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; height: 66px; }
  .nav-links {
    display: none; position: fixed; top: 0; left: 0;
    width: 280px; height: 100vh; background: var(--cream);
    flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 28px;
    box-shadow: var(--shadow-lg); z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 13px; }
  .nav-toggle { display: flex; }
  .trust-items { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .trust-item:nth-child(3), .trust-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-img { border-radius: 12px 12px 0 0; aspect-ratio: 4/3; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn-primary { border-radius: 0 0 var(--radius) var(--radius); }
  .hero-actions { flex-direction: column; align-items: center; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   MOBILE — touch & compatibility fixes
══════════════════════════════════════════ */

/* Nav backdrop overlay (created dynamically by JS) */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(69,40,41,.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* Hamburger animates to ✕ when nav open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform var(--transition), opacity var(--transition); }

/* Touch devices: quick view always visible (no hover needed) */
@media (hover: none) {
  .product-overlay {
    opacity: 1;
    background: rgba(69,40,41,.14);
  }
  .btn-quickview { transform: translateY(0); }
  .product-card:active { transform: translateY(-2px); transition-duration: .1s; }
}

/* Smooth momentum scrolling on iOS for overflow containers */
.cart-items           { -webkit-overflow-scrolling: touch; }
.modal                { -webkit-overflow-scrolling: touch; }
.vr-gallery-thumbs    { -webkit-overflow-scrolling: touch; }

/* Larger tap targets on mobile for quantity controls */
@media (max-width: 768px) {
  .qty-btn   { width: 40px; height: 40px; font-size: 18px; }
  .qty-num   { font-size: 15px; }
  .cart-close { width: 44px; height: 44px; font-size: 20px; }
  .modal-close { width: 44px; height: 44px; font-size: 16px; top: 12px; right: 12px; }
  .size-btn  { min-width: 40px; min-height: 40px; }
  .wishlist-btn { width: 44px; height: 44px; }
  .vr-thumb  { width: 76px; height: 92px; }
  .search-inner { padding: 14px 20px; }
}

/* Full-width cart drawer on very small phones */
@media (max-width: 430px) {
  .cart-drawer { width: 100%; max-width: 100%; }
  .cart-drawer-header { padding: 20px 20px; }
  .cart-items  { padding: 16px 20px; }
  .cart-footer { padding: 16px 20px 24px; }
}

/* Full-screen modal on small phones */
@media (max-width: 600px) {
  .modal {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; max-width: 100%; max-height: 100%;
    border-radius: 0;
    transform: scale(.97) translateY(16px);
  }
  .modal.open { transform: none; }
  .modal-details { padding: 28px 24px 40px; }
}

/* Toast centered at bottom on phones */
@media (max-width: 600px) {
  .toast {
    bottom: 24px; right: 16px; left: 16px;
    max-width: none; text-align: center;
  }
}

/* Product page: tighter spacing on mobile */
@media (max-width: 600px) {
  .vr-product { padding: 28px 0 72px; }
  .vr-breadcrumb { margin-bottom: 24px; }
  .vr-product-title { font-size: clamp(24px, 7vw, 32px); }
  .vr-atc-row .btn-add-cart { padding: 16px; font-size: 12px; }
}

/* ══════════════════════════════════════════
   FULLSCREEN LIGHTBOX
══════════════════════════════════════════ */
.vr-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.vr-lightbox.open { opacity: 1; pointer-events: auto; }

.vr-lb-img {
  max-width: 100vw; max-height: 100vh;
  width: auto; height: auto;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}

.vr-lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.14); border-radius: 50%;
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background .2s;
}
.vr-lb-close:hover { background: rgba(255,255,255,.28); }

.vr-lb-prev, .vr-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.14); border-radius: 50%;
  color: #fff; font-size: 34px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background .2s;
}
.vr-lb-prev:hover, .vr-lb-next:hover { background: rgba(255,255,255,.28); }
.vr-lb-prev { left: 16px; }
.vr-lb-next { right: 16px; }

.vr-lb-dots {
  position: absolute; bottom: 22px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.vr-lb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); padding: 0;
  transition: background .2s, transform .2s;
}
.vr-lb-dot.active { background: #fff; transform: scale(1.35); }

/* Tap hint on tappable images */
.mg-main-img, #vrMainImg { cursor: zoom-in; }

@media (max-width: 600px) {
  .vr-lb-prev { left: 8px; }
  .vr-lb-next { right: 8px; }
}
