/* ==========================================================================
   INDOWEL | My Godown — Warm Charcoal & Architectural Brass Design System
   Mobile App WebView (< 768px) | Tablet (768px-1023px) | Desktop (>= 1024px)
   ========================================================================== */

:root {
    --charcoal-950: #131210;
    --charcoal-900: #1b1916;
    --charcoal-800: #26231e;
    --charcoal-700: #35312a;

    --brass-300: #e5c377;
    --brass-400: #d4a64a;
    --brass-500: #b8872a;
    --brass-600: #936818;
    --brass-50: #fbf6eb;
    --brass-100: #f3e6c8;

    --crimson-600: #b82929;
    --crimson-50: #fef2f2;

    --canvas: #f5f2eb;
    --surface: #ffffff;
    --surface-subtle: #eee9de;

    --text-main: #1b1916;
    --text-secondary: #585248;
    --text-muted: #847c6f;

    --border-light: #e4ddd0;
    --border-medium: #d1c7b4;

    --success-600: #16794c;
    --success-50: #eaf7f0;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --shadow-sm: 0 2px 10px rgba(27, 25, 22, 0.05);
    --shadow-md: 0 10px 28px rgba(27, 25, 22, 0.08);
    --shadow-lg: 0 22px 48px rgba(19, 18, 16, 0.16);

    --nav-height: 64px;
    --bottom-nav-height: 66px;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--canvas);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Architectural Hardware Blueprint Watermark Pattern */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%23936818' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(26 24) rotate(-12 28 30)'%3E%3Crect x='4' y='6' width='20' height='48' rx='2'/%3E%3Crect x='24' y='2' width='6' height='56' rx='3'/%3E%3Crect x='30' y='6' width='20' height='48' rx='2'/%3E%3Ccircle cx='14' cy='18' r='2.5'/%3E%3Ccircle cx='14' cy='42' r='2.5'/%3E%3Ccircle cx='40' cy='18' r='2.5'/%3E%3Ccircle cx='40' cy='42' r='2.5'/%3E%3Cpath d='M24 18h6M24 42h6'/%3E%3C/g%3E%3Cg transform='translate(148 18) rotate(8 30 34)'%3E%3Crect x='8' y='4' width='20' height='60' rx='9'/%3E%3Cpath d='M18 18h44a5 5 0 0 1 0 10H24'/%3E%3Ccircle cx='18' cy='23' r='4'/%3E%3Ccircle cx='18' cy='46' r='3.5'/%3E%3Cpath d='M18 49v7'/%3E%3C/g%3E%3Cg transform='translate(265 26) rotate(-38 22 24)'%3E%3Cpath d='M10 10h24l-5 8H15z'/%3E%3Cpath d='M19 18v32l3 7 3-7V18'/%3E%3Cpath d='M17 25l10-3M17 32l10-3M17 39l10-3M18 46l8-2.5'/%3E%3C/g%3E%3Cg transform='translate(38 140) rotate(10 24 28)'%3E%3Cpath d='M12 24v-9a12 12 0 0 1 24 0v9'/%3E%3Crect x='6' y='24' width='36' height='30' rx='5'/%3E%3Ccircle cx='24' cy='36' r='3.5'/%3E%3Cpath d='M22.5 39.5l-1 7.5h5l-1-7.5'/%3E%3C/g%3E%3Cg transform='translate(132 146) rotate(-8 40 16)'%3E%3Crect x='4' y='10' width='56' height='18' rx='3'/%3E%3Cpath d='M10 19h66'/%3E%3Ccircle cx='10' cy='14' r='1.5'/%3E%3Ccircle cx='10' cy='24' r='1.5'/%3E%3Ccircle cx='54' cy='14' r='1.5'/%3E%3Ccircle cx='54' cy='24' r='1.5'/%3E%3Cpath d='M36 19v-12h7'/%3E%3Ccircle cx='44' cy='7' r='2.5'/%3E%3Crect x='66' y='12' width='12' height='14' rx='2'/%3E%3C/g%3E%3Cg transform='translate(248 134) rotate(22 30 24)'%3E%3Cpath d='M8 34V18a10 10 0 0 1 10-10h26a10 10 0 0 1 10 10v16h-7V19a4 4 0 0 0-4-4H19a4 4 0 0 0-4 4v15z'/%3E%3Cpath d='M5 34h13M44 34h13'/%3E%3C/g%3E%3Cg transform='translate(30 250) rotate(28 32 22)'%3E%3Cpolygon points='8,12 16,6 24,12 24,26 16,32 8,26'/%3E%3Crect x='24' y='15' width='34' height='8' rx='1'/%3E%3Cpath d='M34 15v8M41 15v8M48 15v8M54 15v8'/%3E%3Cpolygon points='42,36 48,32 54,36 54,43 48,47 42,43'/%3E%3Ccircle cx='48' cy='39.5' r='2.5'/%3E%3C/g%3E%3Cg transform='translate(148 250) rotate(-18 28 20)'%3E%3Ccircle cx='14' cy='20' r='10'/%3E%3Ccircle cx='14' cy='20' r='3.5'/%3E%3Cpath d='M24 20h34v7h-5v-4h-5v5h-6v-8'/%3E%3C/g%3E%3Cg transform='translate(258 248) rotate(12 24 24)'%3E%3Ccircle cx='24' cy='24' r='16'/%3E%3Ccircle cx='24' cy='24' r='7'/%3E%3Ccircle cx='24' cy='24' r='2'/%3E%3Ccircle cx='24' cy='12' r='1.5'/%3E%3Ccircle cx='36' cy='24' r='1.5'/%3E%3Ccircle cx='24' cy='36' r='1.5'/%3E%3Ccircle cx='12' cy='24' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 340px 340px;
}

