:root {
    --bg: #f0f1f3;
    --bg-white: #f8f8f9;
    --panel: #f8f8f9;
    --surface: rgba(248, 248, 249, 0.82);
    --ink: #1a1a1a;
    --text: #3a3a3a;
    --muted: #6b6b6b;
    --muted-light: #9a9a9a;
    --line: #dfe1e4;
    --line-light: #e8e9ec;
    --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, #f7f8fa 0%, var(--bg) 58%, #e7ebef 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(255,255,255,0.94) 0%, rgba(247,248,250,0.98) 100%);
    --tile-border: #d7dbe0;
    --tile-hover-border: #ccd4dc;
    --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: #fff;
    --filter-checks-bg: #f3f5f7;
    --filter-checks-border: #e2e5e9;
    --filter-check-color: #374151;
    --page-header-bg: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,248,250,0.94) 100%);
    --page-header-border: rgba(215, 219, 224, 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(255,255,255,0.96) 0%, rgba(248,248,249,0.94) 100%);
    --product-card-image-bg: linear-gradient(180deg, rgba(242,245,247,0.96) 0%, rgba(236,240,243,0.98) 100%);
    --product-card-hover-border: #d6dde4;
    --stat-card-bg: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,248,250,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(255,255,255,0.98), rgba(247,248,250,0.95));
    --promo-border: #d9dee3;
    --promo-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    --placeholder-ink: #7b8794;
    --max-width: 1280px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --speed: 0.18s;
    --navbar-height: 64px;
    --cat-nav-height: 40px;
    --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.58s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-property: background, background-color, border-color, color, box-shadow, fill, stroke, filter;
}

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

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

@supports (view-transition-name: root) {
    ::view-transition-group(root) {
        animation-duration: 0.82s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }

    ::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.72s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    ::view-transition-new(root) {
        animation: theme-view-reveal 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

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

@keyframes theme-view-reveal {
    0% {
        clip-path: circle(0 at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%));
        opacity: 0.72;
        filter: saturate(1.08) brightness(1.04) blur(18px);
    }
    45% {
        opacity: 1;
    }
    100% {
        clip-path: circle(var(--theme-bloom-radius, 140vmax) at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%));
        opacity: 1;
        filter: none;
    }
}

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 20px 40px;
}

/* ── Page Layout (3-column with opt-in sidebars) ── */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.page-layout:has(.sidebar-left):has(.sidebar-right) {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
}
.page-layout:has(.sidebar-left):not(:has(.sidebar-right)) {
    grid-template-columns: 240px minmax(0, 1fr);
}
.page-layout:not(:has(.sidebar-left)):has(.sidebar-right) {
    grid-template-columns: minmax(0, 1fr) 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); }

/* ── Navbar ── */
.navbar {
    background: var(--panel);
    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: 8px 20px;
    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;
}
.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: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
    transition: transform var(--speed) var(--ease), filter var(--speed) var(--ease);
}
.brand:hover .brand-logo {
    transform: translateY(-1px) scale(1.03);
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.18));
}
.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(--line);
    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: 4px;
    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(--panel);
    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 20px;
    display: flex;
    justify-content: center;
    gap: 0;
    align-items: stretch;
    overflow-x: auto;
}
.cat-nav a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    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: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"] {
    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"]: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(.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, 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: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-block;
    padding: 2px 8px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    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;
    padding: 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: 1.75rem;
    margin-bottom: 8px;
}
.hero-banner p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin-bottom: 16px;
}
.hero-brand-lockup {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.hero-brand-logo {
    height: 80px;
    width: auto;
    max-width: min(40vw, 280px);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.2));
}

