/* Walter24 — editorial Swiss design for a Kärcher-home specialist.
   Warm off-white paper, deep-teal brand, ember accent. No frameworks. */

:root {
  --ink: #0a1b1f;
  --ink-2: #1a2b30;
  --muted: #5b6a70;
  --muted-2: #7c8a90;
  --paper: #fbfaf7;
  --paper-2: #f2eee7;
  --paper-3: #ede7db;
  --line: #e6e0d4;
  --line-2: #d7cfbe;
  --brand: #0e6a75;
  --brand-2: #0a4f58;
  --brand-3: #dff1f2;
  --brand-ink: #ffffff;
  --accent: #e26f2c;
  --accent-2: #c85a1c;
  --accent-3: #fbe6d6;
  --ok: #1f7a48;
  --warn: #b56b00;
  --err: #a1263a;
  --shadow-1: 0 1px 2px rgba(10, 27, 31, .06), 0 8px 24px rgba(10, 27, 31, .05);
  --shadow-2: 0 4px 12px rgba(10, 27, 31, .08), 0 24px 48px rgba(10, 27, 31, .08);
  --shadow-lg: 0 20px 60px rgba(10, 27, 31, .18);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
  --step-0: clamp(.95rem, .92rem + .15vw, 1.02rem);
  --step-1: clamp(1.06rem, 1.02rem + .2vw, 1.14rem);
  --step-2: clamp(1.22rem, 1.15rem + .35vw, 1.42rem);
  --step-3: clamp(1.5rem, 1.38rem + .6vw, 1.9rem);
  --step-4: clamp(1.9rem, 1.7rem + 1vw, 2.6rem);
  --step-5: clamp(2.4rem, 2rem + 2vw, 3.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 400 var(--step-0)/1.55 var(--sans);
  font-feature-settings: "ss01", "cv02", "cv11";
}
body.no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: var(--step-5); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: var(--step-4); line-height: 1.1; }
h3 { font-size: var(--step-3); line-height: 1.2; }
h4 { font-size: var(--step-2); line-height: 1.3; }
p { margin: 0 0 1em; max-width: var(--measure); }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.container-narrow { width: min(760px, 92vw); margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lead { font-size: var(--step-2); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.small { font-size: .82rem; color: var(--muted); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: linear-gradient(90deg, #071316, #0a1b1f 60%, #0e6a75);
  color: #dbe6e9; font-size: .8rem; padding: .45rem 0;
}
.topbar .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #dbe6e9; text-decoration: none; }
.topbar .dot { color: var(--accent); }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header > .row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1.2rem; padding: .8rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand svg { width: 210px; height: auto; transition: transform .4s cubic-bezier(.3,.7,.2,1); }
.brand:hover svg .drop-a { transform: translateY(2px) rotate(-2deg); }
.brand:hover svg .drop-b { transform: translateY(-2px) rotate(3deg); }
.brand svg .drop { transform-origin: 50% 60%; transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.brand svg .spark { opacity: .0; animation: blink 3.6s ease-in-out infinite; }
.brand svg .spark:nth-of-type(2) { animation-delay: 1.2s; }
@keyframes blink { 0%,55%,100% { opacity: 0; } 60%, 78% { opacity: .9; } }

/* Header search */
.header-search {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: .35rem .4rem .35rem .8rem;
  transition: border-color .18s ease, box-shadow .18s ease;
  max-width: 540px; margin-inline: auto; width: 100%;
}
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 106, 117, .12); }
.header-search svg { color: var(--muted); flex: 0 0 auto; }
.header-search input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: .5rem .2rem; font: inherit; color: var(--ink); min-width: 0;
}
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search button {
  background: var(--ink); color: #fff; border: none;
  padding: .45rem .8rem; border-radius: 9px; font-weight: 600; cursor: pointer;
  transition: background .18s ease;
}
.header-search button:hover { background: var(--brand); }

.header-actions { display: inline-flex; gap: .5rem; align-items: center; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.lang-switch a {
  padding: .3rem .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  border-radius: 7px; color: var(--muted); text-decoration: none; line-height: 1;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: #fff; background: var(--brand); }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.icon-btn .badge {
  position: absolute; transform: translate(14px, -14px);
  background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 6px; font-size: .7rem; font-weight: 700;
}

.mobile-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 42px; height: 42px; cursor: pointer; }

/* Second-row primary nav */
.nav-strip {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-strip > .container {
  display: flex; align-items: center; gap: 1.6rem;
  padding: .55rem 0; overflow-x: auto;
}
.nav-strip a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem;
  position: relative; padding: .3rem 0; white-space: nowrap;
}
.nav-strip a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent);
  transition: right .25s ease;
}
.nav-strip a:hover::after, .nav-strip a.active::after { right: 0; }
.nav-strip a.active { color: var(--brand); font-weight: 600; }

