/* ==========================================================================
   Sonoran Plumbing Supply — Contractor Portal
   ========================================================================== */

:root {
    --brand: #f58220;
    --brand-dark: #c94f16;
    --brand-deep: #9a3d12;
    --brand-light: #fff7ed;
    --brand-glow: rgba(245, 130, 32, 0.32);

    --header: #070a0f;
    --header-2: #101722;
    --header-border: rgba(245, 130, 32, 0.24);

    --ink: #111827;
    --ink-muted: #4b5563;
    --ink-soft: #6b7280;

    --surface: #f4f1ec;
    --surface-alt: #ebe8e3;
    --surface-raised: #ffffff;
    --surface-dark: #1a2230;
    --surface-dark-2: #252f3f;

    --border: #e5e7eb;
    --border-strong: #d1d5db;

    --success: #0f8a3b;
    --success-bg: #e8f7ee;

    --danger: #dc2626;
    --danger-bg: #fef2f2;

    /* Consolidated in Phase 0 — collapses stray near-duplicate hex literals
       found scattered across three overlapping CSS patch passes. */
    --brand-hover: #ff6a00;
    --brand-active: #ed5a00;

    --tint-orange: #ffd4ae;
    --tint-orange-soft: #fdebd2;

    --overlay-deep-1: #111820;
    --overlay-deep-2: #0a0e14;
    --overlay-mid-1: #1a242f;
    --overlay-mid-2: #0c141f;
    --overlay-soft-1: #10161e;
    --overlay-soft-2: #070b12;
    --overlay-solid: #0a0d0f;
    --overlay-solid-2: #060708;
    --overlay-solid-3: #050607;

    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;

    --max: 1280px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --logo-width: clamp(15rem, 30vw, 24rem);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 22px;

    --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.12);

    --ease: 0.2s ease;
    --ease-base: 0.28s ease;

    --stats-float: clamp(3.5rem, 8vw, 5rem);
    --hero-workspace-reserve: clamp(6.5rem, 14vw, 9rem);
}

/* Base */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

img[hidden] {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.page-main {
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin: 0 auto;
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Buttons */

.btn {
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background var(--ease),
        color var(--ease),
        border-color var(--ease),
        transform var(--ease),
        box-shadow var(--ease);
}

/* Split from the base .btn rule: [hidden] and a class selector are equal
   specificity, so an unconditional "display" here would beat the browser's
   default [hidden]{display:none} and buttons like #checkoutBtn (hidden via
   JS in the cart-tier logic) would stay visible even when hidden=true. */
.btn:not([hidden]) {
    display: inline-flex;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible,
.access-btn:focus-visible,
.nav-links a:focus-visible,
.nav-phone:focus-visible,
.category-card:focus-visible,
.brand-card:focus-visible,
.material-list-btn:focus-visible,
.material-list-drawer__close:focus-visible,
.product-drawer__close:focus-visible,
.product-card-qty__btn:focus-visible,
.btn-details:focus-visible,
.btn-quote:focus-visible,
.btn-drawer-quote:focus-visible,
.mobile-bottom-nav__item:focus-visible {
    outline: 2px solid var(--brand-hover);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    box-shadow: 0 6px 20px var(--brand-glow);
}

.btn--primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn--secondary-cta {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
}

.btn--outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn--dark {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.btn--dark:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn--secondary {
    padding: 0.72rem 1.1rem;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--ink-muted);
    font-weight: 800;
}

.btn--secondary:hover {
    border-color: rgba(245, 130, 32, 0.4);
    color: var(--brand-deep);
}

.btn--on-dark {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn--featured {
    padding: 0.88rem 1.6rem;
    font-size: 0.96rem;
    box-shadow: 0 8px 28px var(--brand-glow), 0 0 0 2px var(--brand);
}

.quote-form__cta-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.quote-cart-hint {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-style: italic;
}

/* Site chrome */

.site-chrome {
    position: relative;
    z-index: 5;
}

.site-nav {
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.98) 0%, rgba(14, 18, 26, 0.94) 100%);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.site-nav__inner {
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, var(--logo-width)) 1fr auto;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 0.85rem 0;
}

.site-nav__links {
    justify-self: center;
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-self: end;
    /* Grid items default to min-width:auto, which forces the auto-sized
       grid column to grow to this row's unwrapped content width instead
       of letting flex-wrap (on .nav-actions) do its job — that was
       pushing the header ~80px past the viewport on non-home pages. */
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: opacity var(--ease), transform var(--ease);
}

.brand__mark {
    width: var(--logo-width);
    height: auto;
    max-height: 5.25rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.48));
}

svg.brand__mark {
    display: block;
    object-fit: unset;
}

a.brand:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.88);
    transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--brand);
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.material-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.material-list-btn:hover {
    background: rgba(245, 130, 32, 0.18);
    border-color: rgba(245, 130, 32, 0.45);
    transform: translateY(-1px);
}

.material-list-btn__icon {
    width: 1.05rem;
    height: 0.95rem;
    position: relative;
    flex-shrink: 0;
}

.material-list-btn__icon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0.12rem;
    bottom: 0;
    height: 0.72rem;
    border: 1.75px solid rgba(255, 255, 255, 0.88);
    border-top: none;
    border-radius: 0 0 3px 3px;
}

.material-list-btn__icon::after {
    content: "";
    position: absolute;
    left: 0.12rem;
    right: 0.24rem;
    top: 0;
    height: 0.48rem;
    border: 1.75px solid rgba(255, 255, 255, 0.88);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.material-list-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px var(--brand-glow);
}

.material-list-btn__count--empty {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.68rem 1.15rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.access-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--brand-glow);
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color var(--ease);
}

.nav-phone:hover {
    color: var(--brand-hover);
}

.nav-phone__icon {
    width: 0.85rem;
    height: 0.85rem;
    border: 1.75px solid currentColor;
    border-radius: 3px 3px 3px 0;
    flex-shrink: 0;
}

/* Hero */

.hero {
    position: relative;
    isolation: isolate;
    color: #ffffff;
    background:
        radial-gradient(ellipse 120% 80% at 70% -10%, rgba(245, 130, 32, 0.16) 0%, transparent 55%),
        linear-gradient(165deg, #070a0f 0%, #101722 42%, #171f2b 100%);
}

.hero--home {
    min-height: clamp(520px, 78vh, 680px);
    background:
        linear-gradient(180deg, rgba(7, 10, 15, 0.5) 0%, rgba(7, 10, 15, 0.82) 55%, rgba(7, 10, 15, 0.94) 100%),
        url("Assets/sonoran-mountain-hero.jpg") center bottom / cover no-repeat,
        radial-gradient(ellipse 90% 60% at 82% 8%, rgba(245, 130, 32, 0.2) 0%, transparent 58%),
        linear-gradient(165deg, #070a0f 0%, #121820 100%);
}

.hero--home::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4rem;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 10, 15, 0) 0%, var(--surface) 100%);
}

.hero--workspace {
    min-height: clamp(280px, 42vh, 380px);
    background:
        linear-gradient(180deg, rgba(7, 10, 15, 0.72) 0%, rgba(7, 10, 15, 0.92) 100%),
        url("Assets/sonoran-mountain-hero.jpg") center 42% / cover no-repeat,
        linear-gradient(165deg, #070a0f 0%, #151c27 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(115deg, rgba(8, 12, 18, 0.88) 0%, rgba(12, 18, 28, 0.72) 50%, rgba(18, 24, 34, 0.82) 100%),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 10px
        );
}

.hero-overlay--workspace {
    background:
        linear-gradient(102deg, rgba(7, 10, 16, 0.68) 0%, rgba(10, 15, 24, 0.48) 38%, rgba(14, 20, 30, 0.22) 62%, rgba(10, 14, 22, 0.42) 100%),
        radial-gradient(ellipse 80% 120% at 88% 50%, rgba(245, 130, 32, 0.10) 0%, transparent 55%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin: 0 auto;
    padding: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.hero-inner .site-chrome {
    width: calc(100% + (var(--gutter) * 2));
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
}

.hero-inner .site-nav__inner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.hero-inner--workspace {
    min-height: clamp(280px, 42vh, 380px);
    padding-bottom: var(--hero-workspace-reserve);
}

.hero-body--workspace {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 44rem;
    padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(245, 130, 32, 0.16);
    border: 1px solid rgba(245, 130, 32, 0.35);
    color: #ffd8b8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-headline,
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.2vw, 4.1rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.hero-headline__accent,
.hero-content h1 span {
    display: block;
    color: var(--brand);
    text-shadow: 0 8px 28px var(--brand-glow);
}

.hero-lead {
    margin-top: 0.9rem;
    max-width: 36rem;
    font-size: clamp(0.98rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

/* Hero stat panel — home page only, "Today's Inventory" card */

.hero-stat-panel {
    flex-shrink: 0;
    /* .page-home .hero-content sets order:2 (leftover from an earlier hero
       layout); force this panel after it regardless of that. */
    order: 3;
    width: clamp(220px, 22vw, 272px);
    margin-left: auto;
    align-self: center;
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--overlay-deep-1) 0%, var(--overlay-deep-2) 100%);
    border: 1px solid rgba(255, 106, 0, 0.28);
    box-shadow: var(--shadow-lg);
}

.hero-stat-panel__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tint-orange);
}

.hero-stat-panel__value {
    margin-top: 0.4rem;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-hover);
    text-shadow: 0 0 22px rgba(255, 106, 0, 0.35);
}

