/* Orbitex theme variables and basic components
   Four primary colors exposed as --o-color-1..4
   This file contains only global theme CSS. Mail-specific styles go to mail.css
*/
:root{
    --o-color-1: #0d6efd; /* primary blue */
    --o-color-2: #198754; /* success green */
    --o-color-3: #fd7e14; /* warning/orange */
    --o-color-4: #6f42c1; /* accent purple */

    --o-bg: #ffffff;
    --o-foreground: #212529;
    --o-muted: #6c757d;

    --o-radius: 8px;
}

/* Generic badge styles using theme colors */
.o-badge {
    display:inline-block;
    padding: .25rem .5rem;
    border-radius: .375rem;
    font-size: .8rem;
    font-weight:600;
    color: white;
}

.o-badge-primary{ background: var(--o-color-1); }
.o-badge-success{ background: var(--o-color-2); }
.o-badge-warning{ background: var(--o-color-3); }
.o-badge-accent{ background: var(--o-color-4); }

/* Discount pill for list views */
.o-discount-pill{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    padding: .25rem .5rem;
    border-radius: 20px;
    font-size: .75rem;
    color: white;
    background: linear-gradient(90deg, var(--o-color-3), var(--o-color-4));
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Product card uses variables */
.o-product-card{
    position: relative;
    background: var(--o-bg);
    border-radius: var(--o-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 1rem;
    color: var(--o-foreground);
}
.o-product-title{ font-weight:700; margin-bottom:.25rem }
.o-product-price{ font-size:1.1rem; font-weight:700; color:var(--o-color-1) }
.o-product-price-old{ text-decoration:line-through; color:var(--o-muted); margin-left:.5rem; font-weight:500 }

/* Campaign banner styles */
.o-campaign-banner{
    display:flex; align-items:center; gap:1rem; padding:1rem; border-radius: .5rem;
    background: linear-gradient(90deg, rgba(13,110,253,0.06), rgba(111,66,193,0.04));
    border: 1px solid rgba(13,110,253,0.06);
}

/* Utilities */
.o-cta{ background:var(--o-color-1); color:white; padding:.5rem .75rem; border-radius:6px; text-decoration:none }

@media (prefers-color-scheme: dark){
    :root{
        --o-bg: #0b1220;
        --o-foreground: #e9eef6;
        --o-muted: #9aa4b2;
    }
}
