/* ==========================================================================
   Sterifag India — design system
   Brand: clinical navy + instrument blue, lime as the single accent.
   Type:  Montserrat throughout, with tabular figures for prices and specs
   ========================================================================== */

:root {
    --ink:        #06182f;
    --ink-soft:   #123252;
    --steel:      #0f6fb4;
    --steel-dark: #0a5488;
    --lime:       #9dbe3b;
    --lime-dark:  #7f9d29;
    --body:       #5a6b80;
    --line:       #dde5ee;
    --line-soft:  #eaf0f6;
    --paper:      #f4f7fa;
    --paper-2:    #eaf1f7;
    --white:      #ffffff;
    --warn:       #b4531a;
    --danger:     #b3261e;
    --ok:         #2c7a3f;

    --display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --sans:    'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    /* Montserrat has no monospace cut, so the data role uses the same family
       with tabular figures — see .price / .spec-rail / .mono below. */
    --mono:    'Montserrat', 'Segoe UI', system-ui, sans-serif;

    --wrap: 1220px;
    --r-sm: 4px;
    --r:    8px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(6, 24, 47, .06), 0 2px 8px rgba(6, 24, 47, .05);
    --shadow:    0 2px 6px rgba(6, 24, 47, .07), 0 12px 32px rgba(6, 24, 47, .08);
    --shadow-lg: 0 24px 60px rgba(6, 24, 47, .16);
    --t: .18s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5 {
    font-family: var(--display);
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -.025em;
    margin: 0 0 .5em;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .35rem; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--sans); font-size: .92rem; font-weight: 600;
    padding: .78rem 1.4rem; border-radius: var(--r); border: 1px solid transparent;
    cursor: pointer; transition: all var(--t); text-align: center;
    line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--lime); color: #14260a; }
.btn-accent:hover { background: var(--lime-dark); color: #14260a; }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: var(--steel-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn-ghost { background: transparent; color: var(--body); padding: .5rem .8rem; }
.btn-ghost:hover { color: var(--ink); background: var(--paper); }
.btn-sm { padding: .5rem .9rem; font-size: .82rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- header */

.topbar {
    background: var(--ink); color: #a9c2da;
    font-size: .8rem; padding: .5rem 0;
}
.topbar .wrap { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.topbar a { color: #cfe0f0; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1.25rem; align-items: center; }

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img, .brand svg { height: 44px; width: auto; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -.03em; }

.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input {
    width: 100%; padding: .68rem 2.75rem .68rem 1rem;
    border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--sans); font-size: .9rem; background: var(--paper);
    transition: all var(--t);
}
.header-search input:focus { background: #fff; border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(15, 111, 180, .12); }
.header-search button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    background: var(--ink); color: #fff; border: none; width: 34px; height: 34px;
    border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.header-search button:hover { background: var(--steel); }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.icon-btn {
    position: relative; display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: var(--r); color: var(--ink);
    border: 1px solid transparent; background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.badge {
    position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px;
    background: var(--lime); color: #14260a; border-radius: 999px;
    font-family: var(--mono); font-size: .66rem; font-weight: 600;
    display: grid; place-items: center; padding: 0 4px;
}

/* navigation */
.site-nav { border-top: 1px solid var(--line-soft); }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block; padding: .8rem 1rem; font-size: .88rem; font-weight: 600;
    color: var(--ink); letter-spacing: .01em;
}
.nav-list > li > a:hover, .nav-list > li.is-active > a { color: var(--steel); }
.nav-list > li.is-active > a { box-shadow: inset 0 -2px 0 var(--lime); }
.has-sub > a::after { content: '▾'; margin-left: .35rem; font-size: .7rem; color: var(--body); }
.subnav {
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow); padding: .4rem; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--t); z-index: 70;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: .5rem .75rem; font-size: .86rem; color: var(--ink-soft); border-radius: var(--r-sm); }
.subnav a:hover { background: var(--paper); color: var(--steel); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--ink); }

.hero-track {
    position: relative;
    min-height: 540px;
    overflow: hidden;
}

.hero-slide {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .65s ease, visibility .65s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* The banner artwork sits full-bleed. It already carries its own navy
   background and holds its equipment toward the right, so we anchor right
   and lay a left-to-right scrim over it for text contrast. */
.hero-bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}
.hero-bg::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(
        to right,
        rgba(4, 16, 32, .93) 0%,
        rgba(4, 16, 32, .88) 30%,
        rgba(4, 16, 32, .55) 50%,
        rgba(4, 16, 32, .12) 72%,
        rgba(4, 16, 32, 0) 100%
    );
}

