/* =====================================================================
   HoseDirect B2B — Main Stylesheet
   Professional, industrial B2B wholesale marketplace theme.
   Self-contained (no build step). Mobile-first, responsive.
   ===================================================================== */

/* ---------- Design tokens (CSS custom properties) ---------- */
:root {
    /* Brand palette — deep industrial blue + amber accent */
    --c-primary:        #1e3a8a;   /* blue-900 — trust, depth */
    --c-primary-dark:   #172554;
    --c-primary-light:  #3b82f6;   /* blue-500 */
    --c-accent:         #f59e0b;   /* amber-500 — CTAs */
    --c-accent-dark:    #d97706;
    --c-success:        #16a34a;
    --c-danger:         #dc2626;
    --c-warning:        #ca8a04;

    /* Neutrals */
    --c-ink:            #0f172a;   /* slate-900 — body text */
    --c-ink-soft:       #334155;   /* slate-700 */
    --c-muted:          #64748b;   /* slate-500 — secondary text */
    --c-line:           #e2e8f0;   /* slate-200 — borders */
    --c-line-soft:      #f1f5f9;   /* slate-100 */
    --c-bg:             #f8fafc;   /* slate-50 — page background */
    --c-surface:        #ffffff;   /* cards */

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

    /* Spacing & radius */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .05);

    /* Layout */
    --container: 1240px;
    --header-h: 72px;
    --annou-h: 36px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; color: var(--c-ink); }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
