/* Premium sand & espresso visual system — scoped to light mode only */
body.light{
    --premium-espresso:#291c0e;
    --premium-cocoa:#6e473b;
    --premium-taupe:#a78d78;
    --premium-stone:#beb5a9;
    --premium-sand:#e1d4c2;
    --bg:#f4eee6;
    --card:#fffdf9e8;
    --text:#291c0e;
    --muted:#7e6e60;
    --primary:#6e473b;
    --border:#6e473b20;
}

body.light,
body.light.workspace-body{
    --bg:#f4eee6;
    --card:#fffdf9e8;
    --text:#291c0e;
    --muted:#7e6e60;
    --primary:#6e473b;
    --border:#6e473b20;
    --workspace-bg:#f4eee6;
    --workspace-surface:#fffdf9;
    --workspace-soft:#eee5da;
    --workspace-border:#a78d7838;
    --workspace-text:#291c0e;
    --workspace-muted:#837264;
    --workspace-sidebar:#291c0e;
}

body.light,
body.light.workspace-body{
    background:
        radial-gradient(circle at 83% 8%,#e1d4c2 0,transparent 31%),
        radial-gradient(circle at 8% 92%,#beb5a94d 0,transparent 32%),
        linear-gradient(145deg,#fbf8f3 0%,#f1e9df 55%,#e9ddd0 100%);
    background-attachment:fixed;
}

body.light::before,
body.light.workspace-body::before{
    content:"";
    position:fixed;
    z-index:0;
    inset:0;
    pointer-events:none;
    opacity:.32;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

body.light .background-glow{display:block;filter:blur(140px);opacity:.18}
body.light .glow-1{background:#a78d78}
body.light .glow-2{background:#6e473b}

body.light .workspace-sidebar{
    background:
        radial-gradient(circle at 20% 0,#6e473b55,transparent 31%),
        linear-gradient(180deg,#291c0e 0%,#352319 54%,#21160c 100%);
    border-right:1px solid #e1d4c226;
    box-shadow:18px 0 60px #291c0e18;
}
body.light .workspace-brand > span{
    background:linear-gradient(145deg,#e1d4c2,#a78d78);
    color:#291c0e;
    box-shadow:0 12px 32px #0005,inset 0 1px #fff8;
}
body.light .workspace-brand small,
body.light .workspace-account small{color:#a78d78}
body.light .workspace-nav a{color:#beb5a9}
body.light .workspace-nav a:hover{color:#fffaf2;background:#e1d4c212;transform:translateX(3px)}
body.light .workspace-nav a.active{
    color:#fffaf2;
    background:linear-gradient(90deg,#a78d7842,#e1d4c20a);
    box-shadow:inset 3px 0 #e1d4c2;
}
body.light .workspace-create-button,
body.light .login-btn,
body.light .promotion-edit-button{
    background:linear-gradient(135deg,#291c0e 0%,#6e473b 58%,#8a6858 100%);
    box-shadow:0 14px 30px #291c0e28,inset 0 1px #ffffff35;
}
body.light .workspace-create-button:hover,
body.light .login-btn:hover,
body.light .promotion-edit-button:hover{
    filter:none;
    transform:translateY(-2px);
    box-shadow:0 18px 38px #291c0e38,inset 0 1px #ffffff45;
}
body.light .workspace-language-control{border-color:#e1d4c226;color:#beb5a9;background:#ffffff08}
body.light .workspace-language-control .language-toggle{color:#e1d4c2;background:#ffffff10}
body.light .workspace-account > span{background:#e1d4c21c;color:#e1d4c2;border:1px solid #e1d4c22b}
body.light .workspace-exchange-rate{border-color:#e1d4c22e;background:#e1d4c20c}
body.light .workspace-exchange-rate small{color:#a78d78}
body.light .workspace-exchange-rate strong{color:#e1d4c2}

body.light .workspace-main > .topbar,
body.light .workspace-page-header{border-color:#a78d7838}
body.light .workspace-main > .topbar .hero-badge,
body.light .workspace-kicker{color:#6e473b}
body.light .workspace-main > .topbar h2,
body.light .workspace-page-header h1{letter-spacing:-1px}
body.light .workspace-main > .topbar h2,
body.light .workspace-page-header h1,
body.light .hero h1{
    font-family:Georgia,"Times New Roman",serif;
    font-weight:600;
}
body.light .workspace-main .login-card,
body.light .workspace-panel,
body.light .workspace-main .stat-card,
body.light .owner-kpi,
body.light .owner-product-card,
body.light .feedback-create-card,
body.light .feedback-inbox{
    border-color:#a78d7838;
    background:linear-gradient(145deg,#fffdfbf2,#f8f1e9e8);
    box-shadow:0 18px 50px #291c0e0d,0 2px 8px #291c0e08,inset 0 1px #fff;
}
body.light .workspace-panel,
body.light .owner-kpi,
body.light .owner-product-card,
body.light .feedback-create-card,
body.light .feedback-inbox{
    transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,border-color .35s ease;
}
body.light .workspace-panel:hover,
body.light .owner-kpi:hover{
    transform:translateY(-3px);
    border-color:#a78d7866;
    box-shadow:0 24px 58px #291c0e17,0 2px 8px #291c0e0b;
}
body.light .owner-product-card:hover,
body.light .owner-product-card:focus-visible{
    transform:translateY(-7px) scale(1.006);
    border-color:#6e473b70;
    box-shadow:0 28px 60px #291c0e20;
}
body.light .owner-product-photo{background:#e8ddd0}
body.light .owner-product-photo-backdrop{filter:blur(22px) saturate(.65);opacity:.28}
body.light .product-photo-placeholder{
    background:radial-gradient(circle at 50% 28%,#fff 0,transparent 34%),linear-gradient(145deg,#eee5da,#d8c8b8);
}
body.light .product-photo-placeholder span,
body.light .owner-product-price,
body.light .owner-product-variants b,
body.light .owner-product-open,
body.light .product-price-block strong,
body.light .workspace-panel-heading a,
body.light .quick-action>span,
body.light .dual-price>span{
    color:#6e473b;
}
body.light .product-availability.available{background:#6e473be8}
body.light .product-availability.sold{background:#291c0edb}
body.light .product-promotion-badge,
body.light .sale-completed-badge{background:#a78d78ed;box-shadow:0 8px 22px #291c0e32}
body.light .product-price-block>b{background:#6e473b18;color:#6e473b}
body.light .owner-product-price-edit,
body.light .qr-actions button{
    border-color:#6e473b55;
    background:#e1d4c24d;
    color:#6e473b;
    transition:.25s ease;
}
body.light .owner-product-price-edit:hover,
body.light .qr-actions button:hover{border-color:#6e473b;background:#d9c8b5;transform:translateY(-1px)}

body.light .workspace-main .input-group input,
body.light .input-group input,
body.light .input-group select,
body.light .product-editor-grid select,
body.light .variant-row input,
body.light .variant-select,
body.light .product-catalog-filters input,
body.light .product-catalog-filters select,
body.light .feedback-create-card input,
body.light .feedback-create-card select,
body.light .feedback-create-card textarea,
body.light .feedback-filters select,
body.light .feedback-reply-form textarea,
body.light .feedback-status-control,
body.light .action-dialog-input{
    border-color:#a78d7845;
    background:#fffaf4;
    color:#291c0e;
    box-shadow:inset 0 1px 2px #291c0e08;
    transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
    color-scheme:light;
}
body.light select option{background:#fffaf4;color:#291c0e}
body.light .workspace-main input:focus,
body.light .workspace-main select:focus,
body.light .workspace-main textarea:focus,
body.light .action-dialog-input:focus{
    border-color:#6e473b!important;
    box-shadow:0 0 0 4px #a78d7826!important;
}
body.light .quick-action:hover,
body.light .catalog-product-card:hover{border-color:#6e473b;transform:translateY(-2px)}
body.light .catalog-variant-chips b,
body.light .feedback-kind{background:#a78d7824;color:#6e473b}
body.light .variant-gallery-thumbnails button.active,
body.light .variant-color-picker button.active{border-color:#6e473b;background:#e1d4c259;color:#6e473b}
body.light .sale-variant-choice{border-color:#a78d78;background:#e1d4c24a}
body.light .sale-variant-choice label{color:#6e473b}
body.light .variant-stock-item.active{border-color:#6e473b;background:#e1d4c266;box-shadow:0 0 0 3px #a78d7826}
body.light .variant-stock-item:hover:not(:disabled){border-color:#6e473b;box-shadow:0 8px 20px #291c0e12}
body.light .catalog-filter-toggle[aria-expanded="true"],body.light .catalog-filter-reset:hover{border-color:#6e473b;color:#6e473b}
body.light .catalog-filter-panel{border-color:#a78d7840;background:linear-gradient(145deg,#fffdf9,#f4ece2);box-shadow:0 18px 45px #291c0e12}

body.light .action-dialog,
body.light .qr-result-overlay{background:#291c0eb8;backdrop-filter:blur(14px) saturate(.7)}
body.light .action-dialog-card,
body.light .qr-result-card,
body.light .product-editor-card{
    border-color:#e1d4c285;
    background:linear-gradient(145deg,#fffdf9,#eee4d8);
    box-shadow:0 35px 100px #291c0e55,inset 0 1px #fff;
}
body.light .action-dialog-icon,
body.light .qr-result-success{background:#6e473b;color:#fffaf4;box-shadow:0 10px 25px #6e473b45}
body.light .qr-printer-hint{background:#e1d4c280}

body.light .login-card{box-shadow:0 30px 80px #291c0e1b;border-color:#a78d7840}
body.light .hero-badge{background:#a78d7824;color:#6e473b}
body.light .theme-toggle,
body.light .language-toggle{border:1px solid #a78d783b;background:#fffaf4d9;color:#291c0e;box-shadow:0 10px 28px #291c0e10}

@keyframes premiumReveal{
    from{opacity:0;transform:translateY(18px);filter:blur(4px)}
    to{opacity:1;transform:translateY(0);filter:blur(0)}
}
@keyframes premiumCardIn{
    from{opacity:0;transform:translateY(16px) scale(.985)}
    to{opacity:1;transform:translateY(0) scale(1)}
}
body.light .workspace-main>.topbar,
body.light .workspace-page-header,
body.light .hero,
body.light .login-card{animation:premiumReveal .65s cubic-bezier(.2,.8,.2,1) both}
body.light .owner-kpi,
body.light .workspace-panel,
body.light .owner-product-card,
body.light .feedback-card,
body.light .detail-item{animation:premiumCardIn .55s cubic-bezier(.2,.8,.2,1) both}
body.light .owner-kpi:nth-child(2),
body.light .owner-product-card:nth-child(2),
body.light .detail-item:nth-child(2){animation-delay:.05s}
body.light .owner-kpi:nth-child(3),
body.light .owner-product-card:nth-child(3),
body.light .detail-item:nth-child(3){animation-delay:.1s}
body.light .owner-kpi:nth-child(4),
body.light .owner-product-card:nth-child(4),
body.light .detail-item:nth-child(4){animation-delay:.15s}
body.light .owner-product-card:nth-child(n+5){animation-delay:.2s}
body.light .workspace-nav a,
body.light .workspace-create-button,
body.light .theme-toggle,
body.light .language-toggle,
body.light .login-btn{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease,background .25s ease,color .25s ease}
body.light .workspace-nav a:active,
body.light .workspace-create-button:active,
body.light .login-btn:active,
body.light .qr-actions button:active{transform:scale(.975)}

@media(prefers-reduced-motion:reduce){
    body.light *,
body.light *::before,
body.light *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

@media(max-width:700px){
    body.light .workspace-main.app{padding-top:24px}
    body.light .workspace-main>.topbar,
body.light .workspace-page-header{padding-top:32px}
    body.light .owner-product-card:hover,
body.light .owner-product-card:focus-visible{transform:translateY(-3px)}
}