.app-hw-watermark {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 45;
    opacity: 0.048;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%237a5510' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(26 24) rotate(-12 28 30)'%3E%3Crect x='4' y='6' width='20' height='48' rx='2'/%3E%3Crect x='24' y='2' width='6' height='56' rx='3'/%3E%3Crect x='30' y='6' width='20' height='48' rx='2'/%3E%3Ccircle cx='14' cy='18' r='2.5'/%3E%3Ccircle cx='14' cy='42' r='2.5'/%3E%3Ccircle cx='40' cy='18' r='2.5'/%3E%3Ccircle cx='40' cy='42' r='2.5'/%3E%3Cpath d='M24 18h6M24 42h6'/%3E%3C/g%3E%3Cg transform='translate(148 18) rotate(8 30 34)'%3E%3Crect x='8' y='4' width='20' height='60' rx='9'/%3E%3Cpath d='M18 18h44a5 5 0 0 1 0 10H24'/%3E%3Ccircle cx='18' cy='23' r='4'/%3E%3Ccircle cx='18' cy='46' r='3.5'/%3E%3Cpath d='M18 49v7'/%3E%3C/g%3E%3Cg transform='translate(265 26) rotate(-38 22 24)'%3E%3Cpath d='M10 10h24l-5 8H15z'/%3E%3Cpath d='M19 18v32l3 7 3-7V18'/%3E%3Cpath d='M17 25l10-3M17 32l10-3M17 39l10-3M18 46l8-2.5'/%3E%3C/g%3E%3Cg transform='translate(38 140) rotate(10 24 28)'%3E%3Cpath d='M12 24v-9a12 12 0 0 1 24 0v9'/%3E%3Crect x='6' y='24' width='36' height='30' rx='5'/%3E%3Ccircle cx='24' cy='36' r='3.5'/%3E%3Cpath d='M22.5 39.5l-1 7.5h5l-1-7.5'/%3E%3C/g%3E%3Cg transform='translate(132 146) rotate(-8 40 16)'%3E%3Crect x='4' y='10' width='56' height='18' rx='3'/%3E%3Cpath d='M10 19h66'/%3E%3Ccircle cx='10' cy='14' r='1.5'/%3E%3Ccircle cx='10' cy='24' r='1.5'/%3E%3Ccircle cx='54' cy='14' r='1.5'/%3E%3Ccircle cx='54' cy='24' r='1.5'/%3E%3Cpath d='M36 19v-12h7'/%3E%3Ccircle cx='44' cy='7' r='2.5'/%3E%3Crect x='66' y='12' width='12' height='14' rx='2'/%3E%3C/g%3E%3Cg transform='translate(248 134) rotate(22 30 24)'%3E%3Cpath d='M8 34V18a10 10 0 0 1 10-10h26a10 10 0 0 1 10 10v16h-7V19a4 4 0 0 0-4-4H19a4 4 0 0 0-4 4v15z'/%3E%3Cpath d='M5 34h13M44 34h13'/%3E%3C/g%3E%3Cg transform='translate(30 250) rotate(28 32 22)'%3E%3Cpolygon points='8,12 16,6 24,12 24,26 16,32 8,26'/%3E%3Crect x='24' y='15' width='34' height='8' rx='1'/%3E%3Cpath d='M34 15v8M41 15v8M48 15v8M54 15v8'/%3E%3Cpolygon points='42,36 48,32 54,36 54,43 48,47 42,43'/%3E%3Ccircle cx='48' cy='39.5' r='2.5'/%3E%3C/g%3E%3Cg transform='translate(148 250) rotate(-18 28 20)'%3E%3Ccircle cx='14' cy='20' r='10'/%3E%3Ccircle cx='14' cy='20' r='3.5'/%3E%3Cpath d='M24 20h34v7h-5v-4h-5v5h-6v-8'/%3E%3C/g%3E%3Cg transform='translate(258 248) rotate(12 24 24)'%3E%3Ccircle cx='24' cy='24' r='16'/%3E%3Ccircle cx='24' cy='24' r='7'/%3E%3Ccircle cx='24' cy='24' r='2'/%3E%3Ccircle cx='24' cy='12' r='1.5'/%3E%3Ccircle cx='36' cy='24' r='1.5'/%3E%3Ccircle cx='24' cy='36' r='1.5'/%3E%3Ccircle cx='12' cy='24' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 340px 340px;
    background-position: 85px 65px;
    transform: translateZ(0);
}

body > * {
    position: relative;
    z-index: 1;
}

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

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

/* ==========================================================================
   UNIFIED TOP BAR
   ========================================================================== */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--charcoal-900);
    color: #ffffff;
    border-bottom: 1px solid rgba(212, 166, 74, 0.24);
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 4px 20px rgba(19, 18, 16, 0.22);
}

.topbar-inner {
    max-width: 1420px;
    margin: 0 auto;
    height: var(--nav-height);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.back-pill,
.sidebar-mobile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 420px) {
    .has-back-btn .brand-sub {
        display: none;
    }
}

.back-pill:hover,
.sidebar-mobile-trigger:hover {
    background: rgba(212, 166, 74, 0.18);
    border-color: var(--brass-400);
}

.back-pill svg,
.sidebar-mobile-trigger svg {
    width: 18px;
    height: 18px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-wordmark {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.brand-wordmark .indo {
    color: #ef6461;
}

.brand-wordmark .wel {
    color: #ffffff;
}

.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--brass-300);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.topbar-nav {
    display: none;
    align-items: center;
    gap: 6px;
}

.topbar-nav a {
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.topbar-nav a.active {
    background: rgba(212, 166, 74, 0.16);
    color: var(--brass-300);
    border: 1px solid rgba(212, 166, 74, 0.3);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.assistant-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, var(--brass-400) 0%, var(--brass-500) 100%);
    color: var(--charcoal-950);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(184, 135, 42, 0.3);
    transition: transform 0.15s ease, filter 0.2s ease;
}

.assistant-trigger:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.assistant-trigger svg {
    width: 15px;
    height: 15px;
}

.assistant-label-text {
    display: none;
}

.cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 9999px;
    border: 1px solid rgba(212, 166, 74, 0.35);
    background: rgba(212, 166, 74, 0.12);
    color: var(--brass-300);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-trigger:hover {
    background: rgba(212, 166, 74, 0.22);
}

.cart-trigger svg {
    width: 17px;
    height: 17px;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brass-400);
    color: var(--charcoal-950);
    font-size: 11px;
    font-weight: 800;
}

.cart-label-desktop {
    display: none;
}

.profile-chip {
    display: none;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.profile-chip svg {
    width: 16px;
    height: 16px;
    color: var(--brass-300);
}

.profile-name-desktop,
.logout-chip {
    display: none;
}

@media (min-width: 768px) {
    .profile-chip {
        display: inline-flex;
    }
}

.logout-chip {
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 9999px;
    background: rgba(184, 41, 41, 0.18);
    border: 1px solid rgba(239, 100, 97, 0.35);
    color: #fecaca;
    font-size: 12.5px;
    font-weight: 700;
}

/* ==========================================================================
   WORKSPACE SHELL WITH SIDEBAR CATEGORY NAVIGATION
   ========================================================================== */
.app-main {
    max-width: 1420px;
    margin: 0 auto;
    padding: 14px 12px calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 92px);
}

.app-workspace {
    display: block;
}

/* Mobile Quick Category Strip (< 1024px) */
.mobile-cat-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    margin-bottom: 4px;
    scrollbar-width: none;
}

.mobile-cat-rail::-webkit-scrollbar {
    display: none;
}

.rail-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.rail-pill.active {
    background: var(--charcoal-900);
    border-color: var(--charcoal-900);
    color: var(--brass-300);
}

/* Sidebar (Slide-out drawer on < 1024px, Persistent sticky column on >= 1024px) */
.cat-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 18, 16, 0.56);
    backdrop-filter: blur(2px);
    z-index: 850;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cat-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 310px;
    z-index: 880;
    background: var(--surface);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 16px 0 40px rgba(19, 18, 16, 0.22);
}

.cat-sidebar.open {
    transform: translateX(0);
}

.sidebar-head {
    background: var(--charcoal-900);
    color: #ffffff;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 166, 74, 0.25);
}

.sidebar-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--brass-300);
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 999px;
}

.sidebar-search {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--canvas);
    font-size: 13.5px;
    outline: none;
}

.sidebar-search:focus {
    border-color: var(--brass-500);
    background: #ffffff;
}

.sidebar-group {
    margin-bottom: 4px;
}

.sidebar-cat-row {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-cat-row:hover {
    background: var(--brass-50);
    color: var(--brass-600);
}

.sidebar-group.open > .sidebar-cat-row,
.sidebar-cat-row.active {
    background: var(--charcoal-900);
    color: var(--brass-300);
}

.sidebar-cat-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sidebar-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    opacity: 0.75;
}

.sidebar-group.open > .sidebar-cat-row .sidebar-chevron {
    transform: rotate(90deg);
    opacity: 1;
}

.sidebar-cat-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(147, 104, 24, 0.12);
    color: var(--brass-600);
    flex-shrink: 0;
}

.sidebar-group.open > .sidebar-cat-row .sidebar-cat-count,
.sidebar-cat-row.active .sidebar-cat-count {
    background: rgba(212, 166, 74, 0.2);
    color: var(--brass-300);
}

.sidebar-sublist {
    display: none;
    margin: 4px 0 8px 10px;
    padding-left: 10px;
    border-left: 2px solid var(--brass-100);
    flex-direction: column;
    gap: 2px;
}