small { color: var(--c-muted); }
table { width: 100%; border-collapse: collapse; }

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: 10px 20px;
    font: inherit; font-weight: 600; font-size: .95rem;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--accent { background: var(--c-accent); color: #1a1206; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-line-soft); color: var(--c-ink); }
.btn--white { background: #fff; color: var(--c-primary); }
.btn--white:hover { background: var(--c-line-soft); }
.btn--danger { background: var(--c-danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; color: #fff; }
.btn--sm { padding: 6px 12px; font-size: .85rem; }
.btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--c-ink-soft); }
label .req { color: var(--c-danger); }
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"], input[type="url"],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--c-ink);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.hint { font-size: .82rem; color: var(--c-muted); margin-top: .25rem; }
.field-error { color: var(--c-danger); font-size: .85rem; margin-top: .25rem; }

/* ---------- Badges & pills ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .3em;
    padding: 2px 10px; font-size: .75rem; font-weight: 600;
    border-radius: 999px; line-height: 1.5;
    background: var(--c-line-soft); color: var(--c-ink-soft);
}
.badge--primary { background: #dbeafe; color: var(--c-primary-dark); }
.badge--accent  { background: #fef3c7; color: var(--c-accent-dark); }
.badge--success { background: #dcfce7; color: #166534; }
.badge--danger  { background: #fee2e2; color: #991b1b; }
.badge--warning { background: #fef3c7; color: #92400e; }
.badge--lg { font-size: .85rem; padding: 4px 12px; }

/* ---------- Header / top bar ---------- */
.topbar {
    background: var(--c-primary-dark);
    color: #cbd5e1;
    font-size: .82rem;
    height: var(--annou-h);
    display: flex; align-items: center;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 1.2rem; align-items: center; }
.topbar__contact span { display: inline-flex; align-items: center; gap: .35em; }
.topbar__promo { color: #fbbf24; font-weight: 600; }
@media (max-width: 720px) { .topbar__contact .full { display: none; } }
@media (max-width: 540px) { .topbar__promo { display: none; } }

.header {
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.header__inner {
    display: flex; align-items: center; gap: 1rem;
    height: var(--header-h);
    flex-wrap: nowrap;
}
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; color: var(--c-primary); flex-shrink: 0; }
.logo:hover { text-decoration: none; color: var(--c-primary-dark); }
.logo__mark {
    width: 38px; height: 38px; border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff; display: grid; place-items: center; font-size: 1.1rem;
    flex-shrink: 0;
}
.logo__text { line-height: 1; }
.logo__text small { display: none; }

/* Primary nav */
.nav { display: flex; align-items: center; gap: .05rem; margin-left: 0; flex: 1; min-width: 0; flex-shrink: 0; }
.nav__item { position: relative; }
.nav__link {
    padding: 6px 8px; border-radius: var(--r-md);
    font-weight: 600; font-size: .88rem; color: var(--c-ink-soft);
    display: inline-flex; align-items: center; gap: .3em;
    white-space: nowrap;
}
.nav__link:hover { background: var(--c-line-soft); color: var(--c-primary); text-decoration: none; }
.nav__link.is-active { color: var(--c-primary); background: #eff6ff; }
.nav__caret { font-size: .7em; opacity: .6; }

/* Mega dropdown for categories */
.megamenu {
    position: absolute; top: 100%; left: 0;
    min-width: 560px; max-width: 720px;
    background: #fff; border: 1px solid var(--c-line);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    padding: 18px; z-index: 60;
    display: none;
    grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.nav__item:hover .megamenu,
.nav__item:focus-within .megamenu { display: grid; }
.megamenu__cat {
    display: flex; gap: .65rem; align-items: flex-start;
    padding: 10px 12px; border-radius: var(--r-md);
    color: var(--c-ink-soft);
}
.megamenu__cat:hover { background: var(--c-line-soft); text-decoration: none; color: var(--c-primary); }
.megamenu__icon {
    width: 36px; height: 36px; border-radius: var(--r-md);
    background: #eff6ff; color: var(--c-primary);
    display: grid; place-items: center; flex-shrink: 0;
}
.megamenu__name { font-weight: 600; font-size: .92rem; color: var(--c-ink); display: block; }
.megamenu__desc { font-size: .8rem; color: var(--c-muted); line-height: 1.4; }

/* Header actions (search, cart, account) */
.header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header__search {
    display: flex; align-items: center;
    background: var(--c-line-soft); border-radius: 999px;
    padding: 4px 4px 4px 14px;
    min-width: 220px;
}
.header__search input { border: 0; background: transparent; padding: 6px 4px; box-shadow: none; }
.header__search input:focus { box-shadow: none; }
.header__search button {
    border: 0; background: var(--c-primary); color: #fff;
    border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; font-size: .85rem;
}
.header__search button:hover { background: var(--c-primary-dark); }

.iconbtn {
    position: relative;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: var(--r-md); color: var(--c-ink-soft);
    border: 1px solid transparent;
}
.iconbtn:hover { background: var(--c-line-soft); color: var(--c-primary); text-decoration: none; }
.iconbtn__count {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--c-accent); color: #1a1206;
    border-radius: 999px; font-size: .68rem; font-weight: 700;
    display: grid; place-items: center;
}
.iconbtn__count[data-empty="1"] { display: none; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--c-ink); }

@media (max-width: 980px) {
    .header__search { display: none; }
}
@media (max-width: 860px) {
    .nav, .nav__item .megamenu { display: none; }
    .nav-toggle { display: block; }
    .nav.is-open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: calc(var(--annou-h) + var(--header-h)); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-lg); padding: 8px 16px;
    }
    .nav.is-open .nav__link { padding: 12px 8px; border-bottom: 1px solid var(--c-line-soft); width: 100%; justify-content: flex-start; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .82rem; color: var(--c-muted); padding: 14px 0 0; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs__sep { margin: 0 .4em; opacity: .5; }

/* ---------- Cards ---------- */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card__body { padding: 18px; }
.card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.card__title a { color: var(--c-ink); }
.card__title a:hover { color: var(--c-primary); }

/* ---------- Product card grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #cbd5e1; }
.product-card__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: grid; place-items: center;
    position: relative;
    overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder {
    font-size: 3rem; color: #94a3b8; opacity: .6;
}
.product-card__badge {
    position: absolute; top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: 4px;
}
.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.product-card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; }
.product-card__title a { color: var(--c-ink); }
.product-card__title a:hover { color: var(--c-primary); }
.product-card__desc { font-size: .85rem; color: var(--c-muted); flex: 1; }
.product-card__meta {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-top: .5rem; border-top: 1px solid var(--c-line-soft);
}
.product-card__price { font-size: 1.15rem; font-weight: 800; color: var(--c-primary); }
.product-card__price small { font-size: .7rem; font-weight: 500; color: var(--c-muted); }
.product-card__moq { font-size: .78rem; color: var(--c-muted); text-align: right; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(120deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, #2563eb 100%);
    color: #fff;
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, .18), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(59, 130, 246, .25), transparent 40%);
}
.hero__inner { position: relative; max-width: 760px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .4em;
    background: rgba(255,255,255,.12); color: #fde68a;
    padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    margin-bottom: 1rem; border: 1px solid rgba(255,255,255,.15);
}
.hero h1 { color: #fff; margin-bottom: .6rem; font-size: clamp(2rem, 4vw, 3rem); }
.hero__subtitle { font-size: 1.1rem; color: #dbeafe; margin-bottom: 1.6rem; max-width: 600px; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__stats {
    display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero__stat { }
.hero__stat-num { font-size: 1.75rem; font-weight: 800; color: #fbbf24; line-height: 1; }
.hero__stat-label { font-size: .82rem; color: #cbd5e1; margin-top: .25rem; }

/* ---------- Section ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section__head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.section__title { margin: 0; }
.section__subtitle { color: var(--c-muted); margin-top: .25rem; }
.section__link { font-weight: 600; color: var(--c-primary); white-space: nowrap; }

/* ---------- Category grid (home) ---------- */
.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    padding: 24px 16px; text-align: center;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
    transition: all .2s; color: var(--c-ink);
}
.cat-card:hover { text-decoration: none; color: var(--c-primary); border-color: var(--c-primary-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card__icon {
    width: 56px; height: 56px; border-radius: var(--r-lg);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--c-primary); display: grid; place-items: center; font-size: 1.5rem;
}
.cat-card__name { font-weight: 700; font-size: .95rem; }
.cat-card__count { font-size: .78rem; color: var(--c-muted); }

/* ---------- Feature strip (trust signals) ---------- */
.feature-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.feature { display: flex; gap: .75rem; align-items: flex-start; }
.feature__icon {
    width: 44px; height: 44px; border-radius: var(--r-md); flex-shrink: 0;
    background: #fef3c7; color: var(--c-accent-dark);
    display: grid; place-items: center; font-size: 1.2rem;
}
.feature__title { font-weight: 700; font-size: .92rem; margin-bottom: .15rem; }
.feature__text { font-size: .8rem; color: var(--c-muted); line-height: 1.4; }
@media (max-width: 860px) { .feature-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feature-strip { grid-template-columns: 1fr; } }

/* ---------- Page layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.layout__sidebar { position: sticky; top: calc(var(--annou-h) + var(--header-h) + 16px); }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .layout__sidebar { position: static; } }

/* ---------- Filters sidebar ---------- */
.filter-block { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 16px; margin-bottom: 16px; }
.filter-block__title { font-weight: 700; font-size: .9rem; margin-bottom: .65rem; text-transform: uppercase; letter-spacing: .03em; color: var(--c-ink-soft); }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: .35rem; }
.filter-list a { display: flex; justify-content: space-between; color: var(--c-ink-soft); font-size: .9rem; padding: 4px 6px; border-radius: var(--r-sm); }
.filter-list a:hover { background: var(--c-line-soft); color: var(--c-primary); text-decoration: none; }
.filter-list a.is-active { background: #eff6ff; color: var(--c-primary); font-weight: 600; }
.filter-list .count { color: var(--c-muted); font-size: .8rem; }

/* ---------- Toolbar (above product grid) ---------- */
.toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-bottom: 1.25rem; flex-wrap: wrap;
}
.toolbar__count { font-size: .9rem; color: var(--c-muted); }
.toolbar__sort select { width: auto; padding: 8px 12px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; padding: 0 10px;
    display: inline-flex; align-items: justify-content; justify-content: center;
    border: 1px solid var(--c-line); border-radius: var(--r-md);
    font-size: .9rem; color: var(--c-ink-soft);
}
.pagination a:hover { background: var(--c-line-soft); text-decoration: none; color: var(--c-primary); }
.pagination .is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination .is-disabled { color: var(--c-line); cursor: not-allowed; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery__main {
    aspect-ratio: 1; background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: var(--r-lg); display: grid; place-items: center;
    border: 1px solid var(--c-line); overflow: hidden;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery__thumb { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--c-line-soft); }
.product-gallery__thumb.is-active { border-color: var(--c-primary); }
.product-info__title { font-size: 1.7rem; margin-bottom: .35rem; }
.product-info__sku { font-size: .85rem; color: var(--c-muted); margin-bottom: 1rem; }
.product-info__price-row { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.product-info__price { font-size: 2rem; font-weight: 800; color: var(--c-primary); }
.product-info__price small { font-size: .9rem; font-weight: 500; color: var(--c-muted); }
.product-info__cta { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.25rem 0; }

/* Price tier table */
.tier-table { width: 100%; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; margin: 1rem 0; }
.tier-table th, .tier-table td { padding: 10px 14px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--c-line-soft); }
.tier-table th { background: var(--c-line-soft); font-weight: 700; color: var(--c-ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table .is-best { background: #fffbeb; font-weight: 700; color: var(--c-accent-dark); }

/* Specs table */
.spec-table { width: 100%; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--c-line-soft); font-size: .9rem; text-align: left; }
.spec-table th { background: var(--c-line-soft); width: 38%; color: var(--c-ink-soft); font-weight: 600; }
.spec-table tr:last-child td { border-bottom: 0; }

/* Size picker */
.size-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.size-chip {
    padding: 8px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md);
    cursor: pointer; font-size: .9rem; font-weight: 600; background: #fff; color: var(--c-ink-soft);
    transition: all .15s;
}
.size-chip:hover { border-color: var(--c-primary-light); color: var(--c-primary); }
.size-chip.is-selected { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Qty input */
.qty-input { display: inline-flex; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; width: fit-content; }
.qty-input button { width: 38px; height: 42px; border: 0; background: var(--c-line-soft); cursor: pointer; font-size: 1.1rem; color: var(--c-ink); }
.qty-input button:hover { background: var(--c-line); }
.qty-input input { border: 0; width: 70px; text-align: center; border-radius: 0; box-shadow: none; }

/* ---------- RFQ cart ---------- */
.cart-table { width: 100%; }
.cart-table th, .cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--c-line); text-align: left; font-size: .9rem; vertical-align: middle; }
.cart-table th { background: var(--c-line-soft); font-weight: 700; color: var(--c-ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.cart-table__product { display: flex; gap: .75rem; align-items: center; }
.cart-table__thumb { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--c-line-soft); overflow: hidden; flex-shrink: 0; }
.cart-table__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-summary {
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
    padding: 20px; box-shadow: var(--shadow-sm);
}
.cart-summary__row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .92rem; }
.cart-summary__row--total { border-top: 1px solid var(--c-line); margin-top: .5rem; padding-top: .9rem; font-size: 1.15rem; font-weight: 800; color: var(--c-primary); }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 56px 20px; color: var(--c-muted); }
.empty-state__icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .4; }
.empty-state__title { font-size: 1.2rem; color: var(--c-ink); margin-bottom: .5rem; }

/* ---------- Alert / flash ---------- */
.alert {
    padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 1rem; font-size: .92rem;
    border: 1px solid transparent; display: flex; gap: .6rem; align-items: flex-start;
}
.alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert--danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert__icon { flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
    background: var(--c-primary-dark); color: #cbd5e1;
    padding: 56px 0 0; margin-top: 60px;
}
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .logo { color: #fff; margin-bottom: .75rem; }
.footer__brand p { font-size: .88rem; color: #94a3b8; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a { font-size: .88rem; }
.footer__bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 20px 0; font-size: .82rem; color: #94a3b8;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 100;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    transition: transform .2s;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.08); text-decoration: none; }
.whatsapp-fab svg { width: 32px; height: 32px; }
.whatsapp-fab::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid #25d366; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 540px) { .whatsapp-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; } }

/* ---------- Auth / account ---------- */
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 32px; }
.auth-card__title { text-align: center; margin-bottom: 1.5rem; }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--c-muted); }