.hero-stat-panel__value span {
    font-size: 1.15rem;
    vertical-align: super;
}

.hero-stat-panel__label {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.hero-stat-panel__list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

.hero-stat-panel__list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-stat-panel__list-icon {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand-hover);
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
    flex-shrink: 0;
}

.premium-hero-stage:has(.hero-stat-panel) {
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-home .premium-hero-stage:has(.hero-stat-panel) .premium-hero-copy.hero-content {
    width: auto;
    max-width: 640px;
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 1024px) {
    .hero-stat-panel {
        display: none;
    }
}

/* Trust bar — home page only */

.trust-bar {
    display: none;
}

.page-home .trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    background: linear-gradient(180deg, #060a0f 0%, #0b1018 100%);
    border-top: 2px solid rgba(255, 106, 0, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Top brands scroller — inventory/category pages only, replaces the
   home page's stats trust-bar in the same header slot. Data-driven from
   data/brand-logo-manifest.json (js/inventory-app.js renderTopBrandsScroller)
   so swapping in a different vendor lineup is a one-file JSON edit, no
   markup changes. */
.top-brands-scroller {
    display: flex;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #060a0f 0%, #0b1018 100%);
    border-top: 2px solid rgba(255, 106, 0, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.top-brands-scroller__track {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    width: max-content;
    padding: 0.8rem 0;
    animation: top-brands-scroll 38s linear infinite;
}

.top-brands-scroller:hover .top-brands-scroller__track,
.top-brands-scroller:focus-within .top-brands-scroller__track {
    animation-play-state: paused;
}

@keyframes top-brands-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .top-brands-scroller__track {
        animation: none;
    }
}

/* Sleek treatment: the logo mark gets a small tight plate (several vendor
   logo files bake in an opaque white background, so it can't float bare on
   this dark bar) but no outer pill/border/shadow chrome around the whole
   chip, and the name drops to a quiet caption underneath instead of
   competing inline with the mark. */
.top-brands-scroller__chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin: 0 0.9rem;
    white-space: nowrap;
    transition: transform var(--ease);
}

.top-brands-scroller__chip:hover {
    transform: translateY(-1px);
}

.top-brands-scroller__chip img {
    max-height: 1.35rem;
    max-width: 4.5rem;
    width: auto;
    object-fit: contain;
    padding: 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    filter: grayscale(0.3);
    transition: filter var(--ease), background var(--ease);
}

.top-brands-scroller__chip:hover img {
    background: #ffffff;
    filter: grayscale(0);
}

.top-brands-scroller__chip span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--ease);
}

.top-brands-scroller__chip:hover span {
    color: var(--brand-hover);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 1.1rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item:last-child {
    border-right: none;
}

.trust-stat {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.01em;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 106, 0, 0.35);
}

.trust-stat sup {
    font-size: 0.65em;
    vertical-align: super;
}

.trust-detail {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 0.15rem;
}

/* Mobile bottom navigation — hidden on desktop/tablet, sticky on phone */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        background: var(--header);
        border-top: 1px solid var(--header-border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.32);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Reserve space so fixed content (footer CTAs, drawers) isn't hidden behind the nav */
    body {
        padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    }

    /* The chatbot launcher is also position:fixed at the bottom-right;
       lift it clear of the new bottom nav so neither tap target is blocked. */
    body #chatbot-container {
        bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px) + 0.75rem);
    }
}

/* Both the product detail drawer and the cart/material-list drawer slide in
   from the right and sit at a higher/equal z-index than the chatbot's
   fixed bottom-right launcher, so it was overlapping their footer buttons.
   Move it to the opposite corner while either drawer is open. */
#chatbot-container {
    transition: left var(--ease-base), right var(--ease-base);
}

body.product-drawer-open #chatbot-container,
body.material-list-open #chatbot-container {
    right: auto;
    left: clamp(1rem, 3vw, 1.75rem);
}

.mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.55rem 0.2rem 0.6rem;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--ease);
}

.mobile-bottom-nav__item[aria-current="page"] {
    color: var(--brand-hover);
}

.mobile-bottom-nav__icon {
    width: 1.3rem;
    height: 1.3rem;
    position: relative;
    flex-shrink: 0;
}

.mobile-bottom-nav__icon--home::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 0.9rem;
    height: 0.9rem;
    border: 1.75px solid currentColor;
    border-right: none;
    border-bottom: none;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-bottom-nav__icon--home::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.05rem;
    width: 0.72rem;
    height: 0.55rem;
    border: 1.75px solid currentColor;
    border-top: none;
    transform: translateX(-50%);
}

.mobile-bottom-nav__icon--search::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.05rem;
    width: 0.75rem;
    height: 0.75rem;
    border: 1.75px solid currentColor;
    border-radius: 50%;
}

.mobile-bottom-nav__icon--search::after {
    content: "";
    position: absolute;
    right: 0.05rem;
    bottom: 0.05rem;
    width: 0.45rem;
    height: 1.75px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: right center;
}

.mobile-bottom-nav__icon--cart::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0.1rem;
    bottom: 0;
    height: 0.68rem;
    border: 1.75px solid currentColor;
    border-top: none;
    border-radius: 0 0 3px 3px;
}

.mobile-bottom-nav__icon--cart::after {
    content: "";
    position: absolute;
    left: 0.1rem;
    right: 0.2rem;
    top: 0;
    height: 0.46rem;
    border: 1.75px solid currentColor;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.mobile-bottom-nav__icon--quote::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    right: 0.15rem;
    top: 0.05rem;
    bottom: 0.05rem;
    border: 1.75px solid currentColor;
    border-radius: 2px;
}

.mobile-bottom-nav__icon--quote::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    top: 0.42rem;
    height: 0;
    border-top: 1.5px solid currentColor;
    box-shadow: 0 0.22rem 0 currentColor;
}

.mobile-bottom-nav__icon--account::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.05rem;
    width: 0.5rem;
    height: 0.5rem;
    border: 1.75px solid currentColor;
    border-radius: 50%;
    transform: translateX(-50%);
}

.mobile-bottom-nav__icon--account::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0.95rem;
    height: 0.5rem;
    border: 1.75px solid currentColor;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    transform: translateX(-50%);
}

.mobile-bottom-nav__badge {
    position: absolute;
    top: 0.15rem;
    left: 50%;
    margin-left: 0.35rem;
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.15rem;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 0.95rem;
    text-align: center;
}

