/* WAKAA storefront — aubergine night + saffron, warm sand background. */
:root {
  --ink: #1e1424;
  --aubergine: #2b1b33;
  --plum: #5b3a6b;
  --plum-soft: #efe7f2;
  --sand: #faf6ef;
  --sand-deep: #f1e9dc;
  --card: #ffffff;
  --line: #e8ded1;
  --muted: #6b6170;
  --accent: #f4b547;
  --accent-strong: #e59c1f;
  --sea: #0e7c86;
  --danger: #b4410f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 20, 36, 0.06), 0 8px 24px rgba(30, 20, 36, 0.06);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--sand);
  --bs-link-color-rgb: 14, 124, 134;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  outline: none;
  padding-bottom: 56px;
}
h1, h2, h3, .brand-word {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
a {
  color: var(--sea);
}
:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--ink);
  color: #e9dff0;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}
.topbar-controls {
  display: flex;
  gap: 8px;
}
.mini-select {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
}
.mini-select option {
  color: var(--ink);
}
.site-header {
  background: var(--aubergine);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-word {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: #fff;
}
.header-search {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  max-width: 620px;
  width: 100%;
  justify-self: center;
}
.header-search input {
  flex: 1;
  border: 0;
  padding: 11px 18px;
  font-size: 0.95rem;
  min-width: 0;
  color: var(--ink);
}
.header-search input:focus {
  outline: none;
}
.header-search:focus-within {
  box-shadow: 0 0 0 3px var(--accent);
}
.search-btn {
  border: 0;
  background: var(--accent);
  width: 52px;
  display: grid;
  place-items: center;
}
.search-btn svg,
.icon-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-actions {
  display: flex;
  gap: 6px;
}
.icon-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.icon-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.cart-badge {
  position: absolute;
  top: 2px;
  left: 26px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.category-bar {
  background: #3a2645;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.category-bar-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 6px;
}
.category-bar-inner a {
  color: #eadff1;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.category-bar-inner a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(244, 181, 71, 0.35), transparent 60%),
    linear-gradient(135deg, var(--aubergine), #4a2c58 60%, var(--plum));
  color: #fff;
  padding: 56px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 14px;
  max-width: 16ch;
}
.hero-lead {
  font-size: 1.1rem;
  color: #e7dcec;
  margin-bottom: 24px;
}
.hero-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.hero-perks li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  gap: 2px;
}
.hero-perks strong {
  color: var(--accent);
  font-family: var(--font-display);
}
.hero-perks span {
  color: #e3d8e9;
  font-size: 0.92rem;
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding-inline: 26px;
}
.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--ink);
}
.btn-accent:disabled {
  background: #d9cfc2;
  border-color: #d9cfc2;
  color: #6b6170;
}
.btn {
  border-radius: 999px;
}