.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 12px; }
.account-nav a { display: flex; gap: .6rem; align-items: center; padding: 10px 12px; border-radius: var(--r-md); color: var(--c-ink-soft); font-size: .92rem; }
.account-nav a:hover { background: var(--c-line-soft); text-decoration: none; color: var(--c-primary); }
.account-nav a.is-active { background: #eff6ff; color: var(--c-primary); font-weight: 600; }

/* ---------- Admin layout ---------- */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--c-primary-dark); color: #cbd5e1; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar__brand { padding: 0 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.admin-sidebar__brand .logo { color: #fff; font-size: 1.1rem; }
.admin-nav a { display: flex; gap: .65rem; align-items: center; padding: 11px 20px; color: #cbd5e1; font-size: .9rem; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.admin-nav a.is-active { background: rgba(255,255,255,.1); color: #fff; border-left: 3px solid var(--c-accent); }
.admin-nav__section { padding: 14px 20px 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; font-weight: 700; }
.admin-main { padding: 24px 28px; background: var(--c-bg); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-header__title { margin: 0; }
@media (max-width: 860px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-nav a { padding: 10px 16px; }
}

/* ---------- Stat cards (admin dashboard) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card__label { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-card__value { font-size: 1.85rem; font-weight: 800; color: var(--c-ink); margin: .25rem 0; }
.stat-card__trend { font-size: .8rem; color: var(--c-success); }
.stat-card__icon { float: right; font-size: 1.6rem; opacity: .3; }

/* ---------- Admin dashboard cards & grids ---------- */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--c-ink); transition: transform .15s, box-shadow .15s; }
.admin-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.admin-stat__value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.admin-stat__value small { font-size: .85rem; font-weight: 500; color: var(--c-muted); }
.admin-stat__label { font-size: .78rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-top: .35rem; }
.admin-stat.is-alert { border-color: var(--c-accent); background: #fffbeb; }
.admin-stat.is-alert .admin-stat__value { color: var(--c-accent-dark); }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-grid > .admin-card { grid-column: span 1; }
@media (max-width: 960px) { .admin-grid { grid-template-columns: 1fr; } .admin-grid > .admin-card { grid-column: span 1 !important; } }

.admin-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.admin-card h2 { margin-top: 0; font-size: 1.05rem; font-weight: 700; }
.admin-card h3 { font-size: .95rem; margin-top: 1.2rem; }
.admin-card hr { border: 0; border-top: 1px solid var(--c-line-soft); margin: 1.2rem 0; }
.admin-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-card__head h2 { margin: 0; }
.admin-card p.hint, .admin-card .hint { color: var(--c-muted); font-size: .85rem; }

.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { border-bottom: 1px solid var(--c-line-soft); }
.admin-list li:last-child { border-bottom: 0; }
.admin-list a { display: block; padding: 10px 4px; text-decoration: none; color: var(--c-ink); }
.admin-list a:hover { background: var(--c-line-soft); padding-left: 8px; }
.admin-list a strong { display: block; }
.admin-list a span { font-size: .82rem; color: var(--c-muted); }
.admin-list a small { display: block; font-size: .78rem; color: var(--c-muted); margin-top: .15rem; }

.admin-bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 80px; padding-top: 1rem; border-bottom: 1px solid var(--c-line); }
.admin-bar-chart .bar { flex: 1; min-width: 4px; background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary)); border-radius: 2px 2px 0 0; transition: opacity .15s; }
.admin-bar-chart .bar:hover { opacity: .8; }

