/* =========================================================
   ATIF'S — Premium menswear & lifestyle
   Frontend-only showcase stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ivory:        #FAF8F3;
  --paper:        #FFFFFF;
  --beige:        #EDE5D7;
  --beige-deep:   #DDCFB8;
  --charcoal:     #1C1A17;
  --ink:          #131211;
  --graphite:     #4A453E;
  --muted:        #6A6155;
  --line:         #E3DACB;
  --line-dark:    #33302B;
  --gold:         #A8823C;
  --gold-soft:    #C9A96A;

  /* Semantic */
  --bg:           var(--ivory);
  --surface:      var(--paper);
  --text:         var(--ink);
  --text-soft:    var(--muted);
  --border:       var(--line);
  --accent:       var(--gold);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --container:    1280px;
  --gutter:       clamp(20px, 5vw, 64px);
  --header-h:     72px;
  --bar-h:        38px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --dur:          .3s;
  --dur-slow:     .7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.14; letter-spacing: .005em; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 14px;
  color: var(--text);
}
.section__intro { margin-top: 16px; color: var(--text-soft); font-size: 1.02rem; }

.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; left: 16px; top: -60px; z-index: 200;
  background: var(--charcoal); color: #fff; padding: 12px 18px;
  border-radius: 2px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff;
  --btn-bg: var(--charcoal);
  --btn-bd: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 14px 30px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: transparent; color: var(--charcoal); }
.btn:active { transform: translateY(1px); }

.btn--outline { --btn-fg: var(--charcoal); --btn-bg: transparent; --btn-bd: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: #fff; }

.btn--light { --btn-fg: var(--charcoal); --btn-bg: #fff; --btn-bd: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

.btn--ghost-light { --btn-fg: #fff; --btn-bg: transparent; --btn-bd: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

/* Text link with underline sweep */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-arrow:hover { gap: 16px; color: var(--accent); border-color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--charcoal);
  color: #EDE7DA;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--ivory) 97%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text);
  justify-self: start;
}
.brand sup { font-size: .5em; color: var(--accent); top: -.9em; }

.nav { justify-self: center; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__link {
  position: relative;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--beige); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge {
  position: absolute; transform: translate(12px, -12px);
  min-width: 16px; height: 16px; padding: 0 4px;
  font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 999px;
}
.icon-btn { position: relative; }

.hamburger { display: none; }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  visibility: hidden;
}
.drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(19,18,17,.44);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(88vw, 380px);
  background: var(--ivory);
  border-left: 1px solid var(--border);
  padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer__nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.drawer__nav a:hover { color: var(--accent); padding-left: 8px; }
.drawer__foot { margin-top: auto; padding-top: 28px; color: var(--text-soft); font-size: .8rem; letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__overlay { transition: none; }
}

/* ---------- Search overlay ---------- */
.search {
  position: fixed; left: 0; right: 0; top: 0; z-index: 160;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease);
}
.search.is-open { transform: none; }
.search__inner { display: flex; align-items: center; gap: 16px; padding-block: 28px; }
.search__field {
  flex: 1;
  border: 0; border-bottom: 1px solid var(--charcoal);
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  padding: 10px 4px;
}
.search__field::placeholder { color: var(--beige-deep); }
.search__field:focus { outline: none; border-bottom-color: var(--accent); }
.search__hint { color: var(--text-soft); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .search { transition: none; } }

body.is-locked { overflow: hidden; }

/* ---------- Media frame (image + zoom) ---------- */
.frame { position: relative; overflow: hidden; background: var(--beige); }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.frame--zoom:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .frame img { transition: none; } .frame--zoom:hover img { transform: none; } }
.img--fallback { object-fit: cover; }

