/* /SiteMaster/Site.Master.css */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --site-header-height: 74px;
    --site-header-small-height: 58px;
    --site-footer-height: 42px;
    --site-mobile-bottom-height: 72px;
    --site-radius: 18px;
    --site-radius-sm: 14px;
    --site-blur-bg: color-mix(in srgb, var(--theme-surface) 88%, transparent);
    --site-border-accent: color-mix(in srgb, var(--theme-accent) 20%, var(--theme-border));
}

body.site-master-body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--theme-accent) 16%, transparent), transparent 32rem),
        radial-gradient(circle at top right, color-mix(in srgb, var(--theme-accent-2) 13%, transparent), transparent 34rem),
        linear-gradient(180deg, color-mix(in srgb, var(--theme-bg) 96%, var(--theme-accent) 4%), var(--theme-bg));
    color: var(--theme-text);
    overflow-x: hidden;
    padding-top: var(--site-header-height);
    padding-bottom: calc(var(--site-footer-height) + 14px);
    transition: background-color .25s ease, color .25s ease, padding-top .25s ease;
}

body.header-scrolled {
    padding-top: var(--site-header-small-height);
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

.header-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1800;
    pointer-events: none;
}

.header-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    opacity: 0;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2));
    box-shadow: 0 0 18px color-mix(in srgb, var(--theme-accent) 72%, transparent);
    transition: width .25s ease, opacity .25s ease;
}

.header-progress.active .header-progress-bar {
    opacity: 1;
}

.header-progress.complete .header-progress-bar {
    width: 100%;
    opacity: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--site-header-height);
    z-index: 1500;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface)),
            color-mix(in srgb, var(--theme-surface) 92%, transparent));
    border-bottom: 1px solid var(--site-border-accent);
    box-shadow: 0 18px 45px color-mix(in srgb, var(--theme-shadow) 72%, transparent);
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
    transition: height .25s ease, box-shadow .25s ease, background-color .25s ease;
}

body.header-scrolled .site-header {
    height: var(--site-header-small-height);
    box-shadow: 0 10px 32px color-mix(in srgb, var(--theme-shadow) 86%, transparent);
}

.site-header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(230px, auto) 1fr minmax(220px, auto);
    align-items: center;
    gap: 18px;
    padding: 0 22px;
    transition: padding .25s ease, gap .25s ease;
}

body.header-scrolled .site-header-inner {
    padding: 0 14px;
    gap: 12px;
}

.site-brand,
.header-right-block,
.hamburger-btn,
.header-search-btn,
.theme-fab,
.theme-close,
.drawer-x,
.drawer-close,
.drawer-primary-btn,
.theme-pill,
.theme-mini,
.theme-reset {
    -webkit-tap-highlight-color: transparent;
}

.site-brand,
.header-right-block {
    border: 0;
    color: var(--theme-text);
    display: flex;
    align-items: center;
    background: transparent;
    text-decoration: none;
}

.site-brand {
    min-width: 0;
    gap: 12px;
    padding: 7px 10px;
    border-radius: var(--site-radius);
    cursor: pointer;
    text-align: left;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.site-brand:hover,
.header-right-block:hover,
.header-search-btn:hover,
.hamburger-btn:hover {
    background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 22%, transparent);
    transform: translateY(-1px);
}

.site-logo,
.drawer-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--theme-card);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-shadow) 60%, transparent);
}

body.header-scrolled .site-logo {
    width: 36px;
    height: 36px;
}

.vendor-head-info,
.header-user-info,
.site-brand-center-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.vendor-head-name,
.header-user-name,
.site-brand-center-name {
    max-width: 260px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.2px;
}

.vendor-head-sub,
.header-user-sub,
.site-brand-center-tagline {
    max-width: 280px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.site-nav {
    position: relative;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--theme-card) 65%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 14%, var(--theme-border));
    box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 11%, transparent);
}

.nav-underline {
    position: absolute;
    left: 0;
    bottom: 4px;
    height: 3px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2));
    box-shadow: 0 0 14px color-mix(in srgb, var(--theme-accent) 70%, transparent);
    transition: width .25s ease, transform .25s ease, opacity .2s ease;
    opacity: .92;
}

.header-nav-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 15px;
    color: var(--theme-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    opacity: .88;
    transition: background .2s ease, opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
    opacity: 1;
    background: color-mix(in srgb, var(--theme-accent) 13%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 20%, transparent);
}

