/* Vulpes Corsac — theme layer for things Tailwind utilities can't express */

:root {
  --page: #f2f2f4;
  --ink: #202020;
  --accent: #ff4400;
  --line: #e3e3e6;
  --surface: #e6e6e9;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: 15px;
}
@media (min-width: 750px) {
  :root { --gutter: 54px; }
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body :is(h1, h2, h3, h4) { font-family: 'Quicksand', sans-serif; font-weight: 500; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.gutter { padding-left: var(--gutter); padding-right: var(--gutter); }

/* 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; }

/* ---------- Header ---------- */
.header-wrap { height: 65px; }
@media (min-width: 750px) {
  .header-wrap { height: 68px; }
  .has-hero .header-wrap { height: 0; }
}
.site-header {
  background: var(--page);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.site-header.is-hidden { transform: translateY(-101%); }
.logo-mark { height: 30px; width: auto; flex: none; transition: filter 0.4s ease; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none; position: relative;
  background: rgba(32, 32, 32, 0.07);
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}
.icon-btn:hover { background: rgba(32, 32, 32, 0.14); }
@media (min-width: 750px) {
  .site-header:not(.is-solid) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.22); }
  .site-header:not(.is-solid) .logo-mark { filter: invert(1); }
  .site-header:not(.is-solid) .icon-btn { background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
  .site-header:not(.is-solid) .icon-btn:hover { background: rgba(255, 255, 255, 0.36); }
}
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.cart-badge[data-count="0"] { display: none; }

/* ---------- Links and buttons ---------- */
.dotlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.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); }
.btn-pill {
  display: inline-flex; align-items: center; gap: 14px; height: 46px; padding: 0 5px 0 22px;
  border-radius: 999px; background: #fff; color: #000; font-family: 'Quicksand', sans-serif; font-weight: 600;
}
.btn-pill__dot {
  width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff;
  display: grid; place-items: center; transition: transform 0.4s var(--ease);
}
.btn-pill:hover .btn-pill__dot { transform: rotate(45deg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px;
  border-radius: 999px; font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 13px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: var(--accent); }
.btn[disabled] { background: #b9b9bd; color: #fff; cursor: not-allowed; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; height: 32px; padding: 0 16px; font-size: 12px; }
.btn--ghost:hover { background: #fff; color: #000; }
.round-btn {
  width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}
.round-btn:hover { background: #000; color: #fff; }
.round-btn[disabled] { opacity: 0.35; pointer-events: none; }
.chip {
  display: inline-block; padding: 3px 9px; border-radius: 4px; background: #fff;
  font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 600;
}
.tab-pill {
  height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.tab-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Dropdowns ---------- */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 110px; padding: 6px; z-index: 30;
  background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0s 0.25s;
}
.dropdown--up .dropdown__menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown__menu button { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 6px; font-size: 12px; }
.dropdown__menu button:hover, .dropdown__menu button[aria-current] { background: var(--page); }
.dropdown.is-open [data-dropdown] svg { transform: rotate(180deg); }
[data-dropdown] svg { transition: transform 0.3s var(--ease); }

/* ---------- 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%); } }
.hero-marquee {
  font-family: 'Quicksand', sans-serif; font-weight: 500; font-size: clamp(96px, 11.4vw, 200px); line-height: 1;
  color: #fff; mix-blend-mode: overlay; pointer-events: none;
}
.hero-marquee span { padding-right: 0.32em; }

/* ---------- 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.9); }
.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; }

/* ---------- Product card ---------- */
.pcard__img { transition: opacity 0.6s ease, transform 1.2s var(--ease); }
.pcard__img--alt { opacity: 0; }
.pcard__eye {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; opacity: 0; transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.pcard__eye:hover { background: #000; color: #fff; }
.pcard__colors {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 8px 18px; background: rgba(255, 255, 255, 0.88); font-size: 12px;
  transform: translateY(100%); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.pcard__amount, .pcard__choose { transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.pcard__choose { position: absolute; left: 0; top: 0; transform: translateY(100%); opacity: 0; }
@media (hover: hover) {
  .pcard:hover .pcard__img { transform: scale(1.04); }
  .pcard:hover .pcard__img--alt { opacity: 1; }
  .pcard:hover .pcard__eye { opacity: 1; transform: none; }
  .pcard:hover .pcard__colors { transform: none; opacity: 1; }
  .pcard:hover .pcard__amount { transform: translateY(-100%); opacity: 0; }
  .pcard:hover .pcard__choose { transform: none; opacity: 1; }
}
.pcard:focus-within .pcard__eye { opacity: 1; transform: none; }
.prow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.prow::-webkit-scrollbar { display: none; }
.prow > * { flex: 0 0 47%; scroll-snap-align: start; }
@media (min-width: 750px) { .prow > * { flex-basis: 18.6%; } }
.js .pgrid.is-swapping > .pcard { opacity: 0; transform: translateY(16px); transition-duration: 0.3s; transition-delay: 0s; }

/* ---------- Carousels ---------- */
.snap-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: start; flex: none; }

/* ---------- 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(0, 0, 0, 0.4); backdrop-filter: blur(15px);
  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__panel--late { transition-delay: 0s; }
.overlay.is-open .overlay__panel { transform: none; }
.overlay.is-open .overlay__panel--late { transition-delay: 0.12s; }
.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; }
.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: 34px; height: 34px; border-radius: 50%; background: #fff; 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: #000; color: #fff; }
.menu-link { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-family: 'Quicksand', sans-serif; font-weight: 500; font-size: 20px; }
.menu-link > span, .menu-link > a { transition: transform 0.35s var(--ease), color 0.3s; }
.menu-link:hover > span, .menu-link:hover > a { transform: translateX(6px); color: var(--accent); }
.submenu {
  position: absolute; inset: 0; background: var(--surface); transform: translateX(105%);
  transition: transform 0.55s var(--ease); visibility: hidden;
}
.submenu.is-open { transform: none; visibility: visible; }

/* ---------- 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); }
.acc.is-open > .acc__head .acc__icon--chev { transform: rotate(180deg); }
@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 ---------- */
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); position: relative; }
.swatch.is-active::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); }
.size-pill {
  min-width: 64px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.size-pill:hover { border-color: var(--ink); }
.size-pill.is-active { background: #000; border-color: #000; color: #fff; }
.qty { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 100%; display: grid; place-items: center; }
.qty output { min-width: 26px; text-align: center; font-size: 13px; }
.qty--sm { height: 32px; }
.qty--sm button { width: 28px; }
.stock-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(60, 140, 70, 0.25); 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; } }

/* ---------- Hotspots ---------- */
.hotspot { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; display: grid; place-items: center; }
.hotspot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transform: scale(0.5); transition: transform 0.4s var(--ease); }
.hotspot::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; position: relative; }
.hotspot.is-active::before { transform: scale(1); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.glass { background: rgba(40, 24, 12, 0.5); backdrop-filter: blur(22px); color: #fff; }

/* ---------- Showcase (pinned) ---------- */
/* Every category stays visible; the row height shrinks so --n rows always fit the card. */
.sc-item {
  --row: min(58px, calc((84vh - 200px) / var(--n, 9)));
  height: var(--row); line-height: var(--row);
  font-family: 'Quicksand', sans-serif; font-weight: 500; font-size: min(clamp(22px, 2.3vw, 36px), calc(var(--row) * 0.66));
  color: #a3a3a3; transition: color 0.5s ease, transform 0.5s var(--ease);
}
.sc-item.is-active { color: #000; transform: scale(1.08); }
.sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(100%); transition: transform 0.95s var(--ease); }
.sc-img.is-on { transform: none; }
.sc-cap { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity 0.6s ease; }
.sc-cap.is-on { opacity: 1; }

/* ---------- Lookbook (pinned) ---------- */
.lb-model { flex: none; transition: filter 0.8s ease, opacity 0.8s ease; }
.lb-track { will-change: transform; }

/* ---------- Social fan ---------- */
.social-card { position: absolute; left: 50%; top: 0; width: 232px; height: 292px; margin-left: -116px; border-radius: 12px; overflow: hidden; will-change: transform; }

/* ---------- Floating images ---------- */
.contour {
  background-color: #f4f4f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='620' viewBox='0 0 900 620' fill='none' stroke='%23e2e2e5' stroke-width='1.4'%3E%3Cpath d='M-20 120c120-70 210 40 330 10s170-130 300-90 200 120 320 60'/%3E%3Cpath d='M-20 190c130-60 220 50 340 20s180-120 300-80 190 110 310 50'/%3E%3Cpath d='M-20 270c110-40 230 60 350 30s160-110 290-70 200 100 310 40'/%3E%3Cpath d='M-20 380c140-80 200 30 330 60s210-90 320-40 160 90 300 20'/%3E%3Cpath d='M-20 460c150-70 210 40 340 70s200-80 310-30 170 80 300 10'/%3E%3Cellipse cx='250' cy='330' rx='120' ry='46'/%3E%3Cellipse cx='250' cy='330' rx='70' ry='24'/%3E%3Cellipse cx='680' cy='250' rx='100' ry='40'/%3E%3Cellipse cx='680' cy='250' rx='52' ry='18'/%3E%3Cpath d='M-20 560c160-60 240 30 360 40s220-70 330-20 150 60 260 10'/%3E%3C/svg%3E");
  background-size: 900px 620px;
}
.float-img { transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg)); will-change: transform; }

/* ---------- Brands ---------- */
.brand-name { font-family: 'Quicksand', sans-serif; font-weight: 500; text-transform: uppercase; line-height: 1; font-size: clamp(24px, 3vw, 46px); transition: color 0.35s ease; }
.brand:hover .brand-name { color: var(--accent); }

/* ---------- Dock and back-to-top ---------- */
.dock { transform: translateY(140%); transition: transform 0.6s var(--ease); }
.dock.is-on { transform: none; }
.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; }

/* ---------- Search results ---------- */
.s-item { display: flex; align-items: center; gap: 14px; padding: 8px; background: #fff; border-radius: 8px; }
.s-add { width: 30px; height: 30px; border-radius: 50%; background: var(--page); display: grid; place-items: center; flex: none; transition: background-color 0.3s, color 0.3s; }
.s-add:hover { background: #000; color: #fff; }

/* ---------- Rich text (descriptions, policy pages) ---------- */
.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 ol { list-style: decimal; }
.rich li { margin-bottom: 0.35em; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich a:hover { color: var(--accent); }
.policy h2 { font-size: 22px; font-weight: 600; margin: 2em 0 0.6em; }
.policy h2:first-child { margin-top: 0; }
.policy { font-size: 15px; line-height: 1.65; }

@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; }
}
