:root {
    --bg: #e9ebee;
    --bg-white: #f2f3f5;
    --panel: rgba(241,242,244,0.82);
    --surface: rgba(241,242,244,0.82);
    --ink: #1a1a1a;
    --text: #3a3a3a;
    --muted: #6b6b6b;
    --muted-light: #9a9a9a;
    --line: #dfe1e4;
    --line-light: #e4e6e9;
    --border: #dfe1e4;
    --green: #16a34a;
    --green-dark: #15803d;
    --green-light: #dcfce7;
    --green-bg: #f0fdf4;
    --red: #dc2626;
    --red-light: #fef2f2;
    --orange: #ea580c;
    --orange-light: #fff7ed;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 2px 6px rgba(0,0,0,0.06);
    --card-glow: inset 0 1px 0 rgba(255,255,255,0.78);
    --radius: 6px;
    --radius-lg: 8px;
    --input-bg: #ffffff;
    --page-bg: linear-gradient(180deg, #edf0f2 0%, var(--bg) 58%, #dde1e6 100%);
    --footer-bg: linear-gradient(180deg, #101418, #0b1115);
    --footer-heading: #fff;
    --footer-text: rgba(255,255,255,0.72);
    --footer-muted: rgba(255,255,255,0.62);
    --footer-line: rgba(255,255,255,0.08);
    --footer-top-line: rgba(255,255,255,0.06);
    --message-border: #bbf7d0;
    --message-bg: var(--green-light);
    --message-text: #166534;
    --table-row-hover: #fafafa;
    --tile-bg: linear-gradient(180deg, rgba(250,251,252,0.94) 0%, rgba(241,243,245,0.98) 100%);
    --tile-border: #cdd1d6;
    --tile-hover-border: #c2cad2;
    --tile-inset-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    --tile-icon-color: #15803d;
    --tile-icon-bg: rgba(22, 163, 74, 0.12);
    --tile-icon-border: rgba(22, 163, 74, 0.24);
    --tile-title: #111827;
    --tile-body: #4b5563;
    --filter-label: #6b7280;
    --filter-input-border: #d6d9de;
    --filter-input-bg: #ffffff;
    --filter-checks-bg: #eef0f2;
    --filter-checks-border: #dde0e4;
    --filter-check-color: #374151;
    --page-header-bg: linear-gradient(180deg, rgba(248,249,250,0.96) 0%, rgba(241,243,245,0.94) 100%);
    --page-header-border: rgba(205, 209, 214, 0.9);
    --page-header-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
    --hero-bg: linear-gradient(135deg, rgba(13, 18, 24, 0.98), rgba(17, 24, 39, 0.92));
    --hero-border: rgba(17, 24, 39, 0.08);
    --hero-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    --product-card-bg: linear-gradient(180deg, rgba(250,251,252,0.96) 0%, rgba(241,242,244,0.94) 100%);
    --product-card-image-bg: linear-gradient(180deg, rgba(235,238,241,0.96) 0%, rgba(228,232,236,0.98) 100%);
    --product-card-hover-border: #d6dde4;
    --stat-card-bg: linear-gradient(180deg, rgba(250,251,252,0.98) 0%, rgba(241,243,245,0.98) 100%);
    --badge-bg: rgba(22, 163, 74, 0.1);
    --badge-border: rgba(22, 163, 74, 0.14);
    --badge-text: #166534;
    --promo-bg: linear-gradient(180deg, rgba(248,249,250,0.98), rgba(240,242,244,0.95));
    --promo-border: #ced2d7;
    --promo-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    --placeholder-ink: #7b8794;
    --max-width: min(100%, 1680px);
    --page-gutter: clamp(12px, 2.5vw, 28px);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --speed: 0.18s;
    --navbar-height: 56px;
    --cat-nav-height: 36px;
    --sidebar-sticky-top: calc(var(--navbar-height) + var(--cat-nav-height) + 16px);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0f13;
    --bg-white: #131922;
    --panel: rgba(19, 25, 34, 0.94);
    --surface: rgba(15, 20, 27, 0.82);
    --ink: #f3f5f7;
    --text: #d3d9df;
    --muted: #97a2ad;
    --muted-light: #6f7a84;
    --line: #2a3440;
    --line-light: #1e2630;
    --border: #33414f;
    --green: #28c06a;
    --green-dark: #219f57;
    --green-light: rgba(40, 192, 106, 0.14);
    --green-bg: rgba(40, 192, 106, 0.08);
    --red-light: rgba(248, 113, 113, 0.16);
    --orange-light: rgba(251, 146, 60, 0.16);
    --shadow-sm: 0 12px 24px rgba(0,0,0,0.18);
    --shadow: 0 18px 42px rgba(0,0,0,0.32);
    --card-glow: inset 0 1px 0 rgba(255,255,255,0.04);
    --input-bg: #10161d;
    --page-bg: linear-gradient(180deg, #10141a 0%, var(--bg) 62%, #06080b 100%);
    --footer-bg: linear-gradient(180deg, #05080c, #0a1016);
    --footer-heading: #f5fbf6;
    --footer-text: rgba(228,241,232,0.76);
    --footer-muted: rgba(228,241,232,0.58);
    --footer-line: rgba(228,241,232,0.12);
    --footer-top-line: rgba(228,241,232,0.08);
    --message-border: rgba(40, 192, 106, 0.2);
    --message-bg: rgba(40, 192, 106, 0.1);
    --message-text: #bdf3ce;
    --table-row-hover: rgba(255,255,255,0.03);
    --tile-bg: linear-gradient(180deg, rgba(24, 31, 40, 0.98) 0%, rgba(14, 18, 24, 0.98) 100%);
    --tile-border: #313d49;
    --tile-hover-border: #435262;
    --tile-inset-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    --tile-icon-color: #8de6af;
    --tile-icon-bg: rgba(40, 192, 106, 0.1);
    --tile-icon-border: rgba(40, 192, 106, 0.18);
    --tile-title: #e7f7ea;
    --tile-body: #a5b8ad;
    --filter-label: #99aa9f;
    --filter-input-border: #344251;
    --filter-input-bg: #10161d;
    --filter-checks-bg: #151c24;
    --filter-checks-border: #27313c;
    --filter-check-color: #c5d3ca;
    --page-header-bg: linear-gradient(180deg, rgba(15, 20, 27, 0.96) 0%, rgba(12, 16, 22, 0.98) 100%);
    --page-header-border: rgba(62, 78, 96, 0.9);
    --page-header-shadow: 0 24px 46px rgba(0,0,0,0.24);
    --hero-bg: linear-gradient(135deg, rgba(10, 14, 19, 0.98), rgba(20, 28, 36, 0.96));
    --hero-border: rgba(73, 91, 109, 0.28);
    --hero-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
    --product-card-bg: linear-gradient(180deg, rgba(19, 25, 34, 0.98) 0%, rgba(12, 16, 22, 0.98) 100%);
    --product-card-image-bg: linear-gradient(180deg, rgba(20, 27, 35, 0.98) 0%, rgba(15, 20, 27, 0.98) 100%);
    --product-card-hover-border: #435262;
    --stat-card-bg: linear-gradient(180deg, rgba(24, 31, 40, 0.98) 0%, rgba(13, 18, 24, 0.98) 100%);
    --badge-bg: rgba(40, 192, 106, 0.1);
    --badge-border: rgba(40, 192, 106, 0.16);
    --badge-text: #bdf3ce;
    --promo-bg: linear-gradient(135deg, rgba(24, 31, 40, 0.98), rgba(12, 16, 22, 0.98));
    --promo-border: #313d49;
    --promo-shadow: 0 20px 38px rgba(0,0,0,0.28);
    --placeholder-ink: #8da699;
}

/* ── Icons ── */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 4px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.5;
    transition: background 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.24s var(--ease);
}

html.theme-transitioning body,
html.theme-transitioning body * {
    transition-duration: 0.32s;
    transition-timing-function: ease-out;
    transition-property: background, background-color, border-color, color, box-shadow, fill, stroke, filter;
}

html.theme-transitioning body {
    transition-duration: 0.38s;
}

html.theme-transitioning .theme-toggle {
    pointer-events: none;
}

@supports (view-transition-name: root) {
    ::view-transition-group(root) {
        animation-duration: 0.38s;
        animation-timing-function: ease-out;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        transform-origin: var(--theme-origin-x, 50%) var(--theme-origin-y, 50%);
        mix-blend-mode: normal;
    }

    ::view-transition-old(root) {
        animation: theme-view-fade-out 0.22s ease-out both;
    }

    ::view-transition-new(root) {
        animation: theme-view-reveal 0.32s ease-in both;
    }
}

@keyframes theme-view-fade-out {
    0% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 0;
        filter: blur(4px);
    }
}

@keyframes theme-view-reveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

/* ── Layout ── */
.shell {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px var(--page-gutter) 40px;
}

/* ── Page Layout (3-column with opt-in sidebars) ── */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 2vw, 28px);
    align-items: start;
}
.page-layout:has(.sidebar-left):has(.sidebar-right) {
    grid-template-columns: minmax(180px, clamp(180px, 18vw, 240px)) minmax(0, 1fr) minmax(180px, clamp(180px, 18vw, 240px));
}
.page-layout:has(.sidebar-left):not(:has(.sidebar-right)) {
    grid-template-columns: minmax(180px, clamp(180px, 18vw, 240px)) minmax(0, 1fr);
}
.page-layout:not(:has(.sidebar-left)):has(.sidebar-right) {
    grid-template-columns: minmax(0, 1fr) minmax(180px, clamp(180px, 18vw, 240px));
}
.page-main { min-width: 0; }
.sidebar-left,
.sidebar-right {
    position: sticky;
    top: var(--sidebar-sticky-top);
    min-width: 0;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-left .sidebar-nav { list-style: none; margin: 0; padding: 0; }
.sidebar-left .sidebar-nav li a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
}
.sidebar-left .sidebar-nav li a:hover { padding-left: 16px; }
.sidebar-left .sidebar-nav li a:hover { background: var(--line-light); color: var(--green-dark); }
.sidebar-left .sidebar-nav li a.current { background: var(--green-bg); color: var(--green-dark); font-weight: 600; }
.sidebar-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm), var(--card-glow);
}
.sidebar-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}
.sidebar-section ul { list-style: none; margin: 0; padding: 0; }
.sidebar-section li { padding: 3px 0; }
.sidebar-section li a {
    display: block;
    padding: 6px 8px;
    border-radius: var(--radius);
    font-size: 13px;
    transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.sidebar-section li a:hover {
    color: var(--ink);
    background: var(--line-light);
}
.sidebar-section .filter-group label { display: block; }
.sidebar-section .filter-group select,
.sidebar-section .filter-group input { width: 100%; box-sizing: border-box; }
.sidebar-quick-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; font-size: 13px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text);
    transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.sidebar-quick-link:active { transform: scale(0.98); }
