/* ==========================================================================
   Brix Shoppe storefront
   Palette: cocoa, powder blue and butter on white
   Type: Gloock (display) + Hanken Grotesk (text), loaded from Google Fonts
   ========================================================================== */

:root {
  --cocoa: #2B1E19;
  --cocoa-hover: #1A110E;
  --muted: #6B5D57;
  --line: #E6E1DD;
  --border: #D6CEC9;
  --mist: #EEF1F4;
  --accent: #C9DCEC;        /* powder blue: change here to restyle bands and bricks */
  --on-accent: #3F4954;
  --butter: #EEE3B8;
  --on-butter: #5E504A;
  --on-cocoa: #D9CFC9;
  --cherry: #A3182C;
  --white: #FFFFFF;
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 3vw, 40px);
  --radius: 6px;
  --section: 112px;
}

@media (max-width: 640px) {
  :root { --section: 64px; }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: #5B3B2D; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, fieldset, dl, dd { margin: 0; }
ul[class], ol[class],
.footer__col ul, .popular ul, .nav__panel ul, .menu-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }
.visually-hidden {
  position: absolute !important; 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: 12px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--cocoa); color: var(--white);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- type ---------- */

.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede { font-size: 17px; line-height: 1.55; color: var(--muted); }
.link {
  font-weight: 600; text-decoration: underline;
  text-underline-offset: 5px; text-decoration-thickness: 1px;
}

/* ---------- icons and buttons ---------- */

.icon {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 16px; height: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--dark { background: var(--cocoa); color: var(--white); }
.btn--dark:hover { background: var(--cocoa-hover); color: var(--white); }
.btn--outline { height: 48px; padding: 0 24px; font-size: 15px; border-color: var(--cocoa); color: var(--cocoa); background: var(--white); }
.btn--outline:hover { background: var(--cocoa); color: var(--white); }
.btn--light { height: 48px; padding: 0 24px; font-size: 15px; border-color: var(--white); color: var(--white); background: transparent; }
.btn--light:hover { background: var(--white); color: var(--cocoa); }
.btn--block { display: flex; width: 100%; }

.icon-btn {
  position: relative; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--cocoa); text-decoration: none;
}
.icon-btn:hover { background: var(--mist); color: var(--cocoa); }
.round-btn {
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--cocoa);
}
.round-btn:hover:not(:disabled) { border-color: var(--cocoa); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ---------- announcement bar ---------- */

.announce { background: var(--accent); color: var(--cocoa); }
.announce__inner { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.announce__btn {
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--cocoa);
}
.announce__msg { font-size: 14px; line-height: 1.4; text-align: center; }
.announce__msg a { font-weight: 600; text-underline-offset: 3px; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { height: 76px; display: flex; align-items: center; gap: 24px; }
.header__left { display: none; }
.header__logo { display: flex; flex-shrink: 0; }
.header__logo img { height: 34px; width: auto; }
.nav { margin-left: 20px; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 2px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--cocoa);
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.nav__link[aria-current="page"] {
  font-weight: 600; text-decoration: underline;
  text-underline-offset: 8px; text-decoration-thickness: 1.5px;
}
.nav__panel {
  position: absolute; top: calc(100% + 16px); left: -24px; z-index: 50;
  min-width: 250px; padding: 12px 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(43, 30, 25, 0.12);
  display: none;
}
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel,
.nav__link[aria-expanded="true"] + .nav__panel { display: block; }
.nav__panel a { display: block; padding: 9px 24px; font-size: 15px; text-decoration: none; }
.nav__panel a:hover { background: var(--mist); color: var(--cocoa); }
.nav__panel .nav__all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.header__icons { margin-left: auto; margin-right: -10px; display: flex; align-items: center; gap: 2px; }
.bag-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--cocoa); color: var(--white);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.search-panel { border-top: 1px solid var(--line); background: var(--white); }
.search-panel__form { display: flex; align-items: center; gap: 10px; padding-block: 16px; }
.search-panel input {
  flex: 1; min-width: 0; height: 52px; padding: 0 22px;
  border: 1px solid var(--cocoa); border-radius: 999px; background: var(--white); font-size: 16px;
}

/* ---------- mobile menu (dialog) ---------- */

.menu-drawer {
  margin: 0; padding: 0; border: 0;
  width: min(380px, 88vw); height: 100dvh; max-height: none; max-width: none;
  background: var(--white); color: var(--cocoa);
}
.menu-drawer::backdrop { background: rgba(43, 30, 25, 0.45); }
.menu-drawer[open] { animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.menu-drawer__top { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); }
.menu-drawer__top img { height: 28px; width: auto; }
.menu-drawer__nav { padding: 8px 20px 24px; }
.menu-drawer__nav > a,
.menu-drawer__nav summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none;
}
.menu-drawer__nav summary::-webkit-details-marker { display: none; }
.menu-drawer__nav details ul { padding: 8px 0 12px 4px; }
.menu-drawer__nav details a { display: block; padding: 9px 0; font-size: 15px; text-decoration: none; color: var(--muted); }
.menu-drawer__foot { padding: 0 20px 32px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.menu-drawer__foot a { text-underline-offset: 4px; }

/* details +/- markers shared by drawer, filters, accordions, footer */
.toggle-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.toggle-icon::before, .toggle-icon::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.6px; margin-top: -0.8px;
  background: currentColor; border-radius: 2px;
}
.toggle-icon::after { transform: rotate(90deg); transition: transform .15s ease; }
details[open] > summary .toggle-icon::after { transform: rotate(0deg); }

