/* ===== SarvaServer storefront: layout, header/footer and home page ===== */
@font-face { font-family: iransans; font-weight: 300; font-display: swap; src: url(../fonts/IRANSansWeb/IRANSansWeb_Light.woff2) format("woff2"); }
@font-face { font-family: iransans; font-weight: 400; font-display: swap; src: url(../fonts/IRANSansWeb/IRANSansWeb.woff2) format("woff2"); }
@font-face { font-family: iransans; font-weight: 500; font-display: swap; src: url(../fonts/IRANSansWeb/IRANSansWeb_Medium.woff2) format("woff2"); }
@font-face { font-family: iransans; font-weight: 700; font-display: swap; src: url(../fonts/IRANSansWeb/IRANSansWeb_Bold.woff2) format("woff2"); }

:root {
    --brand: #e5a00d;
    --brand-strong: #c98a00;
    --brand-ink: #7a5200;      /* brand-coloured text on light backgrounds (AA) */
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #5b6b80;
    --line: #e2e8f0;
    --surface: #f8fafc;
    --dark: #111827;
    --dark-2: #1f2937;
    --ok: #15803d;
    --bad: #b91c1c;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
    --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: iransans, Tahoma, sans-serif; font-size: 15px; line-height: 1.9;
    color: var(--ink); background: #fff; padding-bottom: 0;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 8px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 8px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; }
.i-xl { width: 56px; height: 56px; stroke-width: 1.2; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 20px;
    border: 1px solid transparent; border-radius: 8px; font-weight: 500; cursor: pointer; text-align: center;
    transition: background-color .15s, border-color .15s, color .15s; line-height: 1.5;
}
.btn-sm { min-height: 36px; padding: 4px 14px; font-size: 13.5px; }
.btn-lg { min-height: 50px; padding: 8px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #1a1200; border-color: var(--brand); font-weight: 700; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-outline { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #e2e8f0; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px;
    border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--surface); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 500; }
.link-more:hover { text-decoration: underline; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }

.mainbar { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.logo { flex: none; display: block; }
.logo img { display: block; height: 42px; width: auto; }
.nav-toggle { display: none; }
.actions { display: flex; align-items: center; gap: 8px; flex: none; }

.search { position: relative; flex: 1 1 auto; max-width: 520px; margin-inline: auto; min-width: 0; display: flex; align-items: center; }
.search input {
    width: 100%; height: 48px; padding: 0 44px 0 108px; border: 2px solid #cbd5e1; border-radius: 10px; background: var(--surface);
    text-overflow: ellipsis;
}
.search input:hover { border-color: #94a3b8; }
.search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(229, 160, 13, .25); }
.search-ico { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.search-submit { position: absolute; inset-inline-end: 5px; min-height: 38px; }
.search-panel {
    position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16); padding: 12px; z-index: 60; max-height: 70vh; overflow: auto;
}
.search-title { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; }
.chip:hover { border-color: var(--brand); background: #fff8e6; }
.sg-group { margin-bottom: 8px; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.sg-item:hover, .sg-item[aria-selected="true"] { background: #fff8e6; }
.sg-item img, .sg-item .sg-ph { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--surface); flex: none; }
.sg-text { min-width: 0; }
.sg-text strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.6; }
.sg-text small { color: var(--muted); font-size: 12px; }
.sg-all { display: block; text-align: center; padding: 8px; border-top: 1px solid var(--line); color: var(--brand-ink); font-weight: 500; }
.sg-empty { padding: 12px; color: var(--muted); text-align: center; }

.navbar { border-top: 1px solid var(--line); background: #fff; }
.navbar-in { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.nav-close { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.cat-menu { position: relative; }
.cat-trigger {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 16px; background: var(--dark); color: #fff;
    border: 0; border-radius: 8px; cursor: pointer; font-weight: 500;
}
.cat-trigger:hover { background: var(--dark-2); }
.cat-trigger[aria-expanded="true"] .i-sm { transform: rotate(180deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 69; }

/* ----- Hero ----- */
.hero { background: var(--dark); color: #fff; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 36px 36px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding-block: 44px 28px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; font-weight: 700; }
.hero .lead { margin-top: 12px; color: #cbd5e1; font-size: 17px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { background: #fff; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 330px; justify-self: end; width: 100%; max-width: 445px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 27% center; display: block; }
.intents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 28px; }
.intents a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius);
    background: rgba(255, 255, 255, .05); height: 100%;
}
.intents a:hover { background: rgba(255, 255, 255, .11); border-color: var(--brand); }
.intents .i { color: var(--brand); width: 24px; height: 24px; }
.intents strong { display: block; font-weight: 500; line-height: 1.6; }
.intents small { color: #94a3b8; font-size: 12.5px; }

/* ----- Sections ----- */
.section { padding-block: 44px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 22px; line-height: 1.6; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 14px; }
.section-more { text-align: center; margin-top: 24px; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.grid { display: grid; gap: 16px; }
.grid-products { grid-template-columns: repeat(4, 1fr); }
.grid-services { grid-template-columns: repeat(3, 1fr); }
.grid-articles { grid-template-columns: repeat(3, 1fr); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.cat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #fff8e6; color: var(--brand-ink); font-size: 26px; }
.cat-ico img { width: 40px; height: 40px; object-fit: contain; }
.cat-name { font-weight: 500; line-height: 1.6; }

/* Ready solutions */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.solution-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.solution-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.solution-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff8e6; color: var(--brand-ink); }
.solution-badge { position: absolute; top: 16px; inset-inline-end: 16px; padding: 2px 10px; border-radius: 999px; background: #fff8e6; color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.solution-card h3 { font-size: 16px; font-weight: 700; line-height: 1.7; }
.solution-card > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.solution-points { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.solution-points li { display: flex; align-items: center; gap: 6px; }
.solution-points .i { color: var(--brand-ink); flex: none; }
.solution-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--brand-ink); }
@media (max-width: 900px) { .solution-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .solution-grid { grid-template-columns: 1fr; } }

/* Product card */
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: box-shadow .15s, border-color .15s; }
.pcard:hover { box-shadow: var(--shadow); border-color: #cbd5e1; }
.pcard-media, .acard-media { display: block; background: var(--surface); aspect-ratio: 4 / 3; }
.pcard-media img, .acard-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.acard-media img { object-fit: cover; }
.pcard-ph { display: grid; place-items: center; width: 100%; height: 100%; color: #94a3b8; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 14px; gap: 6px; }
.pcard-brand { font-size: 12px; color: var(--brand-ink); font-weight: 700; letter-spacing: .3px; }
.pcard-title { font-size: 15px; line-height: 1.7; font-weight: 700; }
.pcard-title a:hover { color: var(--brand-ink); }
.pcard-pn { font-size: 12px; color: var(--muted); text-align: end; }
.specs { display: grid; gap: 0; font-size: 13px; }
.specs > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); flex: none; }
.specs dd { font-weight: 500; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.pcard-desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 10px; }
.stock { font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--ok); }
.stock-out { color: var(--bad); }
.price { text-align: end; line-height: 1.5; }
.price-old { display: block; font-size: 12px; color: var(--muted); }
.price-now strong { font-size: 17px; }
.price-now small { color: var(--muted); font-size: 12px; }
.price-call { font-weight: 500; color: var(--ink-2); }
.pcard-actions { display: flex; gap: 8px; margin-top: 8px; }
.pcard-actions .btn { flex: 1; }

/* Skeleton loading (listing grid while filters apply) */
.sk-card { pointer-events: none; }
.sk { background: linear-gradient(90deg, #eef1f5 25%, #e2e7ee 37%, #eef1f5 63%); background-size: 400% 100%; animation: sk-shimmer 1.3s ease infinite; border-radius: 6px; }
.sk-media { aspect-ratio: 4 / 3; border-radius: 0; }
.sk-line { height: 14px; }
.sk-w40 { width: 40%; } .sk-w50 { width: 50%; } .sk-w70 { width: 70%; }
.sk-price { height: 20px; margin-top: auto; }
@keyframes sk-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* Configurator CTA */
.configurator {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 36px; border-radius: 16px;
    background: linear-gradient(135deg, #fff8e6, #fdebc0); border: 2px solid var(--brand);
}
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.configurator h2 { font-size: 28px; line-height: 1.5; margin: 4px 0 8px; }
.configurator p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 20px; max-width: 480px; }
.steps { display: grid; gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 12px; flex: none; }
.steps .i { color: var(--brand-ink); }

/* Tabs */
.tablist-wrap { overflow-x: auto; overflow-y: hidden; margin-bottom: 20px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tablist { display: flex; gap: 4px; min-width: max-content; }
.tab { padding: 10px 20px; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--surface); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 700; }
.tabpanel[aria-busy="true"] { opacity: .5; min-height: 200px; }

/* Services */
.scard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.scard:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.scard-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--dark); color: var(--brand); }
.scard h3 { font-size: 16px; font-weight: 700; margin-top: 4px; }
.scard p { color: var(--muted); font-size: 14px; flex: 1; }

/* Consultation / quotation */
.band { padding-block: 44px; background: var(--dark); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border-radius: 14px; background: var(--dark-2); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, .1); }
.cta-card h2 { font-size: 20px; line-height: 1.6; color: #fff; }
.cta-card p { color: #cbd5e1; flex: 1; }
.cta-ico { color: var(--brand); }
.cta-card .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-card .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* Articles */
.acard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; height: 100%; }
.acard:hover { box-shadow: var(--shadow); }
.acard-media { aspect-ratio: 16 / 9; }
.acard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.acard-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.tag { background: #fff8e6; color: var(--brand-ink); padding: 0 10px; border-radius: 999px; font-weight: 500; }
.acard h3 { font-size: 16px; line-height: 1.7; font-weight: 700; }
.acard h3 a:hover { color: var(--brand-ink); }
.acard-lead { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

/* Trust */
.trust { border-block: 1px solid var(--line); background: var(--surface); padding-block: 22px; }
.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; }
.trust-list .i { color: var(--brand-ink); margin-top: 3px; }
.trust-list h3 { font-size: 14px; font-weight: 700; line-height: 1.7; }
.trust-list p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* Final CTA */
.final-cta { background: var(--brand); color: #1a1200; padding-block: 36px; }
.final-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.final-cta h2 { font-size: 24px; line-height: 1.6; }
.final-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.final-cta .btn-primary { background: var(--dark); border-color: var(--dark); color: #fff; }
.final-cta .btn-primary:hover { background: #000; }
.final-cta .btn-light { border-color: #1a1200; }

/* Footer */
.site-footer { background: var(--dark); color: #cbd5e1; margin-top: 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; padding-block: 40px 28px; }
.footer-title { font-size: 15px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-about p { color: #94a3b8; font-size: 13.5px; }
.site-footer li a { display: inline-block; padding: 2px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 14px; font-size: 12.5px; color: #94a3b8; }

/* Mobile quick actions */
.mobile-bar { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .grid-products { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .hide-md { display: none; }
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .mainbar { flex-wrap: wrap; gap: 10px; }
    .logo { margin-inline-end: auto; }
    .search { order: 5; flex-basis: 100%; }
    .navbar {
        position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 86vw); z-index: 70; overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; border: 0; box-shadow: -8px 0 24px rgba(0, 0, 0, .25);
    }
    .navbar.open { transform: none; visibility: visible; }
    .navbar-in { flex-direction: column; align-items: stretch; padding-block: 12px; }
    .nav-close { display: inline-flex; align-self: flex-end; }
    .cat-trigger { display: none; }
    .cat-panel { display: block; position: static; width: auto; border: 0; box-shadow: none; padding: 0; }
    .nav-links { flex-direction: column; border-top: 1px solid var(--line); padding-top: 8px; }
    .hero-in { grid-template-columns: 1fr; padding-block: 28px 20px; gap: 20px; }
    .hero-media { display: none; }
    .hero .lead { font-size: 15px; }
    .intents { grid-template-columns: 1fr 1fr; }
    .grid-products { grid-template-columns: repeat(2, 1fr); }
    .grid-services, .grid-articles { grid-template-columns: 1fr 1fr; }
    .configurator, .split { grid-template-columns: 1fr; }
    .configurator { padding: 24px; }
    .final-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .hide-sm { display: none; }
    .hero-cta .btn { flex: 1 1 100%; }
    .intents { grid-template-columns: 1fr; }
    .intents a { padding: 10px 12px; }
    .grid-products, .grid-services, .grid-articles { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding-block: 32px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .final-actions .btn { flex: 1 1 100%; }
    .search-submit { display: none; }
    .search input { padding: 0 44px 0 12px; }
    body { padding-bottom: 60px; }
    .mobile-bar {
        display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 55; background: var(--dark);
        border-top: 2px solid var(--brand);
    }
    .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 4px; color: #fff; font-size: 12px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
.cat-ico .pcard-ph { color: var(--brand-ink); } .cat-ico .i-xl { width: 28px; height: 28px; stroke-width: 1.7; }

/* Category accordion menu */
.cat-panel {
    display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: 300px; max-height: 70vh; overflow-y: auto; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(15, 23, 42, .18); padding: 8px;
}
.cat-panel.open { display: block; }
.cat-root-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 12px; background: none; border: 0; border-radius: 8px; cursor: pointer; font-weight: 500; text-align: start; }
.cat-root-btn:hover { background: var(--surface); }
.cat-root-btn[aria-expanded="true"] { background: #fff8e6; }
.cat-root-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.cat-sub { padding: 4px 12px 8px 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--brand); margin: 2px 12px 6px 0; margin-inline: 12px 0; }
.cat-sub a { display: block; padding: 5px 8px; color: var(--ink-2); font-size: 14px; border-radius: 6px; }
.cat-sub a:hover { background: var(--surface); color: var(--brand-ink); }
.cat-sub .cat-all { font-weight: 700; color: var(--brand-ink); }
.cat-sub-2 { padding-inline-start: 14px; }
.cat-sub-2 a { font-size: 13px; color: var(--muted); }
.nav-contact { display: flex; gap: 18px; margin-inline-start: auto; font-size: 13px; color: var(--ink-2); }
.nav-contact a { display: inline-flex; align-items: center; gap: 6px; }
.nav-contact a:hover { color: var(--brand-ink); }
.nav-contact .i { width: 16px; height: 16px; }

/* Product carousel */
.carousel-nav { display: flex; gap: 8px; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.carousel-item { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; min-width: 250px; }
.carousel-item[hidden] { display: none; }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 700; }
@media (max-width: 1100px) { .carousel-item { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 900px) {
    .cat-panel { position: static; width: auto; max-height: none; border: 0; box-shadow: none; padding: 0; display: block; }
    .nav-contact { flex-direction: column; gap: 6px; margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
    .carousel-item { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) { .carousel-item { flex-basis: 82%; min-width: 0; } .carousel-nav { display: none; } }
.pcard-media, .acard-media { position: relative; }


/* ===== Blog ===== */
.page-top { padding-block: 16px 40px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb li + li::before { content: "‹"; margin-inline-end: 6px; color: #94a3b8; }
.breadcrumb a:hover { color: var(--brand-ink); text-decoration: underline; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 28px; line-height: 1.6; }
.page-head p, .page-desc { color: var(--muted); margin-top: 4px; }
.page-head .chips { margin-top: 12px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.grid-articles-2 { grid-template-columns: repeat(2, 1fr); }
.grid-articles-4 { grid-template-columns: repeat(4, 1fr); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; background: #fff; }
.feature-media { position: relative; display: block; background: var(--surface); min-height: 240px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start; }
.feature-body h2 { font-size: 22px; line-height: 1.7; }
.feature-body h2 a:hover { color: var(--brand-ink); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager-link { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
a.pager-link:hover { border-color: var(--brand); }
.pager-link.is-current { background: var(--dark); color: #fff; border-color: var(--dark); }
.pager-gap { align-self: center; color: var(--muted); }

.blog-side { display: grid; gap: 16px; position: sticky; top: 130px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.side-title { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.blog-search-row { display: flex; gap: 8px; }
.blog-search-row input, .field input, .field textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 12px; background: #fff; }
.blog-search-row input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(229, 160, 13, .25); }
.side-list a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 6px; }
.side-list a:hover, .side-list a.is-current { background: #fff8e6; color: var(--brand-ink); }
.side-list a.is-current { font-weight: 700; }
.side-list small { color: var(--muted); }
.side-list ul { padding-inline-start: 14px; }
.side-list ul a { font-size: 14px; color: var(--ink-2); }
.side-popular { counter-reset: pop; display: grid; gap: 8px; }
.side-popular li { counter-increment: pop; display: flex; gap: 10px; font-size: 14px; }
.side-popular li::before { content: counter(pop); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 3px; }
.side-popular a:hover { color: var(--brand-ink); }
.side-cta { background: var(--dark); color: #e2e8f0; border-color: var(--dark); }
.side-cta .side-title { color: #fff; }
.side-cta p { margin-bottom: 10px; font-size: 14px; }

.notice { background: #fff8e6; border: 1px solid var(--brand); border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; }
.post { max-width: 820px; margin-inline: auto; }
.post-head h1 { font-size: 30px; line-height: 1.7; }
.post-over { color: var(--brand-ink); font-weight: 700; }
.post-sub { color: var(--ink-2); font-size: 17px; margin-top: 4px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; color: var(--muted); font-size: 13.5px; align-items: center; }
.post-cover { margin: 0 0 20px; border-radius: 12px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-lead { font-size: 17px; color: var(--ink-2); border-inline-start: 4px solid var(--brand); padding-inline-start: 14px; margin: 0 0 24px; }
.prose { font-size: 16px; line-height: 2.1; overflow-wrap: anywhere; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; line-height: 1.7; }
.prose h3 { font-size: 18px; margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-inline-start: 24px; list-style: revert; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose blockquote { margin: 16px 0; padding: 10px 16px; background: var(--surface); border-inline-start: 4px solid var(--brand); border-radius: 6px; }
.prose a { color: var(--brand-ink); text-decoration: underline; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.post-gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.post-gallery figcaption { font-size: 12.5px; color: var(--muted); }
.post-tags { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.post-source { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.post-share { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-block: 12px; border-block: 1px solid var(--line); font-size: 14px; }
.post-share a { color: var(--brand-ink); }
.post-share a:hover { text-decoration: underline; }
.author-box { margin-top: 18px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius); }
.author-box p { color: var(--muted); font-size: 14px; }

.comments { max-width: 820px; }
.comments h2 { font-size: 22px; margin-bottom: 14px; }
.comment-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; margin-bottom: 24px; }
.comment-form h3 { font-size: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13.5px; margin-bottom: 4px; }
.field textarea { resize: vertical; line-height: 1.9; }
.form-error { color: var(--bad); font-size: 13.5px; }
ul.form-error { list-style: disc; padding-inline-start: 18px; }
.form-ok { color: var(--ok, #15803d); font-size: 13.5px; }
.form-hint { color: var(--muted); font-size: 12.5px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reply-to { background: #fff8e6; padding: 6px 12px; border-radius: 6px; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--brand-ink); cursor: pointer; padding: 0; text-decoration: underline; }
.comment-list { display: grid; gap: 12px; }
.comment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.comment.is-admin { border-color: var(--brand); background: #fffdf5; }
.comment-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.comment-head time { color: var(--muted); font-size: 12.5px; }
.comment-body { margin: 6px 0; white-space: pre-line; overflow-wrap: anywhere; }
.ticket-files { display: grid; gap: 4px; margin-top: 6px; font-size: 14px; }
.ticket-files li { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.comment-replies { margin-top: 10px; margin-inline-start: 24px; display: grid; gap: 10px; }

@media (max-width: 1100px) { .grid-articles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-side { position: static; }
    .feature { grid-template-columns: 1fr; }
    .grid-articles-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .grid-articles-2, .grid-articles-4, .form-row { grid-template-columns: 1fr; }
    .post-head h1, .page-head h1 { font-size: 23px; }
    .comment-replies { margin-inline-start: 10px; }
}
/* ===== Listing (category / search) ===== */
.grid-products-3 { grid-template-columns: repeat(3, 1fr); }
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.listing-side { position: sticky; top: 130px; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 16px; display: grid; gap: 4px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: 16px; }
.filters-close, .filters-open { display: none; }
.filter-group { border: 0; border-top: 1px solid var(--line); padding: 12px 0 8px; margin: 0; min-width: 0; }
.filter-group > legend, .filter-group > summary { font-weight: 700; font-size: 14px; padding: 0; cursor: pointer; margin-bottom: 8px; }
fieldset.filter-group > legend { float: none; }
.filter-group ul { display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.filter-node > summary, .side-node > summary { list-style: none; cursor: pointer; position: relative; padding-inline-end: 22px; }
.filter-node > summary::-webkit-details-marker, .side-node > summary::-webkit-details-marker { display: none; }
.filter-node > summary::after, .side-node > summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.filter-node[open] > summary::after, .side-node[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.filter-group .filter-sub { max-height: none; overflow: visible; margin: 4px 0 2px; padding-inline-start: 22px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-strong); flex: none; }
.check small { margin-inline-start: auto; color: var(--muted); }
.filters-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.listing-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.listing-count { color: var(--muted); margin-inline-end: auto; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; background: #fff; }
.filters-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 79; }
.search-page-form { display: flex; gap: 8px; max-width: 560px; margin-bottom: 20px; }
.search-page-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 2px solid #cbd5e1; border-radius: 10px; background: var(--surface); }
.search-page-form input:focus { outline: none; border-color: var(--brand); background: #fff; }
.search-tips { color: var(--muted); }
.search-tips .chips { margin-top: 8px; }
.empty a { text-decoration: underline; }

/* ===== Product page ===== */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; margin-bottom: 32px; }
.pdp-main { background: #fff; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 2px; background: #fff; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.thumb[aria-pressed="true"] { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-info h1 { font-size: 24px; line-height: 1.7; }
.pdp-short { color: var(--ink-2); margin-top: 6px; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin: 12px 0; font-size: 14px; color: var(--muted); }
.pdp-meta li { display: inline-flex; align-items: center; gap: 6px; }
.pdp-meta a:hover { color: var(--brand-ink); text-decoration: underline; }
.pdp-specs { margin-bottom: 14px; }
.pdp-buy { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }
.pdp-price { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.price-big strong { font-size: 26px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.buy-btn { flex: 1 1 200px; }
.qty { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
.qty-btn { width: 44px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.qty-btn:hover { background: var(--surface); }
.qty input { width: 56px; text-align: center; border: 0; border-inline: 1px solid var(--line); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-msg { margin-top: 10px; padding: 8px 12px; background: #fff8e6; border-radius: 8px; font-size: 14px; }
.pdp-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.share { position: relative; }
.share summary { list-style: none; cursor: pointer; }
.share summary::-webkit-details-marker { display: none; }
.share-menu { position: absolute; z-index: 20; top: calc(100% + 6px); inset-inline-start: 0; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.share-menu a, .share-menu .link-btn { padding: 6px 10px; border-radius: 6px; text-align: start; text-decoration: none; color: var(--ink); }
.share-menu a:hover, .share-menu .link-btn:hover { background: var(--surface); }
.pdp-help { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pdp-help li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.stars { --p: 0%; display: inline-block; width: 90px; height: 18px; position: relative; vertical-align: middle;
    background: linear-gradient(to left, var(--brand) var(--p), #d5dbe4 var(--p));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7.2.8-5.4 4.8 1.5 7.1L12 17.8 5.7 21.3l1.5-7.1L1.8 9.4 9 8.6z'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 18px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7.2.8-5.4 4.8 1.5 7.1L12 17.8 5.7 21.3l1.5-7.1L1.8 9.4 9 8.6z'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 18px; }
.stars-sm { width: 75px; height: 15px; -webkit-mask-size: 15px 15px; mask-size: 15px 15px; }

.pdp-tabs { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px 20px; background: #fff; }
.pdp-tabs .tablist-wrap { margin-bottom: 16px; }
.tabpanel[hidden] { display: none; }
.tab-h { font-size: 16px; margin: 14px 0 6px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.spec-table th { width: 32%; background: var(--surface); color: var(--muted); font-weight: 500; }
.ship-list { display: grid; gap: 10px; }
.ship-list li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.ship-list p { color: var(--muted); font-size: 14px; }
.rating-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rating-num { font-size: 32px; }
.rate-input { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 2px; }
.rate-input legend { padding: 0; margin-inline-end: 12px; float: right; font-size: 14px; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { width: 30px; height: 30px; cursor: pointer; background: #d5dbe4;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7.2.8-5.4 4.8 1.5 7.1L12 17.8 5.7 21.3l1.5-7.1L1.8 9.4 9 8.6z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7.2.8-5.4 4.8 1.5 7.1L12 17.8 5.7 21.3l1.5-7.1L1.8 9.4 9 8.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rate-input[data-v="1"] label:nth-of-type(-n+1), .rate-input[data-v="2"] label:nth-of-type(-n+2), .rate-input[data-v="3"] label:nth-of-type(-n+3),
.rate-input[data-v="4"] label:nth-of-type(-n+4), .rate-input[data-v="5"] label:nth-of-type(-n+5) { background: var(--brand); }
.rate-input input:focus-visible + label { outline: 3px solid #2563eb; }

@media (max-width: 1100px) { .grid-products-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .listing { grid-template-columns: 1fr; }
    .listing-side { position: static; }
    .filters-open, .filters-close { display: inline-flex; }
    .filters {
        position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw); z-index: 80; overflow-y: auto; border-radius: 0;
        transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; align-content: start;
    }
    .filters.open { transform: none; visibility: visible; }
    .pdp { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
    .grid-products-3 { grid-template-columns: 1fr; }
    .pdp-info h1 { font-size: 20px; }
    .pdp-tabs { padding-inline: 12px; }
    .spec-table th { width: 40%; }
    .buy { flex-direction: column; }
    .buy-btn { flex: 0 0 auto; width: 100%; }
    .qty { align-self: flex-start; }
}
/* ===== Account, requests, services, configurator ===== */
.muted { color: var(--muted); font-size: 14px; }
.page-title { font-size: 26px; margin-bottom: 16px; }
.show-sm-only { display: none; }
.icon-btn.is-auth { background: var(--dark); color: var(--brand); border-color: var(--dark); }
.auth-card { max-width: 440px; margin: 24px auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; gap: 14px; }
.auth-card h1 { font-size: 22px; }
.auth-card form { display: grid; gap: 14px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; }
.field select { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 12px; background: #fff; }
.field input:disabled { background: var(--surface); color: var(--muted); }

.account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-nav { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px; position: sticky; top: 130px; }
.account-hello { font-weight: 700; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-nav a, .account-logout { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; width: 100%; background: none; border: 0; cursor: pointer; text-align: start; color: var(--ink-2); }
.account-nav a:hover, .account-logout:hover { background: var(--surface); }
.account-nav a.is-current { background: #fff8e6; color: var(--brand-ink); font-weight: 700; }
.account-logout { color: var(--bad); }
.account-main { display: grid; gap: 16px; min-width: 0; }
.account-main form { display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-row a { display: block; text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat-row a:hover { border-color: var(--brand); }
.stat-row strong { display: block; font-size: 24px; }
.stat-row span { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
.orders-table th { width: auto; background: var(--surface); }
.address-list { display: grid; gap: 12px; }
.address-list .filters-actions { border: 0; padding-top: 8px; flex-wrap: wrap; }
.address-list form { display: inline; }
.wish-item { display: grid; gap: 4px; align-content: start; }
.wish-item form { display: block; text-align: center; }

.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.request-layout h1 { font-size: 26px; line-height: 1.6; }
.request-aside { display: grid; gap: 12px; position: sticky; top: 130px; }
.steps-list { list-style: decimal; padding-inline-start: 22px; display: grid; gap: 6px; }
ul.steps-list { list-style: disc; }
.request-track { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding: 20px 24px; border-radius: 14px; background: var(--dark); color: #e2e8f0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 20px; }
.scard-title { font-size: 16px; font-weight: 700; margin-top: 4px; }

.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cfg-steps { display: grid; gap: 12px; }
.cfg-step { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cfg-step > summary { padding: 14px 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.cfg-step small { color: var(--muted); font-weight: 400; }
.cfg-num { width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 12px; }
.cfg-list { border-top: 1px solid var(--line); }
.cfg-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 70px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cfg-item:last-child { border-bottom: 0; }
.cfg-item input[type="checkbox"], .cfg-item input[type="radio"] { width: 20px; height: 20px; accent-color: var(--brand-strong); }
.cfg-item label { display: grid; gap: 2px; cursor: pointer; min-width: 0; }
.cfg-specs, .cfg-item small { color: var(--muted); font-size: 12.5px; }
.cfg-price { font-weight: 500; white-space: nowrap; font-size: 14px; }
.cfg-qty { width: 64px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 4px 6px; text-align: center; }
.cfg-summary { position: sticky; top: 130px; border: 2px solid var(--brand); border-radius: 14px; padding: 16px; background: #fff; display: grid; gap: 10px; }
.cfg-lines { display: grid; gap: 4px; font-size: 14px; max-height: 40vh; overflow: auto; }
.cfg-total strong { font-size: 18px; }

@media (max-width: 900px) {
    .account, .request-layout, .cfg { grid-template-columns: 1fr; }
    .account-nav, .request-aside, .cfg-summary { position: static; }
    .account-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
    .account-nav li { flex: 1 1 45%; }
    .cfg-summary { order: -1; }
}
@media (max-width: 600px) {
    .show-sm-only { display: inline-flex; }
    .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .cfg-item { grid-template-columns: auto minmax(0, 1fr) 64px; }
    .cfg-price { grid-column: 2 / -1; grid-row: 2; }
    .auth-card { padding: 20px; margin-block: 8px; }
}
/* ===== Cart & checkout ===== */
.cart-badge { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #1a1200; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-badge[hidden] { display: none; }
.cart-link { position: relative; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cart-lines, .checkout-steps { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-line.is-issue { border-color: var(--bad); background: #fff8f8; }
.cart-img { width: 96px; height: 72px; background: var(--surface); border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-info h2 { font-size: 15px; line-height: 1.7; }
.cart-info h2 a:hover { color: var(--brand-ink); }
.cart-qty { display: grid; gap: 2px; justify-items: center; }
.cart-qty .link-btn { font-size: 12px; }
.cart-price { text-align: end; white-space: nowrap; }
.totals { display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals-final { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.totals-final dt { color: var(--ink); }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--brand); background: #fffdf5; }
.choice input { margin-top: 4px; accent-color: var(--brand-strong); width: 18px; height: 18px; flex: none; }
.choice > span { flex: 1; min-width: 0; }
.choice-price { font-style: normal; white-space: nowrap; font-weight: 500; }
[data-ship-item][hidden], [data-pay-item][hidden] { display: none; }
.pay-card { display: grid; gap: 4px; margin: 8px 0; }
.order-done { max-width: 560px; }
.toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: 76px; margin-inline: auto; max-width: 420px; background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast a { color: var(--brand); text-decoration: underline; margin-inline-start: 8px; }
@media (min-width: 601px) { .toast { bottom: 24px; inset-inline-start: 24px; inset-inline-end: auto; margin-inline: 0; } }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } .cart .cfg-summary { position: static; order: -1; } }
@media (max-width: 600px) {
    .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; }
    .cart-img { width: 72px; height: 56px; }
    .cart-qty, .cart-price { grid-column: 2; }
    .cart-line > form:last-child { grid-column: 3; grid-row: 1; }
}
/* Ready servers (configurator presets): two cards per row, each with the chosen parts and their images */
.grid-ready { grid-template-columns: repeat(2, 1fr); }
.rcard .pcard-media { aspect-ratio: 16 / 9; }
.rparts { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 4px 0; }
.rparts li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rpart-img { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: #94a3b8; }
.rpart-img img { width: 100%; height: 100%; object-fit: contain; }
.rpart-txt { display: grid; min-width: 0; font-size: 13px; line-height: 1.5; }
.rpart-txt small { color: var(--muted); font-size: 11.5px; }
.rpart-txt > span { overflow-wrap: anywhere; }
@media (max-width: 760px) { .grid-ready { grid-template-columns: 1fr; } }