.header-nav-link:active,
.site-brand:active,
.header-right-block:active,
.header-search-btn:active,
.hamburger-btn:active,
.theme-fab:active {
    transform: scale(.98);
}

.nav-icon {
    line-height: 1;
    font-size: 16px;
}

.site-right {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.header-search-btn {
    border: 0;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    color: var(--theme-text);
    background: color-mix(in srgb, var(--theme-accent) 11%, var(--theme-card));
    cursor: pointer;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hamburger-btn {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-card) 76%, transparent);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hamburger-btn span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 3px;
    border-radius: 6px;
    background: var(--theme-text);
    transition: top .25s ease, transform .25s ease, opacity .2s ease;
}

.hamburger-btn span:nth-child(1) { top: 13px; }
.hamburger-btn span:nth-child(2) { top: 20px; }
.hamburger-btn span:nth-child(3) { top: 27px; }

body.drawer-open .hamburger-btn span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

body.drawer-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

body.drawer-open .hamburger-btn span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.header-right-block {
    gap: 12px;
    min-height: 48px;
    padding: 5px 7px 5px 12px;
    border-radius: 18px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.customer-trigger {
    border: 0;
}

.header-user-info {
    align-items: flex-end;
    text-align: right;
}

.header-login-primary {
    color: var(--theme-accent);
    font-weight: 950;
    font-size: 14px;
}

.header-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, var(--theme-border));
    background: var(--theme-card);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--theme-shadow) 72%, transparent);
}

.site-brand-center {
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    grid-column: 2;
    justify-self: center;
}

.site-brand-center-text {
    align-items: center;
    text-align: center;
}

.site-brand-center-name {
    max-width: 70vw;
}

.page-content-wrapper {
    position: relative;
    min-height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
    padding: 18px;
}

.page-loader,
.global-page-loader {
    pointer-events: none;
}

.page-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--theme-bg) 10%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    transition: opacity .25s ease, visibility .25s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-ring,
.global-loader-spinner {
    border-radius: 999px;
    border-style: solid;
    animation: spin .8s linear infinite;
}

.loader-ring {
    width: 46px;
    height: 46px;
    border-width: 3px;
    border-color: color-mix(in srgb, var(--theme-muted) 30%, transparent);
    border-top-color: var(--theme-accent);
}

.global-page-loader {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--theme-bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease;
}

.global-page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.global-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-radius: 22px;
    background: var(--theme-card);
    border: 1px solid var(--site-border-accent);
    box-shadow: 0 24px 70px color-mix(in srgb, var(--theme-shadow) 76%, transparent);
}

.global-loader-spinner {
    width: 54px;
    height: 54px;
    border-width: 5px;
    border-color: color-mix(in srgb, var(--theme-muted) 22%, transparent);
    border-top-color: var(--theme-accent);
}

.global-loader-text {
    font-size: 14px;
    font-weight: 900;
    color: var(--theme-muted);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    min-height: var(--site-footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--theme-muted);
    font-size: 12px;
    font-weight: 800;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)),
            color-mix(in srgb, var(--theme-surface) 93%, transparent));
    border-top: 1px solid var(--site-border-accent);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 -14px 36px color-mix(in srgb, var(--theme-shadow) 62%, transparent);
}

.footer-separator {
    color: var(--theme-accent);
}

.mobile-drawer-overlay,
.app-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(0, 0, 0, .48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

body.drawer-open .mobile-drawer-overlay,
body.app-drawer-open .app-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2300;
    width: min(86vw, 360px);
    transform: translateX(-105%);
    background: var(--theme-surface);
    border-right: 1px solid var(--site-border-accent);
    box-shadow: 30px 0 80px color-mix(in srgb, var(--theme-shadow) 82%, transparent);
    transition: transform .25s ease;
    padding: 14px;
}

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

.drawer-header,
.drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-header {
    min-height: 58px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--theme-border);
}

.drawer-header-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.drawer-close,
.drawer-x,
.theme-close {
    border: 0;
    color: var(--theme-text);
    background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
    cursor: pointer;
    border-radius: 13px;
    font-weight: 950;
}

.drawer-close,
.drawer-x {
    width: 38px;
    height: 38px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--theme-text);
    font-weight: 900;
    background: color-mix(in srgb, var(--theme-card) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-border) 75%, transparent);
}

.drawer-nav a.active,
.drawer-nav a:hover {
    background: color-mix(in srgb, var(--theme-accent) 15%, transparent);
    border-color: color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border));
}

