/* Front-end theme overrides (driven by html[data-front-theme]) */

html[data-front-theme="sky"] {
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --dark-color: #0f2744;
    --light-color: #e8f3fc;
    --border-color: #bfd8ef;
    --text-color: #12324f;
    --text-light: #4b6b8a;
    --bg-color: #eaf4fc;
    --white: #ffffff;
}

html[data-front-theme="mint"] {
    --primary-color: #059669;
    --secondary-color: #34d399;
    --dark-color: #0f2f22;
    --light-color: #eaf7f1;
    --border-color: #b7e0cc;
    --text-color: #1b4332;
    --text-light: #3d6b55;
    --bg-color: #edf8f2;
    --white: #ffffff;
}

html[data-front-theme="sand"] {
    --primary-color: #b7791f;
    --secondary-color: #d4a373;
    --dark-color: #2a1d10;
    --light-color: #f7f1e8;
    --border-color: #e2d2ba;
    --text-color: #3f2f1e;
    --text-light: #7a6348;
    --bg-color: #f8f2e9;
    --white: #ffffff;
}

html[data-front-theme="dusk"] {
    --primary-color: #6366f1;
    --secondary-color: #a78bfa;
    --dark-color: #1c1830;
    --light-color: #eceaf5;
    --border-color: #cec9e4;
    --text-color: #2e2a45;
    --text-light: #6b6588;
    --bg-color: #f0eef7;
    --white: #ffffff;
}

html[data-front-theme="night"] {
    --primary-color: #60a5fa;
    --secondary-color: #34d399;
    --dark-color: #e2e8f0;
    --light-color: #1e293b;
    --border-color: #334155;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --bg-color: #0f172a;
    --white: #1e293b;
    color-scheme: dark;
}

html[data-front-theme="sky"] body,
html[data-front-theme="mint"] body,
html[data-front-theme="sand"] body,
html[data-front-theme="dusk"] body,
html[data-front-theme="night"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

html[data-front-theme="night"] .main-wrapper,
html[data-front-theme="night"] .site-header,
html[data-front-theme="night"] .navbar,
html[data-front-theme="night"] .site-footer,
html[data-front-theme="night"] .footer,
html[data-front-theme="night"] .card,
html[data-front-theme="night"] .products-content,
html[data-front-theme="night"] .products-sidebar {
    background-color: var(--white);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Black-and-white mode: strip all color */
html[data-front-theme="bw"],
html[data-front-theme="bw"] body {
    filter: grayscale(1) !important;
    -webkit-filter: grayscale(1) !important;
}