.sidebar-group.open > .sidebar-sublist {
    display: flex;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.sidebar-sublink:hover {
    background: var(--canvas);
    color: var(--text-main);
}

.sidebar-sublink.active {
    background: var(--brass-100);
    color: var(--brass-600);
    font-weight: 700;
}

.sidebar-sublink.all-series {
    color: var(--brass-600);
    font-weight: 700;
    background: var(--brass-50);
    margin-bottom: 2px;
}

.workspace-content {
    min-width: 0;
}

/* ==========================================================================
   PAGE HERO & SEARCH BAR
   ========================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-800) 65%, #30291e 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 166, 74, 0.24);
    box-shadow: var(--shadow-md);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 92% 18%, rgba(212, 166, 74, 0.2) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 26px 26px, 26px 26px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb-trail a {
    color: var(--brass-300);
}

.breadcrumb-trail a:hover {
    text-decoration: underline;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--brass-300);
    margin-bottom: 5px;
}

.hero-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.hero-sub {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-search-wrap {
    position: relative;
    width: 100%;
}

.hero-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--brass-300);
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px 10px 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-search-input:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--brass-400);
}

/* Quick Order Promo Strip on Home */
.assistant-banner {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brass-500);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.assistant-banner-info strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
}

.assistant-banner-info span {
    display: block;
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ==========================================================================
   CATALOG GRIDS & BULK ORDER MATRIX (products.php)
   ========================================================================== */
.section-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.section-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.meta-right-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-pill {
    font-size: 12px;
    font-weight: 700;
    color: var(--brass-600);
    background: var(--brass-100);
    padding: 4px 10px;
    border-radius: 999px;
}

.view-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    padding: 3px;
    gap: 3px;
}

.view-toggle button {
    border: none;
    background: transparent;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-toggle button.active {
    background: var(--charcoal-900);
    color: var(--brass-300);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brass-400);
}

.catalog-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-thumb img {
    transform: scale(1.04);
}

.catalog-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}

.catalog-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-meta-line {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

.catalog-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.catalog-price small {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.catalog-view-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 32px;
    border-radius: 9999px;
    background: var(--brass-50);
    border: 1px solid var(--brass-100);
    color: var(--brass-600);
    font-size: 12px;
    font-weight: 700;
}

.catalog-card:hover .catalog-view-pill {
    background: var(--charcoal-900);
    border-color: var(--charcoal-900);
    color: var(--brass-300);
}

.catalog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--brass-600);
}

/* Bulk Order Matrix Rows (Mobile-First 2-Zone Card -> Desktop Row) */
.bulk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bulk-row {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
        "thumb head"
        "controls controls";
    gap: 10px 12px;
    align-items: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bulk-row.has-qty {
    border-color: var(--brass-500);
    background: #fffdf7;
}

.bulk-thumb {
    grid-area: thumb;
    position: relative;
    width: 58px;
    height: 58px;
    padding: 3px;
    border-radius: 11px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.bulk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.bulk-thumb:hover img {
    transform: scale(1.06);
}

.zoom-pip {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(27, 25, 22, 0.78);
    color: var(--brass-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.zoom-pip svg {
    width: 11px;
    height: 11px;
}

.bulk-info-top {
    grid-area: head;
    min-width: 0;
}

.bulk-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.bulk-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    word-break: break-word;
}

.bulk-title:hover {
    color: var(--brass-600);
    text-decoration: underline;
}

.bulk-rate {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brass-600);
    white-space: nowrap;
    background: var(--brass-50);
    padding: 2px 7px;
    border-radius: 7px;
    border: 1px solid var(--brass-100);
}

.bulk-controls {
    grid-area: controls;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bulk-select-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.bulk-select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border-medium);
    background: var(--canvas);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    outline: none;
}

.bulk-select:focus {
    border-color: var(--brass-500);
    background: #ffffff;
}

.bulk-action-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.bulk-qty-row {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.bulk-cta-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    width: 100%;
}

.bulk-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 9999px;
    border: 1px solid var(--border-medium);
    background: var(--canvas);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.bulk-view-link:hover {
    border-color: var(--brass-500);
    background: var(--brass-50);
    color: var(--brass-600);
}

.bulk-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-medium);
    border-radius: 9999px;
    background: var(--canvas);
    height: 38px;
    padding: 0 4px;
}

.bulk-qty-wrap button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 9999px;
    background: var(--surface);
    color: var(--text-main);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.bulk-qty-wrap input {
    width: 42px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    outline: none;
}

.bulk-line-total {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    margin-left: auto;
}

.bulk-add-btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 9999px;
    border: none;
    background: var(--charcoal-900);
    color: var(--brass-300);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.bulk-add-btn:hover {
    background: var(--charcoal-800);
}

.bulk-add-btn.added {
    background: var(--success-600);
    color: #ffffff;
}

@media (min-width: 768px) {
    .bulk-row {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "thumb head"
            "thumb controls";
        gap: 8px 14px;
    }
    .bulk-thumb {
        width: 64px;
        height: 64px;
    }
    .bulk-controls {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .bulk-select-pair {
        display: flex;
        flex: 1 1 240px;
        width: auto;
    }
    .bulk-select {
        height: 36px;
        max-width: 180px;
    }
    .bulk-action-strip {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        flex: 1 1 auto;
    }
    .bulk-qty-row {
        width: auto;
        flex: 1 1 auto;
    }
    .bulk-cta-row {
        display: flex;
        width: auto;
    }
}

/* Sticky Batch Add Bar */
.batch-bar {
    position: sticky;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 10px);
    z-index: 95;
    margin-top: 16px;
    background: var(--charcoal-900);
    color: #ffffff;
    border: 1px solid rgba(212, 166, 74, 0.35);
    border-radius: 16px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.batch-bar.visible {
    display: flex;
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* ==========================================================================
   PRODUCT DETAIL CONFIGURATOR (Airy Mobile Sheet + Sticky Action Bar)
   ========================================================================== */
.pdp-page-pad {
    padding-bottom: 135px;
}

.pdp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.pdp-breadcrumb::-webkit-scrollbar {
    display: none;
}

.pdp-breadcrumb a {
    color: var(--brass-600);
    flex-shrink: 0;
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.pdp-gallery-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.pdp-gallery-card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    border-radius: 10px;
}

.pdp-info-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp-sheet {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pdp-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.pdp-section:last-child {
    border-bottom: none;
}

.pdp-section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.surface-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.surface-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdp-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.pdp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--surface-subtle);
    color: var(--text-secondary);
}

.meta-badge.brass {
    background: var(--brass-100);
    color: var(--brass-600);
}

.feature-bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

.packing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.packing-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 11px;
    border: 1.5px solid var(--border-light);
    background: var(--canvas);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
}

.packing-pill input {
    accent-color: var(--brass-600);
    width: 15px;
    height: 15px;
    margin: 0;
}

.packing-pill:has(input:checked) {
    border-color: var(--brass-500);
    background: var(--brass-50);
    color: var(--charcoal-900);
}

.price-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 10px;
    background: var(--brass-50);
    border: 1px solid var(--brass-100);
    color: var(--brass-600);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.color-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.color-chip-grid.single-option {
    grid-template-columns: 1fr;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 11px;
    border-radius: 11px;
    border: 1.5px solid var(--border-light);
    background: var(--canvas);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.color-option .opt-rate {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brass-600);
}

.color-option:hover {
    border-color: var(--brass-400);
}

.color-option.active {
    background: var(--charcoal-900);
    border-color: var(--charcoal-900);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(27, 25, 22, 0.16);
}

