/* ==========================================================================
   AURALIS — wearauralis.pk
   Shared stylesheet. Structure modelled on a luxury-jewellery flagship store:
   transparent sticky header + mega menu, full-bleed hero carousel,
   category grids, product carousels, editorial grid blocks, deep footer.

   Layout system
   -------------
   Content max-width : 1450px
   Breakpoints       : 760px (mobile/tablet), 1025px (desktop), 1450px (wide)
   Palette is near-monochrome on purpose — the photography carries the colour.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Colour */
  --ink: #14120f;
  --ink-soft: #3a3733;
  --muted: #706e6a;
  --muted-light: #a3a19d;
  --line: #e4e1d9;
  --line-strong: #cfccc3;
  --cream: #f0eee4;
  --cream-deep: #e7e4d8;
  --paper: #ffffff;
  --sale: #b4232b;
  --stock: #2e7d4f;

  /* Signature: the refraction hairline. Auralis = light; this spectral rule
     is the one decorative motif on the site. Used for dividers and the
     active-nav underline, never as a fill. */
  --refract: linear-gradient(
    90deg,
    #cbb9d9 0%,
    #a9c7da 24%,
    #cfe1c9 48%,
    #f0dcb3 72%,
    #e5c0c3 100%
  );

  /* Type */
  --font-display: "Cormorant Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --fs-display-xl: clamp(2.5rem, 5.6vw, 4.25rem);
  --fs-display-lg: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-display-md: clamp(1.5rem, 2.4vw, 2rem);
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.3125rem);
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --fs-label: 0.75rem;

  /* Space */
  --gutter: 1.25rem;
  --section-y: 3.5rem;
  --header-h: 4.5rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

@media (min-width: 760px) {
  :root { --gutter: 2.5rem; --section-y: 5rem; }
}
@media (min-width: 1025px) {
  :root { --gutter: 3.75rem; --section-y: 6.5rem; --header-h: 5.25rem; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--cream); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

/* Visible keyboard focus everywhere, but not on mouse click. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.header :focus-visible,
.hero :focus-visible { outline-color: currentColor; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 200;
  background: var(--ink); color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.t-display-xl { font-family: var(--font-display); font-size: var(--fs-display-xl); font-weight: 300; line-height: 1.08; }
.t-display-lg { font-family: var(--font-display); font-size: var(--fs-display-lg); font-weight: 300; line-height: 1.15; }
.t-display-md { font-family: var(--font-display); font-size: var(--fs-display-md); font-weight: 400; line-height: 1.2; }
.t-lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; }
.t-label {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.t-muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1450px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--cream { background: var(--cream); }
.section--flush-top { padding-top: 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section__head--split {
  align-items: flex-start;
  text-align: left;
}
@media (min-width: 760px) {
  .section__head--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* The refraction hairline — signature divider. */
.rule-refract {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--refract);
  opacity: 0.85;
}

.u-hide-desk { display: block; }
.u-hide-mob { display: none; }
@media (min-width: 1025px) {
  .u-hide-desk { display: none; }
  .u-hide-mob { display: block; }
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--solid:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--cream); border-color: var(--cream); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Underlined text link that draws itself on hover. */
.link-u {
  position: relative;
  display: inline-block;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 3px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link-u:hover::after { transform: scaleX(0); }

/* --------------------------------------------------------------------------
   6. Promo bar
   -------------------------------------------------------------------------- */
.promo {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
}
.promo__track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding-inline: 3rem;
}
.promo__item { display: none; }
.promo__item.is-active { display: block; animation: promoIn 0.5s var(--ease); }
@keyframes promoIn {
  from { opacity: 0; transform: translateY(35%); }
  to { opacity: 1; transform: none; }
}
.promo__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  color: #fff;
  opacity: 0.65;
  transition: opacity var(--dur) var(--ease);
}
.promo__nav:hover { opacity: 1; }
.promo__nav--prev { left: 0.25rem; }
.promo__nav--next { right: 0.25rem; }

/* --------------------------------------------------------------------------
   7. Header + mega menu
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
/* Over a hero image the header floats transparent, then solidifies on scroll. */
.header--transparent {
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}
.header--transparent.is-stuck,
.header--transparent.is-open {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.header__left, .header__right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header__right { justify-content: flex-end; }

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: currentColor;
  opacity: 0.7;
  margin-top: 0.25rem;
  font-weight: 400;
}

