/* ==========================================================
   VICTORY WAREHOUSE & EQUIPMENT TRUCK
   Touring & Production Warehouse Design System
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --wh-bg: #ffffff;
    --wh-surface: #f7f8f9;
    --wh-surface-subtle: #f0f2f4;
    --wh-text-primary: #111114;
    --wh-text-secondary: #5a5d66;
    --wh-text-muted: #8b8f9a;
    --wh-border: #e3e5e8;
    --wh-border-dark: #222226;
    --wh-accent: #f59e0b; /* Touring Gold/Amber */
    --wh-accent-hover: #d97706;
    --wh-dark: #0f1013;
    --wh-dark-card: #18191e;
    --wh-radius-sm: 6px;
    --wh-radius-md: 10px;
    --wh-radius-lg: 16px;
    --wh-radius-full: 9999px;
    --wh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --wh-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --wh-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.16);
    --wh-shadow-drawer: -15px 0 50px rgba(0, 0, 0, 0.22);
    --wh-transition-fast: 0.18s ease;
    --wh-transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* BREAKOUT FOR SHOP ONLY (DOES NOT AFFECT HEADER, COVER, OR FOOTER) */
html:has(#warehouse-app),
body:has(#warehouse-app) {
    overflow-x: clip;
}

body #warehouse-app {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: var(--wh-bg);
    color: var(--wh-text-primary);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body #warehouse-app *,
body #warehouse-app *::before,
body #warehouse-app *::after {
    box-sizing: border-box;
}

body #warehouse-app section {
    width: 100%;
}

body #warehouse-app h1,
body #warehouse-app h2,
body #warehouse-app h3,
body #warehouse-app h4 {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--wh-text-primary);
    letter-spacing: -0.02em;
}

body #warehouse-app p {
    margin-top: 0;
    color: var(--wh-text-secondary);
}

body #warehouse-app button,
body #warehouse-app input,
body #warehouse-app select,
body #warehouse-app textarea {
    font-family: 'Montserrat', sans-serif;
}

body #warehouse-app button {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: none;
    cursor: pointer;
}

body #warehouse-app img {
    display: block;
    max-width: 100%;
}

/* HIDDEN SPECIFICITY OVERRIDE - SCOPED TO SHOP */
body #warehouse-app [hidden],
body #warehouse-app [hidden="true"],
body #warehouse-app [hidden],
body .warehouse-drawer [hidden],
body .warehouse-modal [hidden],
.warehouse-truck-empty[hidden],
.warehouse-truck-items[hidden],
.warehouse-drawer__footer[hidden],
.warehouse-quote-success[hidden],
.warehouse-quote-form[hidden],
.warehouse-no-results[hidden],
.warehouse-modal__feedback[hidden] {
    display: none !important;
}

/* MAIN CONTAINER - BALANCED WIDESCREEN */
body #warehouse-app .warehouse-container {
    width: 100% !important;
    max-width: 1600px !important;
    padding-left: clamp(20px, 3.5vw, 60px) !important;
    padding-right: clamp(20px, 3.5vw, 60px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* ==========================================================
   BUTTONS & COMMON UI
========================================================== */
.warehouse-btn,
body #warehouse-app .warehouse-btn,
body .warehouse-drawer .warehouse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    border: 0 !important;
    border-radius: var(--wh-radius-full);
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--wh-transition-fast);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.warehouse-btn--primary,
body #warehouse-app .warehouse-btn--primary,
body .warehouse-drawer .warehouse-btn--primary,
#warehouse-open-quote-form,
#warehouse-submit-quote-btn {
    background: #111114 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
}

.warehouse-btn--primary:hover,
body #warehouse-app .warehouse-btn--primary:hover,
body .warehouse-drawer .warehouse-btn--primary:hover,
#warehouse-open-quote-form:hover,
#warehouse-submit-quote-btn:hover {
    background: #2b2d35 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.warehouse-btn--secondary,
body #warehouse-app .warehouse-btn--secondary,
body .warehouse-drawer .warehouse-btn--secondary {
    background: var(--wh-surface) !important;
    color: var(--wh-text-primary) !important;
    border: 1px solid var(--wh-border) !important;
}

.warehouse-btn--secondary:hover,
body #warehouse-app .warehouse-btn--secondary:hover,
body .warehouse-drawer .warehouse-btn--secondary:hover {
    background: #e6e8eb !important;
    border-color: #cfd2d7 !important;
}

