/* Dubai Cosmetics: theme layer for things Tailwind utilities can't express */

:root {
  --page: #FFFCFA;
  --ink: #3A0E1A;
  --wine: #2A0912;
  --accent: #C61531;
  --line: #EFE4E0;
  --surface: #F7F1EE;
  --blush: #F9E6E4;
  --ivory: #FBF7F4;
  --gold: #B8936A;
  --muted: rgba(58, 14, 26, 0.74);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: 15px;
}
@media (min-width: 750px) { :root { --gutter: 30px; } }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body :is(h1, h2, h3, h4) { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
body :is(h1, h2, h3, h4) em { font-style: italic; font-weight: 300; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--blush); color: var(--ink); }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.h-sec { font-size: clamp(26px, 2.5vw, 38px); }
.eyebrow { font-family: 'Fraunces', serif; font-style: italic; font-size: 15px; }
.label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked { overflow: hidden; }

/* ---------- Bloom (Bliss-style flower inside headings) ---------- */
.bloom { display: inline-block; width: 0.82em; height: 0.82em; vertical-align: -0.06em; margin: 0 0.06em; animation: bloom-spin 18s linear infinite; }
@keyframes bloom-spin { to { transform: rotate(360deg); } }

/* ---------- Announcement + header ---------- */
.announce { background: var(--blush); }
.announce__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.announce__msg.is-on { opacity: 1; transform: none; }

.site-header { position: sticky; top: 0; z-index: 45; transition: transform 0.55s var(--ease); }
.site-header.is-hidden { transform: translateY(-101%); }
.header-main { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.site-header.is-compact .header-main { border-color: var(--line); box-shadow: 0 8px 30px rgba(58, 14, 26, 0.06); }
.header-nav { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease); }
.header-nav > div { min-height: 0; }
.site-header.is-compact .header-nav { grid-template-rows: 0fr; }
.header-nav.has-open > div { overflow: visible; }
.site-header:not(.is-compact) .header-nav > div { overflow: visible; }
.site-header.is-compact .header-nav > div { overflow: hidden; }
.hamb { margin-right: 10px; }

.logo svg { height: 52px; width: auto; display: block; }
.logo .logo-text { font-family: 'Fraunces', serif; font-weight: 500; font-size: 73.53px; fill: var(--ink); letter-spacing: 0.02em; }
@media (max-width: 749px) { .logo svg { height: 40px; } }