/* ---------- Listing ---------- */
.home-vendors {
  padding-top: 28px;
}
.vendor-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.vendor-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 600;
}
.vendor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: var(--plum-soft);
  flex: none;
}
.vendor-avatar.sm {
  width: 34px;
  height: 34px;
}
.vendor-avatar.lg {
  width: 72px;
  height: 72px;
}
.vendor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vendor-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0 20px;
}
.vendor-head h1 {
  margin: 0;
  font-size: 1.8rem;
}
.listing {
  padding-top: 28px;
}
.section-head h2,
.page-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 6px;
}
.page-lead {
  color: var(--muted);
  max-width: 70ch;
}
.sub-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 18px 0 10px;
}
.crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: #b3a9b8;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--sea);
  text-decoration: underline;
}
.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.toolbar-left {
  color: var(--muted);
  font-size: 0.9rem;
}
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.86rem;
  cursor: pointer;
}
.check-pill input {
  accent-color: var(--plum);
}
.form-select-sm {
  border-radius: 999px;
  border-color: var(--line);
  min-width: 170px;
}
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.folder-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.folder-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.folder-media {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand-deep);
  display: grid;
  place-items: center;
}
.folder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.folder-title {
  font-weight: 600;
  font-size: 0.92rem;
}
.folder-count {
  font-size: 0.78rem;
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.is-out .card-media img {
  opacity: 0.5;
}
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge-discount.inline {
  position: static;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}
.badge-out {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
}
.card-body-wk {
  padding: 12px 14px 16px;
  display: grid;
  gap: 4px;
  align-content: start;
  flex: 1;
}
.card-brand {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  margin-top: 6px;
}
.price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.price-now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--aubergine);
}
.price-lg .price-now {
  font-size: 1.9rem;
}
.price-was {
  color: var(--muted);
  font-size: 0.86rem;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.stars {
  --rate: 0;
  width: 80px;
  height: 14px;
  background: linear-gradient(90deg, var(--accent-strong) calc(var(--rate) / 5 * 100%), #e2d8cb 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cg%3E%3Cpath id='s' d='M8 1l2.1 4.6 5 .5-3.8 3.4 1.1 4.9L8 11.9 3.6 14.4l1.1-4.9L.9 6.1l5-.5z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cg%3E%3Cpath id='s' d='M8 1l2.1 4.6 5 .5-3.8 3.4 1.1 4.9L8 11.9 3.6 14.4l1.1-4.9L.9 6.1l5-.5z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.more-wrap {
  text-align: center;
  margin-top: 24px;
}
.img-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--plum-soft), var(--sand-deep));
  color: var(--plum);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
}
.state-block {
  text-align: center;
  padding: 56px 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
  color: var(--muted);
}
.state-block .page-title {
  color: var(--ink);
}
.code-404 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--plum);
  margin: 0;
}

/* ---------- Skeletons ---------- */
.sk {
  background: linear-gradient(90deg, #eee6db 0%, #f7f1e8 50%, #eee6db 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: 8px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
  .product-card,
  .folder-card {
    transition: none;
  }
}
.card-skel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.sk-img {
  aspect-ratio: 1;
}
.sk-line {
  height: 14px;
}
.sk-line.short {
  width: 60%;
}
.sk-gallery {
  aspect-ratio: 1;
}
.sk-block {
  height: 160px;
  margin-top: 16px;
}
.pdp-skel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding-top: 28px;
}