.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-tall { aspect-ratio: 3 / 4; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--charcoal); }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(19,18,17,.55) 0%, rgba(19,18,17,.20) 42%, rgba(19,18,17,0) 70%),
    linear-gradient(180deg, rgba(19,18,17,.20) 0%, rgba(19,18,17,.12) 38%, rgba(19,18,17,.80) 100%);
}
.hero__inner { padding-block: clamp(48px, 8vw, 96px); }
.hero__eyebrow { color: var(--gold-soft); }
.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 500;
  max-width: 16ch;
  margin-top: 18px;
}
.hero__text { margin-top: 20px; max-width: 44ch; font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.86); }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Featured categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
.cat-card { position: relative; display: block; color: #fff; isolation: isolate; }
.cat-card .frame { aspect-ratio: 3 / 4; }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(19,18,17,0) 35%, rgba(19,18,17,.66) 100%);
  transition: background var(--dur) var(--ease);
}
.cat-card:hover::after { background: linear-gradient(180deg, rgba(19,18,17,.12) 0%, rgba(19,18,17,.74) 100%); }
.cat-card__body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.cat-card__name { font-family: var(--font-display); font-size: 1.32rem; }
.cat-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.82);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cat-card:hover .cat-card__link { gap: 14px; color: #fff; }

/* ---------- Product showcase ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px) clamp(16px, 2.4vw, 32px);
}
.product {
  display: flex; flex-direction: column;
}
.product__media { position: relative; }
.product__media .frame { aspect-ratio: 4 / 5; }
.product__quick {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(250,248,243,.96);
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  min-height: 44px; padding: 12px 18px;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.product:hover .product__quick,
.product__quick:focus-visible { opacity: 1; transform: none; }
.product__quick:hover { background: var(--charcoal); color: #fff; }
.product__body { padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.product__cat { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }
.product__name { font-family: var(--font-display); font-size: 1.14rem; }
.product__name a { transition: color var(--dur) var(--ease); }
.product__name a:hover { color: var(--accent); }
.product__price { margin-top: 4px; font-size: .92rem; color: var(--graphite); }

@media (hover: none) {
  .product__quick { opacity: 1; transform: none; position: static; margin-top: 14px; background: transparent; }
}

/* ---------- Split editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split--reverse .split__media { order: 2; }
.split__media { min-height: 420px; }
.split__media .frame, .split__media img { height: 100%; }
.split__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vw, 96px);
}
.split__body p { margin-top: 18px; color: var(--text-soft); }
.split__body .btn, .split__body .link-arrow { margin-top: 30px; align-self: flex-start; }
.split--dark { background: var(--charcoal); color: #EFE9DC; }
.split--dark .section__title, .split--dark h2 { color: #fff; }
.split--dark p { color: rgba(239,233,220,.72); }

/* ---------- Full-width feature band ---------- */
.band {
  position: relative; isolation: isolate;
  min-height: min(74vh, 680px);
  display: flex; align-items: center;
  color: #fff; text-align: center;
}
.band__media { position: absolute; inset: 0; z-index: -1; background: var(--charcoal); }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after { content: ""; position: absolute; inset: 0; background: rgba(19,18,17,.5); }
.band__inner { margin-inline: auto; max-width: 640px; }
.band__title { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 16px; }
.band__text { margin-top: 16px; color: rgba(255,255,255,.82); }
.band .btn { margin-top: 30px; }

/* ---------- Duo panels (watches & accessories) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.duo__panel { position: relative; isolation: isolate; color: #fff; min-height: 460px; display: flex; align-items: flex-end; }
.duo__panel .frame { position: absolute; inset: 0; z-index: -1; }
.duo__panel .frame img { height: 100%; }
.duo__panel::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19,18,17,.05) 30%, rgba(19,18,17,.7) 100%); }
.duo__body { padding: clamp(26px, 4vw, 44px); }
.duo__body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.duo__body p { margin-top: 10px; color: rgba(255,255,255,.8); font-size: .96rem; max-width: 40ch; }
.duo__body .link-arrow { margin-top: 20px; color: #fff; border-color: rgba(255,255,255,.6); }
.duo__body .link-arrow:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.gallery a { position: relative; }
.gallery .frame { aspect-ratio: 1 / 1; }
.gallery__tag {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(19,18,17,.28);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gallery a:hover .gallery__tag { opacity: 1; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--beige); }
.newsletter__inner { max-width: 620px; margin-inline: auto; text-align: center; }
.newsletter__form { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.newsletter__input {
  flex: 1; min-width: 240px;
  padding: 14px 18px;
  background: var(--ivory);
  border: 1px solid var(--charcoal);
  font-size: .92rem;
}
.newsletter__input:focus { outline: none; border-color: var(--accent); }
.newsletter__note { margin-top: 16px; font-size: .82rem; color: var(--text-soft); min-height: 1.2em; }
.newsletter__note.is-success { color: #3f6b3f; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #C9C3B6; }
.footer a { transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--gold-soft); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: clamp(56px, 7vw, 88px); }
.footer__brand { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: .16em; color: #fff; }
.footer__brand sup { font-size: .5em; color: var(--gold-soft); }
.footer__tag { margin-top: 16px; max-width: 32ch; font-size: .9rem; color: #9A9384; }
.footer__col h4 {
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; font-size: .9rem; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px; border: 1px solid var(--line-dark);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
}
.footer__social a:hover { border-color: var(--gold-soft); }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  font-size: .8rem; color: #8C8578;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Quick-view modal ---------- */
.modal { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; visibility: hidden; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(19,18,17,.55); opacity: 0; transition: opacity var(--dur) var(--ease); }
.modal__dialog {
  position: relative; width: min(920px, 100%); max-height: 90vh; overflow: hidden;
  background: var(--ivory); border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(16px) scale(.98); opacity: 0;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease);
}
.modal.is-open { visibility: visible; }
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__media { background: var(--beige); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.modal__cat { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.modal__name { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 10px; }
.modal__price { margin-top: 12px; font-size: 1.05rem; color: var(--graphite); }
.modal__desc { margin-top: 16px; color: var(--text-soft); font-size: .96rem; }
.modal__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(250,248,243,.9); border-radius: 999px; color: var(--charcoal);
  transition: background var(--dur) var(--ease);
}
.modal__close:hover { background: #fff; }
.modal__close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .modal__dialog, .modal__overlay { transition: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 20px);
  background: var(--charcoal); color: #fff;
  padding: 14px 22px; font-size: .8rem; letter-spacing: .08em;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- About page ---------- */
.page-hero { padding-block: clamp(72px, 10vw, 130px); text-align: center; background: var(--beige); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-top: 14px; }
.page-hero p { margin-top: 18px; max-width: 52ch; margin-inline: auto; color: var(--text-soft); }
.prose { max-width: 660px; }
.prose p + p { margin-top: 18px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.value h3 { font-size: 1.24rem; margin-top: 10px; }
.value p { margin-top: 10px; color: var(--text-soft); font-size: .94rem; }
.value__num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); }

/* ---------- Founder note ---------- */
.founder-sign {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--text);
}
.founder-sign::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  margin-top: 12px;
  background: var(--accent);
}
.founder-role {
  margin-top: 12px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- Collection / listing page ---------- */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 40px); text-align: center; background: var(--beige); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 12px; }