.drawer-cart-badge,
.mobile-cart-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--theme-accent);
    font-size: 11px;
    font-weight: 950;
}

.drawer-cart-badge.has-items,
.mobile-cart-badge.has-items {
    display: inline-flex;
}

.app-drawer,
.app-info-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2350;
    width: min(92vw, 440px);
    background: var(--theme-surface);
    box-shadow: 0 0 90px color-mix(in srgb, var(--theme-shadow) 82%, transparent);
    border: 1px solid var(--site-border-accent);
    display: flex;
    flex-direction: column;
    transition: transform .28s ease;
}

.app-drawer-right,
.app-info-drawer-right {
    right: 0;
    transform: translateX(104%);
    border-radius: 24px 0 0 24px;
}

.app-info-drawer-left {
    left: 0;
    transform: translateX(-104%);
    border-radius: 0 24px 24px 0;
}

.app-drawer.is-open,
.app-info-drawer.is-open {
    transform: translateX(0);
}

.drawer-head {
    min-height: 64px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--theme-border);
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent);
}

.drawer-title {
    flex: 1;
    min-width: 0;
    font-weight: 950;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.drawer-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px;
}

.drawer-footer {
    padding: 14px;
    border-top: 1px solid var(--theme-border);
    background: color-mix(in srgb, var(--theme-surface) 90%, transparent);
}

.drawer-primary-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2));
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}

.drawer-page-frame {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--theme-bg);
}

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