/* ---------- hero: the brick wall ---------- */

.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 64px; }
.hero__copy { flex: 1 1 420px; min-width: 0; max-width: 560px; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 5.4vw, 78px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance;
}
.hero__lede { margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }

.wall {
  --bw: clamp(196px, 19.5vw, 284px);
  --bh: clamp(132px, 13vw, 190px);
  --gap: 10px;
  --pad: 0px;
  flex: 1.35 1 540px; min-width: 0;
  display: flex; flex-direction: column; gap: var(--gap);
}
.wall__row { display: flex; gap: var(--gap); margin-left: var(--pad); }
.wall__row--offset { margin-left: calc(var(--pad) + (var(--bw) + var(--gap)) / 2); }
.brick {
  position: relative; flex: 0 0 auto; width: var(--bw); height: var(--bh);
  border-radius: var(--radius); background: var(--mist); color: var(--cocoa);
  overflow: hidden; text-decoration: none;
}
.brick--accent { background: var(--accent); }
.brick--butter { background: var(--butter); }
.brick img { position: absolute; right: 6%; bottom: 0; height: 100%; width: auto; max-width: none; transition: transform .25s ease; }
.brick:hover img { transform: translateY(-4px); }
.brick__label { position: absolute; left: 16px; top: 14px; font-size: 15px; font-weight: 600; }
.brick--text {
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
  background: var(--cocoa); color: var(--white);
}
.brick--text:hover { color: var(--white); background: var(--cocoa-hover); }
.brick__title { font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); line-height: 1.04; }
.brick__cta { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- sections ---------- */

.intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.intro .lede { max-width: 46ch; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.section-head__actions { display: flex; align-items: center; gap: 8px; }

.moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 16px; min-width: 0; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.tile__title { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.tile__text { display: block; margin-top: 6px; max-width: 30ch; font-size: 15px; line-height: 1.5; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  flex: 0 0 auto; height: 44px; padding: 0 20px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--cocoa);
  font-size: 15px; font-weight: 600;
}
.tab:hover { border-color: var(--cocoa); }
.tab[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }

.track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(220px, calc((100% - 72px) / 4.25), 340px);
  gap: 24px; padding-bottom: 4px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track--coll { grid-auto-columns: clamp(200px, calc((100% - 96px) / 5.35), 270px); }
.after-track { margin-top: 40px; }

/* ---------- product card ---------- */

.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media { position: relative; }
.card__img { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--mist); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.card__img:hover img { transform: scale(1.03); }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px; background: var(--butter); color: var(--cocoa);
  font-size: 12px; font-weight: 600; line-height: 14px;
}
.badge--sale { background: var(--white); color: var(--cherry); }
.wish { position: absolute; top: 6px; right: 6px; }
.wish:hover { background: rgba(255, 255, 255, 0.7); }
.wish[aria-pressed="true"] .icon { fill: currentColor; }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.swatches { position: relative; display: flex; align-items: center; gap: 7px; height: 18px; padding-left: 2px; }
.swatch { width: 14px; height: 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(43, 30, 25, 0.14); }
.swatch--on { box-shadow: 0 0 0 1.5px var(--white), 0 0 0 2.5px var(--cocoa); }
.card__name { font-size: 16px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.card__detail { font-size: 14px; line-height: 1.4; color: var(--muted); }
.price { position: relative; display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 600; }
.price__sale { color: var(--cherry); }
.price s { font-size: 14px; font-weight: 400; color: var(--muted); }
.card__add {
  height: 44px; border: 1px solid var(--cocoa); border-radius: 999px;
  background: var(--white); color: var(--cocoa); font-size: 15px; font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.card__add:hover { background: var(--cocoa); color: var(--white); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* ---------- gifts band ---------- */

.gifts { margin-top: calc(var(--section) + 8px); background: var(--cocoa); color: var(--white); }
.gifts__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 56px; padding-top: 80px; }
.gifts__copy { flex: 1 1 380px; padding-bottom: 80px; }
.gifts__copy p { margin-top: 20px; max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--on-cocoa); }
.gifts__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gifts__art { flex: 1 1 520px; min-width: 0; width: 100%; max-width: 680px; }

/* ---------- collections ---------- */

.coll { display: flex; flex-direction: column; gap: 14px; min-width: 0; text-decoration: none; }
.coll img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.coll__name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.coll__text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- holiday banner ---------- */

.holiday { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--butter); border-radius: var(--radius); overflow: hidden; }
.holiday__copy {
  flex: 1 1 400px; padding: clamp(36px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
}
.holiday__copy .h2 { font-size: clamp(36px, 4.6vw, 64px); }
.holiday__copy p { max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--on-butter); }
.holiday__art { flex: 1 1 520px; min-width: 0; width: 100%; max-width: 700px; align-self: flex-end; object-fit: cover; }

/* ---------- trending ---------- */

.trends { margin-top: 28px; border-top: 1px solid var(--line); }
.trend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.trend__title { flex: 1 1 380px; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.015em; }
.trend__text { flex: 1 1 240px; max-width: 32ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.trend__thumbs { display: flex; gap: 8px; }
.trend__thumbs img { width: 72px; height: 90px; object-fit: contain; background: var(--mist); border-radius: 4px; mix-blend-mode: multiply; }
.trend__cta { min-width: 120px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.trend:hover .trend__title { color: #5B3B2D; }

/* ---------- service strip ---------- */

.services {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.service { display: flex; align-items: flex-start; gap: 16px; }
.service__icon { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--mist); }
.service__title { display: block; padding-top: 2px; font-size: 16px; font-weight: 600; }
.service__text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- newsletter ---------- */

.newsletter { margin-top: var(--section); background: var(--accent); }
.newsletter__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; padding-block: 64px; }
.newsletter__copy { flex: 1 1 360px; }
.newsletter__copy .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.newsletter__copy p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--on-accent); }
.newsletter__form { flex: 1 1 440px; display: flex; flex-direction: column; gap: 10px; }
.newsletter__form label { font-size: 14px; font-weight: 600; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__row input {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 22px;
  border: 1px solid var(--cocoa); border-radius: 999px; background: var(--white); font-size: 16px;
}
.newsletter__note { font-size: 13px; line-height: 1.5; color: var(--on-accent); }

/* ---------- popular searches ---------- */

.popular > summary { list-style: none; cursor: default; }
.popular > summary::-webkit-details-marker { display: none; }
.popular__title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 18px; font-weight: 600; }
.popular__title .toggle-icon { display: none; }
.popular__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.popular h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.popular ul { display: flex; flex-direction: column; gap: 8px; }
.popular a { font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.popular a:hover { color: var(--cocoa); text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer { margin-top: 80px; background: var(--cocoa); color: var(--white); }
.footer__inner { padding-top: 72px; padding-bottom: 32px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer__brand img { width: 128px; height: auto; }
.footer__brand p { max-width: 26ch; font-size: 15px; line-height: 1.5; color: var(--on-cocoa); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__social a { color: #E9E1DC; font-size: 15px; text-underline-offset: 4px; }
.footer__col > summary { list-style: none; cursor: default; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.footer__col > summary::-webkit-details-marker { display: none; }
.footer__col > summary .toggle-icon { display: none; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: #E9E1DC; font-size: 15px; line-height: 1.4; text-decoration: none; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #4A3A33;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.footer__legal { font-size: 13px; color: #CFC4BE; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay li {
  height: 28px; padding: 0 10px; display: flex; align-items: center;
  border-radius: 4px; background: var(--white); color: var(--cocoa);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.pay--outline li { height: 26px; padding: 0 8px; border: 1px solid var(--line); background: transparent; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 999px; background: var(--cocoa); color: var(--white);
  font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(43, 30, 25, 0.25);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Collection page
   ========================================================================== */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cocoa); text-decoration: underline; }
.crumbs [aria-current] { color: var(--cocoa); }
.crumbs__sep { color: #B5AAA4; }

.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-top: 28px; }
.page-title h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.page-title .lede { max-width: 46ch; }

.chips { display: flex; gap: 8px; margin-top: 32px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 44px; padding: 0 18px; display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px; background: var(--white);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.chip:hover { border-color: var(--cocoa); color: var(--cocoa); }
.chip[aria-current="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }

.shop { display: flex; align-items: flex-start; gap: 48px; margin-top: 40px; }
.filters { flex: 0 0 248px; }
.filters__head { height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-size: 18px; font-weight: 600; }
.filters__clear { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.filters__close, .filters__apply { display: none; }
.filter { border-bottom: 1px solid var(--line); }
.filter > summary {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
}
.filter > summary::-webkit-details-marker { display: none; }
.filter__body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 20px; }
.filter__body--colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--cocoa); flex-shrink: 0; }
.check__dot { width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(43, 30, 25, 0.16); flex-shrink: 0; }
.check__count { margin-left: auto; font-size: 14px; color: var(--muted); }

.results { flex: 1 1 0; min-width: 0; }
.toolbar { min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.toolbar__count { font-size: 15px; color: var(--muted); }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar label { font-size: 15px; color: var(--muted); }
.toolbar select {
  height: 44px; padding: 0 40px 0 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1E19' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  font-size: 15px; font-weight: 600; appearance: none; -webkit-appearance: none;
}
.filter-toggle { display: none; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.empty { padding: 56px 24px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.empty p { margin: 10px 0 22px; color: var(--muted); }
.done { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.done__bar { width: 220px; height: 3px; border-radius: 999px; background: var(--cocoa); }
.done a { margin-top: 6px; color: var(--cocoa); font-weight: 600; text-underline-offset: 4px; }

.size-guide {
  grid-column: 1 / -1; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px;
  background: var(--mist); border-radius: var(--radius);
}
.size-guide__copy { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.size-guide__copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
.size-guide__copy p { max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
.size-guide__steps { flex: 2 1 460px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.size-step { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.size-step__img { height: 150px; display: flex; align-items: flex-end; }
.size-step__img img { width: auto; height: var(--h); mix-blend-mode: multiply; }
.size-step strong { font-size: 15px; }
.size-step span { max-width: 18ch; font-size: 13px; line-height: 1.4; color: var(--muted); }

.backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(43, 30, 25, 0.45); }

/* ==========================================================================
   Product page
   ========================================================================== */

.pdp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; margin-top: 28px; }
.pdp__gallery { flex: 1.3 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pdp__shot { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--mist); overflow: hidden; }
.pdp__shot img { width: 100%; height: 100%; object-fit: cover; }
.pdp__shot--product img { object-fit: contain; mix-blend-mode: multiply; }
.pdp__info { flex: 1 1 380px; min-width: 0; max-width: 540px; display: flex; flex-direction: column; position: sticky; top: 100px; }
.pdp__badge { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--butter); font-size: 12px; font-weight: 600; line-height: 14px; }
.pdp__title { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.02em; }
.pdp__price { margin-top: 14px; font-size: 22px; font-weight: 600; }
.pdp__desc { margin-top: 18px; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.pdp__options { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp__label { margin-bottom: 12px; font-size: 15px; }
.pdp__label span:first-child { color: var(--muted); }
.pdp__label strong { font-weight: 600; }
.variants { display: flex; flex-wrap: wrap; gap: 12px; }
.variant {
  width: 68px; height: 85px; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--mist); box-shadow: inset 0 0 0 1px #DDD6D1; overflow: hidden;
}
.variant img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.variant[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cocoa); }
.pdp__buy { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.pdp__buy > label { font-size: 15px; color: var(--muted); }
.pdp__row { display: flex; flex-wrap: wrap; gap: 12px; }
.qty { height: 56px; padding: 0 6px; display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; }
.qty button { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; }
.qty button:hover { background: var(--mist); }
.qty input {
  width: 36px; border: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 600;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__add {
  flex: 1 1 200px; height: 56px; border: 0; border-radius: 999px;
  background: var(--cocoa); color: var(--white); font-size: 16px; font-weight: 600;
}
.pdp__add:hover { background: var(--cocoa-hover); }
.pdp__wish { width: 56px; height: 56px; border: 1px solid var(--border); }
.pdp__ship { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.pdp__acc { margin-top: 32px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc > summary { height: 60px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc__body { padding-bottom: 22px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.acc__body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dims div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--mist); }
.dims dt { font-size: 13px; color: var(--muted); }
.dims dd { font-size: 16px; font-weight: 600; color: var(--cocoa); }
.fits { margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.reviews-empty {
  margin-top: 28px; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.reviews-empty h3 { font-size: 18px; font-weight: 600; }
.reviews-empty p { margin-top: 8px; max-width: 48ch; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .grid-4, .services, .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header__inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; padding-inline: 8px; }
  .header__left { display: flex; }
  .header__logo img { height: 28px; }
  .nav, .only-desktop { display: none !important; }
  .header__icons { margin: 0; justify-content: flex-end; }
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* collection filters become a drawer */
  .filter-toggle { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(380px, 92vw);
    padding: 0 20px 96px; background: var(--white); overflow-y: auto;
    transform: translateX(-105%); transition: transform .22s ease-out; visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { position: sticky; top: 0; z-index: 1; height: 60px; background: var(--white); }
  .filters__close { display: inline-flex; margin-right: -10px; }
  .filters__clear { margin-left: auto; margin-right: 12px; }
  .filters__apply { display: flex; position: fixed; left: 20px; bottom: 20px; width: calc(min(380px, 92vw) - 40px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pdp__info { position: static; max-width: none; }
}

@media (max-width: 767px) {
  .popular > summary { cursor: pointer; }
  .popular__title { margin-bottom: 0; min-height: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .popular[open] .popular__title { margin-bottom: 20px; }
  .popular__title .toggle-icon { display: block; }
  .popular__grid { padding-bottom: 8px; }
  .footer__grid { grid-template-columns: 1fr; gap: 0; }
  .footer__brand { margin-bottom: 28px; }
  .footer__col { border-bottom: 1px solid #4A3A33; }
  .footer__col:first-of-type { border-top: 1px solid #4A3A33; }
  .footer__col > summary { cursor: pointer; margin: 0; height: 56px; font-size: 16px; }
  .footer__col > summary .toggle-icon { display: block; }
  .footer__col ul { padding-bottom: 18px; }
}

@media (max-width: 640px) {
  .announce__inner { justify-content: space-between; padding-inline: 4px; }
  .announce__msg { font-size: 13px; }
  .announce__more { display: none; }

  .hero__inner { padding-block: 32px 36px; gap: 32px; }
  .hero__title { font-size: 46px; }
  .hero__lede { margin-top: 16px; font-size: 17px; max-width: none; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  .wall {
    --bw: 156px; --bh: 106px; --gap: 8px; --pad: var(--gutter);
    flex: 1 1 100%; margin-inline: calc(var(--gutter) * -1);
  }
  .brick__label { left: 10px; top: 9px; font-size: 13px; }
  .brick img { right: 4px; }
  .brick--text { padding: 12px; }
  .brick__title { font-size: 20px; }
  .brick__cta { font-size: 13px; }

  .intro { margin-bottom: 24px; }
  .intro .lede { font-size: 16px; }
  .moments { gap: 24px 14px; }
  .tile { gap: 10px; }
  .tile__title { font-size: 21px; }
  .tile__text { margin-top: 2px; font-size: 13px; line-height: 1.45; }

  .section-head { margin-bottom: 18px; }
  .section-head .round-btn { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 22px; padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 0 18px; font-size: 14px; }
  .track { grid-auto-columns: 168px; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .track--coll { grid-auto-columns: 148px; }
  .after-track { margin-top: 28px; }
  .after-track .btn { display: flex; width: 100%; }

  .card { gap: 10px; }
  .card__name { font-size: 14px; }
  .card__detail { display: none; }
  .price { font-size: 15px; }
  .card__add { font-size: 14px; }
  .wish { top: 2px; right: 2px; }
  .swatch { width: 12px; height: 12px; }
  .grid-4 { gap: 28px 14px; }

  .gifts__inner { padding-top: 48px; gap: 20px; }
  .gifts__copy { padding-bottom: 0; }
  .gifts__copy p { font-size: 16px; }
  .gifts__links .btn { height: 44px; }
  .gifts__art { margin-inline: calc(var(--gutter) * -1); width: calc(100% + 2 * var(--gutter)); max-width: none; }

  .coll { gap: 10px; }
  .coll__name { font-size: 18px; }
  .coll__text { display: none; }

  .holiday__copy { padding: 32px 24px 8px; gap: 16px; }
  .holiday__copy .h2 { font-size: 36px; }
  .holiday__copy p { font-size: 16px; }
  .holiday__copy .btn { height: 48px; }

  .trend { flex-direction: column; align-items: stretch; gap: 10px; padding: 22px 0; }
  .trend__title { flex: none; font-size: 34px; }
  .trend__text { flex: none; max-width: none; font-size: 15px; }
  .trend__thumbs img { width: 64px; height: 80px; }
  .trend__cta { position: relative; min-width: 0; align-self: flex-end; margin-top: -46px; }

  .services { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .service__icon { width: 44px; height: 44px; }
  .service__title { font-size: 15px; }
  .service__text { font-size: 13px; }

  .newsletter__inner { padding-block: 40px; gap: 20px; }
  .newsletter__copy p { font-size: 15px; margin-top: 10px; }
  .newsletter__row .btn { width: 100%; }

  .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .site-footer { margin-top: 56px; }
  .footer__inner { padding-top: 48px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; margin-top: 28px; padding-top: 0; border-top: 0; }
  .pay li { height: 26px; padding: 0 8px; font-size: 10px; }

  .page-title .lede { font-size: 16px; }
  .chips { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .toolbar label { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .size-guide__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size-step__img { height: 100px; }
  .size-step__img img { height: calc(var(--h) * 0.66); }

  .pdp { gap: 28px; margin-top: 20px; }
  .pdp__gallery {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__shot { flex: 0 0 84%; scroll-snap-align: start; }
  .pdp__title { font-size: 38px; }
  .pdp__add { flex-basis: 120px; }
  .dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.hero{background:linear-gradient(110deg,#fffdf8 0%,#faf6ef 46%,#eef2f5 100%)}
.hero__title{font-size:clamp(48px,5.6vw,84px);letter-spacing:-.055em}
.brick{box-shadow:inset 0 0 0 1px #2b1e1910}
.brick img,.card__img img{filter:drop-shadow(0 8px 6px #2b1e1916)}
.card__add{display:block;text-align:center;text-decoration:none}
.saved-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:28px;margin-top:32px}
.saved-grid [hidden]{display:none}
.pdp__buy .btn[aria-pressed=true]{background:var(--accent);color:var(--cocoa)}
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}

.card__img img{height:100%;width:100%;object-fit:cover}
.card__name{line-height:1.35;display:block}
.woocommerce div.product .product_title{font:400 clamp(30px,3.2vw,49px)/1.12 var(--serif);letter-spacing:-.035em}
.woocommerce div.product .summary{padding-bottom:30px}
.woocommerce div.product form.cart select{padding:8px;max-width:100%}
.woocommerce div.product form.cart .single_add_to_cart_button{background:var(--cocoa);padding:14px 24px}
.woocommerce .woocommerce-tabs img{max-width:100%;height:auto}