/* ---------- Admin toolbar & filters ---------- */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-filter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filter-form .input { min-width: 180px; }
.admin-status-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-status-pills .pill { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink-soft); font-size: .82rem; text-decoration: none; font-weight: 500; }
.admin-status-pills .pill:hover { background: var(--c-line-soft); text-decoration: none; }
.admin-status-pills .pill.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.admin-status-pills .pill.is-badge { border-color: var(--c-accent); }

.admin-inline-form { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; background: var(--c-line-soft); border-radius: var(--r-md); margin-bottom: 16px; }

/* ---------- Admin tables ---------- */
.admin-table { width: 100%; background: transparent; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--c-line-soft); vertical-align: middle; }
.admin-table th { background: var(--c-line-soft); font-weight: 700; color: var(--c-ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.admin-table tr:hover td { background: #fafbfc; }
.admin-table tfoot td { border-top: 2px solid var(--c-line); border-bottom: 0; font-weight: 600; }
.admin-table code { background: var(--c-line-soft); padding: 2px 6px; border-radius: 4px; font-size: .85em; }
.admin-table--repeater th, .admin-table--repeater td { padding: 6px 8px; }
.admin-row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-row-actions form { display: inline; }

/* ---------- Admin forms ---------- */
.admin-form .form-row { margin-bottom: 14px; }
.admin-form .form-row label { display: block; margin-bottom: 5px; font-weight: 600; font-size: .88rem; color: var(--c-ink-soft); }
.admin-form .form-row .hint { color: var(--c-muted); font-weight: 400; font-size: .78rem; margin-left: 4px; }
.admin-form .form-row .req { color: var(--c-danger); }
.admin-form .form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .admin-form .form-row-grid { grid-template-columns: 1fr; } }
.admin-form .input, .admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="number"], .admin-form input[type="url"], .admin-form select, .admin-form textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: var(--r-md); font-size: .92rem; font-family: inherit; background: #fff;
}
.admin-form .input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 2px solid var(--c-primary-light); outline-offset: -1px; border-color: var(--c-primary-light); }
.admin-form textarea.textarea-code { font-family: var(--font-mono); font-size: .85rem; }
.admin-form .checkbox label { display: inline-flex; gap: 6px; align-items: center; margin-right: 1.5rem; font-weight: 400; }
.admin-form .checkbox input { width: auto; }
.admin-form-actions { display: flex; gap: 10px; padding: 20px 0; border-top: 1px solid var(--c-line); margin-top: 18px; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0; }
.admin-detail-grid > div { padding: 10px 0; }
.admin-detail-grid strong { display: block; font-size: .76rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 4px; }
.admin-detail-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 12px; }
.admin-detail-card.is-unread { border-left: 3px solid var(--c-primary); }
.admin-detail-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.admin-detail-card__head strong { font-size: .98rem; }
.admin-detail-card__body > div { margin-bottom: 6px; font-size: .9rem; }
.admin-detail-card__body strong { color: var(--c-ink-soft); }