.theme-fab {
    position: fixed;
    right: 18px;
    bottom: calc(var(--site-footer-height) + 18px);
    z-index: 2100;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 19px;
    cursor: pointer;
    color: var(--theme-text);
    background: var(--theme-card);
    border: 1px solid var(--site-border-accent);
    box-shadow: 0 16px 38px color-mix(in srgb, var(--theme-shadow) 72%, transparent);
    font-size: 22px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.theme-panel {
    position: fixed;
    right: 18px;
    bottom: calc(var(--site-footer-height) + 82px);
    z-index: 2100;
    width: min(92vw, 288px);
    border-radius: 22px;
    padding: 14px;
    background: var(--theme-surface);
    border: 1px solid var(--site-border-accent);
    box-shadow: 0 24px 70px color-mix(in srgb, var(--theme-shadow) 82%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.theme-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.theme-close {
    width: 34px;
    height: 34px;
}

.theme-panel-section {
    padding: 12px 0;
    border-top: 1px solid var(--theme-border);
}

.theme-label {
    margin-bottom: 8px;
    color: var(--theme-muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.theme-button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.theme-pill,
.theme-mini,
.theme-reset {
    min-height: 36px;
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    background: color-mix(in srgb, var(--theme-card) 76%, transparent);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
}

.theme-pill.is-active,
.theme-mini.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2));
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}

.theme-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid color-mix(in srgb, var(--theme-text) 14%, transparent);
    cursor: pointer;
    box-shadow: inset 0 0 0 3px color-mix(in srgb, #fff 20%, transparent);
}

.theme-color-btn.is-active {
    outline: 3px solid color-mix(in srgb, var(--theme-accent) 40%, transparent);
    outline-offset: 2px;
}

.theme-color-btn[data-theme-value="blue"] { background: #1683ff; }
.theme-color-btn[data-theme-value="purple"] { background: #7c3aed; }
.theme-color-btn[data-theme-value="teal"] { background: #14b8a6; }
.theme-color-btn[data-theme-value="green"] { background: #22c55e; }
.theme-color-btn[data-theme-value="orange"] { background: #f97316; }
.theme-color-btn[data-theme-value="red"] { background: #ef4444; }
.theme-color-btn[data-theme-value="pink"] { background: #ec4899; }
.theme-color-btn[data-theme-value="indigo"] { background: #6366f1; }
.theme-color-btn[data-theme-value="amber"] { background: #f59e0b; }
.theme-color-btn[data-theme-value="cyan"] { background: #06b6d4; }

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

.theme-mini {
    width: 100%;
    margin-bottom: 6px;
    font-size: 12px;
}

.theme-reset {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .site-header-inner {
        grid-template-columns: minmax(200px, auto) 1fr auto;
        gap: 12px;
        padding: 0 14px;
    }

    .header-nav-link {
        padding: 9px 10px;
    }

    .nav-text {
        max-width: 84px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

@media (max-width: 1024px) {
    :root {
        --site-header-height: 62px;
        --site-header-small-height: 56px;
    }

    body.site-master-body {
        padding-bottom: calc(var(--site-mobile-bottom-height) + var(--site-footer-height) + 8px);
    }

    .site-header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .site-nav,
    .site-brand,
    .header-right-block {
        display: none !important;
    }

    .hamburger-btn {
        display: inline-flex;
        order: 2;
    }

    .site-right {
        display: flex;
        justify-content: flex-end;
    }

    .site-brand-center {
        display: flex;
    }

    .header-search-btn .search-text {
        display: none;
    }

    .header-search-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .page-content-wrapper {
        padding: 12px;
    }

    .footer {
        bottom: var(--site-mobile-bottom-height);
        min-height: var(--site-footer-height);
        font-size: 11px;
        padding: 7px 12px;
    }

    .theme-fab {
        bottom: calc(var(--site-mobile-bottom-height) + var(--site-footer-height) + 14px);
    }

    .theme-panel {
        bottom: calc(var(--site-mobile-bottom-height) + var(--site-footer-height) + 76px);
    }

    .site-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1300;
        height: var(--site-mobile-bottom-height);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 7px max(8px, env(safe-area-inset-left)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
        background:
            linear-gradient(135deg,
                color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface)),
                color-mix(in srgb, var(--theme-surface) 94%, transparent));
        border-top: 1px solid var(--site-border-accent);
        box-shadow: 0 -18px 48px color-mix(in srgb, var(--theme-shadow) 72%, transparent);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
    }

    .mobile-nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 16px;
        text-decoration: none;
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        background: color-mix(in srgb, var(--theme-accent) 13%, transparent);
    }

    .mobile-nav-item .nav-icon {
        font-size: 18px;
    }

    .mobile-cart-badge {
        position: absolute;
        top: 6px;
        right: 18%;
    }

    .app-drawer,
    .app-info-drawer {
        width: min(94vw, 430px);
    }
}

@media (max-width: 560px) {
    .site-header-inner {
        padding: 0 10px;
    }

    .site-brand-center-name {
        max-width: 58vw;
        font-size: 13px;
    }

    .site-brand-center-tagline {
        font-size: 10px;
    }

    .app-drawer,
    .app-info-drawer,
    .mobile-drawer {
        width: 100vw;
        border-radius: 0;
    }

    .footer {
        flex-wrap: wrap;
        gap: 4px;
        line-height: 1.15;
    }

    .theme-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }
}




/* =========================================================
   FINAL SITE MASTER LIGHT BACKGROUND + SYMBOL FIX
========================================================= */

:root {
    --site-header-height: 70px;
    --site-header-small-height: 58px;
    --site-footer-height: 44px;
}

body.site-master-body {
    background:
        radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--theme-accent) 18%, transparent), transparent 30rem),
        radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--theme-accent-2) 14%, transparent), transparent 34rem),
        linear-gradient(180deg,
            color-mix(in srgb, var(--theme-bg) 88%, var(--theme-accent) 12%) 0%,
            var(--theme-bg) 42%,
            color-mix(in srgb, var(--theme-bg) 94%, var(--theme-accent) 6%) 100%) !important;
    padding-top: var(--site-header-height) !important;
}

.site-header {
    height: var(--site-header-height) !important;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-accent) 16%, rgba(255,255,255,.92)),
            color-mix(in srgb, var(--theme-surface) 88%, transparent)) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border)) !important;
    box-shadow:
        0 14px 34px color-mix(in srgb, var(--theme-accent) 10%, rgba(15,23,42,.12)),
        inset 0 1px 0 rgba(255,255,255,.40) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

body.header-scrolled {
    padding-top: var(--site-header-small-height) !important;
}

body.header-scrolled .site-header {
    height: var(--site-header-small-height) !important;
}

.site-nav {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-surface) 78%, transparent),
            color-mix(in srgb, var(--theme-accent) 8%, var(--theme-card))) !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, var(--theme-border)) !important;
    box-shadow:
        0 10px 24px color-mix(in srgb, var(--theme-shadow) 42%, transparent),
        inset 0 1px 0 rgba(255,255,255,.35) !important;
}

.header-nav-link {
    min-height: 38px !important;
    padding: 8px 12px !important;
}

.nav-icon,
.search-icon {
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--theme-accent) 14%, transparent);
    color: var(--theme-accent);
    font-size: 10px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: .02em;
}