@media (max-width: 768px) {
    .trust-bar {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .trust-item:last-child {
        border-bottom: none;
    }
}

/* Home sections */

.page-main--home {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.home-section {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 2.8vw, 1.85rem);
    box-shadow: var(--shadow-sm);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-header {
    margin-bottom: 1.15rem;
}

.section-header--compact {
    margin-bottom: 0.85rem;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.05;
}

.section-header h2 span {
    color: var(--brand);
}

.section-subtitle {
    margin-top: 0.45rem;
    max-width: 42rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* Category grid */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.65rem;
    min-height: 7.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #ffffff 0%, #f8f6f2 100%);
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.category-card:hover {
    border-color: rgba(245, 130, 32, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    border: 1px solid rgba(245, 130, 32, 0.25);
    position: relative;
}

.category-card__icon::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border: 2px solid var(--brand);
    border-radius: 2px;
    opacity: 0.65;
}

.category-card--water-heaters .category-card__icon { background: linear-gradient(145deg, #fff7ed, #fed7aa); }
.category-card--fittings .category-card__icon { background: linear-gradient(145deg, #f0f9ff, #bae6fd); }
.category-card--tools .category-card__icon { background: linear-gradient(145deg, #f3f4f6, #d1d5db); }
.category-card--faucets .category-card__icon { background: linear-gradient(145deg, #eff6ff, #bfdbfe); }
.category-card--water-treatment .category-card__icon { background: linear-gradient(145deg, #ecfeff, #a5f3fc); }
.category-card--pex .category-card__icon { background: linear-gradient(145deg, #fef3c7, #fcd34d); }
.category-card--pool-pro .category-card__icon { background: linear-gradient(145deg, #dbeafe, #60a5fa); }
.category-card--service-plumbers-pro .category-card__icon { background: linear-gradient(145deg, #ecfdf5, #6ee7b7); }
.category-card--gas-pro .category-card__icon { background: linear-gradient(145deg, #fee2e2, #fca5a5); }

.category-card__label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.15;
}

/* Benefits */

.home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.home-benefit-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #faf9f7;
}

.home-benefit-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.home-benefit-card p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* Pickup panel */

.home-pickup__panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
    color: #ffffff;
}

.home-pickup__panel .section-eyebrow {
    color: var(--tint-orange);
}

.home-pickup__panel h2 span {
    color: var(--brand);
}

.home-pickup__lead {
    margin: 0.55rem 0 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.home-pickup__list {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.home-pickup__list li::before {
    content: "▸ ";
    color: var(--brand);
}

.home-pickup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-pickup__stats {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-pickup-stat {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-pickup-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
}

.home-pickup-stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

/* Brands */

.brand-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #faf9f7;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.brand-card:hover {
    border-color: rgba(245, 130, 32, 0.4);
    background: var(--brand-light);
    transform: translateY(-1px);
}

/* Final CTA */

.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface-dark) 0%, #0f141c 100%);
    color: #ffffff;
}

.home-cta h2 span {
    color: var(--brand);
}

.home-cta p {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.78);
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* Footer */

.site-footer {
    background: var(--header);
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid var(--header-border);
    margin-top: 1rem;
}

.site-footer__inner {
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin: 0 auto;
    padding: 1.5rem 0 1.75rem;
    display: grid;
    gap: 0.85rem;
}

.site-footer__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}

.site-footer__tagline {
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.site-footer__contact a {
    font-weight: 700;
    color: var(--brand);
}

.site-footer__contact a:hover {
    color: var(--tint-orange);
}

.site-footer__contact a.site-footer__address {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__contact a.site-footer__address:hover {
    color: var(--tint-orange);
}

.site-footer__note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Inventory workspace */

.page-main--inventory {
    margin-top: calc(var(--stats-float) * -1);
}

.stats-section {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: var(--section-gap, 1.5rem);
}

.stat-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
}

.stat-card--accent {
    border-color: rgba(245, 130, 32, 0.35);
    background: linear-gradient(145deg, #fff9f3 0%, #ffffff 100%);
}

.stat-card__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.stat-card__value {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ink);
    margin-top: 0.2rem;
}

.stat-card__detail {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 0.15rem;
}

.inventory-section {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.15rem, 2.8vw, 1.85rem);
    box-shadow: var(--shadow-md);
}

.inventory-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr) minmax(9rem, 0.75fr) auto;
    gap: 1rem 1.15rem;
    align-items: end;
    margin-bottom: 1.15rem;
    padding: 1rem 1.1rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.inventory-toolbar--category {
    grid-template-columns: minmax(0, 2fr) minmax(9rem, 0.75fr) auto;
}

.category-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    width: min(100%, var(--max));
    margin: 0 auto 0.85rem;
    padding: 0;
}

.category-subnav__chip {
    appearance: none;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.55rem 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.category-subnav__chip:hover {
    border-color: var(--brand);
    color: var(--brand-dark, var(--brand));
}

.category-subnav__chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(245, 130, 32, 0.22);
}

.category-subnav__chip:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.toolbar-field label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.toolbar-field input,
.toolbar-field select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.92rem;
}

.toolbar-field input:focus,
.toolbar-field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14);
}

.toolbar-results {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.toolbar-view {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-toggle {
    width: 2.35rem;
    height: 2.45rem;
    border: 0;
    background: #ffffff;
    color: var(--ink-soft);
    position: relative;
}

.view-toggle.is-active {
    background: var(--brand);
    color: #ffffff;
}

.view-toggle__grid::before {
    content: "";
    position: absolute;
    width: 0.55rem;
    height: 0.55rem;
    left: 0.45rem;
    top: 0.55rem;
    background: currentColor;
    box-shadow: 0.65rem 0 0 currentColor, 0 0.65rem 0 currentColor, 0.65rem 0.65rem 0 currentColor;
}

.view-toggle__list::before {
    content: "";
    position: absolute;
    width: 0.85rem;
    height: 0.12rem;
    left: 0.75rem;
    top: 0.72rem;
    background: currentColor;
    box-shadow: 0 0.28rem 0 currentColor, 0 0.56rem 0 currentColor, 0 0.84rem 0 currentColor;
}

/* Product grid */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
    animation: product-card-in 0.32s ease backwards;
}

/* Stagger the first couple rows slightly so a new page of results eases
   in together rather than popping in all at once. */
.product-card:nth-child(-n+4)  { animation-delay: 0.02s; }
.product-card:nth-child(n+5):nth-child(-n+8) { animation-delay: 0.06s; }
.product-card:nth-child(n+9):nth-child(-n+12) { animation-delay: 0.1s; }

@keyframes product-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        animation: none;
    }
}

/* placeholder: Favorites, non-functional — visible but disabled/no-op */
.product-card__favorite {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(7, 10, 15, 0.55);
    cursor: not-allowed;
}

.product-card__favorite-icon {
    position: relative;
    width: 0.85rem;
    height: 0.75rem;
}

.product-card__favorite-icon::before,
.product-card__favorite-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0.46rem;
    height: 0.7rem;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-right: none;
    border-radius: 0.46rem 0 0 0.46rem;
}

.product-card__favorite-icon::before {
    left: 0;
    transform: rotate(-45deg);
    transform-origin: right center;
}

.product-card__favorite-icon::after {
    right: 0;
    border-right: 1.5px solid rgba(255, 255, 255, 0.75);
    border-left: none;
    border-radius: 0 0.46rem 0.46rem 0;
    transform: rotate(45deg);
    transform-origin: left center;
}

.product-card:hover {
    border-color: rgba(245, 130, 32, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.75rem;
    box-sizing: border-box;
    background: #ffffff;
    transition: transform var(--ease-base);
}

.product-card:hover .product-card__image {
    transform: scale(1.04);
}

.product-card__body {
    padding: 0.85rem 1rem 0.65rem;
    flex: 1;
}

.product-card__toprow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-card__brand {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.product-card__part {
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-soft);
    white-space: nowrap;
}

.product-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.2rem 0;
}

.product-card__meta,
.product-card__desc {
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.45;
}

.product-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.product-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-deep);
}

.stock-badge {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
}

.product-card__actions {
    display: grid;
    gap: 0.45rem;
    padding: 0 1rem 1rem;
}

.product-card__quote-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem;
    align-items: center;
}

.product-card-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.product-card-qty__btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.product-card-qty__btn:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.product-card-qty__value {
    min-width: 2rem;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
}

.btn-details,
.btn-quote {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--ink-muted);
}

.btn-details:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.btn-quote {
    border-color: var(--brand);
    color: #ffffff;
    background: var(--brand);
    font-weight: 800;
}

.btn-quote:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-quote--added {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #ffffff;
}

/* Pagination */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.pagination-controls button {
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-weight: 700;
}

.pagination-controls button:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.pagination-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Breadcrumb */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb__sep {
    opacity: 0.45;
}

/* Material List drawer */

body.material-list-open {
    overflow: hidden;
}

.material-list-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
}

.material-list-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.material-list-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 15, 0.6);
    opacity: 0;
    transition: opacity var(--ease-base);
}

.material-list-drawer.is-open .material-list-drawer__backdrop {
    opacity: 1;
}

.material-list-drawer__panel {
    position: relative;
    width: min(100%, 28rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform var(--ease-base);
}

.material-list-drawer.is-open .material-list-drawer__panel {
    transform: translateX(0);
}

.material-list-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff9f3 0%, #ffffff 100%);
}

.material-list-drawer__eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.material-list-drawer__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.material-list-drawer__close {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ink-muted);
}

.material-list-drawer__close:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.material-list-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1rem;
}

.material-list-drawer__empty {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.55;
    padding: 1rem 0.25rem;
}

.material-list-drawer__items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.material-list-item {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.material-list-item__media {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-list-item__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.3rem;
    box-sizing: border-box;
}

.material-list-item__media--placeholder {
    background: linear-gradient(145deg, var(--brand-light) 0%, var(--tint-orange-soft) 100%);
}

.material-list-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-list-item__placeholder-icon {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(245, 130, 32, 0.4);
    border-radius: 4px;
}

.material-list-item__part {
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-muted);
}

.material-list-item__name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.1rem 0;
}

.material-list-item__price {
    font-size: 0.76rem;
    color: var(--ink-muted);
}

.material-list-item__price::after {
    content: " each";
}

.material-list-item__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.material-list-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.material-list-qty__btn {
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.material-list-qty__btn:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.material-list-qty__value {
    min-width: 1.75rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
}

.material-list-item__line-total {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--brand-deep);
}

.material-list-item__remove {
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--ink-soft);
}

.material-list-item__remove:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