.search-pill { height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.search-pill:hover { border-color: rgba(58, 14, 26, 0.35); box-shadow: 0 6px 20px rgba(58, 14, 26, 0.06); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; border: 1px solid var(--line); background: #fff; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s; }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
  transition: transform 0.4s var(--ease);
}
.cart-badge[data-count="0"] { display: none; }
.cart-badge.is-bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* Nav bar */
.nav-bar { background: var(--ink); color: #fff; }
.nav-link { position: relative; height: 54px; display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav-item:hover .nav-link::after, .nav-item.is-open .nav-link::after { transform: scaleX(1); transform-origin: left; }
.nav-link svg { transition: transform 0.35s var(--ease); }
.nav-item.is-open .nav-link svg { transform: rotate(180deg); }
.sale-pill { height: 28px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; font-weight: 600; font-size: 12.5px; transition: background-color 0.3s, color 0.3s; }
.sale-pill:hover { background: #fff; color: var(--accent); }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 44; background: #fff; color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(42, 9, 18, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease), visibility 0s 0.5s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.mega-dim { position: fixed; inset: 0; z-index: 30; background: rgba(42, 9, 18, 0.28); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s; }
.mega-dim.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.mega-side button, .mega-side a { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-radius: 10px; font-size: 14px; transition: background-color 0.3s, color 0.3s, padding 0.35s var(--ease); }
.mega-side .is-active { background: var(--surface); padding-left: 18px; }
.mega-side .is-active svg { color: var(--accent); }
.mega-pane { animation: pane-in 0.5s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px); } }
.mtile img { transition: transform 1.2s var(--ease); }
.mtile:hover img { transform: scale(1.06); }
.mtile:hover .mtile__name { color: var(--accent); }
.az { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.az:hover, .az.is-active { background: var(--ink); color: #fff; }
.az[disabled] { opacity: 0.25; pointer-events: none; }
.brand-link { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 13.5px; transition: color 0.3s, transform 0.35s var(--ease); }
.brand-link span:last-child { color: var(--muted); font-size: 12px; }
.brand-link:hover { color: var(--accent); transform: translateX(4px); }

/* ---------- Links and buttons ---------- */
.dotlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dotlink::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transition: transform 0.35s var(--ease); }
.dotlink:hover::before { transform: scale(1.7); }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.45s var(--ease); padding-bottom: 1px; }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  background: var(--ink); color: #fff; isolation: isolate; transition: color 0.4s ease;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit; transform: translateY(101%); transition: transform 0.5s var(--ease); }
.btn:hover::before { transform: none; }
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { color: #fff; }
.btn--sm { height: 36px; padding: 0 18px; font-size: 12.5px; }
.btn[disabled] { background: #cdbfbf; pointer-events: none; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, opacity 0.3s, border-color 0.3s; }
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.round-btn[disabled] { opacity: 0.35; pointer-events: none; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--accent); color: #fff; }
.chip--new { background: #8A6640; }
.chip--soft { background: #fff; color: var(--ink); }
.tab-link { position: relative; padding-bottom: 4px; font-size: 14px; color: var(--muted); transition: color 0.3s; }
.tab-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform 0.45s var(--ease); }
.tab-link.is-active { color: var(--ink); font-weight: 600; }
.tab-link.is-active::after { transform: scaleX(1); }
.pill-link { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; white-space: nowrap; transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease); }
.pill-link img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.pill-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.trust-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.trust-chip svg { color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: flex; flex: none; min-width: 100%; animation: marquee var(--dur, 30s) linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Scroll reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal='scale'] { transform: scale(0.94); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w {
  display: inline-block; opacity: 0; transform: translateY(0.4em); color: var(--accent);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.5s ease;
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), calc(var(--i) * 70ms + 380ms);
}
.js [data-split].is-in .w { opacity: 1; transform: none; color: inherit; }
.img-reveal { overflow: hidden; }
.js .img-reveal img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js .img-reveal.is-in img { transform: none; }

/* ---------- Category circles ---------- */
.circ { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; font-weight: 500; }
.circ__img { position: relative; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--surface); display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.circ__img::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(58, 14, 26, 0.06); }
.circ__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.circ::before { content: ''; position: absolute; }
.circ:hover .circ__img { transform: translateY(-4px); }
.circ:hover .circ__img img { transform: scale(1.1); }
.circ--sale .circ__img { background: var(--accent); color: #fff; font-family: 'Fraunces', serif; font-size: 22px; font-style: italic; }
.circ--sale .circ__img::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.55); animation: bloom-spin 24s linear infinite; }
@media (max-width: 749px) { .circ__img { width: 74px; height: 74px; } .circ { font-size: 12px; } }

/* ---------- Mobile category tabs (Bliss) ---------- */
.mcat-tabs { display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; padding: 0 15px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mcat-tabs::-webkit-scrollbar { display: none; }
.mcat-tab { position: relative; flex: none; height: 42px; padding: 0 18px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 18px 18px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.35s, background-color 0.35s, border-color 0.35s; }
.mcat-tab.is-active { color: var(--ink); background: var(--page); border-color: var(--line); }
.mcat-tab.is-active::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.mcirc { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; animation: rise-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.mcirc__img { position: relative; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: var(--surface); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.mcirc__img img { width: 100%; height: 100%; object-fit: cover; }
.mcirc__label { min-height: 2.4em; font-size: 11.5px; font-weight: 500; line-height: 1.2; overflow-wrap: normal; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcirc__off { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; }
.mcirc:active .mcirc__img { transform: scale(0.94); }
.mcat-card { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.mcat-card img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.mcat-card.is-on { opacity: 1; }
.mcat-card.is-on img { transform: none; }
.mcat-card__copy { position: absolute; left: 20px; right: 20px; bottom: 26px; text-align: center; }
.mcat-card__copy > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease 0.25s, transform 0.8s var(--ease) 0.25s; }
.mcat-card.is-on .mcat-card__copy > * { opacity: 1; transform: none; }
.mcat-card.is-on .mcat-card__copy > *:nth-child(2) { transition-delay: 0.33s; }
.mcat-card.is-on .mcat-card__copy > *:nth-child(3) { transition-delay: 0.41s; }
.mcat-cta { display: inline-flex !important; align-items: center; gap: 12px; height: 46px; padding: 0 5px 0 20px; margin-top: 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.75); color: #fff; font-weight: 600; font-size: 13.5px; backdrop-filter: blur(6px); }
.mcat-cta > span { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }

/* ---------- Product card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; padding: 8px; transition: box-shadow 0.5s var(--ease), background-color 0.4s; }
.pcard__media { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: #fff; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease, transform 1.2s var(--ease); }
.pcard__img--alt { opacity: 0; }
.pcard__badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 2; }
.pcard__strip { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: rgba(255, 255, 255, 0.92); font-size: 11px; font-weight: 600; align-items: center; z-index: 1; transition: transform 0.45s var(--ease), opacity 0.3s; }
.pcard__strip span { padding-right: 18px; display: inline-flex; align-items: center; gap: 5px; }
.pcard__strip svg { color: var(--accent); }
.pcard__acts { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pcard__act { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(42, 9, 18, 0.1); opacity: 0; transform: translateX(10px); transition: opacity 0.35s ease, transform 0.45s var(--ease), background-color 0.3s, color 0.3s; }
.pcard__act:nth-child(2) { transition-delay: 0.05s; }
.pcard__act:hover { background: var(--ink); color: #fff; }
.pcard__add { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; height: 40px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity 0.35s ease, transform 0.5s var(--ease), background-color 0.3s; }
.pcard__add:hover { background: var(--accent); }
.pcard__quick { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.pcard__body { padding: 12px 6px 6px; display: flex; flex-direction: column; flex: 1; }
.pcard__name { font-size: 14px; font-weight: 500; line-height: 1.35; margin-top: 4px; }
.pcard__price { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard__price s { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.pcard__price .is-sale { color: var(--accent); }
@media (hover: hover) and (min-width: 750px) {
  .pcard__quick { display: none; }
  .pcard:hover { background: #fff; box-shadow: 0 20px 44px rgba(42, 9, 18, 0.09); }
  .pcard:hover .pcard__img { transform: scale(1.05); }
  .pcard:hover .pcard__img--alt { opacity: 1; }
  .pcard:hover .pcard__act, .pcard:focus-within .pcard__act { opacity: 1; transform: none; }
  .pcard:hover .pcard__add, .pcard:focus-within .pcard__add { opacity: 1; transform: none; }
  .pcard:hover .pcard__strip { transform: translateY(100%); opacity: 0; }
}
@media (hover: none), (max-width: 749px) { .pcard__add, .pcard__acts { display: none; } }
.js .pgrid.is-swapping > * { opacity: 0 !important; transform: translateY(16px) !important; transition-duration: 0.3s !important; transition-delay: 0s !important; }

/* Mini (horizontal) product */
.mini { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); transition: background-color 0.4s, box-shadow 0.4s var(--ease); }
.mini img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; flex: none; background: #fff; }
.mini__go { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.mini:hover { background: #fff; box-shadow: 0 14px 34px rgba(42, 9, 18, 0.08); }
.mini:hover .mini__go { background: var(--ink); color: #fff; transform: rotate(-45deg); }

/* ---------- Carousels ---------- */
.snap-row { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.overflow-x-auto { overflow-y: hidden; overscroll-behavior-x: contain; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: start; flex: none; }
.bleed-right { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scroll-padding-left: 0; }
.cards-5 > * { width: 47%; margin-right: 10px; }
@media (min-width: 750px) { .cards-5 > * { width: calc((100% - 40px) / 3.2); margin-right: 12px; } }
@media (min-width: 990px) { .cards-5 > * { width: calc((100% - 48px) / 5); } }
.cards-5 > *:last-child { margin-right: 0; }
/* Two-row product carousel: 2 columns on phones (8 products), 5 on desktop (10 visible, drag for 10 more). */
.cards-2row { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 10px) / 2.08); gap: 10px; }
@media (max-width: 749px) { .cards-2row > :nth-child(n+9) { display: none; } }
@media (min-width: 750px) { .cards-2row { grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; } }
@media (min-width: 990px) { .cards-2row { grid-auto-columns: calc((100% - 56px) / 5); } }
/* Room for hover lift and shadow inside rows that clip vertically. */
.cards-2row, .cards-5, [data-testimonials], [data-circles] { padding-top: 8px; padding-bottom: 28px; margin-top: -8px; margin-bottom: -28px; }
.progress { position: relative; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), width 0.35s var(--ease); }

/* ---------- Hero slider ---------- */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s 0.9s; }
.hero-slide.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-slide img { transform: scale(1.08); transition: transform 6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.hero-slide.is-on img { transform: scale(1); }
.hero-copy > * { opacity: 0; transform: translateY(-14px); transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.hero-copy.is-on > * { opacity: 1; transform: none; transition: opacity 0.7s ease 0.35s, transform 0.9s var(--ease) 0.35s; }
.hero-copy:not(.is-on) > * { transform: translateY(-14px); }
.hero-copy.is-on > *:nth-child(2) { transition-delay: 0.43s; }
.hero-copy.is-on > *:nth-child(3) { transition-delay: 0.51s; }
.hero-copy.is-on > *:nth-child(4) { transition-delay: 0.59s; }
.hero-dots button { box-sizing: content-box; height: 6px; width: 6px; padding: 9px; background: rgba(58, 14, 26, 0.3); background-clip: content-box; border-radius: 6px; position: relative; overflow: hidden; transition: width 0.5s var(--ease); }
.hero-dots button.is-on { width: 44px; }
.hero-dots button.is-on::after { content: ''; position: absolute; inset: 9px; border-radius: 3px; background: var(--ink); transform-origin: left; animation: dot-fill var(--hero-dur, 6s) linear forwards; }
.hero-dots.is-paused button.is-on::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } }

/* ---------- Lifestyle "shop the product" cards ---------- */
.shop-card { position: relative; border-radius: 16px; overflow: hidden; }
.shop-card > img { transition: transform 1.4s var(--ease); }
.shop-card:hover > img { transform: scale(1.05); }
.glass { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(18px) saturate(1.3); }
.glass-dark { background: rgba(42, 9, 18, 0.45); backdrop-filter: blur(22px); color: #fff; }

/* ---------- Category tiles ---------- */
.ctile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-radius: 14px; background: var(--surface); overflow: hidden; padding: 14px 10px 14px; text-align: center; transition: background-color 0.4s, box-shadow 0.4s var(--ease); }
.ctile img { width: 74%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 10px; transition: transform 1s var(--ease); }
.ctile:hover { background: #fff; box-shadow: 0 16px 34px rgba(42, 9, 18, 0.08); }
.ctile:hover img { transform: scale(1.06) rotate(-2deg); }
.ctile__count { font-size: 11px; color: var(--muted); }

/* ---------- Trending cards ---------- */
.tcard { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--surface); }
.tcard img { transition: transform 1.3s var(--ease); }
.tcard:hover img { transform: scale(1.06); }
.tcard__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-family: 'Fraunces', serif; font-size: 16px; }
.tcard__bar span:last-child { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.tcard:hover .tcard__bar span:last-child { background: var(--ink); color: #fff; transform: rotate(-45deg); }

/* ---------- Brands grid ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 750px) { .brand-grid { grid-template-columns: repeat(5, 1fr); } }
.brand-cell { isolation: isolate; position: relative; height: 112px; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 10px; overflow: hidden; }
.brand-cell__name { font-family: 'Fraunces', serif; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.05; transition: transform 0.5s var(--ease), opacity 0.4s; }
.brand-cell__meta { position: absolute; left: 0; right: 0; bottom: 14px; font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.brand-cell:hover { background: var(--ivory); }
.brand-cell:hover .brand-cell__name { transform: translateY(-8px); }
.brand-cell:hover .brand-cell__meta { opacity: 1; transform: none; }
@media (max-width: 749px) { .brand-cell { height: 84px; } }
.brand-logo { object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.35); opacity: 0.82; transition: filter 0.5s ease, opacity 0.5s ease, transform 0.6s var(--ease); }
.brand-cell:hover .brand-logo, .logo-tile:hover .brand-logo { filter: none; opacity: 1; transform: translateY(-8px) scale(1.04); }
.s-sugg span:has(> .brand-logo) { isolation: isolate; }
/* Menu tabs: the incoming pane slides in, then its rows stagger. */
[data-menu-pane]:not([hidden]) { animation: pane-in 0.5s var(--ease) both; }
.overlay.is-open [data-menu-pane]:not([hidden]) .stagger > * { animation: rise-in 0.6s var(--ease) both; animation-delay: calc(0.08s + var(--i, 0) * 40ms); }
.s-sugg .brand-logo, .s-sugg:hover .brand-logo { filter: none; opacity: 1; transform: none; }
.logo-tile { isolation: isolate; position: relative; display: grid; place-items: center; height: 92px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s, box-shadow 0.4s var(--ease); }
.logo-tile:hover { border-color: var(--ink); box-shadow: 0 12px 26px rgba(42, 9, 18, 0.08); }
.logo-tile .brand-cell__name { font-size: 15px; }
.logo-tile__count { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 10.5px; color: var(--accent); font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.logo-tile:hover .logo-tile__count { opacity: 1; transform: none; }
.logo-tile:not(:hover) .brand-logo { transform: none; }

/* ---------- Bundle / routine ---------- */
.rcard { background: var(--surface); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; }
.rcard__check { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.rcard.is-picked .rcard__check { background: var(--ink); border-color: var(--ink); color: #fff; }
.rcard:not(.is-picked) { opacity: 0.55; }
.plus-sep { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }

/* ---------- Before / after ---------- */
.ba { position: relative; overflow: hidden; border-radius: 22px; touch-action: pan-y; user-select: none; --pos: 50%; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); }
.ba__handle { position: absolute; top: 50%; left: var(--pos); width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18); transition: transform 0.4s var(--ease); }
.ba:hover .ba__handle, .ba.is-drag .ba__handle { transform: scale(1.1); }
.ba__tag { position: absolute; top: 18px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ba.is-hint .ba__before { transition: clip-path 1.2s var(--ease); }
.ba.is-hint .ba__line, .ba.is-hint .ba__handle { transition: left 1.2s var(--ease), transform 0.4s var(--ease); }

/* ---------- Floating images (Bliss) ---------- */
.float-img { transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg)); will-change: transform; }
.curve path { stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 3s var(--ease); }
.curve.is-in path { stroke-dashoffset: 0; }

/* ---------- Testimonials ---------- */
.tcol { break-inside: avoid; }
.quote-card { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.quote-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42, 9, 18, 0.08); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.placeholder-note { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--gold); color: #8a6a47; }

/* ---------- Social fan ---------- */
.social-stage { position: relative; height: 380px; }
.social-card { position: absolute; left: 50%; top: 0; width: 232px; margin-left: -116px; border-radius: 16px; overflow: hidden; background: #fff; will-change: transform; box-shadow: 0 18px 40px rgba(42, 9, 18, 0.1); }

/* ---------- Accordions ---------- */
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.acc__body > * { overflow: hidden; min-height: 0; }
.acc.is-open > .acc__body { grid-template-rows: 1fr; }
.acc__icon { transition: transform 0.4s var(--ease); }
.acc.is-open > .acc__head .acc__icon { transform: rotate(45deg); }
@media (min-width: 750px) {
  .acc--mobile > .acc__body { grid-template-rows: 1fr; }
  .acc--mobile > .acc__head { pointer-events: none; }
  .acc--mobile > .acc__head .acc__icon { display: none; }
}

/* ---------- Product form ---------- */
.qty { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 38px; height: 100%; display: grid; place-items: center; transition: color 0.3s; }
.qty button:hover { color: var(--accent); }
.qty output { min-width: 26px; text-align: center; font-size: 13px; font-weight: 600; }
.qty--sm { height: 32px; }
.qty--sm button { width: 28px; }
.stock-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(60, 140, 70, 0.22); display: grid; place-items: center; }
.stock-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3c8c46; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.5; } }

/* ---------- Overlays (drawers, search, modals) ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s 0.8s; }
.overlay.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(42, 9, 18, 0.38); backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.8s var(--ease); }
.overlay.is-open .overlay__backdrop { opacity: 1; }
.overlay__panel { transform: translateY(calc(100% + 60px)); transition: transform 0.6s var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay.is-open .overlay__panel--late { transition-delay: 0.12s; }
@media (min-width: 750px) {
  .overlay__panel--drop { transform: translateY(36px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.45s ease; }
  .overlay.is-open .overlay__panel--drop { opacity: 1; }
}
.overlay__fade { opacity: 0; transform: translateY(-16px); transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.overlay.is-open .overlay__fade { opacity: 1; transform: none; }
.overlay.is-open .stagger > * { animation: rise-in 0.7s var(--ease) both; animation-delay: calc(0.25s + var(--i, 0) * 50ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.modal__panel { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.overlay.is-open .modal__panel { opacity: 1; transform: none; }
.close-btn { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s; }
.close-btn:hover { transform: rotate(90deg); background: var(--ink); color: #fff; }
.grab { width: 46px; height: 4px; border-radius: 4px; background: rgba(58, 14, 26, 0.2); margin: 10px auto 0; }

.menu-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 0; text-align: left; }
.menu-link img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: #fff; }
.menu-link__name { flex: 1; font-family: 'Fraunces', serif; font-size: 19px; transition: transform 0.35s var(--ease), color 0.3s; }
.menu-link__count { font-size: 11px; color: var(--muted); }
.menu-link:hover .menu-link__name { transform: translateX(6px); color: var(--accent); }
.menu-link .go { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.submenu { position: absolute; inset: 0; overflow: clip; z-index: 3; background: var(--ivory); transform: translateX(105%); transition: transform 0.55s var(--ease); visibility: hidden; display: flex; flex-direction: column; }
.submenu.is-open { transform: none; visibility: visible; }
.seg { display: inline-flex; padding: 4px; background: #fff; border-radius: 999px; border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 13px; transition: background-color 0.35s, color 0.35s; }
.seg button.is-active { background: var(--ink); color: #fff; }

/* Cart */
.ship-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: inherit; transition: width 0.8s var(--ease); }
.cart-line { animation: rise-in 0.5s var(--ease) both; }

/* Search */
.s-sugg { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; transition: color 0.3s, transform 0.35s var(--ease); }
.s-sugg:hover { color: var(--accent); transform: translateX(4px); }
.s-sugg mark { background: none; color: inherit; font-weight: 700; }
.s-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.s-chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Dock and back-to-top ---------- */
.dock { transform: translateY(140%); transition: transform 0.6s var(--ease); }
.dock.is-on { transform: none; }
.dock__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 600; }
.to-top { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s var(--ease), visibility 0s 0.4s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top circle { transition: stroke-dashoffset 0.15s linear; }
.wa-float { transition: transform 0.4s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Rich text ---------- */
.rich p { margin-bottom: 0.8em; }
.rich p:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 0.8em 1.2em; }
.rich ul { list-style: disc; }
.rich li { margin-bottom: 0.35em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w { opacity: 1; transform: none; color: inherit; }
  .js .img-reveal img { transform: none; }
}