.hero-slide .wrap { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 33rem; padding: 3.5rem 0 5rem; }

.hero-eyebrow {
    font-family: var(--mono); font-size: .74rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--lime); margin: 0 0 1rem; font-weight: 700;
    display: flex; align-items: center; gap: .7rem;
}
.hero-eyebrow::after {
    content: ''; height: 1px; flex: 1; max-width: 70px;
    background: linear-gradient(to right, rgba(157, 190, 59, .6), transparent);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}
.hero p {
    color: #c2d6e6; font-size: 1.06rem; max-width: 42ch; margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-hero-ghost {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .3);
    color: #eaf2f9;
    backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.hero-controls {
    position: absolute; left: 0; right: 0; bottom: 1.75rem; z-index: 3;
}
.hero-dots { display: flex; gap: .5rem; }
.hero-dots button {
    width: 38px; height: 4px; border: none; border-radius: 999px; padding: 0;
    background: rgba(255, 255, 255, .28); cursor: pointer;
    transition: background var(--t), transform var(--t);
}
.hero-dots button:hover { background: rgba(255, 255, 255, .5); }
.hero-dots button.is-active { background: var(--lime); transform: scaleY(1.5); }

/* the spec rail — the site's signature device */
.spec-rail {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin: 0;
}
.spec-rail div { padding: 1.15rem 0 1.4rem; }
.spec-rail dt {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
    text-transform: uppercase; color: #8fb0cc; margin-bottom: .3rem; font-weight: 700;
}
.spec-rail dd {
    margin: 0; font-family: var(--display); font-size: 1.7rem;
    color: #fff; font-weight: 600; letter-spacing: -.02em;
}

/* --------------------------------------------------------------- sections */

.section { padding: 4.25rem 0; }
.section-tight { padding: 2.75rem 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #b6cbdd; }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { margin-bottom: 2.25rem; }
.section-head.is-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.eyebrow {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--steel); margin-bottom: .6rem; display: block;
    font-weight: 700;
}
.section-head p { max-width: 62ch; margin: 0; }

/* ------------------------------------------------------------------ grids */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Figures that must line up in columns. Montserrat carries tabular
   figures, so prices and capacities still align without a mono face. */
.price, .spec-rail dd, .spec-table td, .summary-row .num, .mini-line .mini-meta,
.result-count, .pager a, .pager span, .qty input, .cart-item .sku {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* --------------------------------------------------------- product cards */

.card-product {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-lg); overflow: hidden; transition: all var(--t);
}
.card-product:hover { border-color: #c3d4e4; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
    position: relative; aspect-ratio: 4 / 3; background: var(--paper);
    display: grid; place-items: center; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .35s ease; }
.card-product:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-cat {
    font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--steel); margin-bottom: .45rem; font-weight: 700;
}
.card-title {
    font-family: var(--display); font-size: .99rem; font-weight: 600;
    color: var(--ink); line-height: 1.3; margin: 0 0 .6rem;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--steel); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price {
    font-family: var(--mono); font-size: 1.02rem; font-weight: 600;
    color: var(--ink); letter-spacing: -.02em;
}
.price-request { font-size: .82rem; font-weight: 500; color: var(--warn); letter-spacing: 0; }