.warehouse-btn--full {
    width: 100%;
}

/* ==========================================================
   WAREHOUSE HERO
========================================================== */
body #warehouse-app .warehouse-hero {
    padding: 90px 0 45px;
    background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.06), transparent 50%);
}

body #warehouse-app .warehouse-hero__content {
    max-width: 900px;
}

body #warehouse-app .warehouse-kicker,
body #warehouse-app .warehouse-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--wh-text-muted);
}

body #warehouse-app .warehouse-kicker::before,
body #warehouse-app .warehouse-section-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wh-accent);
}

body #warehouse-app .warehouse-hero h1 {
    margin: 0 0 20px;
    font-size: 68px;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

body #warehouse-app .warehouse-hero__text {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--wh-text-secondary);
}

/* ==========================================================
   SEARCH BAR
========================================================== */
body #warehouse-app .warehouse-search-section {
    padding: 10px 0 60px;
}

body #warehouse-app .warehouse-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 2px solid var(--wh-text-primary);
    transition: border-color var(--wh-transition-fast);
}

body #warehouse-app .warehouse-search:focus-within {
    border-color: var(--wh-accent);
}

body #warehouse-app .warehouse-search__icon {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 18px;
    color: var(--wh-text-primary);
    transition: color var(--wh-transition-fast);
}

body #warehouse-app .warehouse-search:focus-within .warehouse-search__icon {
    color: var(--wh-accent);
}

body #warehouse-app .warehouse-search input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 20px 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--wh-text-primary);
    font-size: 22px;
    font-weight: 500;
}

body #warehouse-app .warehouse-search input::placeholder {
    color: var(--wh-text-muted);
    font-weight: 400;
}

body #warehouse-app .warehouse-search__clear {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px;
    border: 0 !important;
    background: transparent !important;
    color: var(--wh-text-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color var(--wh-transition-fast);
}

body #warehouse-app .warehouse-search__clear:hover {
    color: var(--wh-text-primary);
}

/* ==========================================================
   SHOP 2-COLUMN LAYOUT & SIDEBAR
========================================================== */
body #warehouse-app .warehouse-shop-section {
    padding: 20px 0 100px;
}

body #warehouse-app .warehouse-shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
    align-items: start;
}

/* SIDEBAR CONTAINER */
body #warehouse-app .warehouse-sidebar {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: #ffffff;
    padding: 28px 22px;
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body #warehouse-app .warehouse-sidebar__header {
    display: none; /* hidden on desktop, visible on mobile */
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wh-border);
}

body #warehouse-app .warehouse-sidebar__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--wh-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body #warehouse-app .warehouse-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--wh-radius-full);
    background: var(--wh-surface-subtle);
    color: var(--wh-text-primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--wh-transition-fast);
}

body #warehouse-app .warehouse-sidebar__close:hover {
    background: #000000;
    color: #ffffff;
}

body #warehouse-app .warehouse-sidebar-backdrop {
    display: none;
}

/* SIDEBAR WIDGETS */
body #warehouse-app .warehouse-sidebar-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body #warehouse-app .warehouse-sidebar-widget__header {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body #warehouse-app .warehouse-sidebar-widget__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wh-text-muted);
}

body #warehouse-app .warehouse-sidebar-widget__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--wh-text-primary);
}

/* VERTICAL NAVIGATION LISTS (CATEGORIES & BRANDS) */
body #warehouse-app .warehouse-category-navigation,
body #warehouse-app .warehouse-brand-navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

body #warehouse-app .warehouse-category-navigation::-webkit-scrollbar,
body #warehouse-app .warehouse-brand-navigation::-webkit-scrollbar {
    width: 4px;
}

body #warehouse-app .warehouse-category-navigation::-webkit-scrollbar-thumb,
body #warehouse-app .warehouse-brand-navigation::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

body #warehouse-app .warehouse-category-button,
body #warehouse-app .warehouse-brand-button {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid transparent !important;
    border-radius: var(--wh-radius-md);
    background: transparent !important;
    color: var(--wh-text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    box-shadow: none !important;
    transition: all var(--wh-transition-fast);
}

