/* =========================================================
   commoncotton — Design System
   Inspired by Apple's spacing / AURALEE's quiet materiality
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Color */
  --bg: #ffffff;          /* pure white */
  --bg-soft: #eeeeeb;     /* soft grey */
  --bg-dark: #111111;     /* near-black hero */
  --ink: #1a1a1a;         /* primary text */
  --ink-soft: #6b6a66;    /* secondary text */
  --line: #dbdbd8;        /* hairline dividers */
  --accent: #2a2a2a;
  --white: #ffffff;

  /* Type */
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", system-ui, sans-serif;
  --font-serif: "Times New Roman", "Cormorant Garamond", Georgia, serif;

  /* Scale */
  --fs-xxs: 11px;
  --fs-xs:  13px;
  --fs-sm:  15px;
  --fs-md:  18px;
  --fs-lg:  24px;
  --fs-xl:  40px;
  --fs-xxl: 72px;
  --fs-hero: clamp(48px, 8.5vw, 128px);

  /* Layout */
  --max:  1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* White frame — left & right edges of the page */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(12px, 1.5vw, 24px);
  background: #ffffff;
  z-index: 95;
  pointer-events: none;
}
body::before { left: 0; }
body::after  { right: 0; }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.row    { display: flex; gap: var(--gutter); }
.center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: .12em; }
.eyebrow {
  font-size: var(--fs-xxs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: clamp(34px, 5vw, 64px); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); letter-spacing: -.01em; }
p  { color: var(--ink); }

.serif    { font-family: var(--font-serif); font-style: italic; }
.muted    { color: var(--ink-soft); }
.fine     { font-size: var(--fs-xs); color: var(--ink-soft); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled {
  background: #ffffff;
  box-shadow: none;
  pointer-events: none;
}
.nav.scrolled .nav-logo { pointer-events: auto; }
.nav-menu,
.nav-actions { transition: opacity .3s var(--ease); }
.nav.scrolled .nav-menu,
.nav.scrolled .nav-actions {
  opacity: 0;
  pointer-events: none;
}
.nav-logo img { transition: filter .3s var(--ease); }
.nav.scrolled.over-dark .nav-logo img { filter: brightness(0) invert(1); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity .2s var(--ease);
}
.nav-logo:hover img { opacity: .72; }
.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu a {
  font-size: var(--fs-xs);
  color: var(--ink);
  opacity: .82;
  display: inline-block;
  -webkit-text-stroke: 0 currentColor;
  transition: opacity .2s var(--ease), -webkit-text-stroke-width .45s cubic-bezier(.4, 0, .2, 1);
}
.nav-menu a:hover { opacity: 1; -webkit-text-stroke-width: 0.4px; }

/* Submenu (dropdown) */
.has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}
.has-submenu > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.has-submenu.open > a::after {
  opacity: 1;
  transform: rotate(225deg) translateY(0);
}

.nav-menu .has-submenu { position: static; }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 32px 0 58px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-24px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  box-shadow: 0 24px 48px rgba(0,0,0,.06);
  z-index: 110;
}
.has-submenu.open .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .5s var(--ease), transform .55s var(--ease);
}
.submenu-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: clamp(48px, 7vw, 110px);
}
.submenu-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.submenu-label {
  padding: 0 12px;
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}
.submenu-col:last-child .submenu-label { letter-spacing: 0; }

/* Apple-style blur scrim — blurs the page behind an open dropdown */
.nav::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 100vh;
  background: rgba(0, 0, 0, .09);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  z-index: 90;
}
.nav:has(.has-submenu.open)::after {
  opacity: 1;
  transition: opacity 1.5s var(--ease);
}

/* mega-menu item — text only */
.sub-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s var(--ease);
}
.sub-item-soon { cursor: default; }
.submenu-col:last-child .sub-item {
  padding-top: 3px;
  padding-bottom: 3px;
}
.sub-name {
  font-size: var(--fs-xs);
  letter-spacing: .01em;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  align-self: flex-start;
  -webkit-text-stroke: 0 currentColor;
  transition: -webkit-text-stroke-width .45s cubic-bezier(.4, 0, .2, 1);
}
.sub-item:not(.sub-item-soon):hover .sub-name {
  -webkit-text-stroke-width: 0.4px;
}
.sub-meta {
  font-size: var(--fs-xxs);
  line-height: 1.1;
  color: var(--ink-soft);
}
.nav-actions {
  display: flex;
  gap: 4px;
  font-size: var(--fs-xs);
  align-items: center;
}
.nav-actions button,
.nav-actions .nav-account-btn {
  opacity: .85;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  color: inherit;
  transition: opacity .2s var(--ease), background .2s var(--ease);
}
.nav-actions button:hover,
.nav-actions .nav-account-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,.05);
}
.nav-actions svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  font-size: 8px;
  font-weight: 600;
  background: #f5621f;
  color: #fff;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0 0;
  position: absolute;
  top: 4px;
  right: 2px;
  letter-spacing: 0;
  line-height: 1;
  border: 1.5px solid #fff;
}
.cart-count.hidden { display: none; }