/* ---------- Admin badges ---------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--c-line-soft); color: var(--c-ink-soft); }
.badge--success { background: #dcfce7; color: #166534; }
.badge--danger  { background: #fee2e2; color: #991b1b; }
.badge--warning { background: #fef3c7; color: #92400e; }
.badge--muted   { background: #e2e8f0; color: #475569; }
.badge--accent  { background: #fef3c7; color: #92400e; }
.badge--status-new        { background: #dbeafe; color: #1e40af; }
.badge--status-reviewing  { background: #fef3c7; color: #92400e; }
.badge--status-quoted     { background: #ede9fe; color: #5b21b6; }
.badge--status-sent       { background: #dbeafe; color: #1e40af; }
.badge--status-accepted   { background: #dcfce7; color: #166534; }
.badge--status-won        { background: #dcfce7; color: #166534; }
.badge--status-rejected   { background: #fee2e2; color: #991b1b; }
.badge--status-lost       { background: #fee2e2; color: #991b1b; }
.badge--status-closed     { background: #e2e8f0; color: #475569; }
.badge--status-expired    { background: #fee2e2; color: #991b1b; }
.badge--status-draft      { background: #e2e8f0; color: #475569; }
.badge--status-approved   { background: #dcfce7; color: #166534; }

/* ---------- Misc admin UI ---------- */
.btn-link { background: none; border: 0; padding: 0; color: var(--c-primary); cursor: pointer; font-size: inherit; text-decoration: underline; }
.btn-link.danger { color: var(--c-danger); }
.empty { padding: 24px; text-align: center; color: var(--c-muted); background: var(--c-line-soft); border-radius: var(--r-md); }
.empty a { color: var(--c-primary); }