@media (max-width: 900px) {
  .header > .row { grid-template-columns: auto auto; row-gap: .6rem; }
  .header-search { grid-column: 1 / -1; max-width: none; margin: 0; }
  .brand svg { width: 165px; }
  .lang-switch a { padding: .25rem .35rem; font-size: .72rem; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-strip { display: none; }
  .nav-strip.open { display: block; }
  .nav-strip > .container { flex-direction: column; align-items: stretch; overflow: visible; }
  .nav-strip a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Cart mini modal ---------- */
.cart-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; justify-content: flex-end;
  pointer-events: none;
}
.cart-modal[hidden] { display: none; }
.cart-modal.open { pointer-events: auto; }
.cart-modal__scrim {
  position: absolute; inset: 0; background: rgba(10, 27, 31, .0);
  transition: background .2s ease;
}
.cart-modal.open .cart-modal__scrim { background: rgba(10, 27, 31, .38); }
.cart-modal__panel {
  position: relative; width: min(420px, 100vw); height: 100%;
  background: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s cubic-bezier(.3,.7,.2,1);
}
.cart-modal.open .cart-modal__panel { transform: translateX(0); }
.cart-modal__panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line);
}
.cart-modal__panel header h3 { margin: 0; font-size: 1.15rem; }
.cart-modal__body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.cart-modal__empty { color: var(--muted); text-align: center; padding: 2rem 0; }
.cart-modal__panel footer {
  border-top: 1px solid var(--line); padding: 1rem 1.2rem;
  background: var(--paper); display: grid; gap: .7rem;
}
.cart-modal__panel footer .sr { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; }
.cart-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cart-modal__actions .btn { padding: .8rem 1rem; }

.mini-line {
  display: grid; grid-template-columns: 60px 1fr auto; gap: .8rem;
  align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.mini-line:last-child { border-bottom: none; }
.mini-line .im { aspect-ratio: 1; background: var(--paper-2); border-radius: 8px; overflow: hidden; }
.mini-line .im img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.mini-info .cat-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-info .nm { font-weight: 600; font-size: .92rem; margin-top: .1rem; line-height: 1.2; }
.mini-row { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.mini-row .qty.compact { display: inline-flex; align-items: center; gap: .1rem; }
.mini-row .qty.compact button { width: 24px; height: 24px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; cursor: pointer; font-size: .9rem; }
.mini-row .qty.compact span { min-width: 20px; text-align: center; font-weight: 600; font-size: .9rem; }
.mini-row .rm { background: none; border: none; color: var(--err); cursor: pointer; font-size: .78rem; }
.mini-price { font-weight: 700; font-family: var(--display); font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(14, 106, 117, .14), transparent 60%),
    radial-gradient(700px 350px at 5% 0%, rgba(226, 111, 44, .1), transparent 60%);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line);
}
.hero .grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero h1 span { color: var(--brand); position: relative; }
.hero h1 span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em;
  background: var(--accent-3); z-index: -1; border-radius: 4px;
}
.hero .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero .stat b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--ink); }
.hero .stat span { color: var(--muted); font-size: .82rem; letter-spacing: .06em; }

