/* ==========================================================================
   CIRCEE by KIKI — storefront
   Structure follows large fashion retail: dense grid, persistent filter and
   sort bar, hover image swap, saved items. Palette stays CIRCEE.
   ========================================================================== */

:root {
  --bg:        #FFFFFF;
  --bg-alt:    #FAF7F2;
  --bg-deep:   #F2ECE2;
  --ink:       #111111;
  --ink-soft:  #4A4A4A;
  --muted:     #767676;
  --line:      #E4E0D9;
  --line-soft: #F0EDE7;
  --gold:      #A9855A;
  --gold-light:#C9B08A;
  --sale:      #B03A2E;
  --leaf:      #3E6B52;

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --ui: "Jost", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  /* The big hero lockup. Change either line to restyle the wordmark, and
     update the Google Fonts link in index.html to match. */
  --wordmark: "Playfair Display", "Bodoni Moda", Georgia, serif;
  --script: "Lobster Two", "Brush Script MT", cursive;

  --gut: 14px;
  --radius: 0px;
  --shadow: 0 14px 44px -22px rgba(17, 17, 17, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 106px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gut); }
.hide { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.03em; }

.eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -400% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
#view { animation: fadeIn 0.35s var(--ease) both; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 9px 14px;
}

.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 4px;
  height: 58px;
  padding: 0 var(--gut);
}

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  position: relative; border-radius: 50%;
  transition: background 0.2s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn:active { transform: scale(0.93); }
.icon-btn svg { width: 20px; height: 20px; }

.brand { justify-self: center; text-align: center; line-height: 1; }
.brand-name {
  font-family: var(--display); font-size: 20px;
  letter-spacing: 0.4em; text-indent: 0.4em; display: block;
}
.brand-sub {
  font-size: 7.5px; letter-spacing: 0.4em; text-indent: 0.4em;
  color: var(--gold); text-transform: uppercase; margin-top: 3px; display: block;
}

.header-actions { display: flex; align-items: center; }

.badge-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--ink); color: #fff; border-radius: 8px;
  font-size: 9.5px; line-height: 16px; text-align: center; font-weight: 500;
}
.badge-count.bump { animation: pop 0.45s var(--ease); }

/* Desktop category bar */
.nav {
  display: none;
  justify-content: center;
  gap: 30px;
  padding: 0 var(--gut) 12px;
}
.nav a {
  position: relative;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); padding-bottom: 4px;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--ink); }

/* Mobile category rail */
.rail {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 0 var(--gut) 10px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail a {
  flex: 0 0 auto; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 4px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.rail a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* Search */
.searchbar { border-bottom: 1px solid var(--line); padding: 11px var(--gut); background: var(--bg-alt); }
.searchbar input {
  width: 100%; border: 1px solid var(--line); background: var(--bg);
  padding: 11px 14px; font-size: 16px;
}
.searchbar input:focus { border-color: var(--ink); outline: none; }

/* ==========================================================================
   FILTER + SORT BAR
   ========================================================================== */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px var(--gut);
}
.toolbar-left { display: flex; align-items: center; gap: 10px; }
.count { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

.tool-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--bg);
  padding: 8px 13px; cursor: pointer;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.2s var(--ease);
}
.tool-btn:hover { border-color: var(--ink); }
.tool-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.tool-btn svg { width: 14px; height: 14px; }
.tool-btn .n {
  background: var(--gold); color: #fff; border-radius: 9px;
  padding: 0 6px; font-size: 9.5px; line-height: 15px;
}

.sortwrap { position: relative; display: inline-flex; align-items: center; }
.sortwrap select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: var(--bg);
  padding: 8px 30px 8px 13px; cursor: pointer;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.sortwrap svg {
  position: absolute; right: 10px; width: 11px; height: 11px;
  pointer-events: none; color: var(--muted);
}

/* Active filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px var(--gut) 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--bg-alt);
  padding: 5px 10px; font-size: 10.5px; letter-spacing: 0.08em;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip b { font-weight: 400; }

/* Filter panel */
.filters-body { padding: 4px var(--gut) 0; }
.fgroup { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 {
  font-family: var(--ui); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; margin: 0 0 12px; font-weight: 400; color: var(--muted);
}
.fopts { display: flex; flex-wrap: wrap; gap: 8px; }

.fopt {
  border: 1px solid var(--line); background: var(--bg);
  padding: 9px 13px; cursor: pointer; font-size: 12px;
  letter-spacing: 0.06em; transition: all 0.2s var(--ease);
}
.fopt:hover { border-color: var(--ink); }
.fopt.on { border-color: var(--ink); background: var(--ink); color: #fff; }

.fswatch {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--bg);
  padding: 7px 12px 7px 8px; cursor: pointer; font-size: 12px;
  transition: border-color 0.2s var(--ease);
}
.fswatch:hover { border-color: var(--ink); }
.fswatch.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fswatch i {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--line); flex: 0 0 auto;
}