.material-list-drawer__footer {
    padding: 0.95rem 1rem 1.15rem;
    border-top: 1px solid var(--border);
    background: var(--header);
    color: #ffffff;
}

.material-list-drawer__subtotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.material-list-drawer__subtotal strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand);
}

.material-list-drawer__tier-hint {
    font-size: 0.76rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

/* placeholder: Saved Material Lists / Quick Reorder, non-functional */
.material-list-drawer__save-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: not-allowed;
}

.material-list-drawer__save-list-badge {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.material-list-drawer__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.material-list-drawer__actions .btn--primary {
    box-shadow: none;
}

.material-list-drawer__actions .btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.88);
}

.material-list-drawer__actions .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
}

.material-list-drawer__actions .btn--featured {
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4), 0 0 0 1px var(--brand);
}

/* Product drawer */

body.product-drawer-open {
    overflow: hidden;
}

.product-drawer {
    position: fixed;
    inset: 0;
    z-index: 1150;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
}

.product-drawer:not([hidden]).is-open,
.product-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.product-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 15, 0.55);
    opacity: 0;
    transition: opacity var(--ease-base);
}

.product-drawer.is-open .product-drawer__backdrop {
    opacity: 1;
}

.product-drawer__panel {
    position: relative;
    width: min(100%, 26rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -10px 0 36px rgba(0, 0, 0, 0.22);
    transform: translateX(100%);
    transition: transform var(--ease-base);
}

.product-drawer.is-open .product-drawer__panel {
    transform: translateX(0);
}

.product-drawer__panel:focus-visible {
    outline: none;
}

.product-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff9f3 0%, #ffffff 100%);
}

.product-drawer__eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.product-drawer__close {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ink-muted);
}

.product-drawer__close:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.product-drawer__scroll {
    flex: 1;
    overflow-y: auto;
}

.product-drawer__media {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-drawer__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 1rem;
    box-sizing: border-box;
    background: #ffffff;
}

.product-drawer__placeholder {
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: var(--brand-deep);
    background: linear-gradient(145deg, var(--brand-light) 0%, var(--tint-orange-soft) 100%);
    justify-content: center;
}

/* [hidden] and a class-based "display" are equal specificity, so without
   this the author rule above would win over the browser's default
   [hidden]{display:none} and the placeholder would render on top of a
   real photo underneath regardless of the hidden attribute. */
.product-drawer__placeholder:not([hidden]) {
    display: flex;
}

.product-drawer__placeholder-mark {
    position: relative;
    width: 6rem;
    height: 6rem;
    border: 2.5px solid rgba(245, 130, 32, 0.7);
    border-radius: 12px;
    background: rgba(245, 130, 32, 0.1);
}

.product-drawer__placeholder-mark::before {
    content: "";
    position: absolute;
    inset: 1.35rem;
    border: 2.5px solid rgba(245, 130, 32, 0.85);
    border-radius: 50%;
}

.product-drawer__placeholder-mark::after {
    content: "";
    position: absolute;
    width: 0.9rem;
    height: 0.9rem;
    left: 1.1rem;
    bottom: 1.1rem;
    border-left: 2.5px solid rgba(245, 130, 32, 0.85);
    border-bottom: 2.5px solid rgba(245, 130, 32, 0.85);
    transform: rotate(45deg);
}

.product-drawer__placeholder-status {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.product-drawer__placeholder-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.product-drawer__content {
    padding: 1.15rem;
}

.product-drawer__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
}

.product-drawer__part {
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 0.65rem;
}

.product-drawer__desc {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.product-drawer__meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.product-drawer__meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
}

.product-drawer__meta-row dt {
    color: var(--ink-soft);
    font-weight: 700;
}

.product-drawer__meta-row dd {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.product-drawer__price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-deep) !important;
}

.product-drawer__footer {
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.product-drawer__quote-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
}

.btn-drawer-quote {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #ffffff;
    transition: background var(--ease), border-color var(--ease);
}

.btn-drawer-quote:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-drawer-quote--added {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.btn-drawer-quote--added:hover {
    background: var(--brand);
    color: #ffffff;
}

/* Quote page */

.page-quote .hero--quote {
    min-height: clamp(240px, 36vh, 320px);
}

.quote-section {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.15rem, 2.8vw, 1.85rem);
    box-shadow: var(--shadow-md);
}

/* Category CTA */

.category-cta .home-cta {
    width: 100%;
}

.category-brands {
    margin-top: 1.5rem;
}

/* Responsive */

@media (max-width: 1024px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-pickup__panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-nav__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-nav__links,
    .site-nav__actions {
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
        /* .site-nav__inner is flex, not grid, so once this row wraps onto
           its own line it has nothing beside it to shrink against — without
           an explicit width cap it renders at its unconstrained max-content
           size (670px for .site-nav__actions) and overflows the viewport. */
        width: 100%;
        max-width: 100%;
    }

    .brand__mark {
        width: clamp(11.5rem, 76vw, 16.5rem);
        max-height: 3.75rem;
    }

    .inventory-toolbar,
    .inventory-toolbar--category {
        grid-template-columns: 1fr;
    }

    .material-list-drawer__actions {
        grid-template-columns: 1fr;
    }

    .hero--home {
        min-height: auto;
    }

    .hero-inner--workspace {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .page-main--inventory {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .brand__mark {
        width: clamp(10.5rem, 92vw, 14rem);
        max-height: 3.2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .home-benefits__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========================================================================== 
   Sonoran Premium Contractor Homepage Refresh — May 2026
   Target: black/orange industrial UI, large logo, desert mountain hero,
   featured contractor categories, live inventory console.
   ========================================================================== */
:root {
    --sonoran-black: #030405;
    --sonoran-panel: #080b0e;
    --sonoran-panel-2: #11161b;
    --sonoran-orange: var(--brand-hover);
    --sonoran-orange-2: #f58220;
    --sonoran-line: rgba(255, 101, 8, 0.42);
    --sonoran-cream: #f4efe6;
}

body.page-home {
    background: var(--overlay-solid);
}

.page-home .site-nav,
.page-inventory .site-nav {
    background: rgba(0, 0, 0, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
}

.page-home .site-nav__inner,
.page-inventory .site-nav__inner {
    grid-template-columns: minmax(280px, 430px) minmax(360px, 1fr) auto;
    min-height: 6.8rem;
}

.page-home .brand__mark,
.page-inventory .brand__mark {
    width: clamp(19rem, 27vw, 28rem);
    max-height: 8rem;
    filter: drop-shadow(0 12px 26px rgba(255, 101, 8, 0.22)) drop-shadow(0 18px 34px rgba(0,0,0,.8));
}

.page-home .nav-links a,
.page-inventory .nav-links a {
    font-size: 1.04rem;
    font-weight: 800;
}

.page-home .nav-links a[aria-current="page"],
.page-inventory .nav-links a[aria-current="page"] {
    color: var(--brand);
}

.page-home .material-list-btn,
.page-inventory .material-list-btn {
    border-color: var(--sonoran-line);
    background: rgba(255, 101, 8, 0.05);
    min-height: 3.2rem;
    padding-inline: 1.3rem;
}

.page-home .access-btn,
.page-inventory .access-btn,
.page-home .btn--primary {
    background: linear-gradient(180deg, var(--brand-hover) 0%, var(--brand-active) 100%);
    border-color: var(--brand-hover);
    box-shadow: 0 12px 28px rgba(255, 101, 8, .24);
}

.hero--home {
    min-height: 650px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.83) 0%, rgba(0,0,0,.56) 47%, rgba(0,0,0,.78) 100%),
        linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.14) 50%, rgba(0,0,0,.96) 100%),
        url("Assets/sonoran-mountain-hero.jpg") center center / cover no-repeat,
        var(--overlay-solid-2);
}

.hero--workspace {
    background:
        linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 50%, rgba(0,0,0,.52) 100%),
        url("Assets/sonoran-mountain-hero.jpg") center 30% / cover no-repeat,
        var(--overlay-solid-2);
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(0,0,0,.18) 0, rgba(0,0,0,.16) 54%, rgba(0,0,0,.44) 100%),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 9px);
}

.page-home .hero-inner {
    width: 100%;
    max-width: none;
    padding-bottom: 0;
}

.page-home .hero-inner .site-chrome {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.page-home .hero-inner .site-nav__inner,
.page-home .hero-content,
.page-home .home-search-panel,
.page-home .section-header--inventory-home,
.page-home .product-grid--home,
.page-home .pagination-controls--home {
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin-left: auto;
    margin-right: auto;
}

.page-home .hero-content {
    max-width: 760px;
    padding-top: clamp(2.1rem, 5vw, 4rem);
    padding-bottom: clamp(1.2rem, 3vw, 2rem);
}

.page-home .hero-eyebrow {
    display: none;
}

.page-home .hero-headline,
.page-home .hero-content h1 {
    font-size: clamp(3.5rem, 8.8vw, 6.6rem);
    line-height: .84;
    letter-spacing: .018em;
    text-shadow: 0 9px 18px rgba(0,0,0,.62);
}

.page-home .hero-headline__accent,
.page-home .hero-content h1 span {
    color: var(--sonoran-orange);
    text-shadow: 0 10px 30px rgba(255, 101, 8, .34), 0 8px 14px rgba(0,0,0,.7);
}

.page-home .hero-lead {
    max-width: 620px;
    font-size: clamp(1.08rem, 2vw, 1.34rem);
    line-height: 1.38;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,.75);
}