body #warehouse-app .warehouse-category-button:hover,
body #warehouse-app .warehouse-brand-button:hover {
    background: var(--wh-surface) !important;
    color: var(--wh-text-primary) !important;
    transform: translateX(2px);
}

body #warehouse-app .warehouse-category-button.active,
body #warehouse-app .warehouse-brand-button.active {
    background: var(--wh-text-primary) !important;
    border-color: var(--wh-text-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
}

body #warehouse-app .warehouse-category-name,
body #warehouse-app .warehouse-brand-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body #warehouse-app .warehouse-badge,
body #warehouse-app .warehouse-category-button small,
body #warehouse-app .warehouse-brand-button small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--wh-radius-full);
    background: var(--wh-surface-subtle);
    color: var(--wh-text-secondary);
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    flex-shrink: 0;
    transition: all var(--wh-transition-fast);
}

body #warehouse-app .warehouse-category-button.active .warehouse-badge,
body #warehouse-app .warehouse-category-button.active small,
body #warehouse-app .warehouse-brand-button.active .warehouse-badge,
body #warehouse-app .warehouse-brand-button.active small {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

/* RESET ROW */
body #warehouse-app .warehouse-sidebar-reset-row {
    padding-top: 16px;
    border-top: 1px solid var(--wh-border);
}

body #warehouse-app .warehouse-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--wh-text-muted) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: color var(--wh-transition-fast);
}

body #warehouse-app .warehouse-reset:hover {
    color: var(--wh-accent) !important;
}

body #warehouse-app .warehouse-reset svg {
    flex-shrink: 0;
    transition: transform var(--wh-transition-fast);
}

body #warehouse-app .warehouse-reset:hover svg {
    transform: rotate(-45deg);
}

/* ==========================================================
   RIGHT CONTENT AREA & TOOLBAR
========================================================== */
body #warehouse-app .warehouse-content-area {
    min-width: 0;
    flex: 1;
}

body #warehouse-app .warehouse-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wh-border);
}

body #warehouse-app .warehouse-toolbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

body #warehouse-app .warehouse-mobile-filter-trigger {
    display: none; /* hidden on desktop */
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-full);
    background: #ffffff;
    color: var(--wh-text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all var(--wh-transition-fast);
}

body #warehouse-app .warehouse-mobile-filter-trigger:hover {
    border-color: var(--wh-text-primary);
    background: var(--wh-surface);
}

body #warehouse-app .warehouse-product-count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    color: var(--wh-text-secondary);
}

body #warehouse-app .warehouse-product-count strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--wh-text-primary);
}

body #warehouse-app .warehouse-filter--sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

body #warehouse-app .warehouse-filter--sort label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wh-text-muted);
}

body #warehouse-app .warehouse-filter--sort select {
    margin: 0;
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--wh-border) !important;
    border-radius: var(--wh-radius-md) !important;
    background-color: #ffffff !important;
    color: var(--wh-text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: border-color var(--wh-transition-fast);
}

body #warehouse-app .warehouse-toolbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

body #warehouse-app .warehouse-toolbar-truck-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    background: #0f1013 !important;
    color: #ffffff !important;
    border: 1.5px solid var(--wh-accent) !important;
    border-radius: var(--wh-radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 0 12px rgba(245, 158, 11, 0.2);
    transition: all var(--wh-transition-fast);
}

body #warehouse-app .warehouse-toolbar-truck-btn svg {
    color: var(--wh-accent);
    flex-shrink: 0;
}

body #warehouse-app .warehouse-toolbar-truck-btn:hover {
    background: #18191e !important;
    border-color: #fbbf24 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 18px rgba(245, 158, 11, 0.35);
}

body #warehouse-app .warehouse-toolbar-truck-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--wh-accent);
    color: #0f1013;
    border-radius: var(--wh-radius-full);
    font-size: 11px;
    font-weight: 800;
}

body #warehouse-app .warehouse-toolbar-truck-btn.has-items {
    border-color: #fbbf24 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 16px rgba(245, 158, 11, 0.4);
}

/* ==========================================================
   PRODUCTS GRID - MINIMUM 320PX WIDE CARDS
========================================================== */
body #warehouse-app .warehouse-product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    width: 100%;
    gap: 32px 24px;
}