.sidebar-quick-link .icon { margin-right: 0; }
.sidebar-quick-link:hover { border-color: var(--green); color: var(--green-dark); }

/* ── Sidebar Ad Placeholder ── */
.sidebar-ad-placeholder {
    min-height: 240px;
    background: var(--line-light);
    border-radius: var(--radius);
    border: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-light);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Navbar ── */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6px var(--page-gutter);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
    min-height: var(--navbar-height);
}
.brand {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}
.brand { transition: opacity var(--speed) var(--ease); }
.brand:hover { opacity: 0.8; }
.theme-brand-lockup {
    display: inline-grid;
    align-items: center;
    justify-items: start;
}
.theme-brand-logo {
    display: none;
}
html:not([data-theme]) .theme-brand-logo-light,
html[data-theme="light"] .theme-brand-logo-light,
html[data-theme="dark"] .theme-brand-logo-dark {
    display: block;
}
.theme-brand-logo-light { mix-blend-mode: multiply; }
.theme-brand-logo-dark { mix-blend-mode: screen; }
.logo-force-light .theme-brand-logo-light,
.logo-force-dark .theme-brand-logo-dark {
    display: block !important;
}
.logo-force-light .theme-brand-logo-dark,
.logo-force-dark .theme-brand-logo-light {
    display: none !important;
}
.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.brand:hover .brand-logo {
    transform: translateY(-1px) scale(1.03);
    opacity: 0.88;
}
.navbar-mobile-menu {
    display: none;
}
.navbar-mobile-summary {
    list-style: none;
}
.navbar-mobile-summary::-webkit-details-marker {
    display: none;
}
.navbar-mobile-summary,
.navbar-mobile-actions form.inline-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.navbar-meta {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.navbar-search {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    width: 100%;
    max-width: 520px;
    margin: 0;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--input-bg);
    box-shadow: none;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.navbar-search:focus-within {
    border-color: var(--border);
    background: var(--input-bg);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}
.navbar-search input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    font: inherit;
    font-size: 12.5px;
    background: transparent;
    color: var(--text);
    outline: none;
    transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.navbar-search input::placeholder {
    color: var(--muted);
}
.navbar-search input:focus {
    background: transparent;
}
.navbar-search button {
    width: 38px;
    min-width: 38px;
    height: 34px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    border: none;
    border-left: 1px solid var(--line-light);
    border-radius: 0;
    font: inherit;
    cursor: pointer;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.navbar-search button:hover {
    background: var(--bg);
    color: var(--ink);
}
.navbar-search button:active { transform: scale(0.96); }
.navbar-search button .icon {
    margin-right: 0;
}
.navbar-toggles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: 0;
    min-width: 0;
    flex-shrink: 0;
}
.navbar-actions a,
.navbar-actions .account-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.navbar-actions .btn,
.navbar-actions .btn-outline-green,
.navbar-actions button.btn {
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    gap: 4px;
}
.navbar-actions .btn .icon,
.navbar-actions .btn-outline-green .icon,
.navbar-actions button.btn .icon {
    display: none;
}
.navbar-actions a { transition: color var(--speed) var(--ease); }
.navbar-actions a:hover { color: var(--green); }
.navbar-actions a.btn-outline-green:hover,
.navbar-actions a.btn-outline-green:focus-visible {
    color: #fff;
}
.navbar-actions .account-name {
    font-weight: 600;
    color: var(--ink);
}
.navbar-actions .divider {
    width: 1px;
    height: 20px;
    background: var(--line);
}

/* ── Category Nav ── */
.cat-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--line-light);
    position: sticky;
    top: var(--navbar-height);
    z-index: 99;
}
.cat-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: flex;
    justify-content: center;
    gap: 0;
    align-items: stretch;
    overflow-x: auto;
}
.cat-nav a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.cat-nav a .icon { display: none; }
.cat-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.cat-nav a.current { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }

/* ── Buttons ── */
.btn,
.btn-primary,
.btn-danger,
.btn-outline-green,
.button,
button[type="submit"]:not(.lang-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    gap: 6px;
    line-height: 1;
    transition: background var(--speed) var(--ease),
               border-color var(--speed) var(--ease),
               color var(--speed) var(--ease),
               box-shadow var(--speed) var(--ease),
               transform var(--speed) var(--ease);
}
.btn:active, .btn-primary:active, .btn-danger:active,
.btn-outline-green:active, .button:active, button[type="submit"]:not(.lang-btn):active {
    transform: scale(0.97);
}
.btn:not(.btn-primary):not(.btn-danger):not(.btn-outline-green):not(.btn-ghost-light):hover,
.button:hover,
button[type="submit"]:not(.lang-btn):not(.btn-primary):not(.btn-danger):not(.btn-outline-green):not(.btn-ghost-light):hover {
    border-color: #ccc;
    background: var(--bg);
}
.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}
.btn-green {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}
.btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}
.btn-danger {
    color: var(--red);
    border-color: var(--red);
}
.btn-danger:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-outline-green {
    color: var(--green);
    border-color: var(--green);
}
.btn-outline-green:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-ghost-light {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* Keep navbar search control visually unified; avoid global submit-button border ring */
.navbar-search button[type="submit"] {
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

/* ── Forms ── */
.page-main form:not(.navbar-search):not(.inline-form) { display: grid; gap: 14px; }
.sidebar-section form { display: grid; gap: 4px; }
.inline-form { display: inline; }

input, select:not(.navbar-search-type), textarea {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
textarea { height: auto; min-height: 80px; }
input::placeholder, textarea::placeholder { color: var(--muted-light); }
input:focus, select:not(.navbar-search-type):focus, textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.filter-group label input[type="checkbox"],
.filter-group label input[type="radio"] {
    margin-right: 8px;
}
.field-help { color: var(--muted); font-size: 12px; margin-top: 2px; }
.field-error { color: var(--red); }
.form-shell { max-width: 760px; }
.form-shell-wide { max-width: 920px; }
.form-shell .card-body {
    display: grid;
    gap: 18px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.form-stack,
.form-field {
    display: grid;
    gap: 4px;
}
.form-grid > .field-span-full,
.form-grid > .form-actions,
.form-grid > .form-note {
    grid-column: 1 / -1;
}
.form-note {
    font-size: 12px;
    color: var(--muted);
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.surface-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.surface-toolbar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.surface-toolbar-form {
    display: flex;
    flex: 1 1 320px;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.surface-toolbar-form select {
    width: auto;
    min-width: 140px;
}
.product-form > div {
    display: grid;
    gap: 4px;
}

/* ── Alerts / Messages ── */
.messages { display: grid; gap: 8px; margin-bottom: 16px; }
.message {
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--message-border);
    background: var(--message-bg);
    color: var(--message-text);
    font-size: 13px;
}

/* ── Cards ── */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card-body { padding: 16px; }
.card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--line-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-body-tight { padding: 0; }
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--line-light);
}
.card-head h2,
.card-head h3 { margin: 0; }

/* ── Product Cards ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--line-light);
}
.product-card .product-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg);
    overflow: hidden;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-card .product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-card .product-info { padding: 12px; }
.product-card .product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.product-card .product-vendor {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}
.product-card .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.product-card .product-price-old {
    font-size: 12px;
    color: var(--muted-light);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}
.product-card .product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: 3px;
}
.product-card .product-img .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}
.product-card .product-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Section ── */
.section { margin-bottom: 32px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 1.15rem;
    margin: 0;
}

/* ── Page Header ── */
.page-header {
    padding: 24px 0 20px;
}
.page-header h1 { margin-bottom: 4px; }
.page-header p { color: var(--muted); font-size: 14px; }
.page-header .breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}
.page-header .breadcrumb a { color: var(--muted); }
.page-header .breadcrumb a:hover { color: var(--green); }
.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.page-header-meta {
    display: grid;
    gap: 4px;
}
.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Stats Row ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.stat-card .stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

/* ── Two Column Layout ── */
.layout-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.layout-2col > .card { display: flex; flex-direction: column; }
.layout-2col > .card > .card-body { flex: 1; }

/* ── Sidebar Layout ── */
.layout-sidebar-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

/* ── Vendor Dashboard (Dokan-style) ── */
.vendor-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    min-height: 600px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.vendor-sidebar {
    background: var(--ink);
    color: #fff;
    padding: 20px 0;
}
.vendor-sidebar .vendor-profile {
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
    text-align: center;
}
.vendor-sidebar .vendor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 10px;
    overflow: hidden;
}
.vendor-sidebar .vendor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vendor-sidebar .vendor-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.vendor-sidebar .vendor-plan {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}
.vendor-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    border-left: 3px solid transparent;
}
.vendor-sidebar nav a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.vendor-sidebar nav a.current {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--green);
}
.vendor-main {
    padding: 24px;
}
.vendor-main h1 { margin-bottom: 6px; }

