/* Kuchupuchu storefront — vibrant, product-first, mobile first. No frameworks. */

:root {
  --bg: #fffaf6;
  --surface: #ffffff;
  --soft: #f8f1f5;
  --ink: #2b1e2a;
  --muted: #7a6b77;
  --line: #efe3ea;
  --plum: #4a2e45;
  --plum-2: #643a5c;
  --berry: #c8285f;
  --berry-dark: #a61e4e;
  --saffron: #f4a93c;
  --teal: #13808c;
  --gold: #b48a54;
  --gold-soft: #f3e6cf;
  --ok: #217a52;
  --warn: #b26a00;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px -16px rgba(74, 46, 69, .35);
}

/* Category colour themes (used by cards, pills, rows) */
.t-fashion { --t-soft: #fde4ec; --t-soft2: #f9c6d6; --t-ink: #b0164f; --t-ring: #f5a3bd; }
.t-kids    { --t-soft: #dcf2f7; --t-soft2: #b4e1ed; --t-ink: #12708a; --t-ring: #8dcfe1; }
.t-beauty  { --t-soft: #ffe8db; --t-soft2: #ffcbb1; --t-ink: #c2410c; --t-ring: #fdae89; }
.t-home    { --t-soft: #fff2cc; --t-soft2: #fbdf8b; --t-ink: #8f5f00; --t-ring: #f1c84f; }
.t-other, .t-all { --t-soft: #efe6f5; --t-soft2: #dccbec; --t-ink: #4a2e45; --t-ring: #c5aadc; }
.t-sale    { --t-soft: #ffe0e8; --t-soft2: #ffbccd; --t-ink: #c8285f; --t-ring: #f590ad; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--berry); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-variant-numeric: lining-nums; }
h1, h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--berry); font-weight: 600; margin-bottom: .5rem; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem;
  background: var(--berry); color: #fff; border: 2px solid var(--berry); border-radius: 999px;
  font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ghost:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn-small { min-height: 40px; padding: 0 1rem; font-size: .875rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .875rem; }
.link-arrow { font-weight: 600; color: var(--berry); text-decoration: none; }
.link-arrow.center { display: block; width: max-content; margin: 1rem auto 0; }

/* ---------- Header ---------- */
.announcement {
  background: linear-gradient(90deg, var(--plum), var(--berry) 55%, var(--saffron));
  color: #fff; text-align: center; font-size: .8125rem; font-weight: 500; letter-spacing: .02em; padding: 7px 16px;
}
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(74, 46, 69, .4); }
.header-inner {
  display: grid; align-items: center; gap: 8px 6px; padding-top: 8px; padding-bottom: 10px;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "menu logo actions" "search search search";
}
.menu-toggle { grid-area: menu; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--plum); min-width: 0; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo-accent { color: var(--berry); }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; position: relative;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--soft); color: var(--plum); }
.icon-btn svg, .header-link svg, .header-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bag-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--berry); color: #fff; border-radius: 10px; border: 2px solid #fff;
  font-size: .6875rem; font-weight: 600; line-height: 15px; text-align: center;
}
.bag-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.header-link { display: none; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .875rem; font-weight: 500; }
.header-link:hover { background: var(--soft); color: var(--plum); }

.header-search {
  grid-area: search; display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--soft); border: 2px solid transparent;
}
.header-search:focus-within { border-color: var(--berry); background: #fff; }
.header-search svg { color: var(--muted); }
.header-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: .9375rem; }
.header-search button {
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 600; font-size: .875rem; cursor: pointer;
}
.header-search button:hover { background: var(--berry); }
.search-cat { display: none; }
@media (min-width: 600px) {
  .header-search { padding-left: 4px; }
  .search-cat {
    display: block; flex: none; max-width: 150px; height: 36px; padding: 0 8px; margin-right: 2px;
    border: 0; border-right: 1.5px solid var(--line); border-radius: 999px 0 0 999px; background: transparent;
    font-size: .8125rem; font-weight: 500; color: var(--plum); cursor: pointer; outline: none;
  }
}

