/* ==========================================================================
   BILLO BAZAR - DESIGN SYSTEM & CORE STYLES
   Ultra Pro Max Modernized E-Commerce Experience
   ========================================================================== */

:root {
    /* Brand Colors */
    --primary: #ff6a00;
    --primary-hover: #e55e00;
    --primary-light: rgba(255, 106, 0, 0.1);
    --primary-glow: rgba(255, 106, 0, 0.25);
    
    --secondary: #0f172a;
    --accent-rose: #e11d48;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-sky: #0284c7;

    /* Light Theme (Default: Premium Warm Aesthetic) */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.06);

    /* Layout & Sizing */
    --container-max: 1240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme */
.dark {
    --bg-body: #090d16;
    --bg-surface: #111827;
    --bg-surface-elevated: #1f2937;
    --bg-subtle: #1a2234;
    --border-color: #374151;
    --border-subtle: #1f2937;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    min-height: 100%;
    /* The storefront is Bengali first, so the Bengali faces come before the
       system stack: if the webfont is blocked (offline preview, strict CSP,
       slow CDN) the platform's own Bengali face still shapes the labels
       instead of falling through to a Latin-only system font. */
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', 'Shonar405', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: 'tnum' on, 'lnum' on;
    font-variant-numeric: tabular-nums;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Numerals & Price Tag Alignment */
.current-price, .old-price, .qty-input, .header-badge, .badge-discount, .badge-campaign {
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: -0.2px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-primary-color { color: var(--primary) !important; }
.text-muted-color { color: var(--text-muted) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 0, 0.35);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 106, 0, 0.65);
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: var(--shadow-md);
}

/* Marquee Bar */
.marquee-wrapper {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeAnimation 22s linear infinite;
}

@keyframes marqueeAnimation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
