/* =====================================================================
   electro_storefront — design tokens (layer 1 of 6)

   DEFAULT values below are extracted from the Electro theme v3.7.3
   (Madras Themes) compiled stylesheet. They are FALLBACKS ONLY:
   the inline stylesheet generated from "Storefront Theme Settings"
   (templates/electro/includes/tokens.html) re-declares every token with
   the active values, so saving a color in the DocType overrides these
   without ever editing this file.

   Load order matters: tokens.css must be first in web_include_css.
   ===================================================================== */

:root {
    /* ---- brand / accent -------------------------------------------- */
    --sf-primary: #fed700;          /* buttons, navbar, add to cart, tabs tick */
    --sf-primary-hover: #fedd26;    /* primary button :hover                 */
    --sf-primary-active: #e7c300;   /* primary button :active                */

    /* ---- text & surfaces --------------------------------------------- */
    --sf-dark: #333e48;             /* headings, strong text                 */
    --sf-text: #333e48;             /* body text                             */
    --sf-text-muted: #687e93;       /* short descriptions, meta              */
    --sf-secondary: #6c757d;        /* old prices, dates                     */
    --sf-body-bg: #ffffff;
    --sf-topbar-bg: #f5f5f5;
    --sf-breadcrumb-bg: #f6f6f6;
    --sf-footer-bg: #f8f8f8;
    --sf-copyright-bg: #eaeaea;
    --sf-border: #dddddd;
    --sf-btn-neutral-bg: #efecec;

    /* ---- semantics ----------------------------------------------------- */
    --sf-price-sale: #dc3545;       /* discounted price                      */
    --sf-badge-sale-bg: #44b81b;    /* -20% badge                            */
    --sf-star: #fed700;             /* rating stars                          */
    --sf-success: #198754;          /* in stock                              */
    --sf-danger: #dc3545;           /* out of stock                          */

    /* ---- typography (Electro: Inter first, 14px base) ----------------- */
    --sf-font-body: Inter, Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
    --sf-font-heading: Inter, Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
    --sf-font-size: 0.875rem;
    --sf-line-height: 1.714;

    /* ---- layout --------------------------------------------------------- */
    --sf-container: 100%;
    --sf-gutter: 30px;
    --sf-header-height: 100px;
    --sf-navbar-height: 54px;
    --sf-topbar-height: 40px;
    --sf-sidebar-width: 264px;

    /* ---- motion & depth -------------------------------------------------- */
    --sf-radius: 0;
    --sf-radius-sm: 0.25rem;
    --sf-radius-pill: 2em;
    --sf-transition: 150ms ease;
    --sf-shadow-sm: 0 1px 2px rgba(51, 62, 72, 0.06);
    --sf-shadow-md: 0 6px 24px rgba(51, 62, 72, 0.12);
}

/* Honor users who prefer no motion — matches Electro's quiet transitions. */
@media (prefers-reduced-motion: reduce) {
    :root {
        --sf-transition: 0ms;
    }
}

/* ---------------------------------------------------------------------
   Legacy --cps-* aliases (consumed by the existing cps_eshop page CSS:
   creative.*, components/*, pages/*). They resolve to the same active
   values, so every legacy stylesheet follows the palette WITHOUT a
   skin layer fighting the cascade. The runtime token stylesheet
   (templates/includes/storefront/tokens.html) re-declares both families
   from CPS Eshop Settings.
   --------------------------------------------------------------------- */
:root {
    --cps-primary: var(--sf-primary);
    --cps-primary-rgb: 254, 215, 0;
    --cps-primary-dark: var(--sf-primary-active);
    --cps-primary-light: var(--sf-primary-hover);
    --cps-secondary: var(--sf-secondary);
    --cps-accent: var(--sf-primary);
    --cps-accent-light: #FFF3B8;
    --cps-bg: var(--sf-body-bg);
    --cps-bg-dark: var(--sf-footer-bg);
    --cps-surface: #FFFFFF;
    --cps-text: var(--sf-text);
    --cps-muted: var(--sf-text-muted);
    --cps-border: var(--sf-border);
    --cps-success: var(--sf-badge-sale-bg);
    --cps-danger: var(--sf-danger);
    --cps-link: var(--sf-text);
    --cps-focus: var(--sf-primary);
    --cps-header-bg: var(--sf-body-bg);
    --cps-header-text: var(--sf-text);
    --cps-topbar-bg: var(--sf-topbar-bg);
    --cps-topbar-text: var(--sf-text);
    --cps-nav-bg: var(--sf-primary);
    --cps-nav-text: #000000;
    --cps-nav-bg-rgb: 254, 215, 0;
    --cps-footer-bg: var(--sf-footer-bg);
    --cps-footer-surface: var(--sf-copyright-bg);
    --cps-footer-text: var(--sf-text);
    --cps-footer-muted: var(--sf-text-muted);
    --cps-footer-border: var(--sf-border);
    --cps-container-max-width: var(--sf-container);
    --cps-card-radius: var(--sf-radius-sm);
    --cps-button-radius: var(--sf-radius);
    --cps-input-radius: var(--sf-radius);
    --cps-shadow: var(--sf-shadow-sm);
    --cps-font-arabic: var(--sf-font-body);
    --cps-font-english: var(--sf-font-body);
    --cps-font-active: var(--sf-font-body);
}