.footer,
#SiteFooter {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: var(--site-footer-height);
    z-index: 1200;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)),
            color-mix(in srgb, var(--theme-surface) 88%, transparent)) !important;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border)) !important;
    box-shadow: 0 -12px 30px color-mix(in srgb, var(--theme-shadow) 48%, transparent) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    color: var(--theme-muted) !important;
    font-size: 12px;
    font-weight: 800;
}

.page-content-wrapper {
    padding: 8px 18px 18px 18px !important;
    min-height: calc(100vh - var(--site-header-height) - var(--site-footer-height)) !important;
}

body.header-scrolled .page-content-wrapper {
    min-height: calc(100vh - var(--site-header-small-height) - var(--site-footer-height)) !important;
}

@media (max-width: 1024px) {
    .site-header-inner {
        padding: 0 12px !important;
    }
}

@media (max-width: 680px) {
    .page-content-wrapper {
        padding: 6px 10px 82px 10px !important;
    }

    .footer,
    #SiteFooter {
        display: none !important;
    }
}




/* =========================================================
   FINAL MASTER POLISH
   - real SVG icons
   - stronger light menu/footer background
   - drawer z-index/blur cleanup
   - products page edge spacing support
========================================================= */

.site-header {
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--theme-accent) 18%, transparent), transparent 18rem),
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface)),
            color-mix(in srgb, var(--theme-surface) 94%, #ffffff 6%)) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 28%, var(--theme-border)) !important;
    box-shadow:
        0 18px 44px color-mix(in srgb, var(--theme-accent) 13%, rgba(15,23,42,.14)),
        inset 0 1px 0 rgba(255,255,255,.52) !important;
}

.site-nav {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-surface) 86%, transparent),
            color-mix(in srgb, var(--theme-accent) 10%, var(--theme-card))) !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 26%, var(--theme-border)) !important;
    box-shadow:
        0 12px 30px color-mix(in srgb, var(--theme-accent) 10%, transparent),
        inset 0 1px 0 rgba(255,255,255,.46) !important;
}

.footer,
#SiteFooter {
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--theme-accent) 14%, transparent), transparent 18rem),
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)),
            color-mix(in srgb, var(--theme-surface) 94%, transparent)) !important;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border)) !important;
    box-shadow:
        0 -14px 34px color-mix(in srgb, var(--theme-accent) 10%, rgba(15,23,42,.12)),
        inset 0 1px 0 rgba(255,255,255,.40) !important;
}

.nav-icon,
.search-icon,
.drawer-nav-icon {
    min-width: 28px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: color-mix(in srgb, var(--theme-accent) 14%, transparent) !important;
    color: var(--theme-accent) !important;
    flex: 0 0 auto !important;
}

.nav-svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drawer-nav-icon .nav-svg {
    width: 18px;
    height: 18px;
}

.header-nav-link:hover .nav-icon,
.header-nav-link.active .nav-icon,
.drawer-nav a:hover .drawer-nav-icon,
.drawer-nav a.active .drawer-nav-icon,
.mobile-nav-item.active .nav-icon {
    background: var(--theme-accent) !important;
    color: #fff !important;
}

.mobile-drawer-overlay,
.app-drawer-overlay {
    z-index: 50000 !important;
    background: rgba(15,23,42,.38) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

.app-drawer,
.app-info-drawer {
    z-index: 50020 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--theme-surface) !important;
}

.drawer-page-frame {
    filter: none !important;
    opacity: 1 !important;
    background: var(--theme-surface) !important;
}

body:has(.products-page) .page-content-wrapper {
    padding: 0 !important;
}

body:has(.products-page) {
    padding-bottom: var(--site-footer-height) !important;
}

@media (max-width: 680px) {
    body:has(.products-page) .page-content-wrapper {
        padding: 0 !important;
    }
}




/* =========================================================
   FINAL FIX: Customer / Vendor drawer blur removal
   Problem: overlay/backdrop blur was painting above or through the info drawer.
   This patch makes overlay dim only, and forces drawers/iframes above it.
========================================================= */

body.app-drawer-open .app-drawer-overlay,
#CustomerInfoDrawerOverlay,
#VendorInfoDrawerOverlay,
#RightDrawerOverlay {
    z-index: 88000 !important;
    background: rgba(15, 23, 42, .46) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1;
}

