/* ==========================================================
   1 Color Specialist – B2B Shop  |  shared stylesheet
   Sections: tokens · base · layout · header/nav · buttons ·
   hero · sections · cards · listing · product · cart · forms ·
   content pages · footer · responsive
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #D63A2F;
  --brand-dark: #B22B22;
  --brand-soft: #FDECEA;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F6F7F9;
  --white: #fff;
  --ok: #16A34A;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, .14);
  --maxw: 1240px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(214, 58, 47, .45); outline-offset: 2px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--ink); color: #CBD5E1; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar .promo-msg { color: #fff; font-weight: 600; }
.topbar .promo-msg b { color: #FCA5A5; }
.topbar ul { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-main { font-size: 1.7rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink); }
.logo-main .n { color: var(--brand); font-size: 2.1rem; margin-right: 4px; }
.logo-main .s { font-weight: 300; letter-spacing: -.02em; }
.logo-tag { font-size: .72rem; color: var(--muted); margin-top: 4px; font-weight: 500; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 46px; border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 0 20px; background: var(--bg); transition: .15s; }
.search input:focus { background: #fff; border-color: var(--brand); outline: 0; }
.search button { width: 56px; border: 0; background: var(--brand); color: #fff; border-radius: 0 999px 999px 0; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--brand-dark); }
.header-actions { display: flex; gap: 8px; }
.icon-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 10px; font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.icon-link:hover { background: var(--bg); }
.icon-link svg { width: 24px; height: 24px; }
.icon-link .count { position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .68rem; display: grid; place-items: center; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--bg); border-radius: 10px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Main navigation ---------- */
.nav { background: var(--white); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 14px 18px; font-weight: 650; font-size: .92rem; color: var(--ink-2); border-bottom: 3px solid transparent; letter-spacing: .01em; }
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-list > li.hot > a { color: var(--brand); }
.dropdown { position: absolute; left: 0; top: 100%; min-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 18px; display: none; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; z-index: 60; }
.nav-list > li:hover > .dropdown, .nav-list > li:focus-within > .dropdown { display: grid; }
.dropdown a { padding: 8px 10px; border-radius: 8px; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.dropdown a img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-social { display: flex; gap: 8px; }
.nav-social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); font-weight: 800; font-size: .78rem; color: var(--ink-2); }
.nav-social a:hover { background: var(--brand); color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 650; border: 2px solid transparent; cursor: pointer; transition: .15s; font-size: .95rem; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(214, 58, 47, .3); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1000px 500px at 85% 20%, rgba(214, 58, 47, .55), transparent 60%), linear-gradient(135deg, #0B1220 0%, #1B2A47 100%); color: #fff; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FCA5A5; margin-bottom: 14px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #FCA5A5; }
.hero p.lead { font-size: 1.15rem; color: #CBD5E1; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-points { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 30px; font-size: .9rem; color: #E2E8F0; }
.hero-points span::before { content: "✓"; color: #4ADE80; font-weight: 800; margin-right: 8px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; transform: rotate(3deg); }
.hero-art img { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; }
.hero-art img:nth-child(2) { transform: translateY(24px); }
.hero-art img:nth-child(3) { transform: translateY(-12px); }
.hero-art img:nth-child(4) { transform: translateY(12px); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, #0B1220, #1B2A47); color: #fff; padding: 44px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.page-hero p { color: #CBD5E1; margin: 0; max-width: 680px; }
.page-hero.brand { background: linear-gradient(135deg, #B22B22, #D63A2F 60%, #F97316); }
.crumbs { font-size: .82rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; }
.page-hero .crumbs { color: #94A3B8; padding: 0 0 14px; }
.page-hero .crumbs a:hover { color: #fff; }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item b { display: block; color: var(--ink); font-size: .95rem; }
.trust-item small { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.link-arrow { font-weight: 650; color: var(--brand); white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.cat-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-card .t { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 650; color: var(--ink); }
.cat-card .t::after { content: "→"; color: var(--brand); transition: .2s; }
.cat-card:hover .t::after { transform: translateX(4px); }
.cat-grid.compact { grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-grid.compact .cat-card .t { padding: 10px; font-size: .8rem; justify-content: center; text-align: center; }
.cat-grid.compact .cat-card .t::after { display: none; }
.cat-grid.compact .cat-card img { aspect-ratio: 1; }

/* Scroll rail (carousel via scroll-snap) */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 40%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.2rem; z-index: 2; }
.rail-btn:hover { background: var(--brand); color: #fff; }
.rail-btn.prev { left: -18px; } .rail-btn.next { right: -18px; }

/* Promo band */
.promo-band { background: linear-gradient(100deg, #FFF1F0 0%, #FFE4E0 50%, #FFD9A8 100%); border-radius: 22px; padding: 36px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; }
.promo-band h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 8px; }
.promo-band h2 b { color: var(--brand); }
.promo-band p { margin: 0 0 18px; color: var(--text); }
.promo-band img { width: 320px; height: 200px; object-fit: cover; border-radius: 16px; flex-shrink: 0; box-shadow: var(--shadow); }

/* ---------- Product card ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; position: relative; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card-img { position: relative; aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; z-index: 1; }
.badge.new { background: var(--ok); }
.badge.sale { background: var(--brand); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 650; color: var(--ink); font-size: .95rem; line-height: 1.3; min-height: 2.5em; }
.card-title:hover { color: var(--brand); }
.card-price { color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.card-price small { color: var(--muted); font-weight: 500; font-size: .75rem; margin-left: 4px; }
.card-meta { font-size: .78rem; color: var(--muted); }
.swatches { display: flex; gap: 5px; margin: 6px 0 8px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .2); display: block; }
.card-actions { margin-top: auto; display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid.five { grid-template-columns: repeat(5, 1fr); }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(135deg, #0B1220, #1B2A47); color: #fff; border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: #CBD5E1; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Listing layout ---------- */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; padding: 28px 0 64px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; position: sticky; top: 100px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; font-weight: 800; color: var(--ink); }
.filters-head button { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; font-size: .85rem; }
.fgroup { border-top: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-of-type { border-top: 0; }
.fgroup h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.fgroup label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.fgroup input[type=checkbox], .fgroup input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; }
.fgroup .n { margin-left: auto; color: var(--muted); font-size: .78rem; }
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; }
.chip-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-colors label { padding: 0; }
.chip-colors input { position: absolute; opacity: 0; }
.chip-colors span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); display: block; cursor: pointer; }
.chip-colors input:checked + span { box-shadow: 0 0 0 2px var(--brand); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .result { color: var(--muted); font-size: .92rem; }
.toolbar select { height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.filter-btn { display: none; }
.empty { display: none; text-align: center; padding: 60px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; }
.pager a.on, .pager a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.layout .grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 24px 0 56px; align-items: start; }
.gallery .main { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--bg); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.thumbs button.on, .thumbs button:hover { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy .sku { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.buy h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 12px; }
.price-big { font-size: 2rem; font-weight: 800; color: var(--brand); }
.price-big small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.tiers { width: 100%; border-collapse: collapse; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.tiers th, .tiers td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.tiers th { background: var(--bg); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.tiers td:first-child, .tiers th:first-child { text-align: left; }
.tiers tr:last-child td { border-bottom: 0; }
.tiers tr.on td { background: var(--brand-soft); font-weight: 700; color: var(--brand-dark); }
.opt { margin: 18px 0; }
.opt > label, .opt > .lbl { display: block; font-weight: 650; color: var(--ink); margin-bottom: 8px; font-size: .92rem; }
.opt .row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 550; }
.pill input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 44px; border: 0; background: var(--bg); cursor: pointer; font-size: 1.2rem; }
.qty input { width: 80px; text-align: center; border: 0; font-weight: 700; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.buy-actions .btn { flex: 1; min-width: 180px; }
.mini-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; font-size: .88rem; }
.mini-points div::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.tabs { border-top: 1px solid var(--line); padding: 40px 0; }
.tab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.panel { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.panel ul li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; display: flex; justify-content: space-between; gap: 12px; }
.panel ul li:last-child { border: 0; }
.panel ul li span:first-child { color: var(--muted); }

/* ---------- Cart / tables ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 32px 0 64px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table th { text-align: left; background: var(--bg); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; }
.cart-table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 16px; align-items: center; }
.cart-item img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cart-item b { color: var(--ink); display: block; }
.cart-item small { color: var(--muted); }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 0; }
.remove:hover { color: var(--brand); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; box-shadow: var(--shadow-sm); }
.summary h3 { margin-bottom: 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.note { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: 10px; padding: 12px 14px; font-size: .85rem; margin: 14px 0; }
.note.info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form h3 { margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .86rem; color: var(--ink); }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 4px rgba(214, 58, 47, .12); }
.dropzone { border: 2px dashed #CBD5E1; border-radius: 18px; background: var(--bg); padding: 48px 24px; text-align: center; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { width: 48px; height: 48px; color: var(--brand); margin: 0 auto 12px; }
.dropzone small { color: var(--muted); display: block; margin-top: 10px; }
.file-list { margin-top: 14px; display: grid; gap: 8px; }
.file-list li { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 32px 0 64px; align-items: start; }

/* ---------- Content pages ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-size: 2.2rem; color: var(--brand); font-weight: 800; }
.stats span { color: var(--muted); font-size: .9rem; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 22px 20px; color: var(--text); }
.faq-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.faq-cats a { padding: 8px 16px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: .88rem; }
.faq-cats a:hover { background: var(--brand); color: #fff; }
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 64px; align-items: start; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 100px; }
.side-nav a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.side-nav a:hover { background: var(--bg); }
.side-nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi small { color: var(--muted); display: block; }
.kpi b { font-size: 1.7rem; color: var(--ink); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #DCFCE7; color: #166534; }
.status.wait { background: #FEF3C7; color: #92400E; }
.status.proc { background: #DBEAFE; color: #1E40AF; }
.timeline { display: grid; gap: 0; }
.timeline li { padding: 0 0 20px 28px; border-left: 2px solid var(--line); position: relative; margin-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline b { color: var(--ink); display: block; }
.map-ph { border-radius: var(--radius); background: linear-gradient(135deg, #DBEAFE, #E0E7FF); aspect-ratio: 16/9; display: grid; place-items: center; color: #3730A3; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: #0B1220; color: #94A3B8; padding: 56px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer .logo-main { color: #fff; }
.footer form { display: flex; margin-top: 16px; }
.footer form input { flex: 1; min-width: 0; height: 44px; border-radius: 999px 0 0 999px; border: 0; padding: 0 18px; background: #1E293B; color: #fff; }
.footer form button { border: 0; background: var(--brand); color: #fff; padding: 0 20px; border-radius: 0 999px 999px 0; font-weight: 650; cursor: pointer; }
.footer-bottom { border-top: 1px solid #1E293B; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 200; font-weight: 600; font-size: .92rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Mobile drawer */
.drawer-mask { display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .cat-grid.compact { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .grid, .grid.five { grid-template-columns: repeat(3, 1fr); }
  .layout .grid { grid-template-columns: repeat(2, 1fr); }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar .promo-msg { display: none; }
  .topbar ul { justify-content: center; width: 100%; font-size: .76rem; gap: 14px; }
  .header .container { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .menu-toggle { display: grid; place-items: center; order: 0; }
  .logo { order: 1; margin-right: auto; }
  .header-actions { order: 2; }
  .icon-link span.t { display: none; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .nav { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 100; transform: translateX(-100%); transition: transform .28s; overflow-y: auto; box-shadow: var(--shadow-lg); border: 0; }
  body.nav-open .nav { transform: none; }
  body.nav-open .drawer-mask { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 90; }
  .nav .container { flex-direction: column; align-items: stretch; padding: 56px 0 20px; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li > a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; display: grid; min-width: 0; box-shadow: none; border: 0; padding: 4px 12px 12px; grid-template-columns: 1fr; background: var(--bg); border-radius: 0; max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; }
  .nav-list > li.open > .dropdown { max-height: 900px; padding: 8px 12px 12px; }
  .nav-list > li:hover > .dropdown { display: grid; }
  .nav-social { padding: 16px 24px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .hero-art { max-width: 420px; transform: none; }
  .section { padding: 44px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .promo-band { flex-direction: column; text-align: center; padding: 28px 22px; }
  .promo-band img { width: 100%; max-width: 360px; }
  .cta { flex-direction: column; text-align: center; padding: 32px 22px; }
  .layout { grid-template-columns: 1fr; padding-top: 16px; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(340px, 90vw); z-index: 110; border-radius: 0; overflow-y: auto; transform: translateX(100%); transition: transform .28s; top: 0; }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-mask { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 100; }
  .filter-btn { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .tab-grid { grid-template-columns: 1fr; }
  .cart-layout, .split { grid-template-columns: 1fr; }
  .summary, .side-nav { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .dash { grid-template-columns: 1fr; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; }
  .side-nav a { white-space: nowrap; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail-btn { display: none; }
  /* Cart table → stacked cards */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-top: 1px solid var(--line); padding: 12px 0; }
  .cart-table tr:first-child { border-top: 0; }
  .cart-table td { border: 0; padding: 6px 16px; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .grid, .grid.five, .layout .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rail { grid-auto-columns: 64%; gap: 12px; }
  .cat-grid { gap: 12px; }
  .cat-grid.compact { grid-template-columns: repeat(3, 1fr); }
  .trust .container { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .card-body { padding: 10px 12px 12px; }
  .card-actions .btn { padding: 0 8px; font-size: .78rem; }
  .hero-points { gap: 8px 18px; }
  .buy-actions .btn { min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .logo-main { font-size: 1.4rem; }
  .logo-main .n { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .header, .nav, .footer, .filters { display: none; } }