@media (max-width: 640px) {
    body #warehouse-app .warehouse-product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* NO RESULTS */
body #warehouse-app .warehouse-no-results {
    padding: 80px 20px;
    text-align: center;
    background: var(--wh-surface);
    border-radius: var(--wh-radius-lg);
    border: 1px dashed var(--wh-border);
}

body #warehouse-app .warehouse-no-results h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

body #warehouse-app .warehouse-no-results p {
    color: var(--wh-text-muted);
}

/* ==========================================================
   PRODUCT CARD (UPGRADED)
========================================================== */
body #warehouse-app .warehouse-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-lg);
    overflow: hidden;
    transition: all var(--wh-transition-smooth);
}

body #warehouse-app .warehouse-product-card:hover {
    border-color: #cfd2d7;
    box-shadow: var(--wh-shadow-md);
    transform: translateY(-4px);
}

body #warehouse-app .warehouse-product-card[hidden] {
    display: none !important;
}

/* CARD MEDIA & QUICK VIEW */
body #warehouse-app .warehouse-product-card__media {
    position: relative;
    width: 100%;
    background: #fbfbfb;
    border-bottom: 1px solid var(--wh-surface-subtle);
}

body #warehouse-app .warehouse-product-card__quickview-trigger {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

body #warehouse-app .warehouse-product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

body #warehouse-app .warehouse-product-card__image img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    transition: transform var(--wh-transition-smooth);
}

body #warehouse-app .warehouse-product-card:hover .warehouse-product-card__image img {
    transform: scale(1.06);
}

body #warehouse-app .warehouse-product-card__quickview-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(15, 16, 19, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--wh-radius-full);
    pointer-events: none;
    transition: all var(--wh-transition-fast);
}

body #warehouse-app .warehouse-product-card:hover .warehouse-product-card__quickview-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* CARD CONTENT */
body #warehouse-app .warehouse-product-card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 20px 20px;
}

body #warehouse-app .warehouse-product-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body #warehouse-app .warehouse-product-card__brand {
    color: var(--wh-text-primary);
    background: var(--wh-surface);
    padding: 4px 9px;
    border-radius: 4px;
}

body #warehouse-app .warehouse-product-card__category {
    color: var(--wh-text-muted);
}

body #warehouse-app .warehouse-product-card__title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

body #warehouse-app .warehouse-product-card__title-btn {
    text-align: left;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
    transition: color var(--wh-transition-fast);
}

body #warehouse-app .warehouse-product-card__title-btn:hover {
    color: var(--wh-accent-hover);
}

body #warehouse-app .warehouse-product-card__price {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--wh-text-primary);
}

body #warehouse-app .warehouse-product-card__price--quote {
    color: var(--wh-text-muted);
    font-weight: 500;
    font-size: 13px;
    font-style: italic;
}

/* CARD ACTION ROW (QTY + SEND TO TRUCK) */
body #warehouse-app .warehouse-product-card__action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--wh-surface-subtle);
    flex-wrap: nowrap;
}

/* QUANTITY STEPPER */
.warehouse-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-full);
    background: var(--wh-surface);
    overflow: hidden;
    height: 38px;
    flex: 0 0 auto;
}

.warehouse-qty-stepper .warehouse-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 100%;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: var(--wh-text-primary);
    cursor: pointer;
    transition: background var(--wh-transition-fast);
}

.warehouse-qty-stepper .warehouse-qty-btn:hover {
    background: #e2e4e8;
}

.warehouse-qty-stepper .warehouse-qty-input {
    width: 28px;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--wh-text-primary);
    -moz-appearance: textfield;
}

.warehouse-qty-stepper .warehouse-qty-input::-webkit-outer-spin-button,
.warehouse-qty-stepper .warehouse-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* SEND TO TRUCK BUTTON */
body #warehouse-app .warehouse-btn-truck {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    background: var(--wh-text-primary);
    color: #ffffff;
    border-radius: var(--wh-radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--wh-transition-fast);
    box-shadow: var(--wh-shadow-sm);
}

body #warehouse-app .warehouse-btn-truck .truck-label {
    white-space: nowrap;
}

body #warehouse-app .warehouse-btn-truck:hover {
    background: #2b2d35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

body #warehouse-app .warehouse-btn-truck:active {
    transform: translateY(0);
}

body #warehouse-app .warehouse-btn-truck.is-added {
    background: #10b981;
    color: #ffffff;
}