#CustomerInfoDrawer,
#VendorInfoDrawer,
#RightDrawer,
.app-info-drawer.is-open,
.app-drawer.is-open {
    z-index: 88020 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    isolation: isolate !important;
    transform-style: flat !important;
    will-change: transform !important;
}

#CustomerInfoDrawer *,
#VendorInfoDrawer *,
#RightDrawer *,
.app-info-drawer.is-open *,
.app-drawer.is-open * {
    filter: none !important;
    text-shadow: none;
}

#CustomerInfoFrame,
#VendorInfoFrame,
.drawer-page-frame {
    position: relative !important;
    z-index: 2 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    transform: translateZ(0) !important;
    background: var(--theme-surface, #ffffff) !important;
}

#CustomerInfoDrawer .drawer-head,
#VendorInfoDrawer .drawer-head,
#RightDrawer .drawer-head {
    position: relative !important;
    z-index: 3 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* The mobile drawer uses body.drawer-open. The info drawers use body.app-drawer-open.
   Keep them separate so opening customer/vendor info does not activate blurry mobile behavior. */
body.app-drawer-open:not(.drawer-open) .mobile-drawer-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Prevent any page blur rule from affecting the actual drawer panels. */
body.app-drawer-open .page-content-wrapper,
body.app-drawer-open .site-header,
body.app-drawer-open .site-footer,
body.app-drawer-open #SiteFooter {
    filter: none !important;
}

/* But dim the background only through the overlay, not through CSS blur. */
body.app-drawer-open {
    overflow: hidden;
}


/* =========================================================
   ACTIVE MENU AND CART BADGE FIX
   Clean URLs like /dashboard and /shop still map to the correct menu item.
========================================================= */
.header-nav-link.active::after {
    content: none !important;
    display: none !important;
}

.header-nav-link.active .nav-text,
.drawer-nav a.active,
.mobile-nav-item.active {
    color: var(--theme-accent);
}

.header-nav-link.active .nav-icon {
    background: var(--theme-accent) !important;
    color: #fff !important;
}

.cart-link #HeaderCartCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    font-weight: 950;
}

.drawer-cart-badge.has-items,
.mobile-cart-badge.has-items {
    display: inline-flex !important;
}


/* =========================================================
   FINAL FIX: one active menu line only + theme icon button
========================================================= */
.header-nav-link.active::after {
    content: none !important;
    display: none !important;
}

.nav-underline {
    display: block !important;
    bottom: 4px !important;
}

.theme-fab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.theme-fab-icon {
    width: 26px;
    height: 26px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   PERFORMANCE PATCH: one active menu line + theme icon lock
========================================================= */
.nav-underline {
    display: none !important;
    opacity: 0 !important;
}

.header-nav-link::after {
    content: none !important;
    display: none !important;
}

.header-nav-link.active::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 3px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2)) !important;
    box-shadow: 0 0 12px color-mix(in srgb, var(--theme-accent) 65%, transparent) !important;
    pointer-events: none !important;
}

.theme-fab {
    width: 54px !important;
    height: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.theme-fab-icon {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    flex: 0 0 auto !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* =========================================================
   PROFESSIONAL SHELL POLISH - unified loader, drawers, mobile nav
========================================================= */
.header-progress,
#HeaderProgress {
    display: none !important;
}

.global-page-loader {
    background: color-mix(in srgb, var(--theme-bg) 88%, transparent) !important;
    backdrop-filter: blur(12px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(135%) !important;
}

.global-loader-box {
    min-width: min(360px, calc(100vw - 36px));
    display: grid !important;
    grid-template-columns: 56px 34px minmax(0, 1fr);
    align-items: center;
    gap: 14px !important;
    padding: 16px 18px !important;
    border-radius: 24px !important;
}

.global-loader-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    padding: 6px;
    border-radius: 17px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
}

.global-loader-spinner {
    width: 30px !important;
    height: 30px !important;
    border-width: 3px !important;
}

.global-loader-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.global-loader-copy strong {
    color: var(--theme-text);
    font-size: 15px;
    font-weight: 950;
}

.global-loader-text {
    color: var(--theme-muted) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

.close-svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-drawer-overlay,
.app-drawer-overlay,
body.drawer-open .mobile-drawer-overlay,
body.app-drawer-open .app-drawer-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

body.drawer-open .page-content-wrapper,
body.drawer-open .site-header,
body.drawer-open .footer,
body.drawer-open .site-mobile-bottom-nav {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Use the products filter drawer visual language for all site drawers. */
.app-drawer,
.app-info-drawer {
    width: min(94vw, 450px) !important;
    color: var(--theme-text) !important;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 22rem),
        var(--theme-surface) !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border)) !important;
    box-shadow: 0 34px 100px color-mix(in srgb, var(--theme-shadow) 86%, transparent) !important;
}