.color-option.active .opt-rate {
    color: var(--brass-300);
}

.order-action-card {
    background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-800) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(212, 166, 74, 0.32);
    box-shadow: var(--shadow-lg);
}

.order-action-card.pdp-sticky-mobile {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 112;
    padding: 10px 12px;
    border-radius: 16px;
}

.qty-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 3px;
    gap: 3px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(212, 166, 74, 0.28);
}

.qty-stepper input {
    width: 52px;
    height: 34px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.total-display {
    text-align: right;
}

.total-display small {
    display: block;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.total-display strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--brass-300);
}

.order-action-card.pdp-sticky-mobile .btn-brass {
    height: 44px;
    font-size: 14.5px;
}

@media (min-width: 768px) {
    .pdp-page-pad {
        padding-bottom: 0;
    }
    .pdp-gallery-card img {
        height: auto;
        max-height: 340px;
    }
    .pdp-section {
        padding: 18px 20px;
    }
    .pdp-title {
        font-size: 22px;
    }
    .color-chip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .order-action-card.pdp-sticky-mobile {
        position: static;
        padding: 18px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }
    .order-action-card.pdp-sticky-mobile .btn-brass {
        height: 50px;
        font-size: 15px;
    }
    .qty-total-row {
        margin-bottom: 14px;
    }
    .qty-btn {
        width: 40px;
        height: 40px;
        border-radius: 9999px;
    }
    .qty-stepper input {
        width: 64px;
        height: 40px;
    }
    .total-display strong {
        font-size: 24px;
    }
}

.btn-brass {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brass-400) 0%, var(--brass-500) 100%);
    color: var(--charcoal-950);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(184, 135, 42, 0.28);
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-brass:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-brass.added {
    background: linear-gradient(135deg, #22a06b 0%, #16794c 100%);
    color: #ffffff;
}

.btn-charcoal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 9999px;
    border: none;
    background: var(--charcoal-900);
    color: var(--brass-300);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-charcoal:hover {
    background: var(--charcoal-800);
    color: #ffffff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 9999px;
    border: 1.5px solid var(--border-medium);
    background: #ffffff;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
    border-color: var(--brass-400);
    background: var(--brass-50);
    color: var(--charcoal-900);
}

.related-shelf {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
}

.related-tile {
    flex: 0 0 155px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.related-tile img {
    width: 100%;
    height: 105px;
    object-fit: contain;
    margin-bottom: 8px;
}

.related-tile-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

/* ==========================================================================
   PURCHASE ORDER / FINAL PO / PROFILE
   ========================================================================== */
.po-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.info-kv-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
}

.kv-item {
    background: var(--canvas);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 12px;
}

.kv-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.kv-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 580px;
    font-size: 13.5px;
}

.app-table thead th {
    background: var(--surface-subtle);
    color: var(--text-main);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.app-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}

.summary-card {
    background: var(--charcoal-900);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(212, 166, 74, 0.26);
    box-shadow: var(--shadow-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row.grand {
    border-bottom: none;
    padding-top: 14px;
    margin-top: 4px;
    font-size: 19px;
    font-weight: 800;
    color: var(--brass-300);
}

.orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.order-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brass-500);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.order-po {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
}

.order-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--brass-100);
    color: var(--brass-600);
}

.order-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--canvas);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12.5px;
}

.order-amounts span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.order-amounts strong {
    color: var(--text-main);
    font-size: 13.5px;
}

.progress-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding-top: 6px;
}

.progress-track::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 7%;
    right: 7%;
    height: 3px;
    background: var(--border-light);
    z-index: 0;
}

.progress-fill {
    position: absolute;
    top: 15px;
    left: 7%;
    height: 3px;
    background: var(--brass-500);
    z-index: 1;
}

.track-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.track-dot {
    width: 18px;
    height: 18px;
    margin: 0 auto 5px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--border-medium);
}

.track-step.completed .track-dot {
    background: var(--brass-500);
    border-color: var(--brass-500);
}

.track-step.active .track-dot {
    background: var(--charcoal-900);
    border-color: var(--brass-400);
    box-shadow: 0 0 0 3px rgba(212, 166, 74, 0.28);
}

.track-step span {
    display: block;
    font-size: 9.5px;
    line-height: 1.2;
    color: var(--text-muted);
    font-weight: 600;
}

.track-step.active span,
.track-step.completed span {
    color: var(--text-main);
}

/* ==========================================================================
   QUICK ORDER ASSISTANT DRAWER
   ========================================================================== */
/* Quick Order Assistant Drawer Backdrop: Clean scrim without dark blur */
.assistant-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 18, 16, 0.22);
    backdrop-filter: none;
    z-index: 920;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.assistant-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 992px) {
    .assistant-backdrop {
        background: transparent;
        backdrop-filter: none;
    }
}

.assistant-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 560px;
    background: var(--canvas);
    z-index: 960;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -18px 0 48px rgba(19, 18, 16, 0.26);
}

.assistant-drawer.open {
    transform: translateX(0);
}

.assistant-head {
    background: var(--charcoal-900);
    color: #ffffff;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px;
    border-bottom: 1px solid rgba(212, 166, 74, 0.28);
}

.assistant-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.assistant-head h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--brass-300);
}

.assistant-head p {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.assistant-search {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.assistant-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.assistant-search:focus {
    border-color: var(--brass-400);
    background: rgba(255, 255, 255, 0.16);
}

.assistant-steps {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-row-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.chip-rail {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.chip-rail::-webkit-scrollbar {
    display: none;
}

.step-chip {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: var(--canvas);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.step-chip.active {
    background: var(--charcoal-900);
    border-color: var(--charcoal-900);
    color: var(--brass-300);
}

.assistant-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.assistant-foot {
    background: var(--charcoal-900);
    color: #ffffff;
    padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(212, 166, 74, 0.25);
}

/* ==========================================================================
   SHARED SLIDE-OVER CART DRAWER
   ========================================================================== */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 18, 16, 0.22);
    backdrop-filter: none;
    z-index: 940;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 992px) {
    .cart-backdrop {
        background: transparent;
        backdrop-filter: none;
    }
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    z-index: 980;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -16px 0 44px rgba(19, 18, 16, 0.24);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-head {
    background: var(--charcoal-900);
    color: #ffffff;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 166, 74, 0.25);
}

.cart-drawer-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--canvas);
}

.cart-item-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 13px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.cart-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.cart-remove-btn {
    border: none;
    background: var(--crimson-50);
    color: var(--crimson-600);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.mini-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--canvas);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 3px 6px;
}

.mini-qty button {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: none;
    background: var(--surface);
    color: var(--text-main);
    font-weight: 800;
    cursor: pointer;
}

.mini-qty span {
    min-width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--brass-600);
}

.cart-drawer-foot {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 16px 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.drawer-total-row span {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.drawer-total-row strong {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (< 768px ONLY)
   ========================================================================== */
/* Mobile Bottom Nav (5 concise tabs for Bulk Pad + Catalog + Orders + Cart + Profile) */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 115;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    box-shadow: 0 -6px 24px rgba(19, 18, 16, 0.08);
}

.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.bottom-tab svg {
    width: 19px;
    height: 19px;
}

.bottom-tab.active {
    background: var(--brass-50);
    color: var(--brass-600);
}

.bottom-cart-count {
    position: absolute;
    top: 3px;
    right: 16%;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--charcoal-900);
    color: var(--brass-300);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   BULK ORDER PAD & FAST TOOLBARS
   ========================================================================== */
.bulk-toolbar {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.bulk-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bulk-toolbar label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
}

.quick-preset-btn {
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--border-medium);
    background: var(--canvas);
    color: var(--text-main);
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.quick-preset-btn:hover {
    background: var(--brass-100);
    border-color: var(--brass-500);
    color: var(--brass-600);
}

.bulk-pad-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.po-live-slip {
    background: var(--charcoal-900);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid rgba(212, 166, 74, 0.28);
    box-shadow: var(--shadow-md);
}

.slip-items {
    max-height: 310px;
    overflow-y: auto;
    margin: 12px 0;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 166, 74, 0.35) transparent;
}

.slip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 7px;
    font-size: 12.5px;
}