/* Category menu: drawer on phones, bar on desktop */
.site-nav {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: min(320px, 86vw); background: var(--surface);
  overflow-y: auto; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow);
}
.site-nav.is-open { transform: none; }
.nav-inner { display: flex; flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
.nav-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.site-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--berry); }
.nav-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--t-ink, var(--plum)); flex: none; }
.site-nav .nav-sale { color: var(--berry); font-weight: 600; }
.nav-sub { display: flex; flex-direction: column; padding: 2px 0 6px 20px; border-bottom: 1px solid var(--line); }
.site-nav .nav-sub a { padding: 7px 4px; border: 0; font-size: .875rem; font-weight: 400; color: var(--muted); }
.site-nav .nav-sub a:hover, .site-nav .nav-sub a[aria-current="page"] { color: var(--t-ink, var(--berry)); }
.site-nav .nav-sub .nav-sub-all { display: none; }
body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(43, 30, 42, .45); z-index: 25; }

@media (min-width: 960px) {
  .menu-toggle, .site-nav .nav-mobile-only, .nav-heading { display: none; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
  .logo-mark { width: 46px; height: 46px; }
  .logo-word { font-size: 1.75rem; }
  .header-search { max-width: 620px; width: 100%; justify-self: center; height: 48px; }
  .header-link { display: inline-flex; }
  .site-nav { position: static; width: auto; transform: none; box-shadow: none; overflow: visible; border-top: 1px solid var(--line); }
  .nav-inner { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 4px; padding-top: 0; padding-bottom: 0; }
  .site-nav a { border: 0; padding: 11px 14px; font-size: .9375rem; border-bottom: 3px solid transparent; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--t-ink, var(--plum)); color: var(--t-ink, var(--plum)); }
  .site-nav .nav-sale { background: var(--berry); color: #fff !important; border-radius: 999px; padding: 5px 16px; margin: 6px 0 6px 6px; border: 0; }
  /* Sub-categories open in a small drop-down under each category */
  .nav-item { position: relative; display: flex; }
  .nav-sub {
    position: absolute; top: 100%; left: 0; z-index: 30; min-width: 230px; padding: 8px; border: 1px solid var(--line);
    border-top: 3px solid var(--t-ink, var(--plum)); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--surface); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
  }
  .nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { visibility: visible; opacity: 1; transform: none; }
  .site-nav .nav-sub a { padding: 8px 12px; border-radius: 8px; border: 0; font-size: .9rem; color: var(--ink); }
  .site-nav .nav-sub a:hover { background: var(--t-soft, var(--soft)); }
  .site-nav .nav-sub .nav-sub-all { display: flex; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; font-weight: 600; color: var(--t-ink, var(--plum)); }
  .cat-strip { display: none; } /* the menu bar shows the categories on larger screens */
}