.app-drawer-right,
.app-info-drawer-right {
    border-radius: 26px 0 0 26px !important;
}

.app-info-drawer-left {
    border-radius: 0 26px 26px 0 !important;
}

.app-drawer .drawer-head,
.app-info-drawer .drawer-head {
    min-height: 66px !important;
    padding: 13px 15px !important;
    background: color-mix(in srgb, var(--theme-card) 92%, transparent) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border)) !important;
}

.app-drawer .drawer-title,
.app-info-drawer .drawer-title {
    font-size: 15px !important;
    font-weight: 950 !important;
    letter-spacing: -.02em;
}

.drawer-x,
.drawer-close,
.theme-close {
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
}

.drawer-page-frame {
    background: var(--theme-bg) !important;
}

.site-mobile-bottom-nav {
    align-items: stretch !important;
    justify-content: space-around !important;
    gap: 2px !important;
    padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right)) !important;
    min-height: calc(var(--site-mobile-bottom-height) + env(safe-area-inset-bottom)) !important;
}

.site-mobile-bottom-nav .mobile-nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 56px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 5px 3px !important;
    border-radius: 15px !important;
    text-align: center !important;
}

.site-mobile-bottom-nav .nav-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
}

.site-mobile-bottom-nav .nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
}

@media (max-width: 680px) {
    body:has(.products-page) {
        padding-bottom: calc(var(--site-mobile-bottom-height) + env(safe-area-inset-bottom)) !important;
    }

    body:has(.products-page) .products-page {
        padding-bottom: calc(var(--site-mobile-bottom-height) + 18px + env(safe-area-inset-bottom)) !important;
    }

    .footer,
    #SiteFooter {
        display: none !important;
    }

    .global-loader-box {
        grid-template-columns: 48px 28px minmax(0, 1fr);
        padding: 14px !important;
    }

    .global-loader-logo {
        width: 48px;
        height: 48px;
    }
}

/* Smooth page entrance; the old top progress strip is intentionally disabled. */
.header-progress,
#HeaderProgress { display: none !important; }
.page-content-wrapper {
    opacity: 0;
    transform: translateY(8px);
}
body.page-ready .page-content-wrapper {
    animation: sitePageEnter .30s cubic-bezier(.22,1,.36,1) both;
}
@keyframes sitePageEnter {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .page-content-wrapper { opacity: 1; transform: none; }
    body.page-ready .page-content-wrapper { animation: none; }
}

/* =========================================================
   FINAL VIEWPORT FIX - keep fixed dialogs truly viewport-fixed
   The former translate animation made fixed children use the
   page wrapper as their containing block, which moved modals up.
========================================================= */
.page-content-wrapper {
    transform: none !important;
}

body.page-ready .page-content-wrapper {
    animation: sitePageFadeIn .24s ease both !important;
    transform: none !important;
}

@keyframes sitePageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body.page-ready .page-content-wrapper {
        animation: none !important;
        opacity: 1 !important;
    }
}


/* =========================================================
   FINAL CONTENT FAIL-SAFE
   Main content must never depend on JavaScript to be visible.
========================================================= */
.page-content-wrapper,
body:not(.page-ready) .page-content-wrapper,
body.page-ready .page-content-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}


/* =========================================================
   STABLE SITE LOADER SAFETY
========================================================= */
.global-page-loader,
.page-loader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.global-page-loader.is-active:not(.hide),
.page-loader.is-active:not(.hide) {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

.global-page-loader.hide,
.page-loader.hide {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.page-content-wrapper,
body.page-ready .page-content-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}


/* =========================================================
   THEME FAB VISIBILITY RESTORE
========================================================= */
#ThemeFab.theme-fab {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#OrderThemePanel.theme-panel {
    pointer-events: none;
}