/* ---------- Product page ---------- */
.product-page {
  padding-top: 22px;
}
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.pdp-gallery {
  position: sticky;
  top: 140px;
}
.gallery-main {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.thumb {
  width: 72px;
  height: 72px;
  flex: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.thumb.active {
  border-color: var(--plum);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdp-brand {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.pdp-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
}
.pdp-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 8px 0 14px;
}
.pdp-price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.variant-group,
.vendor-picker {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.variant-group legend,
.vendor-picker legend {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  float: none;
}
.variant-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-btn {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  min-height: 40px;
}
.variant-btn.selected {
  border-color: var(--plum);
  box-shadow: 0 0 0 2px var(--plum-soft);
  font-weight: 600;
}
.variant-btn.unavailable {
  opacity: 0.45;
  text-decoration: line-through;
}
.variant-btn.swatch {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--sw);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--line);
}
.variant-btn.swatch.selected {
  box-shadow: 0 0 0 2.5px var(--plum);
}
.vendor-option {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
}
.vendor-option.selected {
  border-color: var(--plum);
}
.vendor-option input {
  accent-color: var(--plum);
}
.vendor-option-body {
  display: grid;
}
.vendor-option-price {
  display: grid;
  justify-items: end;
  font-size: 0.8rem;
  color: var(--muted);
}
.pdp-stock {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}
.stock.ok {
  color: var(--sea);
}
.stock.low {
  color: var(--accent-strong);
}
.stock.out {
  color: var(--danger);
}
.pdp-cart {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.qty {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-btn {
  border: 0;
  background: transparent;
  width: 42px;
  height: 100%;
  font-size: 1.2rem;
}
.qty input {
  width: 48px;
  border: 0;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.pdp-block-msg {
  margin-top: 12px;
  background: #fff4e0;
  border: 1px solid #f2d39b;
  color: #7a4d06;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
}
.pdp-hints {
  list-style: none;
  padding: 16px 0 0;
  margin: 18px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}
.pdp-hints li::before {
  content: "✓";
  color: var(--sea);
  font-weight: 700;
  margin-right: 8px;
}
.pdp-hints li.muted::before {
  content: "i";
  font-style: italic;
  color: var(--muted);
}
.pdp-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 24px;
}
.pdp-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.pdp-section[data-related] {
  background: transparent;
  border: 0;
  padding: 0;
}
.spec-group {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--plum);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.spec-table th,
.spec-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  width: 40%;
  font-weight: 500;
  color: var(--muted);
}
.article-body {
  line-height: 1.7;
  max-width: 75ch;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.pros-list,
.cons-list {
  padding-left: 18px;
}
.viewer {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  background: #fff;
}
.viewer::backdrop {
  background: rgba(30, 20, 36, 0.8);
}
.viewer img {
  max-width: 100%;
  max-height: 88vh;
  display: block;
  object-fit: contain;
}
.viewer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.4rem;
}

/* ---------- Toasts ---------- */
.toast-host {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  z-index: 200;
  width: min(92vw, 460px);
}
.wk-toast {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wk-toast a {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.wk-toast.leaving {
  opacity: 0;
  transform: translateY(6px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d6cbdc;
  padding-top: 44px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}
.footer-grid nav {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer-grid a {
  color: #d6cbdc;
  text-decoration: none;
}
.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-title {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-pitch {
  margin-top: 12px;
  max-width: 36ch;
  font-size: 0.92rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-block: 16px;
  font-size: 0.82rem;
  color: #a99db0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero {
    padding-top: 36px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .pdp,
  .pdp-skel {
    grid-template-columns: 1fr;
  }
  .pdp-gallery {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: auto auto;
    gap: 10px 12px;
  }
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .header-actions {
    justify-self: end;
  }
  .action-label {
    display: none;
  }
  .topbar-inner > span {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .gallery-main {
    aspect-ratio: 4 / 3;
  }
  .hero {
    padding: 28px 0 24px;
  }
  .hero-lead {
    margin-bottom: 18px;
  }
  .hero-perks {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 6px;
  }
  .hero-perks li {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .hero-perks span {
    display: none;
  }
  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .folder-card {
    padding: 12px 8px;
  }
  .folder-media {
    width: 52px;
    height: 52px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-body-wk {
    padding: 10px;
  }
  .listing-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .pdp-section {
    padding: 18px 16px;
  }
  .vendor-option {
    grid-template-columns: auto auto 1fr;
  }
  .vendor-option-price {
    grid-column: 3;
    justify-items: start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pdp-gallery,
  .gallery-main {
    max-width: 100%;
  }
}

/* ---------- Checkout ---------- */
.checkout,
.order-page,
.account,
.prose-page {
  padding-top: 24px;
}
.ck-grid,
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.ck-main {
  display: grid;
  gap: 18px;
}
.ck-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.ck-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ck-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aubergine);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
}
.cart-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.line-media {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}
.line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.line-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.line-title {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.line-variant,
.line-vendor {
  font-size: 0.84rem;
  color: var(--muted);
}
.mini-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sw);
  vertical-align: middle;
  box-shadow: 0 0 0 1px var(--line);
}
.line-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.qty.sm {
  height: 34px;
}
.qty.sm .qty-btn {
  width: 32px;
}
.qty-val {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
}
.line-price {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}
.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 4px;
}
.map-box {
  height: 260px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--sand-deep);
}
.wk-pin span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--danger);
  transform: rotate(-45deg);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ship-pkg {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.ship-pkg legend {
  font-size: 0.92rem;
  font-weight: 600;
  float: none;
  margin-bottom: 8px;
}
.ship-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.ship-option.selected {
  border-color: var(--plum);
}
.ship-option input {
  accent-color: var(--plum);
}
.ship-option small {
  margin-left: auto;
}
.ck-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: sticky;
  top: 140px;
}
.bill {
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.bill div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.93rem;
}
.bill dt {
  font-weight: 400;
  color: var(--muted);
}
.bill dd {
  margin: 0;
  text-align: right;
}
.bill-total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 1.1rem !important;
}
.bill-total dt {
  color: var(--ink) !important;
  font-weight: 700 !important;
}
.bill-total dd {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--aubergine);
}
.promo {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.promo input {
  flex: 1;
  min-width: 120px;
  border-radius: 999px;
}
.pay-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 8px 0 10px;
}

/* ---------- Orders ---------- */
.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
}
.order-row:hover {
  border-color: var(--plum);
}
.order-code {
  font-family: var(--font-display);
  font-weight: 700;
}
.order-thumbs {
  display: flex;
}
.thumb-mini {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #fff;
  overflow: hidden;
  background: #fff;
  margin-left: -8px;
  box-shadow: 0 0 0 1px var(--line);
}
.thumb-mini:first-child {
  margin-left: 0;
}
.thumb-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.order-date {
  font-size: 0.85rem;
  color: var(--muted);
}
.order-total {
  font-weight: 700;
}
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum);
}
.pill-soft {
  background: #e3f3f4;
  color: var(--sea);
}
.pill-danger {
  background: #fde8df;
  color: var(--danger);
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
  margin: 0 0 22px;
  counter-reset: step;
}
.stepper li {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  position: relative;
}
.stepper li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.stepper li:first-child::before {
  display: none;
}
.stepper li.done::before,
.stepper li.current::before {
  background: var(--sea);
}
.stepper .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  position: relative;
  z-index: 1;
}
.stepper li.done .dot {
  background: var(--sea);
}
.stepper li.current .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 181, 71, 0.3);
}
.stepper li.current {
  color: var(--ink);
  font-weight: 600;
}
.chat {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.chat li {
  background: var(--sand);
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 80%;
}
.chat li.from-shop {
  background: var(--plum-soft);
  justify-self: end;
}
.chat p {
  margin: 2px 0;
}
.chat-form {
  display: flex;
  gap: 8px;
}

/* ---------- Account ---------- */
.account-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.account-nav {
  display: grid;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.account-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.account-nav a.active,
.account-nav a:hover {
  background: var(--plum-soft);
  color: var(--plum);
  font-weight: 600;
}
.account-user {
  display: grid;
  padding: 4px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.notice {
  background: #fff4e0;
  border: 1px solid #f2d39b;
  color: #7a4d06;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.login-panel {
  max-width: 520px;
  margin: 24px auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.simple-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* ---------- Content ---------- */
.prose-page {
  max-width: 880px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
}
.chip.active {
  background: var(--aubergine);
  color: #fff;
  border-color: var(--aubergine);
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.blog-card {
  display: grid;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}
.blog-card img,
.blog-cover {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card h2 {
  font-size: 1.05rem;
  margin: 4px 0 0;
}

@media (max-width: 991px) {
  .ck-grid,
  .order-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .ck-summary {
    position: static;
  }
}
@media (max-width: 720px) {
  .ck-card,
  .ck-summary {
    padding: 16px;
  }
  .cart-line {
    grid-template-columns: 56px 1fr;
  }
  .line-media {
    width: 56px;
    height: 56px;
  }
  .line-price {
    grid-column: 2;
  }
  .order-row {
    grid-template-columns: 1fr auto;
  }
  .order-thumbs,
  .order-date {
    display: none;
  }
  .order-status {
    grid-column: 1 / -1;
  }
  .stepper li span:last-child {
    font-size: 0.7rem;
  }
  .account-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }
  .account-user {
    display: none;
  }
}

/* Contrast fixes (WCAG AA) found in the pre-publication audit. */
.notice .btn-link {
  color: #5c3a04;
  font-weight: 600;
  text-decoration: underline;
}
.pill-soft {
  color: #08565d;
}

/* Layout stability (CLS): reserve space for content that arrives from XAPI. */
main#app {
  min-height: 100vh;
}
.category-bar-inner {
  min-height: 45px;
}
.folders-reserve {
  min-height: 300px;
}
@media (max-width: 575px) {
  .folders-reserve {
    min-height: 274px;
  }
}