/* ── Data Table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--line);
    background: var(--bg);
}
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line-light);
    font-size: 13px;
    vertical-align: middle;
}
.data-table tr:hover td { background: #fafafa; }
.data-table .thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--bg);
    overflow: hidden;
    flex-shrink: 0;
}
.data-table .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Allow horizontal scrolling for table cards on small screens */
.card:has(.data-table) { overflow: visible; }
.card-body:has(.data-table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table-responsive td::before { display: none; }
.data-table-cell-stack {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.data-table-cell-title {
    font-weight: 600;
    color: var(--ink);
}
.data-table-cell-meta {
    font-size: 12px;
    color: var(--muted);
}
.data-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.table-empty-row {
    text-align: center;
    padding: 24px;
    color: var(--muted);
}
.table-date {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

/* ── Badges/Tags (simple) ── */
.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg);
    color: var(--muted);
    border: none;
}
.badge-green { background: var(--green-light); color: #166534; }
.badge-success { background: var(--green-light); color: #166534; }
.badge-orange { background: var(--orange-light); color: #9a3412; }
.badge-warning { background: var(--orange-light); color: #9a3412; }
.badge-red { background: var(--red-light); color: #991b1b; }
.badge-blue { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.badge-grey { background: var(--line-light); color: var(--muted); }
html[data-theme="dark"] .badge-blue {
    background: rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
}
html[data-theme="dark"] .badge-grey {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.green { background: var(--green); }
.status-dot.orange { background: var(--orange); }
.status-dot.red { background: var(--red); }
.status-dot.grey { background: var(--muted-light); }

/* ── Info List (key-value pairs) ── */
.info-list { display: grid; gap: 0; }
.info-list .info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 13px;
}
.info-list .info-row:last-child { border-bottom: none; }
.info-list .info-label { color: var(--muted); }
.info-list .info-value { font-weight: 600; color: var(--ink); text-align: right; }
.summary-list { display: grid; gap: 0; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-light);
}
.summary-row:first-child { padding-top: 0; }
.summary-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.summary-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.summary-meta {
    font-size: 12px;
    color: var(--muted);
}
.summary-value {
    font-weight: 700;
    color: var(--ink);
    text-align: right;
    white-space: nowrap;
}

/* ── Timeline ── */
.timeline { display: grid; gap: 0; }
.timeline-item {
    padding: 0 0 20px 20px;
    border-left: 2px solid var(--line-light);
    position: relative;
    font-size: 13px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--panel);
}
.timeline-item .timeline-time {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.timeline-item.is-success:before { background: var(--green); }
.timeline-item.is-alert:before { background: var(--red); }
.timeline-item.is-neutral:before {
    background: var(--green-light);
    border-color: var(--green);
}
.timeline-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}
.timeline-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.timeline-body {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}
.thread-list { display: grid; gap: 0; }
.thread-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-light);
}
.thread-item:last-child { border-bottom: none; }
.thread-item-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}
.thread-item-meta {
    font-size: 12px;
    color: var(--muted);
}
.thread-item-body {
    font-size: 13px;
    margin-top: 8px;
}
.order-item-media {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}
.order-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Hero Banner ── */
.hero-banner {
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 24px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    background-image:
        radial-gradient(circle at right top, rgba(34, 197, 94, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(13, 18, 24, 0.98), rgba(17, 24, 39, 0.92));
}
.hero-banner h1 {
    color: #fff;
    font-size: clamp(1.75rem, 2vw + 1rem, 2.35rem);
    margin-bottom: 8px;
}
.hero-banner p {
    color: rgba(255,255,255,0.7);
    max-width: 620px;
    margin-bottom: 16px;
}
.hero-brand-lockup {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 420px;
    min-width: 0;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.hero-brand-logo {
    height: 80px;
    width: auto;
    max-width: min(40vw, 280px);
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Category Tiles ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.category-tile {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    transition: border-color 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.category-tile:hover { border-color: var(--green); }
.category-tile .icon { color: var(--green); margin-right: 0; margin-bottom: 4px; }
.category-tile strong { font-size: 13px; display: block; margin-bottom: 2px; }
.category-tile span { font-size: 12px; color: var(--muted); }

/* Homepage Department Tiles */
.department-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}
.department-grid .category-tile {
    grid-column: span 1;
    position: relative;
    text-align: left;
    align-items: flex-start;
    gap: 6px;
    min-height: 128px;
    padding: 18px 16px 16px;
    border-color: var(--tile-border);
    background: var(--tile-bg);
    box-shadow: var(--tile-inset-shadow);
    transition:
        transform var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease),
        border-color var(--speed) var(--ease),
        background var(--speed) var(--ease);
}
.department-grid .category-tile::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.85), rgba(71, 85, 105, 0.82));
    opacity: 0;
    transition: opacity var(--speed) var(--ease);
}
.department-grid .category-tile:hover {
    transform: translateY(-2px);
    border-color: var(--tile-hover-border);
    box-shadow: var(--shadow), var(--tile-inset-shadow);
}
.department-grid .category-tile:hover::before,
.department-grid .category-tile:focus-visible::before {
    opacity: 1;
}
.department-grid .category-tile .dept-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #15803d;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.24);
}
.department-grid .category-tile .dept-icon .icon {
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: 0;
    overflow: visible;
}
.department-grid .category-tile strong {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
    color: #111827;
}
.department-grid .category-tile span {
    font-size: 0.84rem;
    color: #4b5563;
}
.department-grid .category-tile:focus-visible {
    outline: 2px solid rgba(22, 163, 74, 0.45);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    /* Department grid handled by auto-fit – no explicit column override needed */
}

