/* =====================================================================
   Flowers Everywhere — Premium Artificial Flowers & Home Décor
   Design System / Global Stylesheet
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --ivory:        #FAF7F2;
  --cream:        #F3ECE3;
  --sand:         #E8DFD3;
  --blush:        #E7CFC6;
  --blush-soft:   #F4E4DE;
  --sage:         #A9B7A5;
  --sage-soft:    #DCE4D8;
  --clay:         #C89B84;
  --gold:         #B08D57;
  --charcoal:     #2C2723;
  --ink:          #1E1A17;
  --muted:        #7C7167;
  --muted-2:      #9A9187;
  --line:         #E5DED4;
  --white:        #FFFFFF;
  --success:      #4B7B5B;
  --danger:       #B4553F;

  --bg:           var(--ivory);
  --surface:      var(--white);
  --text:         var(--charcoal);
  --text-soft:    var(--muted);
  --accent:       var(--clay);
  --accent-deep:  var(--gold);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body:    "Jost", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(44, 39, 35, 0.05);
  --shadow-md: 0 10px 30px rgba(44, 39, 35, 0.08);
  --shadow-lg: 0 24px 60px rgba(44, 39, 35, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.5s;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.h-display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
.h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.72rem; font-weight: 500; color: var(--accent-deep); }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-soft); }
.serif { font-family: var(--font-display); }
.muted { color: var(--text-soft); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(36px, 6vw, 76px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 30px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p { margin-top: 14px; }
.flow-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.bg-cream { background: var(--cream); }
.bg-sage { background: var(--sage-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; border-radius: var(--r-pill); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); will-change: transform; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--charcoal); color: var(--ivory); }
.btn--primary:hover { background: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--charcoal); background: var(--charcoal); color: var(--ivory); }
.btn--light { background: rgba(255,255,255,0.9); color: var(--charcoal); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1eb257; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sm { padding: 10px 20px; font-size: 0.78rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.link-underline { position: relative; font-weight: 500; letter-spacing: 0.04em; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.badge--new { background: var(--sage-soft); color: #3f5a44; }
.badge--sale { background: var(--blush); color: #8a4b3b; }
.badge--best { background: #efe2cc; color: #8a6a2f; }
.badge--trend { background: #e7ddef; color: #6a4c86; }
.badge--soft { background: var(--cream); color: var(--muted); }
.badge--discount { background: var(--charcoal); color: var(--ivory); font-weight: 700; letter-spacing: 0.06em; }

/* ===================== HEADER ===================== */
.announce { display: block; overflow: hidden; background: var(--charcoal); color: var(--ivory); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 0; text-decoration: none; }
.announce-track { display: flex; width: max-content; animation: announce-marquee 42s linear infinite; }
.announce:hover .announce-track { animation-play-state: paused; }
.announce-seq { flex: none; display: flex; }
.announce-msg { white-space: nowrap; padding: 0 2.5rem; }
@keyframes announce-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(250, 247, 242, 0.82); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(250, 247, 242, 0.94); }
/* Three-zone header: menu/nav on the left, brand centred, actions on the
   right. The `auto` centre column keeps the logo truly centred regardless
   of how wide the side groups are. */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 20px; }
.nav-start { display: flex; align-items: center; gap: 30px; justify-self: start; min-width: 0; }
.nav > .brand { justify-self: center; }
.nav > .nav-actions { justify-self: end; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); }
.brand .mark { transform: scale(1.1); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand-txt { white-space: nowrap; line-height: 1.05; }
.brand-txt small { display: block; font-family: var(--font-body); font-size: 0.56rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-deep); margin-top: -2px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.82rem; letter-spacing: 0.06em; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--charcoal); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); position: relative; }
.icon-btn:hover { background: var(--cream); transform: translateY(-1px); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.64rem; font-weight: 700; display: none; align-items: center; justify-content: center; }
.cart-count.show { display: flex; }
.menu-toggle { display: none; }