.slip-item-title {
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.slip-item-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 2px;
}

@media (min-width: 1024px) {
    .bulk-pad-layout {
        grid-template-columns: 1.45fr 1fr;
        gap: 20px;
    }
    .po-live-slip {
        position: sticky;
        top: calc(var(--nav-height) + 18px);
    }
    .mobile-sticky-order-bar {
        display: none !important;
    }
}

/* ==========================================================================
   IMAGE ZOOM LIGHTBOX MODAL
   ========================================================================== */
.img-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(19, 18, 16, 0.82);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.img-zoom-modal.open {
    display: flex;
}

.img-zoom-card {
    width: 100%;
    max-width: 540px;
    background: var(--surface);
    border: 1px solid rgba(212, 166, 74, 0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: zoomPop 0.18s ease-out;
}

@keyframes zoomPop {
    from { opacity: 0; transform: scale(0.93); }
    to { opacity: 1; transform: scale(1); }
}

.img-zoom-head {
    background: var(--charcoal-900);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(212, 166, 74, 0.25);
}

.img-zoom-head h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--brass-300);
    line-height: 1.3;
}

.img-zoom-head span {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.img-zoom-stage {
    background: #ffffff;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    max-height: 62vh;
}

.img-zoom-stage img {
    max-width: 100%;
    max-height: 56vh;
    object-fit: contain;
    border-radius: 10px;
}

.img-zoom-foot {
    padding: 12px 16px;
    background: var(--canvas);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ==========================================================================
   MOBILE-FIRST PO CARDS, COLLAPSIBLE DETAILS & STICKY BAR
   ========================================================================== */
.po-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.po-mobile-card {
    background: var(--canvas);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
}

.po-table-desktop {
    display: none;
}

.po-details-toggle {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.po-details-toggle summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.po-details-toggle summary::after {
    content: "▾";
    font-size: 15px;
    color: var(--brass-600);
}

.po-details-toggle[open] summary {
    margin-bottom: 14px;
}

.po-details-toggle[open] summary::after {
    content: "▴";
}

.mobile-sticky-order-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 112;
    background: var(--charcoal-900);
    color: #ffffff;
    border: 1px solid rgba(212, 166, 74, 0.38);
    border-radius: 15px;
    padding: 10px 12px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--shadow-lg);
}

.mobile-sticky-order-bar.visible {
    display: flex;
}

.stage-mobile-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--brass-50);
    border: 1px solid var(--brass-100);
    border-radius: 9px;
    padding: 6px 10px;
}

@media (max-width: 639px) {
    .progress-track span {
        display: none;
    }
    .progress-track {
        padding-top: 2px;
    }
    .progress-track::before,
    .progress-fill {
        top: 10px;
    }
}

@media (min-width: 768px) {
    .po-mobile-cards {
        display: none;
    }
    .po-table-desktop {
        display: block;
    }
    .mobile-sticky-order-bar {
        bottom: 16px;
        max-width: 680px;
        margin: 0 auto;
    }
    .stage-mobile-pill {
        display: none;
    }
}

/* ==========================================================================
   PDF MODAL
   ========================================================================== */
.pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(19, 18, 16, 0.72);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.pdf-box {
    width: 100%;
    max-width: 920px;
    height: 88vh;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.pdf-header {
    background: var(--charcoal-900);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pdf-actions {
    display: flex;
    gap: 8px;
}

.pdf-body {
    flex: 1;
    background: #eae6dc;
}

.pdf-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   TABLET BREAKPOINT (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }

    .topbar-nav {
        display: flex;
    }

    .assistant-label-text,
    .cart-label-desktop,
    .profile-name-desktop,
    .logout-chip {
        display: inline-flex;
    }

    .app-main {
        padding: 20px 22px 48px;
    }

    .page-hero {
        padding: 24px 26px;
    }

    .hero-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .hero-search-wrap {
        max-width: 300px;
    }

    .hero-title {
        font-size: 26px;
    }

    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .info-kv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .batch-bar {
        bottom: 18px;
    }
}

/* ==========================================================================
   DESKTOP BREAKPOINT (>= 1024px) — PERSISTENT LEFT CATEGORY SIDEBAR
   ========================================================================== */
@media (min-width: 1024px) {
    .topbar-inner {
        padding: 0 24px;
    }

    .app-workspace.with-sidebar ~ .unused,
    .has-inline-sidebar .sidebar-mobile-trigger,
    .has-inline-sidebar .cat-sidebar-backdrop,
    .has-inline-sidebar .sidebar-close-btn,
    .mobile-cat-rail {
        display: none !important;
    }

    .app-main {
        padding: 24px 24px 56px;
    }

    .app-workspace.with-sidebar {
        display: grid;
        grid-template-columns: 278px minmax(0, 1fr);
        gap: 22px;
        align-items: start;
    }

    .app-workspace.with-sidebar .cat-sidebar {
        position: sticky;
        top: calc(var(--nav-height) + 18px);
        width: 100%;
        max-width: none;
        height: auto;
        max-height: calc(100vh - var(--nav-height) - 36px);
        transform: none !important;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-light);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        z-index: 10;
    }

    .app-workspace.with-sidebar .sidebar-head {
        padding: 14px 16px;
    }

    .app-workspace.with-sidebar .sidebar-close-btn {
        display: none;
    }

    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .pdp-grid {
        grid-template-columns: 1fr 1.15fr;
        align-items: start;
        gap: 22px;
    }

    .pdp-gallery-card {
        position: sticky;
        top: calc(var(--nav-height) + 20px);
        padding: 26px;
    }

    .pdp-gallery-card img {
        max-height: 380px;
    }

    .po-layout {
        grid-template-columns: 1.45fr 1fr;
        align-items: start;
        gap: 22px;
    }

    .po-sidebar-sticky {
        position: sticky;
        top: calc(var(--nav-height) + 20px);
    }
}

@media (min-width: 1280px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================================================
   SHOPKEEPER EASY BULK CONTROLS, FAVORITES & ORDER ASSISTANT CHAT
   ========================================================================== */
.pad-mode-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pad-mode-btn {
    flex: 1 1 135px;
    padding: 10px 16px;
    border-radius: 9999px;
    border: 1.5px solid var(--border-light);
    background: #fff;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.pad-mode-btn:hover {
    border-color: var(--brass-400);
    background: var(--brass-50);
}

.pad-mode-btn.active {
    background: var(--charcoal-900);
    color: var(--brass-300);
    border-color: var(--charcoal-900);
}

.fav-star-btn {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    color: #c2b8a3;
    transition: transform 0.12s ease, color 0.15s ease;
    flex-shrink: 0;
}

.fav-star-btn:hover {
    transform: scale(1.15);
}

.fav-star-btn.starred {
    color: #d4961a;
}

.inline-pill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.inline-opt-pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-medium);
    background: var(--surface-subtle);
    color: var(--text-main);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.12s ease;
}

.inline-opt-pill:hover {
    border-color: var(--brass-400);
    background: var(--brass-50);
}