/* ---------- Messages & toast ---------- */
.messages { padding-top: 16px; }
.message { padding: 12px 16px; border-radius: var(--radius-sm); border-left: 4px solid var(--plum); background: var(--surface); margin: 0 0 8px; box-shadow: 0 1px 0 var(--line); }
.message-success { border-color: var(--ok); background: #eef8f2; }
.message-error { border-color: var(--berry); color: var(--berry-dark); background: #fdecf1; }
.message-info { border-color: var(--saffron); background: #fff6e6; }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 18px; border-radius: var(--radius); background: var(--plum); color: #fff; box-shadow: var(--shadow);
  font-size: .9375rem; animation: toast-in .25s ease;
}
.toast.is-error { background: var(--berry-dark); }
.toast a { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--plum); font-weight: 600; text-decoration: none; font-size: .875rem; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Home: category strip ---------- */
.cat-strip { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.cat-strip-inner { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; padding-bottom: 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  text-decoration: none; font-size: .78rem; font-weight: 500; line-height: 1.25; scroll-snap-align: start;
}
.cat-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, var(--t-soft), var(--t-soft2)); color: var(--t-ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--t-ring); transition: transform .2s;
}
.cat-icon .icon { width: 30px; height: 30px; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-pill:hover { color: var(--t-ink); }
.cat-pill:hover .cat-icon { transform: translateY(-3px); }
@media (min-width: 768px) {
  .cat-strip-inner { justify-content: center; gap: 28px; padding-top: 20px; padding-bottom: 18px; }
  .cat-pill { width: 104px; font-size: .875rem; }
  .cat-icon { width: 76px; height: 76px; }
  .cat-icon .icon { width: 34px; height: 34px; }
}

/* ---------- Home: product tabs ---------- */
.home-products { padding: 20px 0 28px; }
.tabs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.home-title { font-family: var(--serif); font-size: clamp(1.6rem, 4.5vw, 2.3rem); color: var(--plum); margin: 0; letter-spacing: 0; }
.tabs { display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.js .tabs { display: flex; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: .9rem;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { border-color: var(--plum); }
.tab.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }
.tab-sale { color: var(--berry); }
.tab-sale.is-active { background: var(--berry); border-color: var(--berry); }
.tab-bestsellers .icon { color: var(--saffron); }
.tab-panel + .tab-panel { margin-top: 32px; }
.js .tab-panel { margin-top: 0; }
.js .tab-panel:not(.is-active) { display: none; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab-panel .center { margin: 20px 0 0; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1200px) { .home-products .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }

.card {
  min-width: 0; display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; text-decoration: none;
  background: linear-gradient(150deg, var(--t-soft, var(--soft)), var(--t-soft2, var(--line)));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.card-cat { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink, var(--muted)); margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title {
  font-size: .9375rem; font-weight: 500; line-height: 1.35; margin: 0 0 6px; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { text-decoration: none; }
.card-body .price { margin-bottom: 10px; }
.card-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  min-height: 42px; padding: 0 10px; border-radius: var(--radius-sm); border: 2px solid var(--plum);
  background: var(--plum); color: #fff; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.card form { margin-top: auto; }
.card-btn:hover { background: var(--berry); border-color: var(--berry); color: #fff; }
.card-btn .icon { width: 18px; height: 18px; }
.card-btn-outline { background: transparent; color: var(--plum); }
.card-btn.is-disabled { background: var(--soft); border-color: var(--soft); color: var(--muted); cursor: default; }
.card-btn.is-loading { opacity: .7; pointer-events: none; }
.card-btn.is-added { background: var(--ok); border-color: var(--ok); }

.placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(150deg, var(--t-soft, var(--soft)), var(--t-soft2, var(--line)));
  color: var(--t-ink, var(--plum)); font-family: var(--serif); font-size: 2rem;
}
.placeholder .icon { width: 38%; height: 38%; stroke-width: 1.1; opacity: .85; }
.placeholder-large { aspect-ratio: 4 / 5; }

.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.badge-sale { background: var(--berry); color: #fff; box-shadow: 0 4px 10px -4px rgba(200, 40, 95, .7); }
.badge-muted { background: rgba(43, 30, 42, .8); color: #fff; }
.badge-low { top: auto; bottom: 10px; background: #fff; color: var(--warn); }

.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.price-now { font-weight: 600; font-size: 1.0625rem; color: var(--berry); }
.price-was { color: var(--muted); font-size: .8125rem; }
.price-large .price-now { font-size: 1.75rem; }
.price-large .price-was { font-size: 1.0625rem; }
.save { font-size: .8125rem; font-weight: 600; color: #fff; background: var(--ok); padding: 2px 8px; border-radius: 999px; }

/* ---------- Home: promos ---------- */
.promos { padding: 4px 0 8px; }
.promo-row { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.promo-row::-webkit-scrollbar { display: none; }
@media (min-width: 800px) { .promo-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.promo {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 18px 20px;
  border-radius: var(--radius); color: #fff; text-decoration: none; overflow: hidden; scroll-snap-align: start; isolation: isolate;
}
.promo::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .14); z-index: -1; }
.promo:hover { color: #fff; transform: translateY(-2px); transition: transform .2s; }
.promo-a { background: linear-gradient(135deg, var(--berry), var(--plum)); }
.promo-a.has-image { background: linear-gradient(90deg, rgba(74, 46, 69, .9), rgba(74, 46, 69, .35)), var(--promo-image) center / cover; }
.promo-b { background: linear-gradient(135deg, #ff9f43, #e8590c); }
.promo-c { background: linear-gradient(135deg, #17a2a0, #12708a); }
.promo-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.promo strong { font-size: 1.125rem; font-weight: 600; line-height: 1.3; max-width: 26ch; }
.promo-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; }
.promo-link .icon { width: 16px; height: 16px; }

/* ---------- Home: category rows ---------- */
.cat-row { padding: 22px 0 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.head-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, var(--t-soft), var(--t-soft2)); color: var(--t-ink);
}
.head-icon .icon { width: 20px; height: 20px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 600; font-size: .9rem; color: var(--t-ink, var(--berry)); text-decoration: none; }
.see-all .icon { width: 16px; height: 16px; }
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: thin;
}
.scroller > .card { scroll-snap-align: start; }
@media (min-width: 700px) { .scroller { grid-auto-columns: 30%; gap: 18px; } }
@media (min-width: 1024px) { .scroller { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }

/* ---------- Home: trust strip ---------- */
.trust { padding: 28px 0; margin-top: 16px; background: var(--surface); border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.trust-grid .icon { grid-row: span 2; width: 42px; height: 42px; padding: 9px; border-radius: 50%; }
.trust-grid div:nth-child(1) .icon { background: #fde4ec; color: var(--berry); }
.trust-grid div:nth-child(2) .icon { background: #dcf2f7; color: var(--teal); }
.trust-grid div:nth-child(3) .icon { background: #fff2cc; color: var(--warn); }
.trust-grid div:nth-child(4) .icon { background: #efe6f5; color: var(--plum); }
.trust-grid strong { font-size: .9375rem; }
.trust-grid span { font-size: .8125rem; color: var(--muted); }

/* ---------- Other pages: headings ---------- */
.section { padding: clamp(32px, 6vw, 56px) 0; }
.page-head { padding: clamp(20px, 4vw, 36px) 0 12px; }
.page-head h1 { margin-bottom: .25em; color: var(--plum); }
.breadcrumbs { font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span { margin: 0 4px; }

/* ---------- Shop listing: filters on the left, sorting on top ---------- */
.listing-head { padding-bottom: 4px; }
.listing-head .lead { margin-bottom: 0; }
.listing { display: grid; gap: 24px; align-items: start; padding-bottom: 40px; }
.listing-main { min-width: 0; }

/* Filter panel: slide-in drawer on phones and tablets, sidebar on desktop */
.filters {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: min(340px, 90vw); overflow-y: auto;
  background: var(--bg); box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .25s ease;
}
.filters.is-open { transform: none; }
body.filters-open::after { content: ""; position: fixed; inset: 0; background: rgba(43, 30, 42, .45); z-index: 25; }
.filters-top {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.filters-top h2 { margin: 0; font-size: 1.125rem; }
.filters-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filter-form { display: grid; gap: 12px; padding: 14px; }
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.filter-box h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.filter-actions { display: grid; gap: 10px; justify-items: center; padding: 2px 0 8px; }

.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.cat-tree a:hover { background: var(--t-soft, var(--soft)); color: var(--t-ink, var(--plum)); }
.cat-tree a[aria-current="page"] { background: var(--t-soft, var(--soft)); color: var(--t-ink, var(--plum)); font-weight: 600; }
.cat-tree .count { margin-left: auto; min-width: 26px; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .75rem; line-height: 20px; text-align: center; }
.cat-tree .tree-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--t-ink, var(--plum)); }
.cat-tree ul { margin: 2px 0 6px 14px; padding-left: 10px; border-left: 2px solid var(--t-soft2, var(--line)); }
.cat-tree ul a { font-size: .875rem; padding: 6px 10px; }
.cat-tree .is-empty > a { color: var(--muted); }

/* Two-handle price slider (two range inputs stacked on one track) */
.range-slider { display: none; position: relative; height: 28px; margin: 0 4px 10px; }
.js .range-slider { display: block; }
.range-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.range-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 4px; background: var(--berry); }
.range-slider input {
  position: absolute; left: -4px; right: -4px; top: 0; width: calc(100% + 8px); height: 28px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range-slider [data-range-min] { z-index: 1; }
.range-slider [data-range-max] { z-index: 2; }
.range-slider input::-webkit-slider-runnable-track { background: none; height: 28px; }
.range-slider input::-moz-range-track { background: none; }
.range-slider input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: #fff; border: 5px solid var(--berry); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab;
}
.range-slider input::-moz-range-thumb {
  pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 5px solid var(--berry); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab;
}
.range-slider input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--saffron); }
.price-inputs { display: flex; align-items: flex-end; gap: 8px; }
.price-inputs label { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: .75rem; color: var(--muted); }
.price-inputs input {
  width: 100%; height: 40px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); text-align: center; font-size: .9375rem; color: var(--ink); -moz-appearance: textfield;
}
.price-inputs input:focus { border-color: var(--berry); outline: none; }
.price-inputs .dash { padding-bottom: 9px; color: var(--muted); }
.price-inputs .btn { min-height: 40px; padding: 0 14px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9375rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--berry); }

/* Bar above the products: count on the left, show/sort on the right */
.listing-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.listing-bar .result-count { margin: 0; }
.filter-toggle { gap: 6px; }
.filter-toggle .icon { width: 18px; height: 18px; }
.listing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-left: auto; }
.control { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.control select {
  height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer;
}
.control select:focus { border-color: var(--berry); outline: none; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 14px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px;
  background: var(--soft); color: var(--plum); font-size: .8125rem; font-weight: 500; text-decoration: none;
}
.active-filter span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; font-size: .875rem; line-height: 1; }
.active-filter:hover { background: var(--plum); color: #fff; }
.active-filter:hover span { color: var(--plum); }

@media (max-width: 599px) {
  .listing-bar { padding: 10px; }
  .listing-controls { width: 100%; margin: 0; }
  .control { flex: 1; min-width: 0; }
  .control select { flex: 1; min-width: 0; width: 100%; }
  .control:first-child { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .listing { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .filters { position: sticky; top: 136px; z-index: 1; width: auto; max-height: calc(100vh - 150px); transform: none; box-shadow: none; background: none; transition: none; scrollbar-width: thin; }
  .filters-top { display: none; }
  .filter-form { padding: 0 0 4px; }
  .js .filter-actions .btn { display: none; } /* changes apply instantly on desktop */
  .filter-toggle { display: none; }
  .listing .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1200px) { .listing .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t-ink, var(--plum)); }
.chip.is-active { background: var(--t-ink, var(--plum)); border-color: var(--t-ink, var(--plum)); color: #fff; }
.chip.is-active::before { background: #fff; }
.chip:hover { border-color: var(--t-ink, var(--plum)); color: var(--t-ink, var(--plum)); }
.chip.is-active:hover { color: #fff; }
.result-count { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.result-count strong { color: var(--ink); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 36px 0 8px; font-size: .9375rem; }
.pagination a { font-weight: 600; color: var(--berry); text-decoration: none; }
.empty { text-align: center; padding: 56px 0; }
.empty p { color: var(--muted); }

/* ---------- Product page ---------- */
/* Phones first: photo ≈45% of the screen, details and buttons close below it. */
.product-page { padding-top: 8px; padding-bottom: 32px; }
.product-page .breadcrumbs { margin-bottom: 8px; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .product-page .breadcrumbs { display: none; } }
.product-layout { display: grid; gap: 14px; }
.gallery, .product-info { min-width: 0; }

/* Main photo: whole image always visible (contain = no cropping, no stretching) */
.gallery-main {
  position: relative; display: block; overflow: hidden;
  height: clamp(230px, 40vh, 420px);
  height: clamp(230px, 40svh, 420px);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--t-soft, var(--soft)), var(--t-soft2, var(--line)));
}
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-main .placeholder { height: 100%; aspect-ratio: auto; background: none; }
.gallery-main .placeholder .icon { width: auto; height: 38%; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  flex: none; width: 52px; height: 52px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); opacity: .75;
  transition: opacity .2s, border-color .2s;
}
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.is-active { border-color: var(--berry); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Details */
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.product-info .eyebrow { color: var(--t-ink, var(--berry)); font-size: .6875rem; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.product-info a.eyebrow:hover { text-decoration: underline; }
.product-info h1 { color: var(--plum); font-size: 1.375rem; line-height: 1.25; margin-bottom: 6px; }
.product-info .price-large { align-items: center; gap: 2px 8px; margin-bottom: 12px; }
.price-large .price-now { font-size: 1.5rem; }
.price-large .price-was { font-size: 1rem; }
.stock { flex: none; font-size: .8125rem; font-weight: 500; margin: 0; display: flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--berry); }
.sizes { border: 0; padding: 0; margin: 0 0 8px; }
.sizes legend { font-size: .8125rem; font-weight: 600; margin-bottom: 6px; font-family: var(--sans); color: var(--ink); }
.size-option { display: inline-block; margin: 0 6px 6px 0; }
.size-option input { position: absolute; opacity: 0; }
.size-option span {
  display: inline-grid; place-items: center; min-width: 46px; height: 42px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 500;
}
.size-option input:checked + span { border-color: var(--plum); background: var(--plum); color: #fff; }
.size-option input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.qty { display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; margin-bottom: 12px; }
.qty input { width: 72px; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.qty-form input { height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy-actions .btn { min-height: 46px; padding: 0 12px; }
.assurances { list-style: none; padding: 10px 14px; margin: 16px 0; border-radius: var(--radius-sm); background: var(--soft); font-size: .8125rem; }
.assurances li { padding: 3px 0 3px 22px; position: relative; }
.assurances li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.description h2 { font-size: 1rem; margin-bottom: 6px; }
.description { color: #4a3d48; font-size: .9375rem; }

/* Phones: keep "Add to bag / Buy now" on screen while choosing a size */
@media (max-width: 899px) {
  .buy-actions {
    position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 250, 246, .96); box-shadow: 0 -10px 18px -14px rgba(74, 46, 69, .45);
  }
  .toast { bottom: 80px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .gallery-main { height: clamp(300px, 50vh, 520px); }
}

/* Desktop: two columns, photo stays in view while reading the details */
@media (min-width: 900px) {
  .product-page { padding-top: 16px; }
  .product-page .breadcrumbs { font-size: .8125rem; margin-bottom: 14px; }
  .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: 140px; }
  .gallery-main { height: clamp(380px, calc(100vh - 250px), 680px); }
  .gallery-thumbs { gap: 10px; margin-top: 10px; }
  .gallery-thumbs button { width: 72px; height: 72px; }
  .product-info h1 { font-size: 2rem; margin-bottom: 10px; }
  .price-large .price-now { font-size: 1.75rem; }
  .price-large .price-was { font-size: 1.0625rem; }
  .stock { font-size: .875rem; }
  .product-info .price-large { margin-bottom: 20px; }
  .sizes { margin-bottom: 12px; }
  .sizes legend { font-size: .875rem; }
  .size-option span { min-width: 50px; height: 44px; }
  .qty { margin-bottom: 18px; }
  .qty input { height: 44px; }
  .buy-actions { gap: 10px; }
  .buy-actions .btn { min-height: 50px; }
  .assurances { padding: 14px 16px; margin: 22px 0; font-size: .9375rem; }
  .description h2 { font-size: 1.125rem; }
}

/* ---------- Bag & checkout ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
  .summary { position: sticky; top: 150px; }
}
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 16px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-thumb { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .placeholder { font-size: 1.5rem; }
.cart-line-name { text-decoration: none; font-weight: 600; }
.cart-line-info p { margin: 2px 0; font-size: .875rem; }
.cart-line-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.qty-form { display: flex; gap: 8px; }
.qty-form input { width: 72px; }
.cart-line-total { font-weight: 600; color: var(--berry); margin: 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.summary h2 { font-size: 1.25rem; }
.summary-row, .summary-item { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: .9375rem; }
.summary-item { color: var(--muted); border-bottom: 1px dashed var(--line); }
.summary-item span:last-child, .summary-row span:last-child { white-space: nowrap; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.125rem; font-weight: 600; }
.summary-total span:last-child { color: var(--berry); }
.summary .btn { margin-top: 16px; }
.hint { font-size: .8125rem; color: var(--muted); margin: 12px 0 0; }

fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-size: 1.25rem; font-weight: 600; margin-bottom: 14px; padding: 0; color: var(--plum); }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .track-form input {
  width: 100%; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.field input:focus, .field textarea:focus, .track-form input:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(74, 46, 69, .12); }
.field [aria-invalid="true"] { border-color: var(--berry); }
.field-error { color: var(--berry-dark); font-size: .8125rem; margin: 6px 0 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choice-group { display: grid; gap: 10px; }
@media (min-width: 640px) { .choice-group:not(.choice-stack) { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--plum); background: #faf5f9; }
.choice input { margin-top: 4px; accent-color: var(--plum); }
.choice small { display: block; color: var(--muted); font-size: .8125rem; }
.mobile-pay { background: #fdf0f4; border: 1px solid #f6d3df; border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; }
.pay-instructions { font-size: .9375rem; }
.pay-number { font-size: 1.125rem; letter-spacing: .04em; color: var(--berry); }

/* ---------- Thank you & tracking ---------- */
.success { text-align: center; padding: 44px 0 20px; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--berry), var(--plum)); display: grid; place-items: center; }
.success-icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.actions-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 28px 0 56px; }
.track-form { display: grid; gap: 4px; margin-bottom: 24px; }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; } .track-form .field { margin: 0; } }
.track-result { margin-bottom: 56px; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 20px 0 24px; counter-reset: step; }
.progress li { position: relative; text-align: center; font-size: .75rem; color: var(--muted); padding-top: 30px; }
.progress li::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .75rem; line-height: 24px;
}
.progress li + li::after { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--line); }
.progress li.is-done { color: var(--ink); }
.progress li.is-done::before, .progress li.is-done::after { background: var(--ok); color: #fff; }
.progress li.is-current { font-weight: 600; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fdecf1; color: var(--berry-dark); }

/* ---------- Text pages ---------- */
.prose { max-width: 760px; padding-bottom: 56px; }
.prose h2 { margin-top: 1.5em; color: var(--plum); }
.prose li { margin-bottom: .5em; }
.contact-grid { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.contact-card strong { display: block; font-size: 1.125rem; color: var(--plum); }
.contact-card span { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #eadfe8; margin-top: 0; font-size: .9375rem; border-top: 4px solid; border-image: linear-gradient(90deg, var(--berry), var(--saffron), var(--teal)) 1; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--saffron); margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; text-decoration: none; color: #eadfe8; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: #cdbdc9; }
.logo-light { color: #fff; margin-bottom: 12px; --logo-handle: #fff; }
.logo-light .logo-word { color: #fff; }
.logo-light .logo-accent { color: var(--saffron); }
.pay-methods { font-size: .8125rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; padding-bottom: 18px; font-size: .8125rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 400px) {
  .logo-word { font-size: 1.3rem; }
  .logo-mark { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.site-footer .logo { display: inline-flex; }