.card-tag {
    position: absolute; top: .7rem; left: .7rem; z-index: 2;
    font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; font-weight: 700;
    text-transform: uppercase; background: var(--ink); color: #fff;
    padding: .25rem .5rem; border-radius: var(--r-sm);
}
.card-tag.is-capacity { background: var(--lime); color: #14260a; }
.wish-btn {
    position: absolute; top: .6rem; right: .6rem; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
    display: grid; place-items: center; cursor: pointer; color: var(--body);
    transition: all var(--t);
}
.wish-btn:hover, .wish-btn.is-on { color: #d4443c; border-color: #f0c4c1; background: #fff; }

/* --------------------------------------------------------- category tiles */

.tile {
    position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
    background: var(--ink); min-height: 200px; color: #fff;
}
.tile img {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .38; transition: all .4s ease;
}
.tile:hover img { opacity: .5; transform: scale(1.05); }
.tile-body {
    position: relative; z-index: 2; padding: 1.5rem;
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
    background: linear-gradient(to top, rgba(6, 24, 47, .92) 10%, rgba(6, 24, 47, .25) 70%);
}
.tile h3 { color: #fff; margin: 0 0 .25rem; font-size: 1.15rem; }
.tile span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }

/* ----------------------------------------------------------------- shop */

.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 2.5rem; align-items: start; }
.filter-panel {
    position: sticky; top: 118px;
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; background: #fff;
}
.filter-group { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: .5rem; }
.filter-group h4 {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--body); margin: 0 0 .75rem; font-weight: 700;
}
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li { margin: 0; }
.filter-list a {
    display: flex; justify-content: space-between; gap: .5rem;
    padding: .32rem 0; font-size: .88rem; color: var(--ink-soft);
}
.filter-list a:hover { color: var(--steel); }
.filter-list a.is-on { color: var(--steel); font-weight: 600; }
.filter-list .count { font-family: var(--mono); font-size: .72rem; color: var(--body); }
.filter-list ul { list-style: none; padding-left: .85rem; margin: .2rem 0 .5rem; border-left: 1px solid var(--line); }

.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.result-count { font-family: var(--mono); font-size: .82rem; color: var(--body); font-weight: 600; }

/* ----------------------------------------------------------- form fields */

.field { margin-bottom: 1.05rem; }
.field label, .label {
    display: block; font-size: .82rem; font-weight: 700;
    color: var(--ink); margin-bottom: .35rem;
}
.field .hint { font-size: .78rem; color: var(--body); margin-top: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=search], select, textarea {
    width: 100%; padding: .68rem .85rem;
    border: 1px solid var(--line); border-radius: var(--r);
    font-family: var(--sans); font-size: .92rem; color: var(--ink);
    background: #fff; transition: all var(--t);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--steel);
    box-shadow: 0 0 0 3px rgba(15, 111, 180, .12);
}
textarea { min-height: 120px; resize: vertical; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b80' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center;
    background-size: 11px; padding-right: 2.2rem;
}
.check { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: auto; }
.hp { position: absolute; left: -9999px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qty button {
    width: 36px; height: 40px; border: none; background: var(--paper);
    color: var(--ink); cursor: pointer; font-size: 1rem;
}
.qty button:hover { background: var(--paper-2); }
.qty input {
    width: 52px; height: 40px; border: none; text-align: center;
    font-family: var(--mono); font-size: .92rem; padding: 0;
}
.qty input:focus { box-shadow: none; }

/* ---------------------------------------------------------- product page */

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.gallery-main {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--paper); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 2rem; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery-thumbs button {
    width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--paper); padding: 4px; cursor: pointer; overflow: hidden;
}
.gallery-thumbs button.is-active { border-color: var(--steel); box-shadow: 0 0 0 2px rgba(15, 111, 180, .15); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-price { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--ink); margin: .5rem 0 .25rem; letter-spacing: -.03em; }
.product-price.is-request { font-size: 1.3rem; color: var(--warn); }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--danger); }

.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; }
.spec-table th, .spec-table td { padding: .6rem 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--body); font-weight: 700; }
.spec-table td { color: var(--ink); font-family: var(--mono); font-size: .85rem; }