#OrderThemePanel.theme-panel.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Free-product promotion modal */
.promotion-picker-modal[hidden]{display:none!important}
.promotion-picker-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:20px}
.promotion-picker-modal.is-open{display:flex}
.promotion-picker-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(4px)}
.promotion-picker-dialog{position:relative;width:min(760px,96vw);max-height:min(78vh,760px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #bfdbfe;border-radius:24px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.34)}
.promotion-picker-modal.is-open .promotion-picker-backdrop{animation:promotionFadeIn .18s ease both}
.promotion-picker-modal.is-open .promotion-picker-dialog{animation:promotionDialogIn .24s cubic-bezier(.2,.8,.2,1) both}
.promotion-picker-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#eff6ff,#fff)}
.promotion-picker-head span{color:#dc2626;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.promotion-picker-head h2{margin:3px 0 0;color:#0f172a;font-size:24px}.promotion-picker-close{width:42px;height:42px;border:0;border-radius:13px;background:#e2e8f0;color:#0f172a;font-size:28px;cursor:pointer}
.promotion-picker-message{padding:12px 22px;color:#475569;font-weight:700}.promotion-picker-message.is-error{color:#b91c1c;background:#fff1f2}
.promotion-picker-body{overflow-y:auto;padding:0 22px 18px}.promotion-picker-group{margin:0 0 18px}.promotion-picker-group-title{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:#fff1f2;color:#b91c1c}.promotion-picker-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.promotion-picker-product{display:grid;grid-template-columns:70px minmax(0,1fr) 86px;align-items:center;gap:12px;padding:10px;border:1px solid #dbeafe;border-radius:15px;background:#fff}.promotion-picker-product img{width:70px;height:70px;object-fit:contain;border-radius:10px;background:#f8fafc}.promotion-picker-product strong,.promotion-picker-product span{display:block;overflow:hidden;text-overflow:ellipsis}.promotion-picker-product span{margin-top:4px;color:#64748b;font-size:12px}.promotion-picker-product select{height:42px;border:1px solid #93c5fd;border-radius:11px;background:#fff;text-align:center;font-weight:900}
.promotion-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-top:1px solid #e2e8f0;background:#f8fafc}.promotion-picker-footer span{font-weight:900;color:#475569}.promotion-picker-add{min-width:150px;height:46px;border:0;border-radius:13px;background:#1683ff;color:#fff;font-weight:900;cursor:pointer}.promotion-picker-add:disabled{opacity:.55;cursor:wait}
body.promotion-picker-open{overflow:hidden}
html[data-mode="dark"] .promotion-picker-dialog,body.dark .promotion-picker-dialog{background:#111827;border-color:#334155}.promotion-picker-head{color:#0f172a}html[data-mode="dark"] .promotion-picker-head,body.dark .promotion-picker-head{background:#172033;border-color:#334155}.promotion-picker-head h2{color:inherit}html[data-mode="dark"] .promotion-picker-product,body.dark .promotion-picker-product{background:#172033;border-color:#334155;color:#fff}
html[data-mode="dark"] .promotion-picker-message,body.dark .promotion-picker-message{color:#e2e8f0}
html[data-mode="dark"] .promotion-picker-product strong,body.dark .promotion-picker-product strong{color:#f8fafc}
html[data-mode="dark"] .promotion-picker-product span,body.dark .promotion-picker-product span{color:#cbd5e1}
html[data-mode="dark"] .promotion-picker-footer,body.dark .promotion-picker-footer{background:#0f172a;border-color:#334155}
html[data-mode="dark"] .promotion-picker-footer span,body.dark .promotion-picker-footer span{color:#e2e8f0}
.promotion-picker-loading{display:grid;place-items:center;min-height:220px;color:#475569;font-weight:850}.promotion-picker-loading:before{content:"";width:44px;height:44px;margin-bottom:12px;border:4px solid #dbeafe;border-top-color:#1683ff;border-radius:50%;animation:spin .75s linear infinite}
.promotion-picker-add.is-saving:before{content:"";display:inline-block;width:16px;height:16px;margin-right:8px;vertical-align:-3px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
.page-content-wrapper{animation:pageContentIn .24s ease both}
html,body,.site-header,.page-content-wrapper,.product-card,.glow-card{transition-duration:.16s!important}
@keyframes promotionFadeIn{from{opacity:0}to{opacity:1}}
@keyframes promotionDialogIn{from{opacity:0;transform:translateY(14px) scale(.975)}to{opacity:1;transform:none}}
@keyframes pageContentIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:640px){.promotion-picker-modal{padding:8px}.promotion-picker-dialog{width:100%;max-height:88vh;border-radius:19px}.promotion-picker-products{grid-template-columns:1fr}.promotion-picker-head{padding:16px}.promotion-picker-body{padding:0 14px 14px}}