.icon-btn {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  color: inherit;
  transition: opacity var(--dur) var(--ease);
}
.icon-btn:hover { opacity: 0.6; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.25; }
.icon-btn__count {
  position: absolute;
  top: 0.4rem; right: 0.35rem;
  min-width: 1rem; height: 1rem;
  padding-inline: 3px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.5625rem;
  line-height: 1rem;
  text-align: center;
  font-family: var(--font-body);
}
.header--transparent:not(.is-stuck):not(.is-open) .icon-btn__count {
  background: #fff; color: var(--ink);
}

/* Level 1 ------------------------------------------------------------------ */
.nav { display: none; }
@media (min-width: 1025px) {
  .nav { display: block; }
  .header__bar { grid-template-columns: auto 1fr auto; }
  .nav__list { display: flex; justify-content: center; gap: 1.75rem; }
  .nav__link {
    position: relative;
    display: block;
    padding: 1.75rem 0;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 1.35rem;
    width: 100%; height: 2px;
    background: var(--refract);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dur) var(--ease);
  }
  .nav__item.is-active .nav__link::after,
  .nav__link:hover::after,
  .nav__link:focus-visible::after { transform: scaleX(1); }
  .nav__link--sale { color: var(--sale); }
  .header--transparent:not(.is-stuck):not(.is-open) .nav__link--sale { color: #fff; }
}

/* Mega panel — level 2 columns with level 3 links beneath each. */
.mega {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.28);
}
@media (min-width: 1025px) {
  .nav__item.is-open .mega { display: block; }
  .mega__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 22rem;
    gap: 2.5rem;
    padding-block: 2.75rem 3.25rem;
  }
  .mega__col-title {
    font-size: var(--fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 0.75rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid var(--line);
  }
  .mega__links { display: grid; gap: 0.5rem; }
  .mega__links a {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color var(--dur) var(--ease);
  }
  .mega__links a:hover { color: var(--ink); }
  .mega__links a.is-highlight { color: var(--sale); }

  .mega__feature { display: grid; gap: 0.75rem; }
  .mega__feature img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
  .mega__feature-title { font-family: var(--font-display); font-size: 1.375rem; }
}