body #warehouse-app .warehouse-btn-truck .truck-icon {
    display: flex;
    align-items: center;
}

/* ==========================================================
   FLOATING TRUCK TRIGGER BUTTON (HIGH VISIBILITY)
========================================================== */
.warehouse-truck-trigger,
body #warehouse-app .warehouse-truck-trigger {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px 10px 12px;
    background: #0f1013 !important;
    color: #ffffff !important;
    border-radius: var(--wh-radius-full);
    border: 2px solid var(--wh-accent) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.3) !important;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--wh-transition-smooth);
}

.warehouse-truck-trigger:hover,
body #warehouse-app .warehouse-truck-trigger:hover {
    background: #18191e !important;
    transform: translateY(-4px) scale(1.03);
    border-color: #fbbf24 !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.5) !important;
}

.warehouse-truck-trigger__icon-wrap,
.warehouse-truck-trigger__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f1013;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: transform var(--wh-transition-fast);
}

.warehouse-truck-trigger__icon-wrap svg,
.warehouse-truck-trigger__icon svg {
    width: 22px;
    height: 22px;
    stroke: #0f1013;
}

.warehouse-truck-trigger:hover .warehouse-truck-trigger__icon-wrap,
.warehouse-truck-trigger:hover .warehouse-truck-trigger__icon {
    transform: scale(1.08) rotate(-4deg);
}

.warehouse-truck-trigger__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.warehouse-truck-trigger__sub {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wh-accent);
}

.warehouse-truck-trigger__label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
}

.warehouse-truck-trigger__badge-wrap {
    display: flex;
    align-items: center;
    margin-left: 2px;
}

.warehouse-truck-trigger__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    background: var(--wh-accent);
    color: #0f1013;
    border-radius: var(--wh-radius-full);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all var(--wh-transition-fast);
}

/* Active glowing state when equipment is loaded */
.warehouse-truck-trigger.has-items,
body #warehouse-app .warehouse-truck-trigger.has-items {
    border-color: #fbbf24 !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(245, 158, 11, 0.5) !important;
}

.warehouse-truck-trigger.has-items .warehouse-truck-trigger__badge {
    background: #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

/* Pulse animation on adding item */
@keyframes truckBouncePulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.15) translateY(-4px); }
    50% { transform: scale(0.96); }
    75% { transform: scale(1.06) translateY(-2px); }
    100% { transform: scale(1); }
}

.warehouse-truck-trigger.pulse,
body #warehouse-app .warehouse-truck-trigger.pulse {
    animation: truckBouncePulse 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================
   TRUCK SLIDE-OUT DRAWER
========================================================== */
.warehouse-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    visibility: hidden;
    transition: visibility var(--wh-transition-smooth);
}

.warehouse-drawer.active {
    pointer-events: auto;
    visibility: visible;
}

.warehouse-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 19, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--wh-transition-smooth);
}

.warehouse-drawer.active .warehouse-drawer__backdrop {
    opacity: 1;
}

.warehouse-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--wh-shadow-drawer);
    transform: translateX(100%);
    transition: transform var(--wh-transition-smooth);
}

.warehouse-drawer.active .warehouse-drawer__panel {
    transform: translateX(0);
}

/* DRAWER HEADER */
.warehouse-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--wh-border);
    background: var(--wh-surface);
}

.warehouse-drawer__header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.warehouse-drawer__truck-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--wh-radius-md);
    background: var(--wh-dark);
    color: var(--wh-accent);
}

.warehouse-drawer__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.warehouse-drawer__subtitle {
    font-size: 13px;
    color: var(--wh-text-muted);
}

.warehouse-drawer__header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.warehouse-drawer__clear-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--wh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color var(--wh-transition-fast);
}

.warehouse-drawer__clear-btn:hover {
    color: #ef4444;
}

.warehouse-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wh-surface-subtle);
    font-size: 24px;
    line-height: 1;
    color: var(--wh-text-primary);
    cursor: pointer;
    transition: all var(--wh-transition-fast);
}

.warehouse-drawer__close:hover {
    background: var(--wh-dark);
    color: #ffffff;
}

/* DRAWER VIEWS */
.warehouse-drawer__view {
    display: none;
    flex-direction: column;
    flex: 1 1 auto;
    overflow-y: auto;
}

.warehouse-drawer__view.active {
    display: flex;
}