/* ---------- Page hero (storefront pages) ---------- */
.page-hero { background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%); color: #fff; padding: 56px 0 40px; }
.page-hero h1 { color: #fff; margin: 0 0 .35rem; font-size: 2rem; }
.page-hero .lead { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 700px; margin: 0; }
.page-hero--compact { padding: 36px 0 28px; }
.page-hero__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: rgba(255,255,255,.15); border-radius: var(--r-lg); margin-bottom: 12px; }
.page-hero__icon svg { color: #fff; }
.section { padding: 40px 0; }
.section-narrow { max-width: 760px; }
.prose { max-width: 820px; line-height: 1.7; color: var(--c-ink-soft); }
.prose h2 { margin-top: 2rem; margin-bottom: .6rem; color: var(--c-ink); font-size: 1.25rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .4rem; color: var(--c-ink); font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }

.cta-banner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #fef3c7, #fde68a); padding: 24px 28px; border-radius: var(--r-lg); margin: 32px 0; }
.cta-banner h3 { margin: 0; color: #78350f; }
.cta-banner p { margin: .25rem 0 0; color: #92400e; }
.cta-banner > div { flex: 1; min-width: 240px; }

/* ---------- Contact page ---------- */
.contact-info { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; }
.contact-info__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); }
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__icon { font-size: 1.4rem; width: 28px; text-align: center; }
.contact-info__item strong { display: block; font-size: .82rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.contact-info__item a, .contact-info__item span { color: var(--c-ink); }
.contact-info__hours, .contact-info__wholesale { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--c-line); }
.contact-info__wholesale { background: var(--c-line-soft); padding: 18px; border-radius: var(--r-md); border: 0; }
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; }
.form-card .form-group { margin-bottom: 14px; }
.form-card label { display: block; margin-bottom: 5px; font-weight: 600; font-size: .9rem; color: var(--c-ink-soft); }
.form-card .req { color: var(--c-danger); }
.form-card input, .form-card textarea, .form-card select { width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); font-size: .95rem; font-family: inherit; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 2px solid var(--c-primary-light); outline-offset: -1px; }
.form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row-grid { grid-template-columns: 1fr; } }
.benefit-list { list-style: none; padding: 0; }
.benefit-list li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--c-line-soft); position: relative; }
.benefit-list li::before { content: '\2713'; position: absolute; left: 0; top: 12px; color: var(--c-success); font-weight: 800; }
.benefit-list li:last-child { border-bottom: 0; }