.page-home .hero-actions .btn {
    min-width: 170px;
    min-height: 3.1rem;
    font-size: 1rem;
}

.page-main--home {
    width: 100%;
    margin-top: 0;
    padding-bottom: 0;
    background: var(--overlay-solid);
}

.home-inventory-console {
    background: linear-gradient(180deg, rgba(5,8,9,.96) 0%, rgba(9,13,15,.96) 100%);
    border-top: 1px solid rgba(255, 101, 8, .18);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 1.1rem 0 2.2rem;
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(220px, .7fr) minmax(150px, .35fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.6rem;
}

.home-search-panel label,
.inventory-toolbar label {
    color: #fff;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-search-panel input,
.home-search-panel select,
.inventory-toolbar input,
.inventory-toolbar select {
    min-height: 3rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background: #fff;
    color: #111;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.home-search-panel .toolbar-results {
    color: #f6efe4;
    font-weight: 800;
    white-space: nowrap;
    align-self: center;
    margin-top: 1.6rem;
}

.section-header--inventory-home {
    text-align: left;
    color: #fff;
    margin-bottom: 1rem;
}

.section-header--inventory-home h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
}

.section-header--inventory-home h2 span {
    color: var(--sonoran-orange);
}

.product-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid--home .product-card {
    background: #f7f1e8;
    border-color: rgba(0,0,0,.12);
    box-shadow: 0 12px 32px rgba(0,0,0,.16);
}

.product-grid--home .product-card__media {
    background: #fff;
}

.product-grid--home .product-card__title {
    color: #0d0f12;
    font-family: var(--font-display);
    letter-spacing: .035em;
    text-transform: uppercase;
}

.product-grid--home .product-card__meta {
    color: #9a3d12;
    font-weight: 900;
}

.product-grid--home .product-card__price {
    color: var(--sonoran-orange);
    font-size: 1.2rem;
    font-weight: 900;
}

.home-section.home-categories {
    width: 100%;
    max-width: none;
    border-radius: 0;
    border: 0;
    margin: 0;
    padding: 1.6rem var(--gutter) 1.8rem;
    background: linear-gradient(180deg, #f3eee5, #e8e0d5);
    box-shadow: none;
}

.home-categories .section-header {
    width: min(100%, var(--max));
    margin: 0 auto 1rem;
    text-align: center;
}

.home-categories .section-header h2 {
    color: #101010;
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.home-categories .section-subtitle,
.home-categories .section-eyebrow {
    display: none;
}

.home-categories .category-grid {
    width: min(100%, var(--max));
    margin: 0 auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem;
}

.home-categories .category-grid .category-card--pro .category-card__label {
    font-size: clamp(0.82rem, 1.05vw, 1.05rem);
    line-height: 1.1;
}

.home-categories .category-card {
    min-height: 10.6rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(255,255,255,.12), transparent 34%),
        linear-gradient(180deg, #181b1f 0%, var(--overlay-solid-3) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px rgba(0,0,0,.28);
    color: #fff;
    padding: 0;
    position: relative;
}

.home-categories .category-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 40%;
    padding: 0.65rem 0.65rem 2.2rem;
    box-sizing: border-box;
    opacity: 0.82;
}

.home-categories .category-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    border-radius: 0 0 10px 10px;
    pointer-events: none;
    z-index: 1;
}

.home-categories .category-card__label {
    position: relative;
    z-index: 2;
    padding: .55rem .65rem;
}

.home-categories .category-card:hover {
    transform: translateY(-4px);
    border-color: var(--sonoran-orange);
    box-shadow: 0 16px 32px rgba(255, 101, 8, .2), 0 16px 32px rgba(0,0,0,.34);
}

.home-categories .category-card__icon {
    width: 4.1rem;
    height: 4.1rem;
    border: 0;
    background: transparent !important;
}

.home-categories .category-card__icon::before {
    inset: 0;
    border: 0;
    border-radius: 0;
    opacity: 1;
    background: var(--sonoran-orange);
    mask: radial-gradient(circle at 50% 35%, #000 0 42%, transparent 43%), linear-gradient(#000,#000);
    -webkit-mask: radial-gradient(circle at 50% 35%, #000 0 42%, transparent 43%), linear-gradient(#000,#000);
}

.home-categories .category-card__label {
    color: #fff;
    font-size: 1.08rem;
    line-height: .95;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.home-benefits,
.home-pickup,
.home-brands,
.home-cta-final {
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin-left: auto;
    margin-right: auto;
}

.material-list-drawer,
.material-list-panel,
[data-material-list-panel] {
    background: rgba(4, 6, 8, .98) !important;
}

@media (max-width: 1180px) {
    .page-home .site-nav__inner,
    .page-inventory .site-nav__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: auto;
    }
    .page-home .site-nav__actions { justify-self: center; }
    .home-search-panel { grid-template-columns: 1fr 1fr; }
    .home-categories .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .product-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .page-home .hero-headline,
    .page-home .hero-content h1 { font-size: clamp(3rem, 18vw, 4.3rem); }
    .home-search-panel { grid-template-columns: 1fr; }
    .home-categories .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .product-grid--home { grid-template-columns: 1fr; }
    .home-sort-field { display: none; }
}

/* ======================================================================
   EXECUTION BUILD OVERRIDES — Approved Premium Contractor Homepage
   ====================================================================== */
:root {
    --brand: var(--brand-hover);
    --brand-dark: var(--brand-active);
    --brand-glow: rgba(255, 106, 0, 0.42);
    --header: #020303;
    --surface: #eee9df;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

body.page-home {
    background: var(--overlay-solid-3);
}

.page-home .hero--home {
    min-height: 760px;
    overflow: visible;
    background:
        linear-gradient(90deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.10) 42%, rgba(0,0,0,.52) 100%),
        linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.62) 100%),
        url("Assets/sonoran-mountain-hero.jpg") center center / cover no-repeat;
}

.page-home .hero--home::after {
    display: none;
}

.page-home .hero-inner {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
}

.page-home .site-nav__inner {
    width: min(100% - 48px, 1520px);
    max-width: 1520px;
}

.page-home .site-nav {
    background: rgba(0,0,0,.98);
    box-shadow: none;
}

.page-home .site-nav__inner {
    grid-template-columns: minmax(270px, 430px) 1fr auto;
    min-height: 106px;
    padding-top: 0;
    padding-bottom: 0;
}

.page-home .brand__mark {
    width: clamp(360px, 30vw, 470px);
    max-height: 135px;
    filter: drop-shadow(0 0 22px rgba(255,106,0,.2));
}

.page-home .nav-links a {
    font-size: 1.05rem;
    font-weight: 900;
}

.page-home .nav-links a[aria-current="page"] {
    color: var(--brand);
}

.page-home .material-list-btn,
.page-home .access-btn {
    min-height: 52px;
    font-size: .98rem;
    border-radius: 6px;
}

.page-home .material-list-btn {
    padding-inline: 1.25rem;
    border-color: rgba(255,106,0,.7);
    background: rgba(0,0,0,.42);
}

.page-home .access-btn {
    padding-inline: 1.55rem;
    background: linear-gradient(180deg, var(--brand-hover), var(--brand-active));
}

.page-home .hero-content {
    order: 2;
    width: min(100% - 64px, 1520px);
    max-width: none;
    margin: 0 auto;
    padding: clamp(2.8rem, 5vw, 5rem) 0 clamp(4rem, 6vw, 6.2rem);
}

.page-home .hero-eyebrow {
    background: rgba(255,106,0,.12);
    color: #ffd4ad;
    border-color: rgba(255,106,0,.45);
    font-size: .78rem;
    letter-spacing: .16em;
}

.page-home .hero-headline,
.page-home .hero-content h1 {
    max-width: 920px;
    font-size: clamp(4rem, 7vw, 6.9rem);
    line-height: .82;
    letter-spacing: .02em;
    text-shadow: 0 4px 20px rgba(0,0,0,.72);
}

.page-home .hero-headline__accent,
.page-home .hero-content h1 span {
    color: var(--brand-hover);
    text-shadow: 0 8px 35px rgba(255,106,0,.42), 0 3px 8px rgba(0,0,0,.8);
}

.page-home .hero-lead {
    max-width: 650px;
    font-size: clamp(1.08rem, 1.5vw, 1.34rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.page-home .hero-actions .btn {
    min-width: 180px;
    min-height: 54px;
    border-radius: 6px;
    font-size: 1rem;
}

.page-home .page-main--home {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding-bottom: 0;
    background: #eee9df;
}

.page-home .home-inventory-console {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.page-home .home-search-panel {
    display: grid;
    grid-template-columns: minmax(300px, 1.3fr) minmax(220px, .65fr) auto auto;
    align-items: end;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.15rem clamp(2rem, 4vw, 4rem);
    background: linear-gradient(180deg, rgba(5,8,9,.96), rgba(5,8,9,.99));
    border: 0;
    border-radius: 0;
}

.page-home .home-search-panel label {
    color: #fff;
    font-size: .84rem;
    letter-spacing: .08em;
}

.page-home .home-search-panel input,
.page-home .home-search-panel select {
    height: 52px;
    border-radius: 6px;
    font-size: 1rem;
}

.page-home .home-search-panel .toolbar-results,
.page-home .home-search-panel .toolbar-sort,
.page-home .home-search-panel .view-toggle {
    color: #fff;
}

.page-home .home-categories {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.35rem clamp(2rem, 4vw, 4rem) 1.6rem;
    border: 0;
    border-radius: 0;
    background: #f3f0e9;
    box-shadow: inset 0 12px 26px rgba(0,0,0,.08);
}

.page-home .home-categories .section-header {
    text-align: center;
    margin-bottom: 1rem;
}
.page-home .home-categories .section-eyebrow,
.page-home .home-categories .section-subtitle { display: none; }
.page-home .home-categories h2 {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: #0b0c0d;
}
.page-home .home-categories h2::before,
.page-home .home-categories h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background: var(--brand);
}

@media (max-width: 480px) {
    /* Two 70px dashes + 2 * 1rem gap + a 1.9rem-floor heading don't fit a
       phone-width container — the row was overflowing the page instead of
       wrapping (flex items don't wrap onto a new line by themselves). */
    .page-home .home-categories h2 {
        font-size: clamp(1.4rem, 7vw, 1.9rem);
        gap: 0.5rem;
    }
    .page-home .home-categories h2::before,
    .page-home .home-categories h2::after {
        width: 28px;
    }
}

.page-home .category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem;
}

/* Pro cards span 2 columns each so their edges lock to every 2nd regular column */
.page-home .category-grid .category-card--pro {
    grid-column: span 2;
}

.page-home .home-categories .category-card {
    min-height: 170px;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 1rem .7rem .9rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 25%, rgba(255,255,255,.16), transparent 34%),
        linear-gradient(180deg, #151515, #050505);
    box-shadow: 0 12px 22px rgba(0,0,0,.28);
}

.page-home .home-categories .category-card__icon {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    position: relative;
    flex-shrink: 0;
}

.page-home .home-categories .category-card__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand);
    opacity: .88;
    border-radius: 0;
    font-size: 0;
}