/* Mobile drawer ----------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(24rem, 88vw);
  z-index: 90;
  background: var(--paper);
  color: var(--ink);
  transform: translateX(-102%);
  transition: transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.is-open { transform: none; }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer__body { flex: 1; overflow-y: auto; padding-bottom: 2rem; }
.drawer__foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
  font-size: var(--fs-small);
}
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  text-align: left;
}
.drawer__toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform var(--dur) var(--ease); }
.drawer__group.is-open .drawer__toggle svg { transform: rotate(45deg); }
.drawer__panel { display: none; padding: 0 1.25rem 1rem; }
.drawer__group.is-open .drawer__panel { display: block; }
.drawer__panel a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.drawer__panel a:hover { color: var(--ink); }
.drawer__sub-title {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0.875rem 0 0.25rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 18, 15, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* Search ------------------------------------------------------------------ */
.search {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 95;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
  transition: transform var(--dur) var(--ease);
}
.search.is-open { transform: none; }
.search__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.search__field {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
}
.search__field:focus { outline: none; border-bottom-color: var(--ink); }
.search__terms { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 1.5rem; }
.search__term {
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  font-size: var(--fs-small);
  color: var(--muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.search__term:hover { border-color: var(--ink); color: var(--ink); }

/* --------------------------------------------------------------------------
   8. Hero carousel
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  background: var(--cream);
}
.hero__viewport { position: relative; overflow: hidden; }
.hero__track { display: flex; }
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 78svh;
  display: grid;
}
@media (min-width: 1025px) { .hero__slide { min-height: 86svh; } }

.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Scrim keeps the white type legible on any photograph the user drops in. */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 18, 15, 0.55) 0%,
    rgba(20, 18, 15, 0.18) 45%,
    rgba(20, 18, 15, 0.28) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  align-self: end;
  width: 100%;
  color: #fff;
  padding-block: 3.5rem calc(var(--section-y) * 0.7);
  padding-top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
@media (min-width: 1025px) {
  .hero__content--left {
    justify-items: start;
    text-align: left;
    margin-inline: 0;
  }
}
.hero__eyebrow { opacity: 0.9; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
@media (min-width: 1025px) {
  .hero__content--left .hero__ctas { justify-content: flex-start; }
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3rem; height: 3rem;
  display: none;
  place-items: center;
  color: #fff;
  background: rgba(20, 18, 15, 0.22);
  backdrop-filter: blur(2px);
  transition: background-color var(--dur) var(--ease);
}
.hero__arrow:hover { background: rgba(20, 18, 15, 0.5); }
.hero__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.25; }
.hero__arrow--prev { left: 0.75rem; }
.hero__arrow--next { right: 0.75rem; }
@media (min-width: 760px) { .hero__arrow { display: grid; } }

.hero__dots {
  position: absolute;
  left: 0; right: 0; bottom: 1.5rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.hero__dot {
  position: relative;
  width: 3.25rem; height: 2px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}
.hero__dot::after {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active::after { animation: dotFill 6s linear forwards; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   9. Category grid
   -------------------------------------------------------------------------- */
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
@media (min-width: 760px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; } }

.cat { text-align: center; }
.cat__media {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  margin-bottom: 0.875rem;
}
.cat__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.cat:hover .cat__media img { transform: scale(1.07); }
.cat__title {
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cat__title span { position: relative; padding-bottom: 3px; }
.cat__title span::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.cat:hover .cat__title span::after { transform: scaleX(1); }

/* Square variant, used on the collection page rail. */
.cats--square .cat__media { border-radius: 0; aspect-ratio: 4 / 5; }

/* --------------------------------------------------------------------------
   10. Product cards + carousel
   -------------------------------------------------------------------------- */
.rail { position: relative; }
.rail__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 68%);
  gap: 1rem;
  padding-bottom: 0.5rem;
}
@media (min-width: 560px) { .rail__track { grid-auto-columns: minmax(0, 42%); } }
@media (min-width: 760px) { .rail__track { grid-auto-columns: minmax(0, 30%); gap: 1.5rem; } }
@media (min-width: 1025px) { .rail__track { grid-auto-columns: minmax(0, 23%); } }
.rail__track > * { scroll-snap-align: start; }

.rail__arrow {
  position: absolute;
  top: 34%;
  z-index: 4;
  width: 2.75rem; height: 2.75rem;
  display: none;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rail__arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail__arrow[hidden] { display: none; }
.rail__arrow--prev { left: -1.25rem; }
.rail__arrow--next { right: -1.25rem; }
.rail__arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }
@media (min-width: 1025px) { .rail__arrow { display: grid; } }

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  margin-bottom: 0.875rem;
}
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--dur) var(--ease), transform 0.9s var(--ease);
}
.card__media img.card__img--alt { opacity: 0; }
.card:hover .card__media img.card__img--main { opacity: 0; }
.card:hover .card__media img.card__img--alt { opacity: 1; }
.card:hover .card__media img { transform: scale(1.04); }

.card__badges {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}
.badge {
  background: var(--paper);
  color: var(--ink);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}
.badge--sale { background: var(--sale); color: #fff; }
.badge--ink { background: var(--ink); color: #fff; }

.card__wish {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  z-index: 2;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  color: var(--ink);
}
.card__wish svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.card__wish.is-on svg { fill: var(--ink); }

.card__body { display: grid; gap: 0.3rem; }
.card__name { font-size: 0.9375rem; line-height: 1.35; }
.card__meta { font-size: var(--fs-small); color: var(--muted); }
.card__price { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.9375rem; }
.card__price del { color: var(--muted); text-decoration: line-through; font-size: var(--fs-small); }
.card__price .is-sale { color: var(--sale); }

/* Swatches on the card */
.swatches { display: flex; gap: 0.375rem; margin-top: 0.15rem; }
.swatch {
  width: 0.875rem; height: 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* --------------------------------------------------------------------------
   11. Editorial grid blocks (1 / 2 / 3 / 4 column)
   -------------------------------------------------------------------------- */
.egrid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .egrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .egrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .egrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .egrid { gap: 2rem; }
  .egrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tile { display: flex; flex-direction: column; }
.tile__media { position: relative; overflow: hidden; background: var(--cream); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.045); }
.tile--portrait .tile__media { aspect-ratio: 3 / 4; }
.tile--landscape .tile__media { aspect-ratio: 3 / 2; }
.tile--square .tile__media { aspect-ratio: 1 / 1; }
.tile__body { display: grid; gap: 0.625rem; padding-top: 1.25rem; }
.tile__title { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 400; }
.tile__text { font-size: var(--fs-small); color: var(--muted); max-width: 34rem; }
.tile__cta { margin-top: 0.375rem; }

/* Full-bleed banner with type laid over the image */
.banner {
  position: relative;
  display: grid;
  min-height: 60svh;
  background: var(--cream);
  overflow: hidden;
}
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 15, 0.5), rgba(20, 18, 15, 0.05));
}
.banner__content {
  position: relative;
  z-index: 2;
  align-self: end;
  color: #fff;
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 34rem;
  padding-block: 3rem;
}
.banner--center .banner__content { justify-items: center; text-align: center; margin-inline: auto; align-self: center; }