@media (max-width: 1320px) {
    .navbar-inner {
        grid-template-columns: auto 1fr auto;
        row-gap: 8px;
    }
    .navbar-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
    }
    .navbar-actions .account-name,
    .navbar-actions .divider {
        display: none;
    }
}

/* ── Vendor Card (public) ── */
.vendor-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.vendor-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-sm);
}
.vendor-card .v-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}
.vendor-card .v-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vendor-card .v-info { flex: 1; min-width: 0; }
.vendor-card .v-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.vendor-card .v-desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Store Banner ── */
.store-banner {
    position: relative;
    height: 200px;
    background: #1a2333;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.store-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.store-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    gap: 16px;
}
.store-banner .s-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 3px solid #fff;
    overflow: hidden;
}
.store-banner .s-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-banner .s-info h1 { color: #fff; margin-bottom: 4px; }
.store-banner .s-info p { color: rgba(255,255,255,0.7); font-size: 13px; }

/* ── Auth Layout ── */
.auth-layout {
    max-width: 420px;
    margin: 40px auto;
}
.auth-layout .card-body { padding: 24px; }
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    color: var(--ink);
    text-decoration: none;
}
.auth-brand:hover { color: var(--ink); }
.auth-brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* ── Product Detail ── */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
.pd-gallery .pd-main-img {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: var(--bg);
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 12px;
}
.pd-gallery .pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.pd-gallery .pd-thumbs .pd-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--bg);
    overflow: hidden;
    border: 1px solid var(--line);
}
.pd-gallery .pd-thumbs .pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-summary h1 { font-size: 1.35rem; margin-bottom: 8px; }
.pd-summary .pd-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.pd-summary .pd-price-old {
    font-size: 14px;
    color: var(--muted-light);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}
.pd-summary .pd-vendor {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}
.pd-summary .pd-vendor a { color: var(--green); font-weight: 600; }
.pd-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

/* ── Catalog Filter ── */
.filter-group { margin-bottom: 16px; }
.filter-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}
.filter-group select,
.filter-group input {
    height: 36px;
    font-size: 13px;
}

/* Marketplace Filter Panel */
.sidebar-section .filters-form {
    gap: 12px;
}
.filters-form .filter-group {
    margin-bottom: 0;
}
.filters-form .filter-group label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 6px;
}
.filters-form .filter-group input,
.filters-form .filter-group select {
    height: 34px;
    border-radius: 6px;
    border-color: #d6d9de;
    background: #fff;
    font-size: 12px;
}
.filters-form .filter-group input:focus,
.filters-form .filter-group select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.filters-form .filter-checks {
    display: grid;
    gap: 7px;
    padding: 10px;
    background: #f3f5f7;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
}
.filters-form .check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.filters-form .check-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #16a34a;
}
.filters-form .check-option span {
    line-height: 1.25;
}
.filters-form .filter-actions {
    gap: 8px;
}
.filters-form .filter-actions .btn,
.filters-form .filter-actions .btn-primary {
    height: 34px;
    font-size: 12px;
    font-weight: 700;
}

/* ── Order Card ── */
.order-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line-light);
}
.order-row:last-child { border-bottom: none; }
.order-row .order-id { font-weight: 600; color: var(--ink); }
.order-row .order-amount { font-weight: 700; font-size: 16px; color: var(--ink); text-align: right; }