/* EMPTY TRUCK STATE */
.warehouse-truck-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    padding: 60px 30px;
    text-align: center;
}

.warehouse-truck-empty[hidden] {
    display: none !important;
}

.warehouse-truck-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--wh-surface);
    color: var(--wh-text-muted);
}

.warehouse-truck-empty h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.warehouse-truck-empty p {
    max-width: 320px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--wh-text-muted);
}

/* TRUCK ITEMS LIST */
.warehouse-truck-items {
    flex: 1 1 auto;
    padding: 20px 24px;
    overflow-y: auto;
}

.warehouse-truck-items[hidden] {
    display: none !important;
}

.warehouse-truck-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--wh-border);
}

.warehouse-truck-item__thumb {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    background: #fbfbfb;
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-md);
    overflow: hidden;
    padding: 6px;
}

.warehouse-truck-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.warehouse-truck-item__info {
    flex: 1 1 auto;
    min-width: 0;
}

.warehouse-truck-item__brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wh-text-muted);
    margin-bottom: 2px;
}

.warehouse-truck-item__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.warehouse-truck-item__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--wh-text-primary);
}

.warehouse-truck-item__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.warehouse-truck-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--wh-text-muted);
    cursor: pointer;
    transition: color var(--wh-transition-fast);
}

.warehouse-truck-item__remove:hover {
    color: #ef4444;
}

/* DRAWER FOOTER */
.warehouse-drawer__footer {
    padding: 24px 28px;
    background: var(--wh-surface);
    border-top: 1px solid var(--wh-border);
}

.warehouse-drawer__summary {
    margin-bottom: 18px;
}

.warehouse-drawer__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--wh-text-secondary);
    margin-bottom: 6px;
}

.warehouse-drawer__summary-row strong {
    color: var(--wh-text-primary);
    font-size: 16px;
    font-weight: 700;
}

/* QUOTE FORM VIEW */
.warehouse-drawer__subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--wh-surface);
    border-bottom: 1px solid var(--wh-border);
}

.warehouse-drawer__back-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--wh-text-primary);
    cursor: pointer;
    transition: color var(--wh-transition-fast);
}

.warehouse-drawer__back-btn:hover {
    color: var(--wh-accent);
}

.warehouse-drawer__subnav-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wh-accent-hover);
}

.warehouse-quote-form {
    padding: 24px 28px 40px;
    overflow-y: auto;
}

.warehouse-quote-intro {
    margin-bottom: 24px;
}

.warehouse-quote-intro h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.warehouse-quote-intro p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.warehouse-form-group {
    margin-bottom: 16px;
}

.warehouse-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.warehouse-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wh-text-primary);
}

.warehouse-form-group label .required {
    color: #ef4444;
}

.warehouse-form-group input,
.warehouse-form-group select,
.warehouse-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-sm);
    background: #ffffff;
    font-size: 14px;
    color: var(--wh-text-primary);
    outline: none;
    transition: border-color var(--wh-transition-fast);
}

.warehouse-form-group input:focus,
.warehouse-form-group select:focus,
.warehouse-form-group textarea:focus {
    border-color: var(--wh-text-primary);
    box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.08);
}

.warehouse-quote-feedback--error {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: var(--wh-radius-sm);
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
}

/* QUOTE SUCCESS */
.warehouse-quote-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
}

.warehouse-quote-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.warehouse-quote-success h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.warehouse-quote-success p {
    font-size: 14px;
    color: var(--wh-text-secondary);
}

.warehouse-quote-success__details {
    margin: 20px 0 30px;
    padding: 16px 20px;
    background: var(--wh-surface);
    border-radius: var(--wh-radius-md);
    width: 100%;
}

.warehouse-success-ref {
    font-size: 16px;
    font-weight: 700;
    color: var(--wh-text-primary) !important;
    letter-spacing: 0.05em;
}

/* ==========================================================
   PRODUCT QUICK VIEW MODAL (NOW FULLY STYLED)
========================================================== */
.warehouse-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all var(--wh-transition-smooth);
}

.warehouse-modal.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.warehouse-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 19, 0.75);
    backdrop-filter: blur(8px);
}

.warehouse-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: var(--wh-radius-lg);
    overflow-y: auto;
    padding: 44px;
    box-shadow: var(--wh-shadow-lg);
    transform: translateY(20px) scale(0.97);
    transition: all var(--wh-transition-smooth);
}