/* Split editorial: image one side, copy the other */
.split { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 760px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: 1rem; justify-items: start; }

/* Value props strip */
.props {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: center;
}
@media (min-width: 1025px) { .props { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prop { display: grid; gap: 0.5rem; justify-items: center; }
.prop svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.1; }
.prop__title { font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; }
.prop__text { font-size: var(--fs-small); color: var(--muted); max-width: 18rem; }

/* --------------------------------------------------------------------------
   12. Newsletter + footer
   -------------------------------------------------------------------------- */
.news { background: var(--cream); }
.news__inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.news__form { display: grid; gap: 0.75rem; width: 100%; }
@media (min-width: 560px) { .news__form { grid-template-columns: 1fr auto; } }
.field {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0.85rem 1rem;
  font-size: var(--fs-body);
}
.field:focus { outline: none; border-color: var(--ink); }
.news__note { font-size: var(--fs-label); color: var(--muted); }
.form-msg { font-size: var(--fs-small); min-height: 1.25rem; }
.form-msg[data-state="ok"] { color: var(--stock); }
.form-msg[data-state="err"] { color: var(--sale); }

.footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer__cols { display: grid; gap: 0; padding-block: 1rem 0; }
@media (min-width: 760px) {
  .footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
  }
}
.fcol { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .fcol { border-bottom: 0; } }
.fcol__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
}
.fcol__toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform var(--dur) var(--ease); }
.fcol.is-open .fcol__toggle svg { transform: rotate(45deg); }
@media (min-width: 760px) {
  .fcol__toggle { padding-top: 0; pointer-events: none; margin-bottom: 1rem; }
  .fcol__toggle svg { display: none; }
}
.fcol__panel { display: none; padding-bottom: 1rem; }
.fcol.is-open .fcol__panel { display: block; }
@media (min-width: 760px) { .fcol__panel { display: block; padding-bottom: 0; } }
.fcol__panel li + li { margin-top: 0.625rem; }
.fcol__panel a { font-size: var(--fs-small); color: var(--muted); }
.fcol__panel a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer__base {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1025px) {
  .footer__base { grid-template-columns: auto 1fr auto; align-items: center; }
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.socials svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.footer__legal { font-size: var(--fs-label); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.pays { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pay {
  border: 1px solid var(--line);
  padding: 0.3rem 0.55rem;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
}
.locale-btn:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   13. Breadcrumb / collection page
   -------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-block: 1.25rem; font-size: var(--fs-label); color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.cathead { display: grid; gap: 1rem; max-width: 44rem; padding-bottom: 2rem; }

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.toolbar__group { display: flex; align-items: center; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.85rem;
  font-size: var(--fs-small);
  transition: border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.chip--filter { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-label); }
.count { font-size: var(--fs-small); color: var(--muted); }
.select {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  font-size: var(--fs-small);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314120f' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px;
}

.plp { display: grid; gap: 2.5rem; }
@media (min-width: 1025px) { .plp { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; } }

.filters { display: none; }
@media (min-width: 1025px) { .filters { display: block; } }
.fgroup { border-bottom: 1px solid var(--line); padding-block: 1.25rem; }
.fgroup__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}
.fgroup__toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform var(--dur) var(--ease); }
.fgroup.is-open .fgroup__toggle svg { transform: rotate(45deg); }
.fgroup__panel { display: none; padding-top: 1rem; }
.fgroup.is-open .fgroup__panel { display: grid; gap: 0.625rem; }
.check { display: flex; align-items: center; gap: 0.625rem; font-size: var(--fs-small); cursor: pointer; }
.check input { appearance: none; width: 1rem; height: 1rem; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 0.3rem; height: 0.55rem; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg) translateY(-8%); }
.check span.count-n { color: var(--muted); }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } }
@media (min-width: 1450px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* An editorial tile can sit inside the product grid, spanning two columns. */
.pgrid__promo { grid-column: span 2; }

.loadmore { display: grid; gap: 1.25rem; justify-items: center; padding-top: 3rem; }
.progress { width: min(18rem, 100%); height: 2px; background: var(--line); }
.progress__bar { height: 100%; background: var(--ink); }

/* Mobile filter sheet */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  max-height: 86svh;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.sheet.is-open { transform: none; }
.sheet__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.sheet__body { flex: 1; overflow-y: auto; padding: 0 1.25rem 1rem; }
.sheet__foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* --------------------------------------------------------------------------
   14. Product detail page
   -------------------------------------------------------------------------- */
.pdp { display: grid; gap: 2rem; }
@media (min-width: 1025px) { .pdp { grid-template-columns: minmax(0, 1fr) 26rem; gap: 4rem; align-items: start; } }

.gallery { display: grid; gap: 0.75rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; } }
.gallery__thumbs { display: flex; gap: 0.625rem; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .gallery__thumbs { flex-direction: column; overflow: visible; order: -1; } }
.thumb {
  flex: 0 0 4rem;
  aspect-ratio: 4 / 5;
  border: 1px solid transparent;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
  transition: border-color var(--dur) var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }
.gallery__stage { position: relative; background: var(--cream); aspect-ratio: 4 / 5; overflow: hidden; }
.gallery__stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery__zoom {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
}
.gallery__zoom svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.4; }

.pinfo { display: grid; gap: 1.25rem; }
@media (min-width: 1025px) { .pinfo { position: sticky; top: calc(var(--header-h) + 2rem); } }
.pinfo__head { display: grid; gap: 0.5rem; }
.pinfo__price { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1.25rem; }
.pinfo__price del { font-size: 0.9375rem; color: var(--muted); }
.pinfo__price .is-sale { color: var(--sale); }
.pinfo__tax { font-size: var(--fs-label); color: var(--muted); }

.variants { display: grid; gap: 0.625rem; }
.variants__label { display: flex; justify-content: space-between; font-size: var(--fs-small); }
.variants__label b { font-weight: 400; }
.opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt {
  min-width: 3rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-small);
  text-align: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.opt:hover { border-color: var(--ink); }
.opt.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt[disabled] { color: var(--muted-light); text-decoration: line-through; cursor: not-allowed; }
.opt--metal { display: inline-flex; align-items: center; gap: 0.5rem; }
.opt--metal i { width: 0.875rem; height: 0.875rem; border-radius: 999px; border: 1px solid rgba(0,0,0,0.12); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.qty button { width: 2.5rem; height: 2.75rem; display: grid; place-items: center; font-size: 1rem; }
.qty button:hover { background: var(--cream); }
.qty output { min-width: 2.5rem; text-align: center; font-size: var(--fs-body); }

.stock { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small); color: var(--stock); }
.stock i { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: currentColor; }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 0;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.acc__toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; transition: transform var(--dur) var(--ease); }
.acc__item.is-open .acc__toggle svg { transform: rotate(45deg); }
.acc__panel { display: none; padding-bottom: 1.25rem; font-size: var(--fs-small); color: var(--muted); }
.acc__item.is-open .acc__panel { display: block; }
.acc__panel p + p { margin-top: 0.75rem; }
.spec { display: grid; gap: 0.5rem; }
.spec div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.spec dt { color: var(--ink); }
.spec dd { margin: 0; }

/* Toast for add-to-cart feedback */
.toast {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 120;
  max-width: min(22rem, calc(100vw - 2rem));
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.125rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: var(--fs-small);
  transform: translateY(150%);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.toast.is-open { transform: none; opacity: 1; }
.toast svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }

/* --------------------------------------------------------------------------
   15. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__dot.is-active::after { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .promo, .header, .footer, .rail__arrow, .hero__arrow, .toast { display: none !important; }
  body { color: #000; }
}