/* ── Utility ── */
.muted { color: var(--muted); }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }
.items-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.stack { display: grid; gap: 12px; }
.stack-sm { display: grid; gap: 6px; }
.w-full { width: 100%; }
.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 960px) {
    .grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .grid-4col { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .vendor-layout { grid-template-columns: 1fr; }
    .vendor-sidebar { display: none; }
    .vendor-mobile-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }
    .vendor-mobile-nav a {
        padding: 6px 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        color: var(--muted);
    }
    .vendor-mobile-nav a.current { border-color: var(--green); color: var(--green); }
    .pd-layout,
    .layout-2col,
    .layout-sidebar-right {
        grid-template-columns: 1fr !important;
    }
    .page-layout,
    .page-layout:has(.sidebar-left):has(.sidebar-right),
    .page-layout:has(.sidebar-left):not(:has(.sidebar-right)),
    .page-layout:not(:has(.sidebar-left)):has(.sidebar-right) {
        grid-template-columns: 1fr !important;
    }
    .sidebar-left,
    .sidebar-right {
        position: static;
        max-height: none;
        overflow: visible;
    }
}
@media (min-width: 961px) {
    .vendor-mobile-nav { display: none; }
}
@media (max-width: 720px) {
    .shell { padding: 16px var(--page-gutter) 28px; }
    .page-header {
        padding: 18px 16px;
    }
    .navbar-inner {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        padding: 10px var(--page-gutter);
        gap: 8px;
    }
    .navbar-mobile-menu {
        display: block;
        order: 2;
        margin-left: auto;
    }
    .navbar-mobile-menu[open] {
        order: 5;
        flex: 1 0 100%;
        margin-left: 0;
    }
    .navbar-mobile-summary {
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--input-bg);
        color: var(--text);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }
    .navbar-mobile-panel {
        margin-top: 10px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--panel);
        box-shadow: var(--shadow-sm), var(--card-glow);
    }
    .navbar-mobile-links,
    .navbar-mobile-actions {
        display: grid;
        gap: 8px;
    }
    .navbar-mobile-actions {
        margin-top: 12px;
    }
    .navbar-mobile-actions form.inline-form {
        display: block;
    }
    .navbar-mobile-links a,
    .navbar-mobile-actions a,
    .navbar-mobile-actions form.inline-form button {
        width: 100%;
        justify-content: flex-start;
        min-height: 40px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--input-bg);
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
    }
    .navbar-mobile-links a.current {
        border-color: var(--green);
        color: var(--green-dark);
        background: var(--green-bg);
    }
    .navbar-meta {
        order: 3;
        margin-left: auto;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 8px;
    }
    .navbar-search {
        order: 4;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 2px 0 0;
    }
    .navbar-actions {
        display: none;
    }
    .navbar-actions .account-name { display: none; }
    .navbar-actions .divider { display: none; }
    .cat-nav {
        display: none;
    }
    .hero-banner {
        align-items: flex-start;
    }
    .hero-brand-lockup {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hero-brand-logo {
        height: 56px;
        width: auto;
        max-width: none;
    }
    .department-grid { gap: 10px; }
    .department-grid .category-tile {
        min-height: 112px;
        padding: 14px;
    }
    .department-grid .category-tile .dept-icon {
        width: 36px;
        height: 36px;
    }
    .department-grid .category-tile .dept-icon .icon {
        width: 18px;
        height: 18px;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-layout { margin: 24px auto; }
    .page-header-actions,
    .form-actions,
    .surface-toolbar-form {
        width: 100%;
    }
    .page-header-actions > *,
    .form-actions > *,
    .surface-toolbar-form > .btn,
    .surface-toolbar-form > a,
    .surface-toolbar-form > button,
    .surface-toolbar-form > input,
    .surface-toolbar-form > select {
        width: 100%;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .info-list .info-row,
    .summary-row,
    .data-table-responsive td,
    .thread-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .info-list .info-value,
    .summary-value {
        max-width: 100%;
        text-align: left;
        white-space: normal;
    }
    .data-table-responsive thead {
        display: none;
    }
    .data-table-responsive,
    .data-table-responsive tbody,
    .data-table-responsive tr,
    .data-table-responsive td {
        display: block;
        width: 100%;
    }
    .data-table-responsive tr {
        padding: 12px;
        border-bottom: 1px solid var(--line-light);
    }
    .data-table-responsive tr:last-child {
        border-bottom: none;
    }
    .data-table-responsive td {
        gap: 6px;
        padding: 8px 0;
        border-bottom: 1px solid var(--line-light);
    }
    .data-table-responsive td:last-child {
        border-bottom: none;
    }
    .data-table-responsive td::before {
        display: block;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
    }
    .data-table-responsive td[data-label=""]::before {
        display: none;
    }
}
@media (max-width: 480px) {
    .department-grid { gap: 8px; }
    .department-grid .category-tile { min-height: 100px; padding: 12px; }
    .product-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pagination ── */
.pagination-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.pagination-info { font-size: 14px; color: var(--muted); }

/* ── Plan Grid ── */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.plan-card {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center;
    transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.plan-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.plan-card h4 { margin: 0 0 8px; }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.plan-price .text-sm { font-size: 0.8rem; font-weight: 400; }
.plan-features { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; font-size: 13px; }
.plan-features li { padding: 4px 0; }
.plan-feature-off { color: var(--muted-light); text-decoration: line-through; }

/* ── Footer ── */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 48px; padding: 40px 0 0; font-size: 14px; border-top: 1px solid var(--footer-top-line); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-gutter) 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.7fr 1fr 0.7fr; gap: 32px; }
.footer-col h4 { color: var(--footer-heading); margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color var(--speed) var(--ease);
}
.footer-col a:hover { color: var(--footer-heading); }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--footer-heading);
}
.footer-brand:hover { color: var(--footer-heading); }
.footer-brand-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
}
.footer-tagline { color: var(--footer-muted); line-height: 1.5; margin: 0; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--footer-line); margin-top: 32px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--footer-muted); font-size: 13px; }
.footer-legal-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { color: var(--footer-muted); text-decoration: none; transition: color var(--speed) var(--ease); }
.footer-legal-links a:hover { color: var(--footer-heading); }
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

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