/* ===== Language switcher ===== */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xs); color: var(--ink);
  height: 36px; padding: 0 8px;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.lang-btn:hover { opacity: .65; }
.lang-btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 110;
}
.lang-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 14px;
  font-size: var(--fs-xs); color: var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu button.active { color: var(--ink); font-weight: 500; }

@media (max-width: 720px) {
  .nav-menu { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 26px;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-link {
  font-size: var(--fs-xs);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Hero (full-bleed image, AURALEE-style) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  display: block;
}
.hero picture,
.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Section ---------- */
section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 780px; }

/* ---------- Product Card ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 48px) clamp(16px, 2vw, 32px);
}
.product {
  display: block;
  transition: transform .4s var(--ease);
}
.product:hover { transform: translateY(-3px); }
.product-media {
  background: var(--bg-soft);
  aspect-ratio: 4/5;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hover-swap: fade primary out, hover-image in */
.product-media:has(img.product-hover) img:not(.product-hover) {
  transition: opacity .4s var(--ease);
}
.product-media img.product-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.product:hover .product-media img.product-hover { opacity: 1; }
.product:hover .product-media img:not(.product-hover) { opacity: 0; }
.product-media .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  letter-spacing: .15em;
}
.product-media .ph.tee     { background: linear-gradient(160deg, #ece8df, #d6d0bf); }
.product-media .ph.crew    { background: linear-gradient(160deg, #d8d4c8, #b6b1a1); }
.product-media .ph.pants   { background: linear-gradient(160deg, #c9c3b3, #9a9685); }
.product-media .ph.jacket  { background: linear-gradient(160deg, #b4ad9a, #847e6c); }
.product-media .ph.shirt   { background: linear-gradient(160deg, #efece4, #d7d2c2); }
.product-media .ph.knit    { background: linear-gradient(160deg, #e3dccb, #b9b09c); }

.product-name {
  font-size: var(--fs-sm);
  font-weight: 400;
  margin-bottom: 4px;
}
.product-meta {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.product-price {
  font-size: var(--fs-xs);
  margin-top: 8px;
}

/* ---------- Editorial block ---------- */
.editorial {
  background: var(--bg-dark);
  color: var(--bg);
  padding: clamp(80px, 12vw, 160px) 0;
}
.editorial h2 { color: var(--bg); }
.editorial .muted { color: rgba(245,244,241,.6); }
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
}
.editorial-img {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #2a2a2a, #0a0a0a);
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 800px) {
  .editorial-grid { grid-template-columns: 1fr; }
}

/* ---------- Market / Currency Switcher (nav) ---------- */
.market-switch {
  position: relative;
}
.market-btn {
  opacity: .85;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border-radius: 999px;
  transition: opacity .2s var(--ease), background .2s var(--ease);
}
.market-btn:hover { opacity: 1; background: rgba(0,0,0,.05); }
.market-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.market-btn .market-flag {
  font-size: 16px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.market-btn .market-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}
.market-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 200;
}
.market-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.market-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: background .15s var(--ease);
}
.market-menu button:hover { background: var(--bg-soft); }
.market-menu button.active {
  font-weight: 500;
  background: var(--bg-soft);
}
.market-menu .market-flag { font-size: 14px; margin-right: 8px; }
.market-menu .market-currency {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}

/* Free-shipping banner strip */
.ship-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}
.ship-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- PDP Size selector + Add to bag ---------- */
.pdp-size-row {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-size-row .label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.pdp-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pdp-size {
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.pdp-size:hover { border-color: var(--ink); }
.pdp-size.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Cart drawer items — see main .cart-item block below ---------- */

/* ---------- PDP Buy button (direct link to Shopify) ---------- */
.pdp-buy-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.pdp-buy-btn:hover { opacity: .82; color: #fff; }

/* ---------- Recently Viewed (PDP) ---------- */
#recently-viewed {
  display: none;                  /* JS toggles to block when items exist */
  padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(60px, 8vw, 120px) clamp(12px, 1.5vw, 24px);
  max-width: 1600px;
  margin: 0;                      /* left-align to the page */
}
.rv-head { margin-bottom: clamp(24px, 3vw, 40px); }
.rv-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.rv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(24px, 3vw, 40px) 2px;
  max-width: 1200px;
  margin: 0;                      /* left-align to the page */
}
.rv-card {
  display: flex;
  flex-direction: column;
  transition: opacity .2s var(--ease);
}
.rv-card:hover { opacity: .75; }
.rv-media {
  aspect-ratio: 3/4;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 10px;
}
.rv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rv-name {
  font-size: 11px;
  letter-spacing: 0;
  margin: 0 0 3px;
  line-height: 1.3;
}
.rv-price {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0;
}
@media (max-width: 900px) { .rv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .rv-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer (2-column: brand blurb + social) ---------- */
footer {
  padding: clamp(80px, 10vw, 140px) 0 32px;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 120px);
  align-items: flex-start;
}
.footer-grid h5 {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 700;
}
.footer-grid > div:first-child p {
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 620px;
  margin: 0 0 16px;
}
.footer-grid > div:first-child p:last-child { margin-bottom: 0; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 24px; }
.footer-grid li:last-child { margin-bottom: 0; }
.footer-grid a {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity .2s var(--ease);
}
.footer-grid a:hover { opacity: .55; }
.footer-bottom {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 0;
  border-top: none;
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Cart drawer ---------- */
/* ================================================
   Cart Drawer — matches cart.html Ssense minimal
   ================================================ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: var(--bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.08);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.09);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-head {
  padding: 24px 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.cart-head h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.cart-head button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-head button:hover { color: var(--ink); }

.cart-body { flex: 1; overflow-y: auto; padding: 0 28px; }
.cart-empty {
  color: var(--ink-soft);
  text-align: center;
  padding: 60px 0;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.cart-item-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-soft);
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.cart-item-info { display: flex; flex-direction: column; min-height: 112px; }
.cart-item-info .row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.cart-item-brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.cart-item-price {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.cart-item-name {
  font-size: 11px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.3;
}
.cart-item-attr {
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.cart-item-attr strong { font-weight: 400; color: var(--ink-soft); }

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 10px;
}
.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0;
}
.cart-item-qty .qty-label { color: var(--ink-soft); }
.cart-item-qty .qty-value { min-width: 8px; text-align: center; }
.cart-item-qty .qty-arrows {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 2px;
  line-height: 1;
}
.cart-item-qty .qty-arrows button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  width: 12px;
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-qty .qty-arrows button svg { width: 8px; height: 5px; display: block; }
.cart-item-qty .qty-arrows button:hover { color: var(--ink-soft); }

.cart-item-remove {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  letter-spacing: 0;
}
.cart-item-remove:hover { color: var(--ink-soft); }

.cart-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}
.cart-total span:last-child { font-weight: 500; }
.cart-foot .btn,
.cart-foot .btn-primary {
  display: block;
  width: 100%;
  height: auto;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 500;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.cart-foot .btn:hover,
.cart-foot .btn-primary:hover { opacity: .85; color: #fff; }
.cart-foot .fine {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 2s var(--ease), transform 2s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Listing (AURALEE-style) ---------- */
.listing {
  padding-top: 116px;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.listing .container {
  max-width: none;
  padding-left: 5px;
  padding-right: 5px;
}
.listing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 4vw, 52px) 0 clamp(28px, 4vw, 48px);
}
.listing-head .eyebrow { margin-bottom: 14px; }
.listing-head h1 {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-left: 22px;
  transform: translateY(-32px);
}
.listing-head h1.listing-logo {
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 0.96;
}
.listing-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 4px 0 16px;
  margin-bottom: clamp(18px, 2.4vw, 34px);
}
.listing-filter {
  font-size: var(--fs-xs);
  letter-spacing: .05em;
  color: var(--ink);
  background: none;
  cursor: pointer;
  margin-right: 22px;
  transition: opacity .2s var(--ease);
}
.listing-filter:hover { opacity: .55; }
.listing-cats { display: flex; gap: 24px; flex-wrap: wrap; }
.listing-cats button {
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--ink-soft);
  padding: 3px 0;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.listing-cats button:hover { color: var(--ink); }
.listing-cats button.active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.listing-count {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(64px, 7vw, 104px) 1px;
}
.listing-grid .product-media { border-radius: 0; aspect-ratio: 3 / 4; }
@media (max-width: 1024px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .listing-grid { grid-template-columns: 1fr; } }
.swatch-dots { display: flex; gap: 5px; margin: 13px 0 7px; }
.swatch-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
}

/* ---------- Filter panel — matches cart drawer style ---------- */
.listing-filter { font-weight: 400; }
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.09);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  z-index: 190;
}
.filter-overlay.open { opacity: 1; pointer-events: auto; }
.filter-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 88vw);
  background: var(--bg);
  box-shadow: -20px 0 60px rgba(0,0,0,.08);
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.filter-panel.open { transform: translateX(0); }

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
}
.filter-head h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.filter-head button {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.filter-head button:hover { color: var(--ink); }

.filter-body { flex: 1; overflow-y: auto; padding: 0 28px; }
.filter-group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h5 {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 14px;
}
.filter-opt {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-soft);
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.filter-opt:hover { color: var(--ink); }
.filter-opt.active { color: var(--ink); font-weight: 500; }
.filter-opt.active::before { content: "— "; }

.filter-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-size {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.filter-size:hover { border-color: var(--ink); }
.filter-size.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.filter-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-color {
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.12);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.filter-color:hover { transform: scale(1.08); }
.filter-color.active { box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--ink); }

.filter-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--line);
}
.filter-foot .btn,
.filter-foot .btn-primary {
  display: block;
  width: 100%;
  height: auto;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}
.filter-foot .btn:hover,
.filter-foot .btn-primary:hover { opacity: .85; color: #fff; }

/* ---------- Utilities ---------- */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.spacer-lg { height: clamp(80px, 12vw, 160px); }

/* =========================================================
   Shopify Buy Button — styled to match commoncotton
   ========================================================= */

/* The nav bag opens the cart, so hide the SDK's floating toggle */
.shopify-buy__cart-toggle-wrapper,
.shopify-buy__cart-toggle { display: none !important; }

/* ---- Product block: size selector + Add to bag ---- */
.pdp-buy { margin-top: 56px; }

.shopify-buy__product,
.shopify-buy__product * { font-family: var(--font-sans) !important; }
.shopify-buy__product { max-width: 100%; }

/* variant selector */
.shopify-buy__option-select { margin: 0 0 32px; }
.shopify-buy__option-select__label {
  display: block;
  font-size: var(--fs-xxs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.shopify-buy__option-select__select,
select.shopify-buy__option-select__select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%236b6a66' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px 7px;
  color: var(--ink);
  font-size: var(--fs-xs);
  letter-spacing: .03em;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.shopify-buy__option-select__select:focus {
  outline: none;
  border-color: var(--ink);
}

/* Hide the Shopify SDK's oversized dropdown-chevron SVG.
   (It rendered ~590px tall and stretched the variant selectors.)
   The size/colour selects keep the small custom chevron from the rule above. */
.shopify-buy__option-select-wrapper .shopify-buy__select-icon,
.shopify-buy__select-icon {
  display: none !important;
}

/* =========================================================
   Custom variant controls — colour swatches & size buttons
   (AURALEE-style: label on the right, options on the left)
   ========================================================= */
.cmct-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.shopify-buy__option-select__label.cmct-opt-label {
  margin: 0;
  font-size: var(--fs-xxs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cmct-opt-value {
  margin-top: 12px;
  font-size: var(--fs-xxs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* colour — round swatches */
.cmct-swatches { display: flex; flex-wrap: wrap; gap: 28px; }
.cmct-swatch {
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cmct-swatch:hover { transform: scale(1.08); }
.cmct-swatch.active {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(0, 0, 0, .45);
}

/* size — clickable text, underline when active */
.cmct-sizes { display: flex; flex-wrap: wrap; gap: 18px; }
.cmct-size {
  padding: 0 0 5px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  letter-spacing: .05em;
  line-height: 1;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cmct-size:hover { color: var(--ink); }
.cmct-size.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Add to bag button */
.shopify-buy__btn,
.shopify-buy__btn--parent {
  width: 100% !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin-top: 56px;
  background: var(--ink) !important;
  color: var(--white) !important;
  border: 0;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: opacity .2s var(--ease);
}
.shopify-buy__btn:hover { opacity: .82; }
.shopify-buy__btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---- Cart drawer ---- */
.shopify-buy__cart-wrapper { z-index: 2147483000; }
.shopify-buy__cart {
  background: var(--bg) !important;
  width: min(420px, 92vw) !important;
  padding: 22px 24px !important;
}
.shopify-buy__cart * { font-family: var(--font-sans) !important; }
.shopify-buy__cart__header { padding: 0 0 16px; }
.shopify-buy__cart__title { font-size: var(--fs-md); font-weight: 500; }
.shopify-buy__btn--close { font-size: 30px; color: var(--ink-soft); }
.shopify-buy__cart-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.shopify-buy__cart-item__title { font-size: var(--fs-xs); }
.shopify-buy__cart-item__price,
.shopify-buy__cart-item__price-and-discounts { font-size: var(--fs-xs); }
.shopify-buy__cart__subtotal__text {
  font-size: var(--fs-xxs);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.shopify-buy__cart__footer { padding-top: 16px; }
.shopify-buy__btn--cart-checkout {
  width: 100%;
  min-height: 52px;
  background: var(--ink) !important;
  color: var(--white) !important;
  border-radius: 2px;
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.shopify-buy__cart__notice { font-size: var(--fs-xxs); color: var(--ink-soft); }