.buy-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.5rem 0; }

.accordion { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 0; background: none; border: none; cursor: pointer;
    font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--ink); text-align: left;
}
.acc-head::after { content: '+'; font-family: var(--mono); font-size: 1.3rem; color: var(--steel); font-weight: 400; }
.acc-item.is-open .acc-head::after { content: '−'; }
.acc-body { display: none; padding: 0 0 1.4rem; max-width: 78ch; }
.acc-item.is-open .acc-body { display: block; }
.acc-body ul { padding-left: 1.15rem; }

.pincode-box { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; background: var(--paper); }
.pincode-row { display: flex; gap: .5rem; }
.pincode-row input { flex: 1; }
.pincode-msg { font-size: .84rem; margin-top: .6rem; color: var(--ok); }
.pincode-msg.is-error { color: var(--danger); }

/* ------------------------------------------------------------------ cart */

.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2.5rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--body); font-weight: 700;
    padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cart-item { display: flex; gap: 1rem; align-items: center; }
.cart-item img { width: 76px; height: 76px; object-fit: contain; background: var(--paper); border-radius: var(--r); padding: 6px; flex-shrink: 0; }
.cart-item strong { display: block; font-family: var(--display); font-size: .95rem; color: var(--ink); }
.cart-item .sku { font-family: var(--mono); font-size: .72rem; color: var(--body); font-weight: 600; }