.page-home .home-categories .category-card__icon::after {
    display: none;
}

/* Water Heaters — tank octagon */
.page-home .category-card--water-heaters .category-card__icon::before {
    clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
}

/* Fittings — pipe cross / T-joint */
.page-home .category-card--fittings .category-card__icon::before {
    clip-path: polygon(33% 0%, 67% 0%, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0% 67%, 0% 33%, 33% 33%);
}

/* Tools — hexagon (bolt/nut head) */
.page-home .category-card--tools .category-card__icon::before {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Faucets — arch / dome */
.page-home .category-card--faucets .category-card__icon::before {
    clip-path: polygon(10% 100%, 10% 44%, 24% 18%, 50% 0%, 76% 18%, 90% 44%, 90% 100%);
}

/* Water Treatment — circle (filter) */
.page-home .category-card--water-treatment .category-card__icon::before {
    clip-path: circle(46% at 50% 50%);
}

/* PEX — parallelogram (pipe/tube run) */
.page-home .category-card--pex .category-card__icon::before {
    clip-path: polygon(18% 0%, 100% 0%, 82% 100%, 0% 100%);
}

/* Pool Pro — wave */
.page-home .category-card--pool-pro .category-card__icon::before {
    clip-path: polygon(0% 55%, 14% 32%, 28% 55%, 43% 32%, 57% 55%, 71% 32%, 86% 55%, 100% 38%, 100% 100%, 0% 100%);
}

/* Service Plumbers Pro — wrench head */
.page-home .category-card--service-plumbers-pro .category-card__icon::before {
    clip-path: polygon(8% 38%, 28% 18%, 48% 18%, 68% 8%, 88% 18%, 92% 38%, 78% 52%, 78% 100%, 22% 100%, 22% 52%);
}

/* Gas Pro — diamond / flame */
.page-home .category-card--gas-pro .category-card__icon::before {
    clip-path: polygon(50% 4%, 92% 50%, 50% 96%, 8% 50%);
}

.page-home .home-categories .category-card__label {
    color: #fff;
    font-size: 1.25rem;
    line-height: .95;
    text-shadow: 0 2px 6px rgba(0,0,0,.8);
}

.page-home .home-inventory-console .section-header--inventory-home,
.page-home .product-grid--home,
.page-home .home-benefits,
.page-home .home-pickup,
.page-home .home-brands,
.page-home .home-cta-final {
    width: min(100% - 64px, 1520px);
    margin-left: auto;
    margin-right: auto;
}

.page-home .home-inventory-console .section-header--inventory-home {
    margin-top: 0;
    padding-top: 2rem;
}

.page-home .home-inventory-console .section-header--inventory-home h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

@media (max-width: 1180px) {
    .page-home .site-nav__inner { grid-template-columns: 1fr; justify-items: center; padding: 1rem 0; }
    .page-home .site-nav__actions { justify-self: center; }
    /* 3 regular + pro cards each span 1 → same 3-col track, edges still align */
    .page-home .category-grid { grid-template-columns: repeat(3, 1fr); }
    .page-home .category-grid .category-card--pro { grid-column: span 1; }
    .page-home .home-search-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .page-home .hero-content { width: min(100% - 32px, 100%); }
    .page-home .hero-headline, .page-home .hero-content h1 { font-size: 3.3rem; }
    /* 2 regular + pro cards span full width */
    .page-home .category-grid { grid-template-columns: repeat(2, 1fr); }
    .page-home .category-grid .category-card--pro { grid-column: span 2; }
    .page-home .home-search-panel { grid-template-columns: 1fr; padding-inline: 1rem; }
}
.premium-hero-stage {
    width: min(100% - 6rem, 1280px);
    margin: 0 auto;
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 3.5rem 0 2.5rem;
}

.premium-hero-copy {
    max-width: 720px;
}

.page-home .brand__mark {
    width: clamp(280px, 28vw, 430px);
    max-height: none;
}

.page-home .hero-headline {
    font-size: clamp(2.5rem, 7vw, 6.8rem);
    line-height: 0.88;
}

.page-home .hero-headline span {
    color: var(--brand-hover);
}

.page-home .hero-lead {
    font-size: 1.25rem;
    max-width: 650px;
}

.page-home .hero-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.4);
    z-index: 1;
}

/* =========================================================================
   BUG FIX PATCH — Hero containment · Quote page · Checkout · Placeholders
   ========================================================================= */

/* Bug 1: Hero overflow containment
   Prevents content from escaping the hero boundary and visually overlapping
   sections below. Applies to all hero elements (home + workspace). */
.hero {
    overflow: hidden;
}

/* Bug 1b: bottom fade disabled — hero is self-contained */
.page-home .hero--home::after {
    display: none;
}

/* Bug 2: Quote page dark nav — extend the same treatment as .page-inventory */
.page-quote .site-nav {
    background: rgba(0, 0, 0, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
}

.page-quote .nav-links a {
    color: rgba(255, 255, 255, 0.88);
}

.page-quote .nav-links a:hover,
.page-quote .nav-links a[aria-current="page"] {
    color: var(--brand);
}

/* Bug 4: Quote page main layout — 2-column grid (list | form) */
.page-main--quote {
    display: grid;
    grid-template-columns: 1.05fr 1.45fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
    padding-bottom: 3.5rem;
}

@media (max-width: 860px) {
    .page-main--quote { grid-template-columns: 1fr; }
}

/* Section card containers */
.quote-section,
.quote-form-section {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 2.5vw, 1.85rem);
    box-shadow: var(--shadow-md);
}

/* Form field grid: 2-col for name/company/phone/email */
.quote-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1rem;
    margin-bottom: 0.9rem;
}

@media (max-width: 560px) {
    .quote-form__grid { grid-template-columns: 1fr; }
}

.quote-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.quote-field label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.quote-field input,
.quote-field textarea,
.quote-field select {
    padding: 0.72rem 0.9rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quote-field input:focus,
.quote-field textarea:focus,
.quote-field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
    outline: none;
}

