/* =========================================================
   Medikit's Solution — v2 (fresh build)
   Modern single-page app UI. Distinct design language.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b1b2b;
  --ink-2: #33475b;
  --muted: #64748b;
  --line: #e4eaf1;
  --line-2: #eef2f7;
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --brand: #0891b2;
  --brand-2: #2563eb;
  --brand-ink: #06546b;
  --brand-lt: #e2f6fb;
  --accent: #f97316;
  --accent-lt: #fff1e6;
  --ok: #16a34a;
  --ok-lt: #e7f7ec;
  --grad: linear-gradient(120deg, #06b6d4 0%, #2563eb 100%);
  --grad-dark: linear-gradient(140deg, #0b1b2b 0%, #0e3345 60%, #0b4a5e 100%);
  --shadow-xs: 0 1px 2px rgba(11, 27, 43, 0.06);
  --shadow-sm: 0 6px 20px rgba(13, 42, 66, 0.08);
  --shadow: 0 18px 45px rgba(13, 42, 66, 0.12);
  --shadow-lg: 0 30px 70px rgba(13, 42, 66, 0.20);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}
h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 0.95rem; }
::selection { background: rgba(8, 145, 178, 0.2); }

.wrap { width: min(1220px, 92vw); margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(8, 145, 178, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(8, 145, 178, 0.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-wa { background: #1eb954; color: #fff; box-shadow: 0 12px 26px rgba(30, 185, 84, 0.3); }
.btn-wa:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-soft { background: var(--brand-lt); color: var(--brand-ink); }
.btn-soft:hover { background: #d0eff6; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }

/* ---------- navbar ---------- */
.nav-shell { position: sticky; top: 0; z-index: 50; }
.nav-top {
  background: var(--grad-dark); color: #cfe8f0; font-size: 0.8rem;
  display: flex; justify-content: center; gap: 1.6rem; padding: 0.45rem 1rem; flex-wrap: wrap;
}
.nav-top a { color: #eaf7fb; font-weight: 600; }
.nav-top .dot { opacity: 0.4; }
.navbar {
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.2rem; padding: 0.85rem 0; }
.logo { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.28); background: var(--grad); flex: none;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-txt { display: grid; line-height: 1.1; }
.logo-txt b { font-family: 'Sora'; font-size: 1.12rem; font-weight: 700; }
.logo-txt span { font-size: 0.72rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-left: 0.5rem; }
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink-2);
  transition: background 0.14s ease, color 0.14s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.active { background: var(--brand-lt); color: var(--brand-ink); }
.nav-search {
  margin-left: auto; display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.9rem; width: min(320px, 30vw);
}
.nav-search input { border: none; outline: none; background: transparent; flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 1.15rem; transition: all 0.14s ease;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--shadow-xs);
}
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1.3rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 55% at 78% 8%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(40% 50% at 8% 20%, rgba(6, 182, 212, 0.18), transparent 70%),
    radial-gradient(50% 60% at 92% 90%, rgba(249, 115, 22, 0.1), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; }