/* ── Toggle Switch ── */
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--line);
    border-radius: 22px;
    transition: background var(--speed) var(--ease);
}
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--speed) var(--ease);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }

/* ── Language Toggle ── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.lang-toggle .inline-form {
    display: flex;
    align-items: center;
}
.lang-toggle .inline-form + .inline-form::before {
    content: "|";
    font-size: 11px;
    color: var(--muted-light);
    margin: 0 3px;
    pointer-events: none;
}
.lang-btn {
    background: none;
    border: none;
    border-radius: 3px;
    min-width: auto;
    height: auto;
    padding: 2px 4px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    cursor: pointer;
    transition: color var(--speed) var(--ease);
    line-height: 1;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.lang-active {
    background: none;
    color: var(--green);
    box-shadow: none;
}
html[data-theme="dark"] .lang-btn.lang-active {
    color: var(--green);
}
.theme-toggle {
    position: relative;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--speed) var(--ease);
}
.theme-toggle::before {
    display: none;
}
.theme-toggle:hover {
    background: var(--input-bg);
}
.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}
.theme-toggle-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 0;
}
.theme-toggle-sun {
    display: none;
    color: #d89a1a;
}
.theme-toggle-moon {
    display: block;
    color: var(--ink);
}
html[data-theme="dark"] .theme-toggle {
    background: transparent;
}
html[data-theme="dark"] .theme-toggle:hover {
    background: #1a2232;
}
html[data-theme="dark"] .theme-toggle-sun {
    display: block;
}
html[data-theme="dark"] .theme-toggle-moon {
    display: none;
}
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 24px;
    font-size: 13px;
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(12, 18, 25, 0.94), rgba(17, 24, 39, 0.92));
    border-top: 2px solid var(--green);
    box-shadow: 0 -12px 28px rgba(0,0,0,0.24);
    backdrop-filter: blur(18px);
}
.cookie-banner a {
    color: #86efac;
    text-decoration: underline;
}
.cookie-banner-btn {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.28);
}
.theme-bloom {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}
.theme-bloom.is-animating {
    animation: theme-bloom-fade 0.42s ease-out forwards;
}
html[data-theme="light"] .theme-bloom {
    background:
        radial-gradient(circle at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%), rgba(255,255,255,0.9) 0, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 70%);
}
html[data-theme="dark"] .theme-bloom {
    background:
        radial-gradient(circle at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%), rgba(10,16,22,0.9) 0, rgba(10,16,22,0.6) 40%, rgba(10,16,22,0) 70%);
}
@keyframes theme-bloom-fade {
    0% { opacity: 0.6; }
    100% { opacity: 0; }
}
@media (max-width: 720px) {
    .navbar-toggles { gap: 6px; }
    .navbar-actions {
        order: 2;
        width: 100%;
    }
}
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.data-table tr:hover td { background: var(--table-row-hover); }
.department-grid .category-tile {
    border-color: var(--tile-border);
    background: var(--tile-bg);
    box-shadow: var(--tile-inset-shadow);
}
.department-grid .category-tile:hover {
    border-color: var(--tile-hover-border);
    box-shadow: var(--tile-inset-shadow), 0 10px 22px rgba(18, 38, 24, 0.1);
}
html[data-theme="dark"] .department-grid .category-tile:hover {
    box-shadow: var(--tile-inset-shadow), 0 16px 30px rgba(0, 0, 0, 0.28);
}
.department-grid .category-tile .dept-icon {
    color: var(--tile-icon-color);
    background: var(--tile-icon-bg);
    border-color: var(--tile-icon-border);
}
.department-grid .category-tile strong { color: var(--tile-title); }
.department-grid .category-tile span { color: var(--tile-body); }
.filters-form .filter-group label { color: var(--filter-label); }
.filters-form .filter-group input,
.filters-form .filter-group select {
    border-color: var(--filter-input-border);
    background: var(--filter-input-bg);
    color: var(--text);
}
.filters-form .filter-checks {
    background: var(--filter-checks-bg);
    border-color: var(--filter-checks-border);
}
.filters-form .check-option { color: var(--filter-check-color); }
html[data-theme="dark"] .brand-logo {
    opacity: 0.94;
}

/* Marketplace polish */
.card {
    box-shadow: var(--shadow-sm), var(--card-glow);
}

.promo-card {
    display: block;
    overflow: hidden;
    background: var(--promo-bg);
    border-color: var(--promo-border);
    box-shadow: var(--promo-shadow), var(--card-glow);
    transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.promo-card:hover {
    transform: translateY(-2px);
    border-color: var(--product-card-hover-border);
    box-shadow: var(--shadow), var(--card-glow);
}

.promo-card .card-body {
    display: grid;
    gap: 4px;
}

.card-span-full {
    grid-column: 1 / -1;
}

.message-warning {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.96), rgba(255, 249, 231, 0.94));
    border-color: rgba(245, 158, 11, 0.28);
    color: #8a5400;
}

html[data-theme="dark"] .message-warning {
    background: linear-gradient(135deg, rgba(85, 57, 11, 0.34), rgba(49, 34, 8, 0.4));
    border-color: rgba(251, 191, 36, 0.2);
    color: #f7d88a;
}

.message-link-btn {
    display: inline;
    height: auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: #0056b3;
    text-decoration: underline;
    font-size: inherit;
    font-weight: 600;
    vertical-align: baseline;
}

.message-link-btn:hover,
.message-link-btn:focus-visible {
    background: none;
    border: none;
    box-shadow: none;
    color: #0056b3;
}

.message-link-btn:active {
    transform: none;
}

html[data-theme="dark"] .message-link-btn {
    color: #86efac;
}

html[data-theme="dark"] .message-link-btn:hover,
html[data-theme="dark"] .message-link-btn:focus-visible {
    color: #86efac;
}