.quote-field textarea {
    resize: vertical;
    min-height: 5.5rem;
}

.quote-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    justify-content: space-between;
}

.quote-form__cta-group {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}

.quote-cart-hint {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    color: var(--ink-muted);
    font-style: italic;
    line-height: 1.5;
}

.quote-success:not([hidden]) {
    display: block;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 138, 59, 0.08);
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(15, 138, 59, 0.22);
}

/* Quote item list on quote.html */
.quote-list:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.quote-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #faf9f7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.18s ease;
}

.quote-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.quote-item__main { flex: 1; min-width: 0; }

.quote-item__part {
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quote-item__product {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.18rem 0;
    color: var(--ink);
}

.quote-item__desc {
    font-size: 0.77rem;
    color: var(--ink-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quote-item__qty {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-top: 0.2rem;
}

.quote-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.quote-item__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-deep);
}

.btn-quote-remove {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 0.28rem 0.6rem;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.btn-quote-remove:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

/* Quote empty state card */
.quote-empty-card {
    text-align: center;
    padding: 2.5rem 1rem;
}

.quote-empty-card__icon { margin-bottom: 0.85rem; }

.quote-empty-card__icon-mark {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #f5f3ef;
}

.quote-empty-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.quote-empty-card__text {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

.quote-empty-card__text a { color: var(--brand); font-weight: 700; }

/* Bug 5: Clean product placeholder panels — dark intentional look */
.product-card__media--placeholder {
    background: linear-gradient(160deg, var(--overlay-deep-1) 0%, var(--overlay-deep-2) 100%);
    flex-direction: column;
    gap: 0.5rem;
}

.product-card__placeholder-icon {
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid rgba(255, 106, 0, 0.65);
    border-radius: 6px;
    background: rgba(255, 106, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card__placeholder-icon::after {
    content: "";
    display: block;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid rgba(255, 106, 0, 0.85);
    border-radius: 50%;
}

.product-card__placeholder-label {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    padding: 0 0.5rem;
    line-height: 1.35;
    max-width: 100%;
}

.product-card__placeholder-sublabel {
    position: static;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 106, 0, 0.7);
}

/* Material list drawer item placeholder */
.material-list-item__media--placeholder {
    background: linear-gradient(145deg, var(--overlay-deep-1), var(--overlay-deep-2));
}

.material-list-item__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.material-list-item__placeholder-icon {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid rgba(255, 106, 0, 0.35);
    border-radius: 3px;
    background: rgba(255, 106, 0, 0.06);
}

/* Checkout placeholder page */
.page-main--checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 2rem var(--gutter, 1.5rem);
    padding-bottom: 4rem;
    min-height: 40vh;
}

.checkout-placeholder-section {
    width: 100%;
    max-width: 780px;
}

.checkout-placeholder-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-top: 1.5rem;
}

.checkout-placeholder-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    border: 2px solid rgba(255, 106, 0, 0.35);
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.06);
    position: relative;
}

.checkout-placeholder-icon::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 1.25rem; height: 1.25rem;
    border: 2px solid rgba(255, 106, 0, 0.5);
    border-radius: 3px;
}

.checkout-placeholder-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 0.65rem;
}

.checkout-placeholder-lead {
    font-size: 0.95rem;
    color: var(--ink-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.checkout-placeholder-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    text-align: left;
}

@media (max-width: 580px) {
    .checkout-placeholder-options { grid-template-columns: 1fr; }
}

.checkout-option {
    background: #f9f8f6;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-option h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
}

.checkout-option p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
    flex: 1;
}

.checkout-option .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.checkout-placeholder-back {
    margin-top: 0.25rem;
}

.checkout-back-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.18s ease;
}

.checkout-back-link:hover { color: var(--brand); }

.checkout-summary-section {
    width: 100%;
    max-width: 780px;
}

.checkout-summary-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: var(--shadow-md);
}

.checkout-summary-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.checkout-summary-item__qty {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.checkout-summary-subtotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.checkout-summary-subtotal strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand);
}

/* placeholder: Contractor Dashboard preview (login.html), non-functional */
.account-preview {
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin: 1.5rem auto 0;
    padding-bottom: 3rem;
}

.account-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.account-preview__item {
    padding: 1.1rem 1.15rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
}

.account-preview__badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-preview__item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.account-preview__item p {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* =====================================================================
   LANGUAGE TOGGLE — English / Español
   ===================================================================== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.18rem 0.42rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: color 0.16s ease;
    line-height: 1;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.92);
}

.lang-btn.is-active {
    color: var(--brand);
}

.lang-sep {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
    line-height: 1;
}

.page-home .lang-btn {
    font-size: 0.72rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOMEPAGE HERO — Definitive Fix (supersedes all prior page-home hero blocks)
   Mountain image visible · large logo · orange/black · feature strip ordered
   ══════════════════════════════════════════════════════════════════════════ */

.page-home .site-chrome {
    display: flex;
    flex-direction: column;
}

/* ── Nav bar: flex layout, logo left, links+actions right ─────────────────── */
.page-home .site-nav {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 101, 8, 0.30);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.page-home .site-nav__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: min(100% - 3rem, 1280px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.page-home .brand__mark {
    width: clamp(200px, 26vw, 400px);
    max-width: 400px;
    max-height: 5.5rem;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(255, 101, 8, 0.20));
}

.page-home .site-nav__links {
    margin-left: auto;
    justify-self: unset;
}

.page-home .site-nav__actions {
    justify-self: unset;
    flex-shrink: 0;
}

/* ── Flex item order inside hero-inner:
      site-chrome (nav + feature strip) → premium-hero-stage ─────────────── */
.page-home .hero-inner {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
}

.page-home .site-chrome        { flex-shrink: 0; }
.page-home .premium-hero-stage { min-height: 0; width: 100%; margin: 0; padding: 0; }

/* ── Hero: mountain image clearly visible, left-side text overlay ─────────── */
.page-home .hero--home {
    min-height: clamp(480px, 62vh, 620px);
    overflow: hidden;
    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.28) 38%,
            rgba(0, 0, 0, 0.08) 62%,
            rgba(0, 0, 0, 0.02) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.05) 45%,
            rgba(0, 0, 0, 0.18) 100%),
        url("Assets/sonoran-mountain-hero.jpg") center 42% / cover no-repeat;
}

.page-home .hero--home::after { display: none; }
.page-home .hero-overlay      { display: none; }

/* ── Hero copy ───────────────────────────────────────────────────────────── */
.page-home .hero-content {
    max-width: 820px;
    width: auto;
    margin: 0;
    padding-left: clamp(2rem, 5vw, 4rem);
    padding-right: 2rem;
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-home .hero-eyebrow {
    display: inline-block;
    background: rgba(255, 101, 8, 0.14);
    border-color: rgba(255, 101, 8, 0.38);
    color: rgba(255, 255, 255, 0.90);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.page-home .hero-eyebrow__loc {
    color: var(--brand-hover);
    font-weight: 800;
}

.page-home .hero-headline,
.page-home .hero-content h1 {
    font-size: clamp(3.2rem, 7.5vw, 6.5rem);
    line-height: 0.88;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.70);
    text-transform: uppercase;
    max-width: none;
}

.page-home .hero-headline__accent,
.page-home .hero-content h1 span,
.page-home .hero-headline span {
    display: block;
    color: var(--brand-hover);
    text-shadow: 0 6px 24px rgba(255, 101, 8, 0.42), 0 3px 8px rgba(0, 0, 0, 0.75);
}

.page-home .hero-lead {
    max-width: 580px;
    font-size: clamp(0.96rem, 1.5vw, 1.12rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    line-height: 1.52;
    margin-top: 0.9rem;
}

.page-home .hero-actions {
    margin-top: 1.4rem;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.page-home .hero-actions .btn {
    min-height: 2.85rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.96rem;
    border-radius: 6px;
    min-width: unset;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .page-home .site-nav__inner { gap: 1rem; }
}

@media (max-width: 720px) {
    .page-home .hero--home { min-height: 420px; }
    .page-home .hero-content {
        padding-left: clamp(1.25rem, 5vw, 2rem);
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }
    .page-home .hero-headline,
    .page-home .hero-content h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .page-home .site-nav__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .page-home .site-nav__links { margin-left: 0; }
}

/* ── Inventory strip below hero (mockup: cream panel + white search) ─────── */
.page-home .home-search-panel {
    background: #f2ede4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.15rem clamp(2rem, 4vw, 4rem);
    grid-template-columns: minmax(280px, 1.35fr) minmax(220px, 0.7fr);
}

/* This unconditional 2-column grid above has the same specificity as (and
   comes after) the mobile-stacking rules earlier in this file, so it was
   silently winning at every width, including phones — the category field
   rendered in a second column that no longer existed on screen and ran off
   the right edge. Restate the mobile stack here, after it, so it wins. */
@media (max-width: 720px) {
    .page-home .home-search-panel {
        grid-template-columns: 1fr;
        padding-inline: 1rem;
    }
}

.page-home .home-search-panel label {
    color: #374151;
    font-weight: 800;
}

.page-home .home-sort-field {
    display: none;
}

.page-home .home-search-panel .toolbar-results {
    display: none;
}

/* Product grid hidden until search script activates it */
.page-home .home-inventory-results {
    display: none;
}

.page-home .home-inventory-console {
    background: #f2ede4;
    padding-bottom: 0;
}

.page-home .product-grid--home {
    padding: 0 clamp(2rem, 4vw, 4rem);
    background: #f2ede4;
}

.page-home .pagination-controls--home {
    background: #f2ede4;
    padding: 0 clamp(2rem, 4vw, 4rem) 1.5rem;
}

/* ── Featured brand logos ────────────────────────────────────────────────── */
.brand-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem clamp(2rem, 4vw, 4rem) 2rem;
}

/* Sleek "trusted-by" treatment: no card chrome, muted logos that come to
   full color on hover, quiet caption underneath rather than a bold label
   competing with the mark. */
.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.75rem;
    min-width: 170px;
    min-height: 96px;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.18s;
}

.brand-card:hover {
    transform: translateY(-2px);
}

/* When no logo image is present the card shows as a clean text-only tile */
.brand-card:not(:has(.brand-logo:not([style*="display:none"]))) .brand-name,
.brand-card .brand-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-faint, #9a8f80);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    transition: color 0.18s;
}

