/* ============================================================================
   ROOT VARIABLES
============================================================================ */
:root {
    /* Dynamic theme colors (--primary and --secondary) are set in base.html */
    --text-light: #ffffff;
    --text-dark: #e5e7eb;
    --gray-border: #2A3548;
    --max-width: 1400px;
    --bg-light: #f8f9fb;
    --bg-dark: #020617;
    --bg: var(--bg-light);
    --text-main: #111827;
}

/* ============================================================================
   THEME OVERRIDES
============================================================================ */
body[data-theme="light"] {
    --bg: var(--bg-light);
    --text-main: #111827;
    --header-bg: var(--secondary);
    --nav-bg: var(--secondary);
}

body[data-theme="dark"] {
    --bg: var(--bg-dark);
    --text-main: var(--text-dark);
    --header-bg: #0b1120;
    --nav-bg: #0b1120;
    --secondary: #1e293b;
    --primary: #334155;
}

/* ============================================================================
   GLOBAL
============================================================================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================================
   Global eShop Typography
   ========================================================= */
.eshop,
.eshop * {
    font-family: ui-sans-serif, system-ui, sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji",
                 "Segoe UI Symbol", "Noto Color Emoji";
}

/* ==============================================
   Product Part List Css
   ============================================== */
.product-parts-list-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.product-parts-list-discount-badge {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.product-parts-list-price {
    font-weight: 600;
}

.product-parts-list-price-empty {
    color: #999;
}