.summary { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; background: #fff; position: sticky; top: 118px; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .92rem; }
.summary-row.total {
    border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem;
    font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
.summary-row .num { font-family: var(--mono); }

/* --------------------------------------------------------------- notices */

.notice {
    padding: .85rem 1.1rem; border-radius: var(--r); font-size: .9rem;
    border: 1px solid var(--line); background: var(--paper); margin-bottom: 1rem;
    display: flex; gap: .6rem; align-items: flex-start;
}
.notice-success { background: #eef7f0; border-color: #cbe5d2; color: #205c31; }
.notice-error { background: #fdefee; border-color: #f3ccc9; color: #8e211b; }
.notice-info { background: #eef4fb; border-color: #ccdff2; color: #12456f; }
.notice-warn { background: #fdf4ea; border-color: #f0dcc3; color: #86470f; }

.flash-stack { position: fixed; top: 84px; right: 20px; z-index: 200; width: min(360px, calc(100vw - 40px)); }
.flash-stack .notice { box-shadow: var(--shadow); background: #fff; }

/* ------------------------------------------------------------- page head */

.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 2.75rem 0; }
.page-head h1 { margin: 0 0 .4rem; }
.crumbs { font-size: .82rem; color: var(--body); display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--body); }
.crumbs a:hover { color: var(--steel); }
.crumbs .sep { opacity: .5; }

/* ----------------------------------------------------------- prose block */

.prose { max-width: 78ch; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose a { text-decoration: underline; }

/* ------------------------------------------------------------ pagination */

.pager { display: flex; gap: .35rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px; height: 40px; display: grid; place-items: center;
    padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r);
    font-family: var(--mono); font-size: .85rem; color: var(--ink-soft);
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-gap { border: none; }

/* ------------------------------------------------------------ misc bits */

.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; align-items: center; }
.logo-strip img { filter: grayscale(1); opacity: .55; transition: all var(--t); max-height: 56px; margin: 0 auto; width: auto; }
.logo-strip img:hover { filter: none; opacity: 1; }

.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }
.quote-card blockquote { margin: 0 0 1.25rem; font-size: 1rem; color: var(--ink-soft); line-height: 1.7; }
.quote-card footer { display: flex; align-items: center; gap: .8rem; }
.quote-card footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote-card cite { font-style: normal; font-family: var(--display); font-weight: 600; color: var(--ink); display: block; }
.quote-card small { color: var(--body); font-size: .82rem; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-num {
    font-family: var(--mono); font-size: .78rem; color: var(--lime);
    border: 1px solid rgba(157, 190, 59, .4); border-radius: var(--r-sm);
    padding: .15rem .4rem; flex-shrink: 0; margin-top: .2rem;
}
.feature h3 { font-size: 1rem; margin-bottom: .3rem; }
.feature p { font-size: .9rem; margin: 0; }

.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 1.25rem; }
.post-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: .5rem; font-weight: 700; }

.empty { text-align: center; padding: 4rem 1rem; }
.empty h2 { margin-bottom: .5rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #97b2ca; padding: 3.5rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h4 {
    color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
    text-transform: uppercase; font-weight: 700; margin-bottom: 1.1rem;
}
.site-footer a { color: #97b2ca; font-size: .9rem; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand img { height: 44px; background: #fff; padding: .5rem .7rem; border-radius: var(--r); margin-bottom: 1rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}
.subscribe-row { display: flex; gap: .5rem; margin-top: .75rem; }
.subscribe-row input {
    flex: 1; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff;
}
.subscribe-row input::placeholder { color: #7e9ab4; }

.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 54px; height: 54px; border-radius: 50%; background: #25d366;
    display: grid; place-items: center; box-shadow: var(--shadow);
    color: #fff; transition: transform var(--t);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ----------------------------------------------------------------- modal */

.modal-backdrop {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(6, 24, 47, .55);
    display: none; place-items: center; z-index: 300; padding: 20px;
}
.modal-backdrop.is-open { display: grid; }
.modal {
    background: #fff; border-radius: var(--r-lg); width: min(520px, 100%);
    max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative;
}
.modal-head { padding: 1.4rem 1.6rem .75rem; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.4rem 1.6rem 1.6rem; }
.modal-close {
    position: absolute; top: .8rem; right: .9rem; width: 34px; height: 34px;
    border: none; background: var(--paper); border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; line-height: 1; color: var(--body);
}
.modal-close:hover { background: var(--paper-2); color: var(--ink); }

/* --------------------------------------------------------------- drawers */

.drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%);
    background: #fff; z-index: 310; transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { margin: 0; font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem; }
.mini-line { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.mini-line img { width: 56px; height: 56px; object-fit: contain; background: var(--paper); border-radius: var(--r-sm); padding: 4px; }
.mini-line strong { font-size: .88rem; font-family: var(--display); color: var(--ink); display: block; }
.mini-line .mini-meta { font-family: var(--mono); font-size: .76rem; color: var(--body); font-weight: 600; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logo-strip { grid-template-columns: repeat(4, 1fr); }
    .hero-track { min-height: 460px; }
    .hero-copy { max-width: 30rem; padding: 3rem 0 4.5rem; }
    .product-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 780px) {
    .nav-toggle {
        display: grid; place-items: center; width: 42px; height: 42px;
        border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer;
    }
    .site-nav {
        display: none; border-top: 1px solid var(--line);
        max-height: 70vh; overflow-y: auto; padding-bottom: 1rem;
    }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list > li > a { padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
    .subnav {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: .25rem 0 .5rem .9rem;
        display: none;
    }
    .has-sub.is-open .subnav { display: block; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; margin-top: .6rem; }
    .header-main { flex-wrap: wrap; }
    .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .spec-rail { grid-template-columns: repeat(2, 1fr); }
    .hero-track { min-height: 430px; }
    .hero-copy { max-width: none; padding: 2.5rem 0 4rem; }
    .hero-bg { background-position: center right -60px; }
    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(4,16,32,.97) 0%, rgba(4,16,32,.93) 55%, rgba(4,16,32,.80) 100%);
    }
    .hero p { font-size: 1rem; }
    .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .logo-strip { grid-template-columns: repeat(3, 1fr); }
    .field-row { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .cart-table thead { display: none; }
    .cart-table td { display: block; border: none; padding: .35rem 0; }
    .cart-table tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
    .topbar-links { display: none; }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .logo-strip { grid-template-columns: repeat(2, 1fr); }
    .brand img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header, .site-footer, .wa-float, .buy-actions, .pager { display: none; }
    body { color: #000; }
}