.hero-visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f7f2e6 0%, #eee4cf 100%);
  overflow: hidden; box-shadow: var(--shadow-2);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 70% 20%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(500px 260px at 20% 90%, rgba(14, 106, 117, .18), transparent 60%);
}
.hero-visual .prod-mock {
  position: absolute; inset: 12% 8% 12% 8%;
  border-radius: 18px;
  background: conic-gradient(from 210deg at 60% 40%, #0e6a75, #e26f2c 30%, #0e6a75 70%);
  filter: blur(30px); opacity: .35;
}
.hero-visual img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; z-index: 1; }
.hero-badges { position: absolute; left: 1rem; top: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 2; }
.hero-badges .b {
  background: rgba(255,255,255,.95); color: var(--ink); border-radius: 999px; padding: .4rem .7rem;
  font-size: .78rem; box-shadow: var(--shadow-1);
}
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.2rem; border-radius: 12px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn.primary { --bg: var(--brand); --fg: var(--brand-ink); --bd: var(--brand); }
.btn.primary:hover { --bg: var(--brand-2); --bd: var(--brand-2); color: #fff; }
.btn.accent { --bg: var(--accent); --fg: #fff; --bd: var(--accent); }
.btn.accent:hover { --bg: var(--accent-2); --bd: var(--accent-2); color: #fff; }
.btn.ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn.ghost:hover { --bd: var(--ink); background: #fff; }
.btn.sm { padding: .55rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn.lg { padding: 1rem 1.4rem; font-size: 1.05rem; border-radius: 14px; }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.1rem 0; background: var(--paper-2);
}
.trust .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: center; }
.trust .cell { display: flex; align-items: center; gap: .7rem; }
.trust .cell svg { width: 26px; height: 26px; color: var(--brand); flex: 0 0 26px; }
.trust .cell b { display: block; font-size: .95rem; }
.trust .cell span { color: var(--muted); font-size: .78rem; }
@media (max-width: 900px) { .trust .row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Categories ---------- */
.section { padding: 4rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.6rem; gap: 1rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 46ch; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 150px;
}
.cat::after {
  content: ""; position: absolute; inset: auto -20px -20px auto;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--brand-3), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--brand); }
.cat:hover::after { opacity: 1; }
.cat .ico { width: 34px; height: 34px; color: var(--brand); position: relative; z-index: 1; }
.cat b { font-family: var(--display); font-size: 1.1rem; position: relative; z-index: 1; }
.cat span { color: var(--muted); font-size: .82rem; position: relative; z-index: 1; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pgrid { grid-template-columns: 1fr; } }

.pcard {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--brand); }
.pcard .thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #fff 40%, var(--paper-2) 100%); display: grid; place-items: center; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2%; transition: transform .35s ease; }
.pcard:hover .thumb img { transform: scale(1.04); }
.pcard .cat-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { font-size: .98rem; line-height: 1.25; margin: 0; min-height: 2.6em; font-weight: 600; }
.pcard .prow { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .3rem; border-top: 1px dashed var(--line); gap: .5rem; }
.pcard .price { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1.1; }
.pcard .price small { display: block; font-weight: 500; color: var(--muted); font-size: .68rem; margin-top: .1rem; }
.pcard .add {
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 10px; padding: .45rem .6rem; font-size: .78rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .18s ease, border-color .18s ease;
}
.pcard .add:hover { background: var(--brand); border-color: var(--brand); }
.pcard .pay-mini {
  display: flex; gap: .35rem; align-items: center;
  padding-top: .3rem; border-top: 1px dashed var(--line);
}
.pcard .pay-mini img { height: 16px; width: auto; border-radius: 3px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; padding: 2rem 0; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: .6rem; }
.gallery .main { aspect-ratio: 4/3; background: linear-gradient(180deg, #fff 40%, var(--paper-2) 100%); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 2%; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.gallery .thumbs button { aspect-ratio: 1; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 0; cursor: pointer; overflow: hidden; }
.gallery .thumbs button.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(14, 106, 117, .2); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }

.pdp .meta .cat-label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.pdp .meta h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.12; margin: .3rem 0 .6rem; }
.pdp .meta .price-row { display: flex; align-items: baseline; gap: .8rem; margin: .8rem 0 1rem; }
.pdp .meta .price { font-family: var(--display); font-size: 2rem; font-weight: 700; }
.pdp .meta .vat { color: var(--muted); font-size: .85rem; }
.pdp .meta .ship { display: inline-flex; align-items: center; gap: .4rem; color: var(--ok); font-weight: 600; font-size: .9rem; }
.pdp .buy-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.qty button { background: #fff; border: none; width: 42px; height: 44px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 46px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 1rem; }
.pdp .highlights { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.pdp .highlights li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .8rem; background: var(--paper-2); border-radius: 10px; }
.pdp .highlights li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.pdp .pay-block {
  margin-top: 1.4rem; padding: .9rem 1rem;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 12px; display: flex; flex-direction: column; gap: .5rem;
}
.pdp .pay-block .row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pdp .pay-block img { height: 22px; width: auto; border-radius: 4px; }
.pdp .pay-block .txt { font-size: .82rem; color: var(--muted); }

/* Product tabs */
.tabs { margin-top: 3rem; }
.tabs .tabbar { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs .tabbar button {
  background: none; border: none; padding: .8rem 1rem; font-size: .95rem; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs .tabbar button.active { color: var(--ink); border-color: var(--accent); }
.tabs .tabpane { padding: 1.4rem .2rem; display: none; }
.tabs .tabpane.active { display: block; }
.tabs table { border-collapse: collapse; width: 100%; max-width: 720px; }
.tabs table th, .tabs table td { padding: .5rem .8rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; vertical-align: top; }
.tabs table th { color: var(--muted); font-weight: 500; width: 40%; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; margin-top: 1.4rem; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }
.side { position: sticky; top: 128px; height: fit-content; }
.side h4 { margin: 0 0 .8rem; }
.cat-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .7rem; text-decoration: none; color: var(--ink-2);
  border-radius: 8px; font-size: .92rem;
}
.cat-list a span { color: var(--muted); font-size: .8rem; }
.cat-list a:hover { background: var(--paper-2); color: var(--ink); }
.cat-list a.active { background: var(--brand); color: #fff; }
.cat-list a.active span { color: rgba(255,255,255,.75); }
.side-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.side-card b { display: block; margin-bottom: .3rem; }
.side-card p { font-size: .85rem; color: var(--muted); }

.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); background: var(--paper-2); border-radius: var(--radius); }

/* ---------- Cart / Checkout ---------- */
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-list { display: flex; flex-direction: column; gap: .8rem; }
.line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.line .im { aspect-ratio: 1; background: var(--paper-2); border-radius: 10px; overflow: hidden; }
.line .im img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.line .nm { font-weight: 600; }
.line .cat-label { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.line .row2 { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.line .rm { background: none; border: none; color: var(--err); cursor: pointer; font-size: .85rem; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 128px; height: fit-content; }
.summary .sr { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.summary .sr.total { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }

.form { display: grid; gap: .8rem; }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 640px) { .form .grid2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 106, 117, .12); }

.pay-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.pay-choice label {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .8rem; border: 1px solid var(--line-2);
  border-radius: 12px; cursor: pointer;
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.pay-choice label:hover { border-color: var(--brand); }
.pay-choice label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(14, 106, 117, .12); }
.pay-choice input { accent-color: var(--brand); }
.pay-choice img { height: 22px; width: auto; border-radius: 3px; }
.pay-choice span { font-weight: 600; font-size: .9rem; }
@media (max-width: 720px) { .pay-choice { grid-template-columns: 1fr; } }

/* Payment page hero row */
.pay-hero { display: flex; gap: .8rem; align-items: center; margin: 1.2rem 0 1.4rem; flex-wrap: wrap; }
.pay-hero img { height: 34px; width: auto; border-radius: 4px; box-shadow: 0 1px 2px rgba(10,27,31,.06); }

/* ---------- Footer ---------- */
.footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--ink); color: #cdd6d9; }
.footer .top { padding: 3rem 0 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer .top { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: #fff; font-family: var(--display); font-size: 1rem; margin: 0 0 .8rem; letter-spacing: .02em; }
.footer a { color: #cdd6d9; text-decoration: none; display: block; padding: .2rem 0; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer .addr { font-size: .88rem; line-height: 1.55; color: #b7c2c6; }
.footer .addr b { color: #fff; }
.footer .pay-strip { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.footer .pay-strip img { height: 22px; width: auto; background: #fff; padding: 3px 6px; border-radius: 6px; }
.footer .bottom { border-top: 1px solid #24363b; padding: 1.2rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: #92a2a7; }
.footer .bottom a { display: inline; padding: 0; }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.center { text-align: center; }
.stack { display: grid; gap: 1rem; }
.stack.tight { gap: .5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.notice { padding: .9rem 1rem; border-radius: 10px; background: #eaf3f4; color: #0a4f58; border: 1px solid #cbe1e4; }
.legal-body h2 { margin-top: 2rem; }
.legal-body p { max-width: 72ch; color: var(--ink-2); }

/* Toast */
.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 70;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 12px;
  box-shadow: var(--shadow-2); font-size: .9rem; opacity: 0; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Cookie banner */
.cookies {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-2); padding: 1rem 1.1rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookies p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.cookies .btns { display: flex; gap: .5rem; margin-left: auto; }

/* Breadcrumbs */
.crumbs { font-size: .82rem; color: var(--muted); padding: 1.2rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span, .crumbs b { color: var(--line-2); margin: 0 .3rem; }
.crumbs b { color: var(--ink); font-weight: 600; }