.mobile-nav { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(30,26,23,0.4); opacity: 0; transition: opacity var(--dur) var(--ease); }
.mobile-nav__panel { position: absolute; top: 0; left: 0; width: min(84vw, 360px); height: 100%; background: var(--ivory); box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform var(--dur) var(--ease); display: flex; flex-direction: column; padding: 24px; overflow-y: auto; }
.mobile-nav.open { visibility: visible; }
.mobile-nav.open .mobile-nav__scrim { opacity: 1; }
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-nav a.m-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-size: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: color var(--dur) var(--ease); }
.mobile-nav a.m-link:hover { color: var(--accent-deep); }
.mobile-nav .m-arrow { font-family: var(--font-body); font-size: 1rem; color: var(--muted-2); flex: none; }
.mobile-nav__foot { margin-top: auto; padding-top: 22px; display: flex; gap: 14px; align-items: center; }
.mobile-nav .m-social { width: 44px; height: 44px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); transition: background var(--dur) var(--ease); }
.mobile-nav .m-social svg { width: 20px; height: 20px; }
.mobile-nav .m-social:hover { background: var(--cream); }

.search-overlay { position: fixed; inset: 0; z-index: 320; background: rgba(250,247,242,0.97); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease); padding-top: 12vh; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { max-width: 700px; margin-inline: auto; padding-inline: var(--gutter); }
.search-box input { width: 100%; font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.4rem); border: none; border-bottom: 2px solid var(--charcoal); background: transparent; padding: 14px 0; }
.search-box input:focus { outline: none; }
.search-hint { color: var(--muted); font-size: 0.82rem; margin-top: 14px; letter-spacing: 0.04em; }
.search-results { margin-top: 26px; display: grid; gap: 8px; max-height: 56vh; overflow-y: auto; }
.search-result { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--r-md); transition: background var(--dur) var(--ease); }
.search-result:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.search-result img { width: 58px; height: 58px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.search-result .sr-name { font-weight: 500; }
.search-result .sr-meta { font-size: 0.8rem; color: var(--muted); }
.search-result .sr-price { margin-left: auto; font-weight: 600; }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; min-height: clamp(520px, 78vh, 760px); padding-block: clamp(40px, 6vw, 80px); }
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin: 18px 0 20px; }
.hero-copy .lead { max-width: 460px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-visual img, .hero-visual svg { width: 100%; height: 100%; object-fit: cover; }
/* Auto-rotating hero: slides stack and crossfade. */
.hero-visual .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); will-change: opacity; }
.hero-visual .hero-slide.is-active { opacity: 1; }
.hero-float { position: absolute; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; }
.hero-float--tl { top: 22px; left: -14px; }
.hero-float--br { bottom: 24px; right: -14px; }
.hero-float .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); line-height: 1; }
.hero-float .lbl { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.hero-stats .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ===================== CATEGORY TILES ===================== */
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.cat-card { position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.cat-card img, .cat-card svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.cat-card:hover img, .cat-card:hover svg { transform: scale(1.07); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,26,23,0.55) 0%, rgba(30,26,23,0.05) 55%); }
.cat-card__label { position: absolute; left: 20px; bottom: 18px; right: 20px; z-index: 2; color: #fff; }
.cat-card__label h3 { color: #fff; font-size: 1.35rem; }
.cat-card__label span { font-size: 0.74rem; letter-spacing: 0.08em; opacity: 0.85; }

/* ===================== PRODUCT CARDS ===================== */
.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card { position: relative; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--cream); display: block; }
.product-card__media img, .product-card__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product-card:hover .product-card__media img, .product-card:hover .product-card__media svg { transform: scale(1.06); }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-card__fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: var(--r-pill); background: rgba(255,255,255,0.9); display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.product-card:hover .product-card__fav { opacity: 1; transform: translateY(0); }
.product-card__fav:hover { background: #fff; }
.product-card__fav svg { width: 18px; height: 18px; }
.product-card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; opacity: 0; transform: translateY(10px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.product-card:hover .product-card__quick { opacity: 1; transform: translateY(0); }
.product-card__body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
/* SKU/code line (Koch&Co-style): small, muted, monospace-ish tracking. */
.product-card__sku { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
/* Quantity stepper on the card — adds/updates the cart in place. */
.qty-stepper { display: inline-flex; align-items: center; align-self: stretch; justify-content: space-between; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty-btn { width: 44px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; line-height: 1; color: var(--ink); background: transparent; transition: background var(--dur) var(--ease); }
.qty-btn:hover { background: var(--cream); }
.qty-val { min-width: 40px; text-align: center; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
/* Product names use the clean sans (the site's own body font, so it matches
   the aesthetic) at a light-medium weight — clearly readable for customers
   outside Colombo, without the heavy/bold look. */
.product-card__name { font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.4; color: var(--ink); letter-spacing: 0.005em; }
.product-card__price { margin-top: auto; font-weight: 600; font-size: 1.02rem; padding-top: 8px; color: var(--ink); }
.product-card__price .was { color: var(--muted-2); text-decoration: line-through; font-weight: 400; font-size: 0.86rem; margin-left: 8px; }
.product-card.is-out .product-card__media::before { content: "Sold Out"; position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(250,247,242,0.72); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); }
@media (hover: none) { .product-card__fav, .product-card__quick { opacity: 1; transform: none; } }

/* ===================== COLLECTIONS ===================== */
.collection-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.collection-card { position: relative; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; padding: 34px; color: #fff; }
.collection-card img, .collection-card svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); z-index: 0; }
.collection-card:hover img, .collection-card:hover svg { transform: scale(1.06); }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(30,26,23,0.6), rgba(30,26,23,0.05)); z-index: 1; }
.collection-card__body { position: relative; z-index: 2; max-width: 340px; }
.collection-card__body h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.collection-card__body p { opacity: 0.9; margin-bottom: 18px; }

.banner-wide { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 340px; display: grid; place-items: center; text-align: center; color: #fff; padding: 60px 24px; }
.banner-wide img, .banner-wide svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner-wide::after { content: ""; position: absolute; inset: 0; background: rgba(30,26,23,0.42); z-index: 1; }
.banner-wide__body { position: relative; z-index: 2; max-width: 620px; }
.banner-wide__body h2 { color: #fff; margin: 14px 0 18px; }

/* ===================== WHY ===================== */
.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-card { background: var(--surface); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card .ic { width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--cream); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-deep); }
.why-card .ic svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; color: var(--text-soft); }

/* ===================== INSTAGRAM ===================== */
.ig-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
/* When showing real TikTok video embeds, drop the square grid and let the
   embeds flow at their natural vertical size, centred and wrapping. */
.ig-grid.tiktok-embeds { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ig-grid.tiktok-embeds .tiktok-embed { flex: 0 1 325px; margin: 0 !important; }
.ig-item { position: relative; aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; display: block; }
.ig-item img, .ig-item svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.ig-item:hover img, .ig-item:hover svg { transform: scale(1.08); }
.ig-item::after { content: ""; position: absolute; inset: 0; background: rgba(30,26,23,0); transition: background var(--dur) var(--ease); }
.ig-item:hover::after { background: rgba(30,26,23,0.2); }
.ig-item .ig-ic { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity var(--dur) var(--ease); z-index: 2; }
.ig-item .ig-ic svg { width: 26px; height: 26px; }
.ig-item:hover .ig-ic { opacity: 1; }

/* ===================== REVIEWS ===================== */
.review-grid { grid-template-columns: repeat(3, 1fr); }
.review-card { background: var(--surface); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.review-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.review-card p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; color: var(--ink); margin-bottom: 18px; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font-weight: 600; color: #8a4b3b; }
.review-card .who .nm { font-weight: 600; font-size: 0.9rem; }
.review-card .who .lc { font-size: 0.78rem; color: var(--muted); }

/* ===================== NEWSLETTER ===================== */
.newsletter { background: var(--charcoal); color: var(--ivory); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center; }
.newsletter h2 { color: var(--ivory); }
.newsletter p { color: rgba(250,247,242,0.7); max-width: 460px; margin: 12px auto 26px; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin-inline: auto; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 14px 20px; border-radius: var(--r-pill); border: 1px solid rgba(250,247,242,0.2); background: rgba(250,247,242,0.06); color: var(--ivory); }
.newsletter input::placeholder { color: rgba(250,247,242,0.5); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-soft); max-width: 300px; font-size: 0.92rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-deep); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.social-row a:hover { transform: translateY(-3px); background: var(--charcoal); color: var(--ivory); }
.social-row svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }

/* ===================== FLOATING WHATSAPP ===================== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 250; }
.wa-float a { width: 48px; height: 48px; border-radius: var(--r-pill); background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(37,211,102,0.32); transition: transform var(--dur) var(--ease); position: relative; }
.wa-float a:hover { transform: scale(1.06); }
.wa-float svg { width: 23px; height: 23px; }

/* ===================== CART DRAWER ===================== */
.drawer { position: fixed; inset: 0; z-index: 310; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(30,26,23,0.4); opacity: 0; transition: opacity var(--dur) var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(92vw, 420px); background: var(--ivory); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--dur) var(--ease); display: flex; flex-direction: column; }
.drawer.open { visibility: visible; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.4rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line .thumb { width: 76px; height: 76px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--cream); }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.cart-line__price { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 1rem; color: var(--charcoal); transition: background var(--dur) var(--ease); }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cart-line__remove { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; }
.cart-line__remove:hover { color: var(--danger); }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.92rem; color: var(--text-soft); }
.summary-row.total { font-size: 1.15rem; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { width: 60px; height: 60px; margin-bottom: 16px; opacity: 0.4; }

/* ===================== SHOP / FILTERS ===================== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters__close { display: none; }
.filter-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 0.9rem; }
.filter-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-opt .cnt { margin-left: auto; color: var(--muted-2); font-size: 0.8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 0.82rem; cursor: pointer; transition: all var(--dur) var(--ease); background: var(--surface); }
.chip.active, .chip:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); font-size: 0.88rem; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding: 11px 40px 11px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 0.86rem; cursor: pointer; }
.select-wrap::after { content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 0.7rem; }
.filter-toggle-mobile { display: none; }
.range-inputs { display: flex; align-items: center; gap: 10px; }
.range-inputs input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters .chip { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.active-filters .chip button { margin-left: 6px; font-weight: 700; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); grid-column: 1/-1; }
.page-hero { background: var(--cream); padding-block: clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: 12px; }

/* ===================== PRODUCT DETAIL ===================== */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--muted); padding: 20px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb .sep { opacity: 0.5; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 76px 1fr; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp-thumb { width: 76px; height: 90px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color var(--dur) var(--ease); background: var(--cream); }
.pdp-thumb.active { border-color: var(--charcoal); }
.pdp-thumb img, .pdp-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.pdp-main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--cream); cursor: zoom-in; }
.pdp-main img, .pdp-main svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s var(--ease-soft); }
.pdp-main.zoomed img { transform: scale(2); cursor: zoom-out; }
.pdp-info h1 { margin: 6px 0 12px; }
.pdp-cat { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.pdp-price { font-size: 1.7rem; font-weight: 600; font-family: var(--font-display); margin: 6px 0 20px; }
.pdp-price .was { color: var(--muted-2); text-decoration: line-through; font-size: 1.1rem; font-weight: 400; margin-left: 10px; }
.pdp-desc { color: var(--text-soft); margin-bottom: 24px; }
.pdp-buy { display: flex; gap: 14px; align-items: center; margin: 24px 0; flex-wrap: wrap; }
.pdp-buy .qty { border-color: var(--charcoal); }
.pdp-meta { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; display: grid; gap: 12px; }
.pdp-meta .row { display: flex; gap: 10px; font-size: 0.88rem; color: var(--text-soft); align-items: center; }
.pdp-meta .row svg { width: 20px; height: 20px; color: var(--accent-deep); flex: none; }
.pdp-share { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.pdp-share span { font-size: 0.8rem; color: var(--muted); }
.pdp-share button { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform var(--dur) var(--ease); }
.pdp-share button:hover { transform: translateY(-2px); }
.pdp-share svg { width: 18px; height: 18px; }
.accordion { border-top: 1px solid var(--line); margin-top: 6px; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 500; font-size: 0.98rem; text-align: left; }
.accordion__head .pm { transition: transform var(--dur) var(--ease); font-size: 1.2rem; }
.accordion__item.open .pm { transform: rotate(45deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.accordion__body p { padding-bottom: 18px; color: var(--text-soft); font-size: 0.92rem; }

/* ===================== ADMIN ===================== */
.admin-body { background: #F6F4F0; }
.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin-side { background: var(--charcoal); color: var(--ivory); padding: 26px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; font-size: 1.3rem; margin-bottom: 30px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); color: rgba(250,247,242,0.7); font-size: 0.9rem; margin-bottom: 4px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); cursor: pointer; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(250,247,242,0.1); color: #fff; }
.admin-nav a svg { width: 18px; height: 18px; }
.admin-main { padding: clamp(20px, 3vw, 40px); overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card .lbl { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.stat-card .val { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); margin-top: 6px; }
.admin-panel { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px; }
.admin-panel h2 { font-size: 1.3rem; margin-bottom: 16px; }
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-toolbar input[type=search], .admin-toolbar select { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.admin-toolbar input[type=search] { flex: 1; min-width: 180px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--line); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: #FAF8F5; }
.data-table .thumb, .data-table img { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; }
.tbl-actions { display: flex; gap: 6px; }
.tbl-actions button { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--cream); display: grid; place-items: center; transition: background var(--dur) var(--ease); }
.tbl-actions button:hover { background: var(--sand); }
.tbl-actions button svg { width: 16px; height: 16px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); font-size: 0.68rem; font-weight: 600; }
.tag--on { background: var(--sage-soft); color: #3f5a44; }
.tag--off { background: #eee6da; color: var(--muted); }
.tag--archived { background: #ecdcd6; color: #8a4b3b; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; color: var(--charcoal); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 18px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 30px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.dropzone.drag { border-color: var(--accent); background: var(--blush-soft); }
.img-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.img-preview { position: relative; width: 84px; height: 84px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(30,26,23,0.7); color: #fff; display: grid; place-items: center; font-size: 0.8rem; }
.modal { position: fixed; inset: 0; z-index: 340; display: none; place-items: center; padding: 24px; background: rgba(30,26,23,0.5); overflow-y: auto; }
.modal.open { display: grid; }
.modal__card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(680px, 100%); max-height: 92vh; overflow-y: auto; padding: 28px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal__head h2 { font-size: 1.5rem; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login__card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 40px; width: min(400px, 100%); text-align: center; }
.admin-login__card .brand { justify-content: center; margin-bottom: 8px; }
.admin-login__card input { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 20px 0 14px; text-align: center; }
.hidden { display: none !important; }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--charcoal); color: var(--ivory); padding: 13px 22px; border-radius: var(--r-pill); font-size: 0.86rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--sage); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Product cards get a richer zoom/rise "morph" as they scroll into view. */
.product-card.reveal { transform: translateY(30px) scale(0.9); transition: opacity 0.7s var(--ease), transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1); }
.product-card.reveal.in { transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 620px; margin-inline: auto; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  /* width:100% is load-bearing: the carousel slides are absolutely
     positioned, so without a definite width the aspect-ratio box collapses
     to zero on mobile (margin-inline:auto alone shrink-to-fits to nothing)
     and the hero disappears. */
  .hero-visual { width: 100%; max-width: 460px; margin-inline: auto; order: -1; }
  .collection-split { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 300; background: var(--ivory); padding: 24px; overflow-y: auto; transform: translateX(-100%); transition: transform var(--dur) var(--ease); top: 0; box-shadow: var(--shadow-lg); }
  .filters.open { transform: translateX(0); }
  .filters__close { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .filter-toggle-mobile { display: inline-flex; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Footer legal links */
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--accent); }

/* Legal / policy pages (terms, privacy) */
.legal { max-width: 760px; margin-inline: auto; padding-block: 8px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 28px; }
.legal h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin: 30px 0 10px; }
.legal p, .legal li { color: var(--text); line-height: 1.75; font-size: 0.95rem; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 4px 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .product-card__name { font-size: 1.02rem; }
  .hero-stats { gap: 24px; }
  .data-table .hide-sm { display: none; }
  .hero-float { display: none; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand .mark { width: 24px; height: 24px; }
  .brand-txt small { display: none; }
  .nav { gap: 10px; }
  .nav-actions { gap: 0; }
}