.inline-opt-pill.active {
    background: var(--charcoal-900);
    color: var(--brass-300);
    border-color: var(--charcoal-900);
}

.repeat-order-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

/* Floating WelBot Order Assistant Button & Conversational Drawer */
.chat-fab {
    position: fixed;
    right: 16px;
    bottom: 78px;
    z-index: 190;
    height: 52px;
    padding: 0 16px 0 10px;
    border-radius: 999px;
    border: 1.5px solid rgba(212, 166, 74, 0.65);
    background: linear-gradient(135deg, var(--charcoal-900) 0%, #30291d 100%);
    color: var(--brass-300);
    box-shadow: 0 12px 28px rgba(19, 18, 16, 0.34), 0 0 0 3px rgba(212, 166, 74, 0.14);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    overflow: visible;
    transition: transform 0.16s ease, bottom 0.2s ease, box-shadow 0.2s ease;
}

.chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(19, 18, 16, 0.42), 0 0 0 4px rgba(212, 166, 74, 0.24);
}

.welbot-fab-icon {
    position: relative;
    width: 42px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.welbot-robot-svg {
    width: 40px;
    height: 36px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.welbot-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px;
    height: 3px;
    margin-left: -15px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.36);
    pointer-events: none;
}

.welbot-gate-door {
    transform-box: fill-box;
    transform-origin: 100% 50%;
    animation: welbotGateSwing 2.6s ease-in-out infinite;
}

.welbot-gate-glow {
    animation: welbotGateGlow 2.6s ease-in-out infinite;
}

.welbot-gate-bot {
    transform-box: fill-box;
    transform-origin: 50% 95%;
    animation: welbotGateBotMove 2.6s ease-in-out infinite;
}

.welbot-gate-arm {
    transform-box: fill-box;
    transform-origin: 0% 50%;
    animation: welbotGateArmMove 2.6s ease-in-out infinite;
}

.welbot-beacon {
    animation: welbotBeacon 1.6s ease-in-out infinite;
}

.welbot-fab-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.08;
    text-align: left;
}

.welbot-fab-text strong {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brass-300);
    letter-spacing: 0.2px;
}

.welbot-fab-text small {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welbot-top-btn svg {
    width: 24px;
    height: 22px;
}

@keyframes welbotGateSwing {
    0%, 14% {
        transform: scaleX(1) skewY(0deg);
    }
    36%, 56% {
        transform: scaleX(0.24) skewY(-14deg);
    }
    78%, 100% {
        transform: scaleX(1) skewY(0deg);
    }
}

@keyframes welbotGateGlow {
    0%, 14% {
        opacity: 0.14;
    }
    36%, 56% {
        opacity: 0.88;
    }
    78%, 100% {
        opacity: 0.14;
    }
}

@keyframes welbotGateBotMove {
    0%, 14% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    36%, 56% {
        transform: translateX(-2px) translateY(-1.5px) rotate(-6deg);
    }
    74% {
        transform: translateX(1.5px) translateY(-0.5px) rotate(5deg);
    }
    86%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}

@keyframes welbotGateArmMove {
    0%, 14% {
        transform: rotate(0deg) scaleX(1);
    }
    36%, 56% {
        transform: rotate(-16deg) scaleX(1.06);
    }
    74% {
        transform: rotate(10deg) scaleX(1);
    }
    86%, 100% {
        transform: rotate(0deg) scaleX(1);
    }
}

@keyframes welbotBeacon {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.42;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welbot-gate-door,
    .welbot-gate-glow,
    .welbot-gate-bot,
    .welbot-gate-arm,
    .welbot-beacon {
        animation: none !important;
    }
}

body.has-sticky-order-bar .chat-fab {
    bottom: 136px;
}

@media (min-width: 768px) {
    .chat-fab {
        right: 22px;
        bottom: 22px;
    }
    body.has-sticky-order-bar .chat-fab {
        bottom: 84px;
    }
}

/* WelBot Order Assistant Drawer Backdrop: Clean, non-dark, zero blur */
.chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 18, 16, 0.22);
    backdrop-filter: none;
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.chat-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 992px) {
    .chat-backdrop {
        background: transparent;
        backdrop-filter: none;
    }
}

.chat-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: #f8f5ee;
    z-index: 990;
    border-left: 1px solid rgba(212, 166, 74, 0.35);
    box-shadow: -12px 0 36px rgba(19, 18, 16, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(104%);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-drawer.open {
    transform: translateX(0);
}

.chat-head {
    background: var(--charcoal-900);
    color: #fff;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(212, 166, 74, 0.28);
}

.chat-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chat-head-meta {
    flex: 1;
    min-width: 0;
}

.chat-head-meta h3 {
    margin: 0;
    font-size: 15.5px;
    color: var(--brass-300);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.welbot-ai-badge {
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(212, 166, 74, 0.2);
    border: 1px solid rgba(212, 166, 74, 0.4);
    color: var(--brass-200);
    font-weight: 800;
    letter-spacing: 0.4px;
}

.chat-head-meta p {
    margin: 2px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-head-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.chat-new-btn {
    height: 32px;
    padding: 0 13px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chat-new-btn:hover {
    background: rgba(212, 166, 74, 0.24);
    border-color: rgba(212, 166, 74, 0.55);
}

.chat-avatar {
    width: 42px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brass-400), var(--brass-500));
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 166, 74, 0.28);
}

.chat-avatar svg {
    width: 34px;
    height: 31px;
}

@media (max-width: 480px) {
    .chat-head {
        padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 10px;
        gap: 8px;
    }
    .chat-head-left {
        gap: 8px;
    }
    .chat-avatar {
        width: 38px;
        height: 36px;
        border-radius: 10px;
    }
    .chat-avatar svg {
        width: 31px;
        height: 28px;
    }
    .chat-head-meta h3 {
        font-size: 14.5px;
    }
    .welbot-ai-badge {
        display: none;
    }
    .chat-new-btn {
        height: 30px;
        padding: 0 12px;
        font-size: 11px;
        border-radius: 9999px;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 94%;
    animation: chatMsgPop 0.24s cubic-bezier(0.22, 1.28, 0.36, 1);
}

@keyframes chatMsgPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welbot-step-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 7px 12px;
    background: #25211b;
    border-bottom: 1px solid rgba(212, 166, 74, 0.22);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    overflow-x: auto;
}

.welbot-step-chip {
    border: 1px solid rgba(212, 166, 74, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #f6e7c3;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.welbot-step-chip:hover {
    background: rgba(212, 166, 74, 0.22);
    color: #fff;
}

.welbot-status-card {
    margin-top: 9px;
    padding: 10px 11px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffdf8 0%, #f9f2e1 100%);
    border: 1.5px solid var(--brass-300);
}

.welbot-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--charcoal-900);
    color: var(--brass-300);
    font-size: 10.5px;
    font-weight: 800;
}

.welbot-mini-progress {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e7dec8;
    margin: 7px 0 6px;
    overflow: hidden;
}

.welbot-mini-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brass-400), var(--brass-600));
    transition: width 0.35s ease;
}

.welbot-cheer-banner {
    padding: 9px 11px;
    border-radius: 11px;
    background: linear-gradient(135deg, #f3faf4 0%, #e4f4e7 100%);
    border: 1px solid #8fd19e;
    color: #155724;
    font-size: 12.5px;
}

.welbot-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12.5px;
}

.welbot-typing-dots {
    display: inline-flex;
    gap: 3px;
}

.welbot-typing-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brass-500);
    display: inline-block;
    animation: welbotDot 1.1s infinite ease-in-out;
}

.welbot-typing-dots i:nth-child(2) {
    animation-delay: 0.16s;
}