.brand-card:hover .brand-name {
    color: var(--brand-dark);
}

.brand-logo {
    max-height: 64px;
    max-width: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s;
}

.brand-card:hover .brand-logo {
    transform: scale(1.04);
}

.brand-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

/* ── Manufacturer marquee — continuous scroll, pause on hover ─────────────
   Two identical .brand-strip copies sit side by side inside .brand-marquee;
   both animate translateX(0 → -100% of their own width) in lockstep, which
   reads as one seamless infinite belt. Second copy is aria-hidden/untabbable
   so screen readers and keyboard users only encounter the brand list once. */
.brand-marquee {
    display: flex;
    overflow: hidden;
    /* Its two .brand-strip children are flex-shrink:0 + width:max-content
       (by design, so the scroll animation has a fixed distance to travel),
       which otherwise pulls this container's own box out to their combined
       ~2250px width and inflates the page's scrollable area even though
       overflow:hidden clips them visually. Cap it to the section's width. */
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 0 2rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.brand-marquee .brand-strip {
    flex-wrap: nowrap;
    flex-shrink: 0;
    width: max-content;
    padding: 0;
    animation: brand-marquee-scroll 55s linear infinite;
}

@keyframes brand-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-marquee .brand-strip {
        animation: none;
    }
}

/* =========================================================================
   HOMEPAGE HEADER CLEANUP — June 2026
   ========================================================================= */
.page-home .site-nav__inner {
    width: min(100% - 4rem, 1280px);
}

.page-home .premium-hero-stage {
    width: min(100% - 4rem, 1280px);
    margin: 0 auto;
}

.page-home .premium-hero-copy.hero-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.page-home .nav-actions {
    gap: 0.7rem;
}

.page-home .site-nav__links {
    margin-left: auto;
    margin-right: 0.35rem;
    align-self: end;
}

.page-home .site-nav__actions {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
    align-items: center;
}

.page-home .site-nav__actions .nav-phone {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.page-home .site-nav__actions .material-list-btn {
    grid-column: 1;
    grid-row: 2;
}

.page-home .site-nav__actions .access-btn--secondary {
    grid-column: 2;
    grid-row: 2;
}

.page-home .site-nav__actions .lang-toggle--header {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.page-home .site-nav__actions .access-btn:not(.access-btn--secondary) {
    grid-column: 3;
    grid-row: 2;
}

.page-home .material-list-btn {
    background: rgba(245, 130, 32, 0.16);
    border: 1px solid rgba(255, 106, 0, 0.85);
    color: #f8fafc;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.page-home .material-list-btn:hover {
    background: rgba(245, 130, 32, 0.28);
    border-color: var(--brand-hover);
    box-shadow: 0 12px 26px rgba(255, 106, 0, 0.3);
}

.page-home .material-list-btn__icon {
    width: 1.2rem;
    height: 1.05rem;
}

.page-home .material-list-btn__icon::before,
.page-home .material-list-btn__icon::after {
    border-color: var(--brand-hover);
    border-width: 2px;
}

.page-home .material-list-btn__count {
    background: var(--brand-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.45);
}

.page-home .access-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
}

.page-home .access-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.page-home .lang-toggle--header,
.page-inventory .lang-toggle--header {
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.2rem 0.35rem;
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 980px) {
    .page-home .premium-hero-copy.hero-content,
    .page-home .site-nav__inner,
    .page-home .premium-hero-stage {
        width: min(100% - 2rem, 1280px);
    }

    .page-home .site-nav__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Homepage alignment rail: logo, hero stage, and trust bar */
.page-home {
    --home-left-rail: 0.6rem;
    --home-right-gutter: 1rem;
}

.page-home .site-nav__inner,
.page-home .premium-hero-stage {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--home-left-rail);
    padding-right: var(--home-right-gutter);
}

.page-home .brand--home {
    margin-left: -0.35rem;
}

/* Every Featured Categories photo is pre-cropped (see Assets/stock-photos/)
   to match its card's exact aspect ratio — 1.19:1 for the 6 regular cards,
   2.46:1 for the 3 wide Pro-row cards — so "cover" fills edge-to-edge with
   no awkward cropping of the actual product. */
.page-home .home-categories .category-card__image {
    object-fit: cover;
    object-position: center;
    padding: 0;
    opacity: 0.85;
}

.page-home .home-categories .category-card__label {
    text-align: center;
    text-shadow: 0 1px 8px rgba(0,0,0,0.85), 0 2px 16px rgba(0,0,0,0.65);
}

@media (max-width: 720px) {
    .page-home {
        --home-left-rail: 0.45rem;
        --home-right-gutter: 0.75rem;
    }
}

/* Inventory page: mirror homepage shell alignment */
.page-inventory {
    --home-left-rail: 0.6rem;
    --home-right-gutter: 1rem;
}

.page-inventory .hero-inner,
.page-quote .hero-inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* .site-nav__inner's actual parent is .site-chrome, which is already
   full-bleed (width: calc(100% + gutter*2), see ".hero-inner .site-chrome").
   A flat "width:100%" here was 100% of that already-widened parent, pushing
   the header ~80px past the viewport at 1440px (nav-actions/Contractor
   Portal clipped by ".hero{overflow:hidden}" instead of visibly wrapping).
   Subtract the bleed back out so this aligns with the viewport like every
   other page's header. */
.page-inventory .site-nav__inner,
.page-quote .site-nav__inner {
    width: calc(100% - (var(--gutter) * 2));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--home-left-rail);
    padding-right: var(--home-right-gutter);
}

.page-inventory .hero-content--workspace {
    max-width: 44rem;
    padding-left: 0;
    padding-right: 0;
}

.page-inventory .site-nav__links {
    margin-left: auto;
    margin-right: 0.35rem;
    align-self: end;
}

.page-inventory .site-nav__actions {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
    align-items: center;
}

.page-inventory .site-nav__actions .nav-phone {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.page-inventory .site-nav__actions .material-list-btn {
    grid-column: 1;
    grid-row: 2;
}

.page-inventory .site-nav__actions .access-btn--secondary {
    grid-column: 2;
    grid-row: 2;
}

.page-inventory .site-nav__actions .lang-toggle--header {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.page-inventory .site-nav__actions .access-btn:not(.access-btn--secondary) {
    grid-column: 3;
    grid-row: 2;
}

.page-inventory .material-list-btn {
    background: linear-gradient(180deg, var(--overlay-soft-1) 0%, var(--overlay-soft-2) 100%);
    border: 1px solid rgba(255, 106, 0, 0.85);
    color: #f8fafc;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.page-inventory .material-list-btn:hover {
    background: linear-gradient(180deg, var(--overlay-mid-1) 0%, var(--overlay-mid-2) 100%);
    border-color: var(--brand-hover);
    box-shadow: 0 12px 26px rgba(255, 106, 0, 0.24);
}

.page-inventory .material-list-btn__icon::before,
.page-inventory .material-list-btn__icon::after {
    border-color: var(--brand-hover);
}

.page-inventory .material-list-btn__count {
    background: var(--brand-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.45);
}

.page-inventory .access-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
}

.page-inventory .access-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.page-inventory .lang-toggle--header {
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.2rem 0.35rem;
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 720px) {
    .page-inventory {
        --home-left-rail: 0.45rem;
        --home-right-gutter: 0.75rem;
    }
}