.product-grid {
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--product-card-bg);
    box-shadow: var(--shadow-sm), var(--card-glow);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--product-card-hover-border);
    box-shadow: var(--shadow), var(--card-glow);
}

.product-card .product-img {
    background: var(--product-card-image-bg);
}

.product-card .product-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 32%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

html[data-theme="dark"] .product-card .product-img::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 34%, rgba(0,0,0,0.16) 100%);
}

.product-card .product-img-placeholder {
    color: var(--placeholder-ink);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent), transparent;
}

.product-card .product-info {
    display: grid;
    gap: 6px;
    flex: 1;
}

.section-header {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-light);
}

.page-header {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--page-header-border);
    border-radius: 18px;
    background: var(--page-header-bg);
    box-shadow: var(--page-header-shadow), var(--card-glow);
}

.page-header::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -10px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.18), transparent 70%);
    pointer-events: none;
}

html[data-theme="dark"] .page-header::after {
    background: radial-gradient(circle, rgba(71, 85, 105, 0.24), transparent 72%);
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header p {
    max-width: 62ch;
}

.stat-card {
    background: var(--stat-card-bg);
    box-shadow: var(--shadow-sm), var(--card-glow);
    transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--product-card-hover-border);
    box-shadow: var(--shadow), var(--card-glow);
}

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
}

.badge-green,
.badge-success {
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.badge-orange,
.badge-warning {
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.badge-red {
    border: 1px solid rgba(220, 38, 38, 0.18);
}

.info-list .info-row {
    align-items: flex-start;
    gap: 16px;
}

.info-list .info-value {
    max-width: 60%;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hero-border);
    box-shadow: var(--hero-shadow);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.16), transparent 70%);
    pointer-events: none;
}

html[data-theme="dark"] .hero-banner::before {
    background: radial-gradient(circle, rgba(100, 116, 139, 0.18), transparent 72%);
}

.hero-banner > * {
    position: relative;
}

.pd-gallery .pd-main-img,
.pd-gallery .pd-thumbs .pd-thumb,
.pd-panel {
    box-shadow: var(--shadow-sm), var(--card-glow);
}

.pd-gallery .pd-main-img,
.pd-gallery .pd-thumbs .pd-thumb {
    background: var(--product-card-image-bg);
}

.pd-gallery .pd-thumbs .pd-thumb {
    transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.pd-gallery .pd-thumbs .pd-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--product-card-hover-border);
    box-shadow: var(--shadow), var(--card-glow);
}

.pd-panel {
    background: var(--stat-card-bg);
}

.filters-form .filter-group input,
.filters-form .filter-group select,
.filters-form .filter-checks {
    box-shadow: var(--card-glow);
}

.product-img-placeholder-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-help-error {
    color: var(--red);
}

.feed-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-light);
}

.feed-row-compact {
    padding: 8px 0;
}

.feed-row:last-child {
    border-bottom: none;
}

/* ── Search Type Dropdown ── */
.navbar-search-type {
    height: 34px;
    padding: 0 8px 0 10px;
    border: none;
    border-right: 1px solid var(--line-light);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
}
.navbar-search-type:focus { color: var(--ink); }

/* ── Sidebar Account CTA ── */
.sidebar-account-cta {
    display: flex;
    flex-direction: column;
}
.sidebar-account-cta .btn,
.sidebar-account-cta .btn-outline-green {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
}
.sidebar-account-cta-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
}
.sidebar-account-cta-prompt {
    margin: 0 0 8px;
    text-align: center;
}

/* ── Vendor Sidebar Item ── */
.vendor-sidebar-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.vendor-sidebar-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vendor-verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Spotlight Cards (Auctions / Pre-Owned) ── */
.spotlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.spotlight-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
    text-decoration: none;
}
.spotlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.spotlight-auctions {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.03));
    border-color: rgba(220, 38, 38, 0.18);
}
.spotlight-auctions:hover { border-color: rgba(220, 38, 38, 0.35); }
.spotlight-preowned {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.03));
    border-color: rgba(22, 163, 74, 0.18);
}
.spotlight-preowned:hover { border-color: rgba(22, 163, 74, 0.35); }
.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    width: fit-content;
}
.spotlight-auctions .spotlight-badge {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.spotlight-preowned .spotlight-badge {
    background: rgba(22, 163, 74, 0.12);
    color: var(--green-dark);
    border: 1px solid rgba(22, 163, 74, 0.2);
}
.spotlight-card strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.spotlight-card > span:not(.spotlight-badge):not(.spotlight-cta) {
    font-size: 13px;
    color: var(--muted);
}
.spotlight-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    margin-top: 4px;
}
html[data-theme="dark"] .spotlight-auctions {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.05));
    border-color: rgba(220, 38, 38, 0.22);
}
html[data-theme="dark"] .spotlight-preowned {
    background: linear-gradient(135deg, rgba(40, 192, 106, 0.12), rgba(40, 192, 106, 0.05));
    border-color: rgba(40, 192, 106, 0.22);
}
@media (max-width: 600px) {
    .spotlight-row { grid-template-columns: 1fr; }
}

/* ── Product Action Buttons ── */
.product-actions {
    margin-top: 10px;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
    text-decoration: none;
}
.btn-action:active { transform: scale(0.97); }
.btn-action-buy {
    background: var(--green);
    color: #fff;
}
.btn-action-buy:hover { background: var(--green-dark); color: #fff; }
.btn-action-bid {
    background: #dc2626;
    color: #fff;
}
.btn-action-bid:hover { background: #b91c1c; color: #fff; }

/* ── Sponsored Ad Card ── */
.ad-card {
    position: relative;
    text-decoration: none;
    display: block;
}
.ad-card-img {
    position: relative;
    min-height: 80px;
    background: var(--line-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-sponsored-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}

/* ── Product img placeholder (icon-based) ── */
.product-img-placeholder {
    color: var(--muted-light);
    opacity: 0.5;
}