.welbot-typing-dots i:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes welbotDot {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.chat-msg.user {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-msg.bot {
    align-self: flex-start;
    align-items: flex-start;
    width: 100%;
}

.chat-bubble {
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: var(--shadow-sm);
}

.chat-msg.user .chat-bubble {
    background: var(--charcoal-900);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.bot .chat-bubble {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
    width: 100%;
}

.chat-quick-bar {
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-qbtn {
    flex-shrink: 0;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--border-medium);
    background: var(--surface-subtle);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.chat-qbtn:hover {
    border-color: var(--brass-400);
    background: var(--brass-50);
}

.chat-qbtn.brass {
    background: linear-gradient(135deg, var(--brass-400), var(--brass-500));
    color: var(--charcoal-950);
    border-color: transparent;
}

.chat-live-cart-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #25211b, #1b1916);
    color: #fff;
    border-top: 1px solid rgba(212, 166, 74, 0.35);
}

.chat-live-cart-bar.visible {
    display: flex;
}

.chat-suggest-strip {
    display: none;
    gap: 6px;
    padding: 7px 12px;
    background: #fbf7ed;
    border-top: 1px solid var(--border-light);
    overflow-x: auto;
    scrollbar-width: thin;
}

.chat-suggest-strip.visible {
    display: flex;
}

.chat-suggest-chip {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid var(--brass-300);
    background: #fff;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chat-suggest-chip:hover {
    background: var(--brass-50);
    border-color: var(--brass-500);
}

.chat-suggest-chip span {
    color: var(--brass-600);
    font-weight: 800;
}

.welbot-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.welbot-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 11px;
    border: 1.5px solid var(--border-light);
    background: #faf7f0;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.14s ease;
}

.welbot-menu-tile:hover {
    border-color: var(--brass-400);
    background: var(--brass-50);
    transform: translateY(-1px);
}

.welbot-menu-tile strong {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
}

.welbot-menu-tile small {
    font-size: 10.8px;
    color: var(--text-muted);
    line-height: 1.2;
}

.chat-voice-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1.5px solid var(--border-medium);
    background: var(--surface-subtle);
    color: var(--text-main);
    font-size: 17px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-voice-btn.listening {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
    animation: welbotBeacon 0.9s ease-in-out infinite;
}

.chat-qty-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.chat-qty-pill {
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--border-medium);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
}

.chat-qty-pill.active,
.chat-qty-pill:hover {
    background: var(--brass-100);
    border-color: var(--brass-500);
    color: var(--charcoal-950);
}

.chat-composer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-composer textarea {
    flex: 1;
    border: 1.5px solid var(--border-medium);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13.5px;
    line-height: 1.35;
    resize: none;
    height: 40px;
    min-height: 40px;
    max-height: 92px;
    overflow-y: auto;
    background: var(--surface-subtle);
    outline: none;
}

.welbot-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--brass-50);
    border: 1px solid var(--brass-300);
    color: var(--brass-700, #8a6318);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
}

.welbot-rate-box {
    margin-top: 6px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #fffdf8;
    border: 1px solid var(--brass-300);
    font-size: 12px;
}

.chat-composer textarea:focus {
    border-color: var(--brass-500);
    background: #fff;
}

.chat-draft-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 10px;
    margin-top: 8px;
    border-radius: 10px;
    background: #faf7f0;
    border: 1px solid var(--border-light);
}

.chat-receipt-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--charcoal-900);
    color: #fff;
}

/* WhatsApp-Bot Guided Numbered Step Menus (Single Active Panel) */
.welbot-wa-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.welbot-wa-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1.5px solid var(--border-light);
    background: #faf7f0;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.14s ease;
}

.welbot-wa-item:hover {
    border-color: var(--brass-400);
    background: var(--brass-50);
    transform: translateX(2px);
}

.welbot-wa-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.welbot-wa-num {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--charcoal-900);
    color: var(--brass-300);
    font-size: 11.5px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.welbot-wa-title {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
}

.welbot-wa-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
}

.welbot-wa-meta {
    font-size: 11px;
    font-weight: 800;
    color: var(--brass-600);
    flex-shrink: 0;
    white-space: nowrap;
}

.welbot-wa-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
}

.welbot-collapsed-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0ebe0;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
}

/* ==========================================================================
   WELBOT WHOLESALE SERIES & PACKING MATRIX PAD
   ========================================================================== */
.welbot-matrix-card {
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    border-radius: 14px;
    padding: 12px;
    margin: 8px 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welbot-matrix-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.welbot-matrix-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.welbot-matrix-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--charcoal-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

.welbot-matrix-count {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brass-100);
    color: var(--brass-700);
    border: 1px solid rgba(212, 166, 74, 0.4);
    white-space: nowrap;
}

.welbot-matrix-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

.welbot-matrix-filter {
    width: 100%;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    background: #faf8f3;
    padding: 0 10px;
    font-size: 12px;
    color: var(--charcoal-900);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.welbot-matrix-filter:focus {
    border-color: var(--brass-400);
    background: #fff;
}

.welbot-matrix-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.welbot-matrix-row {
    background: #fdfcf9;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all 0.15s ease;
}

.welbot-matrix-row:hover {
    border-color: rgba(212, 166, 74, 0.45);
}

.welbot-matrix-row.is-selected {
    background: #fffdf5;
    border-color: var(--brass-400);
    box-shadow: 0 2px 8px rgba(212, 166, 74, 0.18);
}

.welbot-matrix-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.welbot-size-label {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--charcoal-900);
    line-height: 1.25;
}

.welbot-size-rate {
    font-size: 13px;
    font-weight: 800;
    color: var(--brass-600);
    white-space: nowrap;
}

.welbot-pack-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fbf6ec;
    border: 1px solid rgba(212, 166, 74, 0.45);
    font-size: 11px;
    font-weight: 700;
    color: #8a5e18;
    align-self: flex-start;
}

.welbot-pack-chips,
.welbot-finish-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.welbot-chip-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.welbot-chip {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-medium);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: var(--charcoal-900);
    cursor: pointer;
    transition: all 0.12s ease;
}

.welbot-chip:hover {
    border-color: var(--brass-400);
    background: var(--brass-50);
}

.welbot-chip.active {
    background: var(--charcoal-900);
    color: var(--brass-300);
    border-color: var(--charcoal-900);
    font-weight: 800;
}

.welbot-qty-ctrl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px dashed var(--border-light);
}

.welbot-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border-medium);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.welbot-stepper button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--charcoal-900);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welbot-stepper button:hover {
    background: var(--brass-50);
    color: var(--brass-600);
}

.welbot-stepper input {
    width: 36px;
    height: 28px;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    text-align: center;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--charcoal-900);
    outline: none;
    background: #fff;
}

.welbot-quick-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.welbot-quick-pill {
    padding: 3px 9px;
    border-radius: 9999px;
    border: 1px solid var(--border-light);
    background: #fff;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.welbot-quick-pill:hover {
    background: var(--brass-100);
    border-color: var(--brass-400);
    color: var(--brass-800);
}

.welbot-row-tot {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--brass-700);
    white-space: nowrap;
}

.welbot-matrix-foot {
    border-top: 1.5px solid var(--border-medium);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welbot-matrix-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--charcoal-900);
}

.welbot-matrix-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.welbot-matrix-btns .btn-brass {
    flex: 1 1 160px;
    height: 38px;
    font-size: 12.5px;
    font-weight: 800;
}