.warehouse-modal.active .warehouse-modal__panel {
    transform: translateY(0) scale(1);
}

.warehouse-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wh-surface-subtle);
    font-size: 26px;
    color: var(--wh-text-primary);
    cursor: pointer;
    transition: all var(--wh-transition-fast);
}

.warehouse-modal__close:hover {
    background: var(--wh-dark);
    color: #ffffff;
}

.warehouse-modal__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.warehouse-modal__image-wrap {
    background: #fbfbfb;
    border: 1px solid var(--wh-border);
    border-radius: var(--wh-radius-md);
    padding: 30px;
}

.warehouse-modal__image {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
}

.warehouse-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.warehouse-modal__content {
    display: flex;
    flex-direction: column;
}

.warehouse-modal__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.warehouse-modal__brand {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: var(--wh-surface);
    border-radius: 4px;
    color: var(--wh-text-primary);
}

.warehouse-modal__category {
    font-size: 12px;
    font-weight: 500;
    color: var(--wh-text-muted);
}

.warehouse-modal__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.15;
}

.warehouse-modal__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--wh-text-primary);
    margin-bottom: 20px;
}

.warehouse-modal__description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--wh-text-secondary);
    margin-bottom: 30px;
}

.warehouse-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--wh-border);
}

.warehouse-modal__qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.warehouse-modal__qty-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wh-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.warehouse-qty-stepper--modal {
    height: 42px;
}

.warehouse-qty-stepper--modal .warehouse-qty-btn {
    width: 38px;
    font-size: 18px;
}

.warehouse-qty-stepper--modal .warehouse-qty-input {
    width: 44px;
    font-size: 15px;
}

.warehouse-btn--truck-modal {
    height: 48px;
    font-size: 15px;
}

.warehouse-modal__feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--wh-radius-sm);
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
}

.warehouse-feedback-link {
    color: #047857;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
}

.warehouse-modal__footer-links {
    font-size: 13px;
}

.warehouse-modal__detail-link {
    color: var(--wh-text-muted);
    text-decoration: none;
    transition: color var(--wh-transition-fast);
}

.warehouse-modal__detail-link:hover {
    color: var(--wh-text-primary);
    text-decoration: underline;
}

/* ==========================================================
   BODY LOCK STATE
========================================================== */
body.warehouse-modal-open {
    overflow: hidden !important;
}

/* ==========================================================
   RESPONSIVE DESIGN
========================================================== */
@media (max-width: 1200px) {
    body #warehouse-app .warehouse-shop-layout {
        gap: 32px;
        grid-template-columns: 240px 1fr;
    }

    body #warehouse-app .warehouse-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .warehouse-modal__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .warehouse-modal__panel {
        padding: 30px 24px;
    }
}

@media (max-width: 991px) {
    body #warehouse-app .warehouse-shop-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body #warehouse-app .warehouse-mobile-filter-trigger {
        display: inline-flex;
    }

    body #warehouse-app .warehouse-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 86vw;
        height: 100vh;
        background: #ffffff;
        z-index: 99999;
        padding: 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
        border-radius: 0;
        border: 0;
        overflow-y: auto;
        transform: translateX(-110%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body #warehouse-app .warehouse-sidebar.is-open {
        transform: translateX(0);
    }

    body #warehouse-app .warehouse-sidebar__header {
        display: flex;
    }

    body #warehouse-app .warehouse-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    body #warehouse-app .warehouse-sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    body #warehouse-app .warehouse-container {
        width: calc(100% - 32px);
    }

    body #warehouse-app .warehouse-hero {
        padding: 50px 0 30px;
    }

    body #warehouse-app .warehouse-hero h1 {
        font-size: 42px;
    }

    body #warehouse-app .warehouse-toolbar {
        flex-wrap: wrap;
        gap: 14px;
    }

    body #warehouse-app .warehouse-toolbar__left,
    body #warehouse-app .warehouse-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .warehouse-form-row {
        grid-template-columns: 1fr;
    }

    .warehouse-truck-trigger {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
}

@media (max-width: 600px) {
    body #warehouse-app .warehouse-product-grid {
        grid-template-columns: 1fr;
    }

    .warehouse-drawer__panel {
        max-width: 100%;
    }
}