.page-head p { margin-top: 14px; max-width: 54ch; margin-inline: auto; color: var(--text-soft); }

.filters {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in srgb, var(--ivory) 96%, transparent);
  border-block: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 16px; justify-content: center; }
.chip {
  padding: 9px 18px; min-height: 40px;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--border); background: var(--surface);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--charcoal); }
.chip.is-active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.collection-group { padding-block: clamp(48px, 7vw, 96px); scroll-margin-top: calc(var(--header-h) + 64px); }
.collection-group + .collection-group { border-top: 1px solid var(--border); }
.collection-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.collection-group__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.collection-group__count { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.is-hidden { display: none !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: clamp(24px, 4vw, 40px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--border); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Product detail ---------- */
.pdp { padding-block: clamp(28px, 4vw, 48px) clamp(64px, 9vw, 120px); }
.pdp__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp__main { background: var(--beige); }
.pdp__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pdp__thumb { background: var(--beige); border: 1px solid transparent; padding: 0; transition: border-color var(--dur) var(--ease); }
.pdp__thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.pdp__thumb.is-active { border-color: var(--charcoal); }

.pdp__info { display: flex; flex-direction: column; }
.pdp__cat { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.pdp__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: 10px; }
.pdp__price { margin-top: 14px; font-size: 1.15rem; color: var(--graphite); }
.pdp__desc { margin-top: 20px; color: var(--text-soft); }
.pdp__divider { height: 1px; background: var(--border); margin-block: 28px; }

.field-label { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  position: relative; cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.swatch::after {
  content: ""; position: absolute; inset: -5px; border: 1px solid transparent; border-radius: 999px;
  transition: border-color var(--dur) var(--ease);
}
.swatch.is-active::after { border-color: var(--charcoal); }
.swatch:hover { transform: scale(1.05); }

.size-btn {
  min-width: 52px; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .8rem; letter-spacing: .06em;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.size-btn:hover { border-color: var(--charcoal); }
.size-btn.is-active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.pdp__buy { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--charcoal); }
.qty button { width: 46px; height: 48px; font-size: 1.1rem; color: var(--charcoal); }
.qty input {
  width: 46px; height: 48px; text-align: center; border: 0;
  border-inline: 1px solid var(--border); background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__buy .btn { flex: 1; min-width: 200px; }

/* Accordion */
.accordion { margin-top: 32px; border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; text-align: left;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.accordion__trigger .plus { position: relative; width: 14px; height: 14px; flex: none; }
.accordion__trigger .plus::before, .accordion__trigger .plus::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--charcoal);
}
.accordion__trigger .plus::before { width: 14px; height: 1.5px; }
.accordion__trigger .plus::after { width: 1.5px; height: 14px; transition: transform var(--dur) var(--ease); }
.accordion__trigger[aria-expanded="true"] .plus::after { transform: scaleY(0); }
.accordion__panel { display: none; padding: 0 2px 22px; color: var(--text-soft); font-size: .92rem; }
.accordion__panel.is-open { display: block; }
.accordion__panel ul { display: grid; gap: 8px; }
.accordion__panel li { padding-left: 16px; position: relative; }
.accordion__panel li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--accent); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; }
  .header__actions { justify-self: end; }

  .split, .duo, .modal__dialog { grid-template-columns: 1fr; }
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__media { position: static; }
  .pdp__main img { aspect-ratio: 4 / 5; max-height: 70vh; }
  .split--reverse .split__media { order: 0; }
  .split__media { min-height: 340px; }
  .duo__panel { min-height: 380px; }
  .modal__dialog { max-height: 92vh; overflow-y: auto; }
  .modal__media img { min-height: 260px; max-height: 42vh; }
}

@media (max-width: 560px) {
  :root { --header-h: 62px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 78vh; }
  .hero__cta .btn { width: 100%; }
  .newsletter__input { min-width: 0; width: 100%; }
  .newsletter__form .btn { width: 100%; }
}