/* ---------- Applications & blog grids ---------- */
.applications-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.application-card { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; text-decoration: none; color: var(--c-ink); transition: transform .15s, box-shadow .15s; }
.application-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.application-card__icon { color: var(--c-primary); margin-bottom: 12px; }
.application-card__icon svg { width: 36px; height: 36px; }
.application-card__title { margin: 0 0 8px; font-size: 1.15rem; }
.application-card__desc { color: var(--c-muted); font-size: .9rem; line-height: 1.5; margin: 0 0 12px; }
.application-card__meta { display: flex; justify-content: space-between; align-items: center; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.blog-grid--compact { grid-template-columns: 1fr; gap: 12px; }
.blog-card { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--c-ink); transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.blog-card__image { aspect-ratio: 16/9; background: var(--c-line-soft); overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__image--placeholder { display: flex; align-items: center; justify-content: center; }
.blog-card__image--placeholder span { font-size: 3rem; font-weight: 800; color: var(--c-primary); opacity: .3; }
.blog-card__body { padding: 18px; }
.blog-card__body h2, .blog-card__body h4 { margin: .5rem 0; font-size: 1.05rem; }
.blog-card__body p { color: var(--c-muted); font-size: .9rem; margin: .35rem 0; }
.blog-card__body small { color: var(--c-muted); font-size: .78rem; }

/* ---------- Article page ---------- */
.article__header { background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%); color: #fff; padding: 48px 0 36px; }
.article__header h1 { color: #fff; margin: .5rem 0; font-size: 2.1rem; }
.article__header .badge { background: rgba(255,255,255,.2); color: #fff; }
.article__excerpt { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: .5rem 0 0; }
.article__meta { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: .75rem; }
.article__cover { margin-top: -20px; padding-bottom: 0; }
.article__cover img { width: 100%; border-radius: var(--r-lg); max-height: 460px; object-fit: cover; }
.article__related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.article__related h3 { margin-top: 0; }

/* ---------- Status dots ---------- */
.status-dot { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 600; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-muted); }
.status-dot--new::before { background: var(--c-primary-light); }
.status-dot--review::before { background: var(--c-warning); }
.status-dot--quoted::before { background: #8b5cf6; }
.status-dot--won::before { background: var(--c-success); }
.status-dot--lost::before { background: var(--c-danger); }

/* ---------- Utility classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--c-muted); }
.text-primary { color: var(--c-primary); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hidden { display: none !important; }
.rounded { border-radius: var(--r-md); }
.shadow { box-shadow: var(--shadow-sm); }
.bg-soft { background: var(--c-line-soft); }
.p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; }
.border { border: 1px solid var(--c-line); }

/* ---------- Error pages ---------- */
.error-page { max-width: 560px; margin: 80px auto; text-align: center; padding: 0 20px; }
.error-page__code { font-size: 6rem; font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: .5rem; }
.error-page__actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- Print-friendly ---------- */
@media print {
    .header, .footer, .whatsapp-fab, .topbar, .nav, .hero__actions { display: none !important; }
    body { background: #fff; }
}