/* ── 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: var(--ink);
    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 12px 28px; }
    .page-header {
        padding: 18px 16px;
    }
    .navbar-inner {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 12px;
        gap: 8px;
    }
    .navbar-meta {
        order: 2;
        margin-left: auto;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 8px;
    }
    .navbar-search {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 2px 0 0;
    }
    .navbar-actions {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-shrink: 1;
    }
    .navbar-actions::-webkit-scrollbar { display: none; }
    .navbar-actions .account-name { display: none; }
    .navbar-actions .divider { display: none; }
    .hero-banner { padding: 24px; }
    .hero-banner h1 { font-size: 1.35rem; }
    .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 20px 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; text-align: center; color: var(--footer-muted); font-size: 13px; }
@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;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0;
    flex-shrink: 0;
    box-shadow: none;
}
.lang-btn {
    background: none;
    border: none;
    border-radius: 999px;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--muted);
    cursor: pointer;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
    line-height: 1;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.lang-active {
    background: var(--bg);
    color: var(--ink);
    box-shadow: none;
}
html[data-theme="dark"] .lang-btn.lang-active {
    background: #151c24;
    color: #eef2f7;
}
.theme-toggle {
    position: relative;
    width: 38px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--input-bg);
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.34s var(--ease), box-shadow 0.34s var(--ease), background 0.4s var(--ease);
}
.theme-toggle::before {
    display: none;
}
.theme-toggle:hover {
    border-color: var(--border);
    box-shadow: none;
}
.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}
.theme-toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 5px;
}
.theme-toggle-icon {
    position: relative;
    z-index: 1;
    margin: 0;
    transition: color 0.34s var(--ease), opacity 0.34s var(--ease), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    width: 8px;
    height: 8px;
}
.theme-toggle-sun {
    color: #d89a1a;
    opacity: 0.55;
}
.theme-toggle-moon {
    color: #7b879c;
    opacity: 0.4;
    transform: scale(0.8);
}
.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
html[data-theme="dark"] .theme-toggle {
    background: #121821;
    border-color: #344251;
    box-shadow: none;
}
html[data-theme="dark"] .theme-toggle:hover {
    box-shadow: none;
    border-color: #435262;
}
html[data-theme="dark"] .theme-toggle-sun {
    color: #5b6e63;
    opacity: 0.26;
    transform: translateX(-1px) scale(0.78) rotate(-10deg);
}
html[data-theme="dark"] .theme-toggle-moon {
    color: #d7e3f2;
    opacity: 0.88;
    transform: scale(1);
}
html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(18px);
    background: #d8e3f3;
    box-shadow: 0 1px 2px rgba(0,0,0,0.26);
}
.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;
    clip-path: circle(0 at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%));
    transform: scale(0.94);
    filter: saturate(1) blur(0);
    will-change: clip-path, opacity, filter, transform;
}
.theme-bloom::before,
.theme-bloom::after {
    content: "";
    position: absolute;
    inset: -16%;
    opacity: 0;
    transform-origin: var(--theme-origin-x, 50%) var(--theme-origin-y, 50%);
    will-change: transform, opacity, filter;
}
.theme-bloom.is-animating {
    animation: theme-bloom 0.92s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.theme-bloom.is-animating::before {
    animation: theme-bloom-aura 0.92s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.theme-bloom.is-animating::after {
    animation: theme-bloom-sheen 0.92s cubic-bezier(0.22, 1, 0.36, 1) 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.98) 0, rgba(255,255,255,0.84) 12%, rgba(134, 239, 172, 0.34) 24%, rgba(255,255,255,0) 56%),
        radial-gradient(circle at 82% 8%, rgba(134, 239, 172, 0.18), rgba(134, 239, 172, 0) 26%),
        linear-gradient(135deg, rgba(240, 253, 244, 0.8), rgba(248, 250, 252, 0.16));
}
html[data-theme="light"] .theme-bloom::before {
    background: conic-gradient(from 210deg at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%), rgba(255,255,255,0) 0deg, rgba(255,255,255,0.18) 72deg, rgba(134,239,172,0.16) 150deg, rgba(255,255,255,0.08) 220deg, rgba(255,255,255,0) 360deg);
    filter: blur(28px);
    mix-blend-mode: screen;
}
html[data-theme="light"] .theme-bloom::after {
    background:
        radial-gradient(circle at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%), rgba(255,255,255,0.84) 0, rgba(236,253,245,0.36) 14%, rgba(255,255,255,0) 34%),
        linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 48%, rgba(255,255,255,0) 100%);
}
html[data-theme="dark"] .theme-bloom {
    background:
        radial-gradient(circle at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%), rgba(166,255,204,0.18) 0, rgba(26,58,41,0.54) 18%, rgba(7,17,13,0.96) 46%, rgba(7,17,13,0) 72%),
        radial-gradient(circle at 18% 0%, rgba(53,210,111,0.16), rgba(53,210,111,0) 28%),
        linear-gradient(135deg, rgba(12, 24, 19, 0.82), rgba(7, 17, 13, 0.12));
}
html[data-theme="dark"] .theme-bloom::before {
    background: conic-gradient(from 210deg at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%), rgba(53,210,111,0) 0deg, rgba(53,210,111,0.14) 82deg, rgba(125,255,182,0.16) 150deg, rgba(12,24,19,0.12) 230deg, rgba(53,210,111,0) 360deg);
    filter: blur(32px);
    mix-blend-mode: screen;
}
html[data-theme="dark"] .theme-bloom::after {
    background:
        radial-gradient(circle at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%), rgba(240,255,247,0.16) 0, rgba(53,210,111,0.16) 14%, rgba(7,17,13,0) 38%),
        linear-gradient(135deg, rgba(125,255,182,0) 0%, rgba(125,255,182,0.12) 42%, rgba(12,24,19,0) 100%);
}
@keyframes theme-bloom {
    0% {
        opacity: 0;
        clip-path: circle(0 at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%));
        transform: scale(0.94);
        filter: saturate(0.9) blur(0);
    }
    18% { opacity: 0.96; }
    55% { opacity: 0.74; }
    100% {
        opacity: 0;
        clip-path: circle(var(--theme-bloom-radius, 140vmax) at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%));
        transform: scale(1.08);
        filter: saturate(1.12) blur(20px);
    }
}
@keyframes theme-bloom-aura {
    0% {
        opacity: 0;
        transform: scale(0.78) rotate(-8deg);
    }
    38% {
        opacity: 0.56;
    }
    100% {
        opacity: 0;
        transform: scale(1.14) rotate(8deg);
    }
}
@keyframes theme-bloom-sheen {
    0% {
        opacity: 0;
        transform: translate3d(-4%, -2%, 0) scale(0.9);
    }
    42% {
        opacity: 0.42;
    }
    100% {
        opacity: 0;
        transform: translate3d(6%, 4%, 0) scale(1.16);
    }
}
@media (max-width: 720px) {
    .navbar-toggles { gap: 3px; }
    .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 {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
}

/* 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::after {
    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::after {
    background: radial-gradient(circle, rgba(100, 116, 139, 0.18), transparent 72%);
}

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

.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;
}