.fcheck { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.fcheck input { width: 17px; height: 17px; accent-color: var(--ink); }

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 8px;
  padding: 16px 0 48px;
}

.card { position: relative; display: block; }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-deep);
  overflow: hidden;
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.45s var(--ease);
}
/* Second photo sits underneath and is revealed on hover. */
.card-media .img-alt { opacity: 0; }
.card:hover .card-media .img-main { opacity: 0; }
.card:hover .card-media .img-alt { opacity: 1; }

.card-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--gold-light); font-family: var(--display);
  font-size: 24px; letter-spacing: 0.2em;
}

.flag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--bg); color: var(--ink);
  font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 8px;
}
.flag.sold { background: var(--ink); color: #fff; }
.flag.sale { background: var(--sale); color: #fff; }

.heart {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 32px; height: 32px; border: 0; background: none;
  cursor: pointer; display: grid; place-items: center;
  color: var(--ink);
}
.heart svg { width: 17px; height: 17px; }
.heart.on svg { fill: var(--sale); stroke: var(--sale); }
.heart:active { transform: scale(0.85); }

/* Quick add strip, desktop hover only */
.quick {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  padding: 9px 8px;
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  transform: translateY(100%); opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.card:hover .quick { transform: none; opacity: 1; }
.quick button {
  min-width: 30px; border: 1px solid var(--line); background: var(--bg);
  padding: 5px 7px; cursor: pointer;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.15s var(--ease);
}
.quick button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.quick button:disabled {
  color: var(--muted); cursor: not-allowed;
  background: linear-gradient(to top left, transparent calc(50% - 0.5px),
    var(--line) 50%, transparent calc(50% + 0.5px)) no-repeat, var(--bg);
}

.card-body { padding: 9px 2px 0; }
.card-name { font-size: 12.5px; margin: 0 0 4px; font-family: var(--ui); font-weight: 400; }
.card-price { font-size: 12.5px; letter-spacing: 0.02em; }
.was { color: var(--muted); text-decoration: line-through; margin-left: 7px; font-size: 11.5px; }
.now { color: var(--sale); }
.card-dots { display: flex; gap: 4px; margin-top: 7px; align-items: center; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: inset 0 0 0 1px #fff;
}
.dot-more { font-size: 9.5px; color: var(--muted); }

/* ==========================================================================
   HERO / EDITORIAL
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--bg-alt), var(--bg-deep));
  text-align: center;
  padding: 62px var(--gut) 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .eyebrow { display: block; animation: fadeUp 0.6s var(--ease) 0.05s both; }
.hero h1 {
  font-size: clamp(32px, 10vw, 58px); margin: 12px 0 10px;
  animation: fadeUp 0.75s var(--ease) 0.14s both;
}
.hero p {
  color: var(--ink-soft); max-width: 36ch; margin: 0 auto 22px; font-size: 13.5px;
  animation: fadeUp 0.75s var(--ease) 0.24s both;
}
.hero .btn { animation: fadeUp 0.75s var(--ease) 0.34s both; }

/* Two-part wordmark: bold serif for the name, script for the signature. */
.lockup {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.14em;
  line-height: 1.04;
}
.lockup-main {
  font-family: var(--wordmark);
  font-weight: 700;
  letter-spacing: 0.005em;
}
.lockup-script {
  font-family: var(--script);
  font-weight: 700;
  font-style: italic;
  font-size: 0.66em;
  letter-spacing: 0.01em;
  /* Rides a little high so the script sits against the serif cap line. */
  position: relative;
  top: -0.06em;
}

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.crumbs {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 14px 0 6px;
}
.crumbs a:hover { color: var(--ink); }

.pdp { padding-bottom: 128px; }

.gallery { margin: 0 calc(var(--gut) * -1); position: relative; }
.gallery-track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > div {
  flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 3 / 4; background: var(--bg-deep);
}
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gallery-track.swap { animation: fadeIn 0.4s var(--ease) both; }

.gallery-pips { display: flex; justify-content: center; gap: 5px; padding-top: 10px; }
.pip { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: all 0.3s var(--ease); }
.pip.on { background: var(--ink); width: 15px; border-radius: 3px; }

.pdp-head { padding: 20px 0 0; }
.pdp-head h1 { font-size: 27px; margin-bottom: 8px; }
.pdp-price { font-size: 17px; }

.opt { padding: 22px 0 0; }
.opt-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 11px;
}
.opt-label b { color: var(--ink); font-weight: 400; letter-spacing: 0.05em; }

.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: none; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 2px #fff;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
/* Selected colour: a thin ring set off from the swatch, no extra ornament. */
.swatch.on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--ink);
}