.welbot-matrix-btns .btn-charcoal {
    flex: 0 1 auto;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================================================
   FAST ORDERING, REPEAT PO, VOICE MIC, WHATSAPP & PWA STYLES
   ========================================================================== */

/* Hero Search Mic Button */
.hero-search-wrap {
    position: relative;
}

.hero-voice-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.hero-voice-btn:hover {
    color: var(--brass-600);
    background: var(--brass-50);
}

.hero-voice-btn.listening {
    color: #fff;
    background: #d93838;
    box-shadow: 0 0 0 4px rgba(217, 56, 56, 0.28);
    animation: voicePulse 1.2s infinite ease-in-out;
}

@keyframes voicePulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.12); }
}

/* WhatsApp Slip Button */
.btn-whatsapp-slip {
    width: 100%;
    height: 40px;
    margin-top: 6px;
    border-radius: 9999px;
    background: #25D366;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28);
    transition: all 0.15s ease;
}

.btn-whatsapp-slip:hover {
    background: #1ebc59;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.38);
    transform: translateY(-1px);
}

/* Quick Paste Order Modal */
.quick-paste-modal {
    position: fixed;
    inset: 0;
    background: rgba(19, 18, 16, 0.45);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.quick-paste-modal.open {
    display: flex;
}

.quick-paste-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border-medium);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.quick-paste-head {
    background: var(--charcoal-900);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.quick-paste-head h3 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 800;
    color: var(--brass-200);
}

.quick-paste-head p {
    margin: 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.quick-paste-head .drawer-close {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-paste-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #faf8f3;
}

.quick-paste-body textarea {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid var(--border-medium);
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    background: #fff;
    color: var(--charcoal-900);
    resize: vertical;
    outline: none;
    font-family: inherit;
}

.quick-paste-body textarea:focus {
    border-color: var(--brass-400);
    box-shadow: 0 0 0 3px rgba(212, 166, 74, 0.18);
}

.quick-paste-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.quick-paste-foot {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Home Quick Repeat PO Banner */
.home-repeat-card {
    background: linear-gradient(135deg, #231f18 0%, #171410 100%);
    color: #fff;
    border-radius: 14px;
    border: 1px solid rgba(212, 166, 74, 0.4);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.home-repeat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brass-300);
    margin-bottom: 2px;
}

.home-repeat-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.home-repeat-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

.home-repeat-btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 18px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

/* Home 60-Second Fast Restock Section */
.home-fast-section {
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.home-fast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.home-fast-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--charcoal-900);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 2px;
}

.home-fast-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.home-dispatch-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eefbf3;
    border: 1px solid #b7ebd0;
    font-size: 11px;
    font-weight: 800;
    color: #1a7f48;
}

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

.home-fast-card {
    background: #faf8f3;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.15s ease;
}

.home-fast-card:hover {
    border-color: var(--brass-400);
    background: #fffdf8;
    box-shadow: 0 3px 10px rgba(19, 18, 16, 0.06);
}

.home-fast-card-top {
    display: flex;
    gap: 8px;
    align-items: center;
}

.home-fast-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-light);
    object-fit: contain;
    flex-shrink: 0;
}

.home-fast-card-info {
    min-width: 0;
    flex: 1;
}

.home-fast-card-name {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--charcoal-900);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-fast-card-meta {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

.home-fast-card-price {
    font-size: 12px;
    font-weight: 800;
    color: var(--brass-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-fast-btns {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.home-fast-btn {
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border-radius: 9999px;
    border: 1px solid var(--border-medium);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    color: var(--charcoal-900);
    cursor: pointer;
    transition: all 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-fast-btn:hover {
    background: var(--brass-100);
    border-color: var(--brass-400);
    color: var(--brass-900);
}

.home-fast-btn:active {
    transform: scale(0.96);
}

/* PWA Install Banner on Mobile */
.pwa-install-banner {
    background: linear-gradient(135deg, #2a241c 0%, #191612 100%);
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(212, 166, 74, 0.35);
}

.pwa-install-banner.show {
    display: flex;
}

/* ==========================================================================
   B2B GUEST MODE & 1-STEP ORDER CONVERSION MODAL
   ========================================================================== */
.topbar-guest-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 13px;
    background: linear-gradient(135deg, rgba(212, 166, 74, 0.18) 0%, rgba(184, 135, 42, 0.1) 100%);
    border: 1.5px solid rgba(212, 166, 74, 0.6);
    border-radius: 999px;
    color: var(--brass-300);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
    white-space: nowrap;
}

.topbar-guest-btn:hover {
    background: linear-gradient(135deg, rgba(212, 166, 74, 0.32) 0%, rgba(184, 135, 42, 0.22) 100%);
    border-color: var(--brass-400);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 135, 42, 0.25);
}

.guest-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: guestPulse 2s infinite ease-in-out;
}

@keyframes guestPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

/* Guest Registration Modal */
.guest-reg-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(19, 18, 16, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.guest-reg-modal.open {
    display: flex;
}

.guest-reg-card {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 28px 64px rgba(19, 18, 16, 0.32), 0 8px 24px rgba(19, 18, 16, 0.12);
    overflow: hidden;
    animation: guestModalSlide 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-medium);
}

@keyframes guestModalSlide {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.guest-reg-head {
    background: linear-gradient(135deg, #1b1916 0%, #27241e 100%);
    color: #ffffff;
    padding: 20px 22px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--brass-500);
}

.guest-reg-badge {
    display: inline-block;
    background: rgba(212, 166, 74, 0.22);
    border: 1px solid rgba(212, 166, 74, 0.45);
    color: var(--brass-300);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.guest-reg-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.guest-reg-head p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
}

.guest-reg-head .drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-reg-body {
    padding: 20px 22px;
}

.guest-field {
    margin-bottom: 14px;
}

.guest-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--charcoal-900);
    margin-bottom: 6px;
}

.guest-field .req-star {
    color: #dc2626;
}

.guest-field .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.guest-field .field-icon {
    position: absolute;
    left: 12px;
    font-size: 15px;
    pointer-events: none;
}

.guest-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 38px;
    border: 1.5px solid var(--border-medium);
    border-radius: 10px;
    background: #faf8f4;
    font-size: 14px;
    color: var(--charcoal-950);
    font-family: inherit;
    transition: all 0.18s ease;
}

.guest-field input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--brass-500);
    box-shadow: 0 0 0 3.5px rgba(184, 135, 42, 0.18);
}

.guest-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .guest-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.guest-optional-section {
    margin-top: 4px;
    margin-bottom: 14px;
}

.guest-opt-toggle {
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brass-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guest-opt-toggle:hover {
    color: var(--brass-900);
    text-decoration: underline;
}

.guest-opt-fields .guest-field input {
    padding-left: 12px;
}

.guest-reg-alert {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.guest-reg-foot {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   UNIVERSAL PILL BUTTON ARCHITECTURE (All Interactive Buttons in Pill Shape)
   ========================================================================== */
.btn-brass,
.btn-charcoal,
.btn-outline,
.btn-whatsapp-slip,
.btn-danger,
.btn-success,
.bulk-add-btn,
.pad-mode-btn,
.home-fast-btn,
.home-repeat-btn,
.topbar-guest-btn,
.assistant-trigger,
.cart-trigger,
.profile-chip,
.logout-chip,
.chat-new-btn,
.chat-qbtn,
.welbot-step-chip,
.inline-opt-pill,
.catalog-view-pill,
.chat-suggest-chip,
.welbot-chip,
.welbot-quick-pill,
.confirmation-pill,
.quick-preset-btn,
.rail-pill,
.step-chip,
.cart-remove-btn,
.bulk-view-link,
.view-toggle,
.view-toggle button,
.btn-pill,
.btn,
button.btn,
a.btn {
    border-radius: 9999px !important;
}