.hero p.sub { font-size: 1.12rem; color: var(--ink-2); margin: 1.1rem 0 1.7rem; max-width: 33rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-trust div { display: grid; }
.hero-trust b { font-family: 'Sora'; font-size: 1.5rem; }
.hero-trust span { font-size: 0.82rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border-radius: var(--r-xl); padding: 1.6rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-card .frame {
  background: var(--surface-2); border-radius: var(--r-lg); aspect-ratio: 4/3; display: grid; place-items: center; padding: 1.5rem;
}
.hero-card .frame img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(13, 42, 66, 0.2)); }
.hero-card .cap { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; gap: 0.8rem; }
.hero-card .cap h4 { font-size: 1rem; }
.hero-card .cap .price { font-family: 'Sora'; font-weight: 700; color: var(--brand-ink); font-size: 1.15rem; }
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 0.7rem 1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.88rem;
}
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-lt); }
.float-chip.one { top: 5%; left: -5%; animation: floaty 5s ease-in-out infinite; }
.float-chip.two { top: 34%; right: -5%; animation: floaty 6s ease-in-out infinite 0.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .t h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 0.5rem; }
.section-head .t p { color: var(--muted); margin-top: 0.4rem; }
.link-more { color: var(--brand-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.link-more:hover { gap: 0.65rem; }

/* ---------- category bento ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cat .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: var(--brand-lt); margin-bottom: 0.9rem; }
.cat h4 { font-size: 1.05rem; }
.cat p { font-size: 0.84rem; color: var(--muted); margin: 0.3rem 0 0.7rem; }
.cat .n { font-size: 0.8rem; font-weight: 700; color: var(--brand-ink); }
.cat::after { content: '→'; position: absolute; top: 1.4rem; right: 1.4rem; opacity: 0; transform: translateX(-6px); transition: all 0.18s ease; color: var(--brand); font-weight: 700; }
.cat:hover::after { opacity: 1; transform: translateX(0); }
.cat:nth-child(4n+1) .ic { background: #e2f6fb; }
.cat:nth-child(4n+2) .ic { background: #e8edfd; }
.cat:nth-child(4n+3) .ic { background: #fff1e6; }
.cat:nth-child(4n) .ic { background: #e7f7ec; }

/* ---------- product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1.3rem; }
.pcard {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard .media { position: relative; background: var(--surface-2); aspect-ratio: 4/3; display: grid; place-items: center; padding: 1.1rem; overflow: hidden; }
.pcard .media img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.3s ease; filter: drop-shadow(0 12px 16px rgba(13,42,66,0.14)); }
.pcard:hover .media img { transform: scale(1.06); }
.tag-deal {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 0.72rem; line-height: 1;
  padding: 0.36rem 0.62rem; border-radius: 999px; box-shadow: 0 6px 14px rgba(249, 115, 22, 0.4);
}
.quick {
  position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; opacity: 0; transform: translateY(8px);
  transition: all 0.2s ease; background: rgba(11,27,43,0.9); color: #fff; border-radius: 12px; padding: 0.55rem; font-weight: 600; font-size: 0.85rem; backdrop-filter: blur(4px);
}
.pcard:hover .quick { opacity: 1; transform: translateY(0); }
.pcard .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.pcard .toprow { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pcard .brand { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .stk { font-size: 0.68rem; font-weight: 700; white-space: nowrap; flex: none; }
.pcard .stk.in { color: var(--ok); }
.pcard .stk.out { color: #d9542b; }
.pcard h3 { font-family: 'Inter'; font-size: 0.98rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.pcard h3 a:hover { color: var(--brand-ink); }
.pcard .desc { font-size: 0.84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.6rem; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price .old { font-size: 0.78rem; color: #9aa8b5; text-decoration: line-through; }
.price .now { font-family: 'Sora'; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.add-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-lt); color: var(--brand-ink); display: grid; place-items: center; font-size: 1.2rem; transition: all 0.15s ease; flex: none; }
.add-btn:hover { background: var(--grad); color: #fff; transform: translateY(-2px); }

/* ---------- features strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.feature .ic { font-size: 1.7rem; margin-bottom: 0.6rem; }
.feature h4 { font-size: 1rem; }
.feature p { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- brands ---------- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.brand-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; text-align: center; font-family: 'Sora'; font-weight: 600; color: var(--ink-2); min-height: 70px; display: grid; place-items: center; transition: all 0.15s ease; }
.brand-tile:hover { color: var(--brand-ink); border-color: var(--brand); transform: translateY(-3px); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-dark); color: #fff; border-radius: var(--r-xl); padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 80% at 90% 10%, rgba(6,182,212,0.35), transparent 70%); }
.cta-band .t { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: #b8d4de; margin-top: 0.5rem; max-width: 30rem; }
.cta-band .btns { position: relative; z-index: 1; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- shop layout ---------- */
.shop-hero { padding: 2.5rem 0 1rem; }
.shop-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.shop-layout { display: grid; grid-template-columns: 244px 1fr; gap: 1.6rem; align-items: start; padding-bottom: 4rem; }
/* denser, evenly-sized product grid on the shop page (4-up on desktop) */
#results { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); }
.filters { position: sticky; top: 120px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
/* prevent selects/inputs from expanding the grid track to their intrinsic (longest-option) width */
.filter-group, .filters select, .filter-search { min-width: 0; max-width: 100%; }
.filters select { text-overflow: ellipsis; }
.filter-group h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.7rem; }
.filter-opt { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0; font-size: 0.9rem; cursor: pointer; }
.filter-opt input { accent-color: var(--brand); width: 16px; height: 16px; }
.filter-opt .c { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
.filters select { width: 100%; padding: 0.65rem 0.8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.92rem; color: var(--ink); cursor: pointer; }
.filters select:focus { outline: 2px solid var(--brand-lt); border-color: var(--brand); }
.filter-search {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.55rem 0.8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
}
.filter-search:focus-within { outline: 2px solid var(--brand-lt); border-color: var(--brand); }
.filter-search .ic, .nav-search .ic { width: 17px; height: 17px; color: var(--muted); flex: none; }
.filter-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 0.92rem; }
.filter-clear {
  width: 100%; margin-top: 0.2rem; padding: 0.6rem 0.9rem; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--brand-ink);
  font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: all 0.14s ease;
}
.filter-clear:hover { border-color: var(--brand); background: var(--brand-lt); }

.shop-main { min-width: 0; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); font-weight: 600; }
.shop-toolbar .right { display: flex; align-items: center; gap: 0.7rem; }
.shop-toolbar select { padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.filters-toggle { display: none; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chip { padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 0.85rem; color: var(--ink-2); transition: all 0.14s ease; }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.empty { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; display: grid; gap: 1rem; justify-items: center; color: var(--muted); }

/* ---------- product detail ---------- */
.pd { padding: 1.8rem 0 3rem; }
.crumb { display: flex; gap: 0.4rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumb a { color: var(--brand-ink); font-weight: 600; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.2rem; align-items: start; }
.pd-gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); position: sticky; top: 120px; }
.pd-main { position: relative; background: var(--surface-2); border-radius: var(--r); aspect-ratio: 4/3; display: grid; place-items: center; padding: 1.8rem; }
.pd-main img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(13,42,66,0.18)); }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.pd-thumb { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0.4rem; aspect-ratio: 1/1; display: grid; place-items: center; transition: all 0.14s ease; }
.pd-thumb img { max-height: 100%; object-fit: contain; }
.pd-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-lt); }
.pd-info { display: grid; gap: 1.1rem; align-content: start; }
.pd-chip { width: fit-content; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--brand-lt); color: var(--brand-ink); font-weight: 700; font-size: 0.8rem; }
.pd-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.pd-brand { color: var(--muted); }
.pd-brand b { color: var(--ink); }
.pd-price { display: flex; align-items: baseline; gap: 0.9rem; }
.pd-price .now { font-family: 'Sora'; font-weight: 800; font-size: 2rem; color: var(--ink); }
.pd-price .old { font-size: 1.05rem; color: #9aa8b5; text-decoration: line-through; }
.pd-price .save { background: var(--accent-lt); color: #c2410c; font-weight: 700; font-size: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 8px; }
.pd-stock { font-weight: 700; font-size: 0.9rem; }
.pd-stock.in { color: var(--ok); }
.pd-stock.out { color: #d9542b; }
.pd-lead { color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 42px; font-size: 1.1rem; color: var(--ink-2); }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 40px; text-align: center; font-weight: 700; }
.pd-buy { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.pd-assure { list-style: none; display: grid; gap: 0.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; }
.pd-assure li { font-size: 0.9rem; display: flex; gap: 0.6rem; align-items: center; }
.pd-tabs { margin-top: 2.5rem; }
.tabbar { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabbar button { padding: 0.8rem 1.2rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabbar button.active { color: var(--brand-ink); border-color: var(--brand); }
.tabpane { display: none; padding: 1.8rem 0; }
.tabpane.active { display: block; }
.tabpane.prose { max-width: 60rem; }
.tabpane.prose h3 { font-family: 'Sora'; margin: 1.4rem 0 0.5rem; }
.tabpane.prose p { margin-bottom: 0.9rem; color: var(--ink-2); }
.spec-table { width: 100%; border-collapse: collapse; max-width: 44rem; }
.spec-table tr:nth-child(even) { background: var(--surface-2); }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 1rem; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
.spec-table td { font-weight: 600; }
.pd-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pd-tags span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- generic page (about/contact) ---------- */
.page-hero { padding: 3.5rem 0 1rem; }
.page-hero .wrap { max-width: 760px; }
.prose-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow-xs); }
.mini-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.mini-card p { color: var(--muted); font-size: 0.92rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.form-grid input, .form-grid select, .form-grid textarea { padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--brand-lt); border-color: var(--brand); }

/* ---------- footer ---------- */
.footer { background: var(--grad-dark); color: #b8d4de; padding: 3.5rem 0 1.6rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer a, .footer p { display: block; color: #a7c6d1; font-size: 0.9rem; margin-bottom: 0.55rem; }
.footer a:hover { color: #fff; }
.footer .f-brand b { font-family: 'Sora'; color: #fff; font-size: 1.25rem; display: block; margin-bottom: 0.7rem; }
.footer .f-brand p { max-width: 24rem; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: #7ea3b1; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11,27,43,0.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 60; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer-clip {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 70;
  display: none;
}
.drawer-clip.show { display: block; }
.drawer {
  position: absolute; top: 0; right: 0; width: min(420px, 92vw); height: 100%; background: var(--surface);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); pointer-events: auto;
}
.drawer-clip.show .drawer { transform: translateX(0); }
@starting-style { .drawer-clip.show .drawer { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: grid; gap: 0.9rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.8rem; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem; }
.cart-item .thumb { width: 64px; height: 64px; background: var(--surface-2); border-radius: 10px; display: grid; place-items: center; padding: 0.3rem; }
.cart-item .thumb img { max-height: 100%; object-fit: contain; }
.cart-item h5 { font-family: 'Inter'; font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.cart-item .meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.3rem; }
.cart-item .qmini { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.cart-item .qmini button { width: 26px; height: 26px; font-size: 0.9rem; }
.cart-item .qmini span { min-width: 22px; text-align: center; font-size: 0.82rem; font-weight: 700; }
.cart-item .rm { color: #b0bcc7; font-size: 1.1rem; }
.cart-item .rm:hover { color: #d9542b; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; display: grid; gap: 0.8rem; justify-items: center; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem; display: grid; gap: 0.7rem; }
.drawer-foot .row { display: flex; justify-content: space-between; font-weight: 700; }
.drawer-foot .row .tot { font-family: 'Sora'; font-size: 1.3rem; color: var(--brand-ink); }
.drawer-foot small { color: var(--muted); font-weight: 400; }

/* ---------- quick view modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.2rem; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.modal-wrap.show { opacity: 1; pointer-events: auto; }
.modal-bg { position: absolute; inset: 0; background: rgba(11,27,43,0.55); backdrop-filter: blur(3px); }
.modal { position: relative; background: var(--surface); border-radius: var(--r-lg); width: min(760px, 100%); max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); font-size: 1.2rem; z-index: 2; }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 1.8rem; }
.modal-inner .m-media { background: var(--surface-2); border-radius: var(--r); aspect-ratio: 1/1; display: grid; place-items: center; padding: 1.4rem; }
.modal-inner .m-media img { max-height: 100%; object-fit: contain; }
.modal-inner .m-info { display: grid; gap: 0.8rem; align-content: start; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 0.6rem; width: min(360px, 92vw); }
.toast { background: var(--ink); color: #fff; padding: 0.85rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.6rem; animation: toastIn 0.25s ease; }
.toast .ok { color: #4ade80; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .float-chip { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cats, .features, .brands, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-search { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .hero-grid, .pd-grid, .modal-inner { grid-template-columns: 1fr; }
  .pd-gallery, .filters { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .float-chip { display: none; }
  .cta-band { padding: 2rem; }
}
@media (max-width: 520px) {
  .cats, .features, .brands, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.1rem; }
  .hero h1 { font-size: 2.2rem; }
  .shop-hero h1, .page-hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 2.6rem 0; }
}