.sizes { display: flex; flex-wrap: wrap; gap: 7px; }
.size {
  min-width: 50px; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.2s var(--ease);
}
.size:not(.out):hover { border-color: var(--ink); }
.size.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.size.out {
  color: var(--muted); cursor: not-allowed;
  background: linear-gradient(to top left, transparent calc(50% - 0.5px),
    var(--line) 50%, transparent calc(50% + 0.5px)) no-repeat, var(--bg);
}
.stock-note { font-size: 11px; color: var(--sale); margin-top: 10px; letter-spacing: 0.03em; }
.stock-note.ok { color: var(--leaf); }

.sold-banner {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--sale);
  background: var(--bg-alt);
  padding: 11px 13px;
  font-size: 12px;
  color: var(--ink-soft);
}


.pdp-copy { padding: 26px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.pdp-copy h3 {
  font-family: var(--ui); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.pdp-copy p { margin: 0 0 16px; white-space: pre-line; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 9px; align-items: center;
}
.qty {
  display: flex; align-items: center;
  border: 1px solid var(--line); background: var(--bg); flex: 0 0 auto;
}
.qty button {
  width: 36px; height: 46px; background: none; border: 0; cursor: pointer;
  font-size: 16px; color: var(--ink-soft);
}
.qty button:hover { color: var(--ink); }
.qty span { width: 24px; text-align: center; font-size: 13px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink);
  color: #fff; cursor: pointer;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), opacity 0.2s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-ghost { background: none; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-quiet { background: none; color: var(--ink-soft); border-color: var(--line); }
.btn-quiet:hover { background: none; color: var(--ink); border-color: var(--ink); }

/* ==========================================================================
   DRAWERS
   ========================================================================== */
.scrim {
  position: fixed; inset: 0; background: rgba(17, 17, 17, 0.42);
  z-index: 60; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 61;
  width: min(400px, 90%); background: var(--bg);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.drawer-right { right: 0; transform: translateX(100%); }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer.on { transform: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.drawer-head h2 { font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px var(--gut); }
.drawer-foot {
  border-top: 1px solid var(--line); flex: 0 0 auto;
  padding: 14px var(--gut) calc(14px + env(safe-area-inset-bottom));
  background: var(--bg-alt);
}

.menu-list { padding: 8px 0; }
.menu-list a {
  display: block; padding: 15px var(--gut);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.menu-list a:hover { background: var(--bg-alt); }

/* ==========================================================================
   LINES / TOTALS
   ========================================================================== */
.line {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.line:last-child { border-bottom: 0; }
.line-media { aspect-ratio: 3 / 4; background: var(--bg-deep); overflow: hidden; }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-size: 13px; margin-bottom: 3px; }
.line-meta { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.line-right {
  text-align: right; display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-end; gap: 8px;
}
.link-x {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.link-x:hover { color: var(--sale); border-bottom-color: var(--sale); }

.totals { font-size: 13px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 11px;
  font-family: var(--display); font-size: 18px;
}
.cod-note {
  display: flex; gap: 8px; background: var(--bg-alt);
  border-left: 2px solid var(--gold); padding: 10px 12px; margin: 13px 0;
  font-size: 11.5px; color: var(--ink-soft);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--bg);
  padding: 13px 13px; font-size: 16px; font-weight: 300;
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink); outline: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

.notice { padding: 12px 14px; font-size: 12.5px; margin-bottom: 15px; border: 1px solid; }
.notice-bad { background: #FBEEEB; border-color: #E3C4BC; color: var(--sale); }
.notice-good { background: #EDF3EF; border-color: #C6DBCD; color: var(--leaf); }

.panel {
  background: var(--bg); border: 1px solid var(--line);
  padding: 20px var(--gut); margin-bottom: 16px;
}
.panel h2 { font-size: 19px; margin-bottom: 6px; }

.state { text-align: center; padding: 68px var(--gut); color: var(--muted); }
.state h2 { font-size: 22px; color: var(--ink); margin-bottom: 9px; }
.state p { max-width: 36ch; margin: 0 auto 20px; font-size: 13.5px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 30px 0 14px;
}
.section-head h2 { font-size: 21px; }

/* Tracking */
.track-steps { display: grid; margin: 16px 0 4px; }
.track-step {
  display: grid; grid-template-columns: 22px 1fr; gap: 11px;
  padding-bottom: 18px; position: relative; font-size: 12.5px; color: var(--muted);
}
.track-step::before {
  content: ""; position: absolute; left: 10px; top: 17px; bottom: 0;
  width: 1px; background: var(--line);
}
.track-step:last-child { padding-bottom: 0; }
.track-step:last-child::before { display: none; }
.track-dot {
  width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center; font-size: 9.5px; z-index: 1;
}
.track-step.done { color: var(--ink); }
.track-step.done .track-dot { border-color: var(--ink); background: var(--ink); color: #fff; }
.track-step.cancelled .track-dot { border-color: var(--sale); background: var(--sale); color: #fff; }

/* Contact */
.contact-cards { display: grid; gap: 9px; margin-bottom: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--bg); border: 1px solid var(--line); padding: 15px 17px;
  transition: border-color 0.25s var(--ease);
}
.contact-card:hover { border-color: var(--ink); }
.contact-card svg { width: 21px; height: 21px; color: var(--gold); flex: 0 0 auto; }
.contact-card b { font-weight: 400; font-size: 14.5px; display: block; }
.contact-card small { color: var(--muted); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Skeletons + toast */
.skel {
  background: linear-gradient(90deg, var(--bg-deep) 25%, #F7F3EC 50%, var(--bg-deep) 75%);
  background-size: 400% 100%; animation: shimmer 1.5s infinite linear;
}
.skel-media { aspect-ratio: 3 / 4; }
.skel-line { height: 10px; margin-top: 9px; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 20px;
  font-size: 12px; letter-spacing: 0.05em; z-index: 80;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line); margin-top: 20px;
  padding: 42px var(--gut) 36px; text-align: center; background: var(--bg-alt);
}
.footer .brand-name { font-size: 17px; }
.footer p { font-size: 12px; color: var(--muted); margin: 12px 0; }
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 18px;
}
.footer-links a { color: var(--ink-soft); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.footer-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.footer-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--bg);
  padding: 9px 15px; font-size: 11px; letter-spacing: 0.06em;
  transition: border-color 0.25s var(--ease);
}
.footer-contact a:hover { border-color: var(--ink); }
.footer-contact svg { width: 14px; height: 14px; color: var(--gold); }
.footer-fine { font-size: 10px; letter-spacing: 0.1em; color: var(--muted); margin-top: 22px; }

.wa {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; z-index: 35; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.wa:hover { transform: scale(1.07); background: var(--gold); }
.wa svg { width: 24px; height: 24px; }
body.has-buybar .wa { bottom: calc(82px + env(safe-area-inset-bottom)); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 700px) {
  :root { --gut: 22px; --header-h: 122px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 34px 14px; }
  .header-main { height: 74px; }
  .brand-name { font-size: 24px; }
  .nav { display: flex; }
  .rail { display: none; }
  .hero { padding: 88px var(--gut) 78px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }

  .pdp-layout {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px;
    align-items: start; padding-top: 10px;
  }
  .gallery { margin: 0; position: sticky; top: calc(var(--header-h) + 14px); }
  .gallery-track { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; }
  .gallery-track > div { flex: none; }
  .gallery-pips { display: none; }
  .pdp { padding-bottom: 50px; }
  .buybar { position: static; background: none; border-top: 0; padding: 22px 0 0; }
  body.has-buybar .wa { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .toast { bottom: 24px; }

  /* Filters live in a left column instead of a drawer. */
  .shop-layout { display: grid; grid-template-columns: 218px 1fr; gap: 30px; align-items: start; }
  .filters-panel {
    position: sticky; top: calc(var(--header-h) + 58px);
    max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto;
  }
  .filters-body { padding: 0; }
  .fopts { gap: 7px; }
  .tool-btn.filters-toggle { display: none; }
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 236px 1fr; }
}

@media (min-width: 1500px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}

/* Touch devices never get the hover-only affordances. */
@media (hover: none) {
  .quick { display: none; }
  .card:hover .card-media .img-main { opacity: 1; }
  .card:hover .card-media .img-alt { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}