/* ============================================
   ICE MACHINE PARTS - PROFESSIONAL THEME
   Blue & White - Inspired by Double T Ice
   ============================================ */

:root {
    --color-primary: #248acc;
    --color-primary-dark: #1a6fa3;
    --color-primary-light: #e8f4fd;

    --color-dark: #32373c;
    --color-dark-hover: #444950;

    --color-bg: #ffffff;
    --color-bg-alt: #f7f9fc;
    --color-bg-dark: #1a1f25;

    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-text-white: #ffffff;

    --color-border: #e2e8f0;
    --color-border-light: #f0f0f0;

    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;

    --font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 6px;
    --radius-lg: 10px;
    --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }
h1:focus { outline: none; }

p { color: var(--color-text-light); margin-bottom: 1rem; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ================================
   PAGE LAYOUT - Horizontal Nav
   ================================ */

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

.content {
    padding: 0;
    max-width: 100%;
}

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    background: var(--color-bg-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-brand:hover { color: var(--color-primary) !important; text-decoration: none; }

.navbar-logo {
    height: 28px;
    width: auto;
}

/* Admin dropdown (no Bootstrap JS) */
.admin-dropdown {
    position: relative;
}

.admin-dropdown > a {
    cursor: pointer;
}

.admin-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 180px;
    z-index: 1000;
}

.admin-dropdown-menu .dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-dropdown-menu .dropdown-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.navbar-right-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-toggler {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: absolute;
}
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { top: 7px; }

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1.1rem 1rem;
    display: block;
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.05);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.nav-user {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-cart-icon {
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.nav-cart-icon:hover { color: var(--color-primary); text-decoration: none; }

@media (max-width: 991px) {
    .navbar-collapse {
        width: 100%;
        padding-bottom: 1rem;
    }
    .navbar-collapse.collapse { display: none; }
    .navbar-nav { flex-direction: column; align-items: flex-start; }
    .navbar-nav .nav-link { padding: 0.75rem 0; border-bottom: none; }
    .navbar-actions { padding: 0.75rem 0; width: 100%; }
}

@media (min-width: 992px) {
    .navbar-toggler { display: none; }
    .navbar-collapse.collapse { display: flex !important; }
    .navbar-collapse {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        margin-left: 2rem;
    }
    .navbar-right-mobile .nav-cart-icon { display: none !important; }
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-dark-hover);
    border-color: var(--color-dark-hover);
    color: #fff;
    text-decoration: none;
}

.btn-accent {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.btn-accent:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-text);
}
.btn-secondary:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-light);
}
.btn-outline-secondary:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.btn-danger { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }
.btn-link { color: var(--color-primary); background: none; border: none; padding: 0; }
.btn-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn:focus { box-shadow: 0 0 0 3px rgba(36,138,204,0.3); outline: none; }

/* ================================
   FORMS
   ================================ */

.form-control {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36,138,204,0.15);
    outline: none;
}
.form-control::placeholder { color: var(--color-text-muted); }

.form-label {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.form-select {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
}
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36,138,204,0.15);
    outline: none;
}

.valid.modified:not([type=checkbox]) { outline: 2px solid var(--color-success); }
.invalid { outline: 2px solid var(--color-danger); }
.validation-message { color: var(--color-danger); font-size: 0.85rem; margin-top: 0.25rem; }

/* ================================
   CARDS
   ================================ */

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.card-header {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }
.card-title { font-weight: 700; margin-bottom: 0.5rem; }
.card-text { color: var(--color-text-light); font-size: 0.9rem; }
.card-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2a3544 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(36,138,204,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(36,138,204,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.hero-logo {
    flex-shrink: 0;
}

.hero-logo img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-search {
    margin-bottom: 2rem;
}

.hero-search .search-box {
    display: flex;
    max-width: 650px;
    background: #fff;
    border-radius: 50px;
    padding: 0.35rem;
    box-shadow: var(--shadow-lg);
}
.hero-search .search-icon {
    color: var(--color-text-muted);
    padding: 0.7rem 0 0.7rem 1.25rem;
    font-size: 1.15rem;
}
.hero-search .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    color: var(--color-text);
}
.hero-search .search-box input::placeholder { color: var(--color-text-muted); }
.hero-search .search-box input:focus { outline: none; box-shadow: none; }
.hero-search .btn {
    border-radius: 50px;
    padding: 0.7rem 2rem;
    white-space: nowrap;
}

.hero-cta {
    margin-top: 1.25rem;
}

.hero-brands {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}
.hero-brands .brand-name {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .hero { padding: 3rem 1rem; }
    .hero-layout { flex-direction: column; text-align: center; gap: 1.5rem; }
    .hero-logo img { width: 150px; height: 150px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-search .search-box { margin: 0 auto; }
    .hero-brands { justify-content: center; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-search .search-box {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 0.5rem;
    }
    .hero-search .search-icon { display: none; }
    .hero-search .btn { border-radius: var(--radius); width: 100%; justify-content: center; }
}

/* ================================
   VALUE PROPOSITIONS
   ================================ */

.value-props {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--color-primary);
}
.value-prop {
    text-align: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.value-prop:last-child { border-right: none; }
.value-prop i { font-size: 2rem; color: #fff; margin-bottom: 0.75rem; display: block; }
.value-prop h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.value-prop p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0; }

@media (max-width: 992px) { .value-props { grid-template-columns: repeat(2, 1fr); } .value-prop { border-bottom: 1px solid rgba(255,255,255,0.15); } }
@media (max-width: 576px) { .value-props { grid-template-columns: 1fr; } }

/* ================================
   CONTENT SECTIONS
   ================================ */

.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    position: relative;
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 768px) {
    .content-section { padding: 3rem 1rem; }
    .section-header { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ================================
   PRODUCT GRID & CARDS
   ================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.product-card img,
.product-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: var(--color-bg-alt);
    padding: 1rem;
}
.product-card .card-body { padding: 1.25rem; }
.product-card .product-name,
.product-card .card-title {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.product-card .product-sku { color: var(--color-text-muted); font-size: 0.75rem; font-family: monospace; }
.product-card .product-price { color: var(--color-primary); font-size: 1.2rem; font-weight: 900; margin-top: 0.5rem; }
.product-card .in-stock { color: var(--color-success); font-size: 0.75rem; font-weight: 600; }
.product-card .out-of-stock { color: var(--color-danger); font-size: 0.75rem; font-weight: 600; }
.product-card .placeholder-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    font-size: 3rem;
    color: var(--color-border);
}

/* ================================
   CATEGORY GRID
   ================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 992px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
}
.category-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--color-primary);
    transition: all var(--transition);
}
.category-card:hover .category-icon {
    background: var(--color-primary);
    color: #fff;
}
.category-name { font-size: 0.95rem; font-weight: 600; color: var(--color-dark); margin-bottom: 0.2rem; text-align: center; }
.category-count { font-size: 0.8rem; color: var(--color-text-muted); }

/* ================================
   BRAND GRID
   ================================ */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
}
.brand-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    text-decoration: none;
}
.brand-logo { max-height: 50px; max-width: 100%; margin-bottom: 0.75rem; }
.brand-placeholder {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}
.brand-card .brand-name { font-size: 0.9rem; font-weight: 600; color: var(--color-text-light); text-align: center; margin: 0; }
.brand-card:hover .brand-name { color: var(--color-dark); }

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 4rem 2rem;
    text-align: center;
}
.cta-content h2 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #fff; border-color: #fff; color: var(--color-primary); font-weight: 700; }
.cta-section .btn-primary:hover { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.9); color: var(--color-primary-dark); }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-accent { background: #fff; border-color: #fff; color: var(--color-primary); font-weight: 700; }
.cta-section .btn-accent:hover { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.9); color: var(--color-primary-dark); }
.cta-section .btn-outline-light { border: 2px solid rgba(255,255,255,0.7); color: #fff; font-weight: 600; background: transparent; }
.cta-section .btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ================================
   TABLES
   ================================ */

.table { color: var(--color-text); border-color: var(--color-border); }
.table thead th {
    background: var(--color-bg-alt);
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.85rem 1rem;
}
.table tbody td { border-color: var(--color-border); padding: 0.85rem 1rem; vertical-align: middle; }
.table tbody tr:hover { background: var(--color-bg-alt); }

/* ================================
   ALERTS & BADGES
   ================================ */

.alert { border-radius: var(--radius); border: none; padding: 1rem 1.25rem; }
.alert-info { background: var(--color-primary-light); color: var(--color-primary-dark); border-left: 4px solid var(--color-primary); }
.alert-success { background: rgba(40,167,69,0.1); color: var(--color-success); border-left: 4px solid var(--color-success); }
.alert-warning { background: rgba(255,193,7,0.1); color: #856404; border-left: 4px solid var(--color-warning); }
.alert-danger { background: rgba(220,53,69,0.1); color: var(--color-danger); border-left: 4px solid var(--color-danger); }

.badge { font-weight: 600; font-size: 0.75rem; padding: 0.3em 0.6em; border-radius: 4px; }
.badge.bg-primary { background: var(--color-primary) !important; }
.badge.bg-success { background: var(--color-success) !important; }
.badge.bg-danger { background: var(--color-danger) !important; }
.badge.bg-info { background: var(--color-primary) !important; }

/* ================================
   PAGINATION
   ================================ */

.pagination { gap: 0.25rem; }
.page-link {
    background: #fff;
    border-color: var(--color-border);
    color: var(--color-text-light);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
}
.page-link:hover { background: var(--color-bg-alt); color: var(--color-text); }
.page-item.active .page-link { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.page-item.disabled .page-link { background: var(--color-bg-alt); color: var(--color-text-muted); }

/* ================================
   CART
   ================================ */

.cart-icon { position: relative; color: #fff; font-size: 1.2rem; display: inline-flex; align-items: center; }
.cart-icon:hover { color: var(--color-primary); }
.cart-badge {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    min-width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}
.cart-item-image {
    width: 70px; height: 70px;
    object-fit: contain;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 0.35rem;
}

/* ================================
   INPUT GROUPS
   ================================ */

.input-group .form-control { border-color: var(--color-border); }
.input-group .btn { border-color: var(--color-border); }

/* ================================
   FOOTER
   ================================ */

.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.75);
    padding-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-section h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-section h6 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-section p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-section ul li a:hover { color: var(--color-primary); text-decoration: none; }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.contact-list .bi { color: var(--color-primary); font-size: 0.9rem; }

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all var(--transition);
    text-decoration: none;
}
.footer-social a:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0; }

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
}

/* ================================
   LOADING & ERRORS
   ================================ */

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--color-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--color-text);
}
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }

#blazor-error-ui {
    background: var(--color-danger);
    bottom: 0; left: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    display: none;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fff;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.5rem; }
#blazor-error-ui .reload { color: #fff; text-decoration: underline; }

.blazor-error-boundary { background: var(--color-danger); padding: 1rem; color: white; border-radius: var(--radius); }
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ================================
   UTILITIES
   ================================ */

hr { border-color: var(--color-border); opacity: 1; }
code { color: var(--color-primary); background: var(--color-bg-alt); padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.875em; }
.text-muted { color: var(--color-text-muted) !important; }
.text-accent { color: var(--color-primary) !important; }
.w-100 { width: 100%; }

.spinner-border { color: var(--color-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ================================
   PRODUCTS LIST PAGE
   ================================ */

.products-page {
    padding: 2.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-page .row { display: flex; gap: 2rem; }
.products-page .col-md-3 { width: 250px; flex-shrink: 0; }
.products-page .col-md-9 { flex: 1; }

@media (max-width: 768px) {
    .products-page .row { flex-direction: column; }
    .products-page .col-md-3 { width: 100%; }
}

/* ============================================
   ADMIN PAGES
   ============================================ */

.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark);
}

.admin-breadcrumb {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.admin-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Admin Dashboard Cards */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.admin-stat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2rem;
    color: var(--color-primary);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 12px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.admin-quick-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.quick-links-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
}

.quick-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Admin Form */
.admin-form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-form-card h3 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    color: var(--color-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.form-group .form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group .form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(36, 138, 204, 0.15);
}

.form-check-input {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border-light);
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: var(--color-bg-alt);
}

.admin-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
}

.admin-table tbody tr:hover {
    background: var(--color-bg-alt);
}

.admin-table .actions-cell {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-table code {
    background: var(--color-bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.text-success { color: var(--color-success) !important; }
.text-muted { color: var(--color-text-muted) !important; }

/* Admin Pagination */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Alert styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert .btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Delete confirmation modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-dialog h4 {
    margin: 0 0 0.75rem;
    color: var(--color-danger);
}

.modal-dialog p {
    margin: 0;
    color: var(--color-text);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline-primary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-outline-danger {
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-outline-danger:hover {
    background: var(--color-danger);
    color: #fff;
}

.btn-outline-secondary {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: transparent;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-outline-secondary:hover {
    background: var(--color-bg-alt);
}

.btn-outline-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .admin-page { padding: 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; }
    .dashboard-kpis { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-status-row { grid-template-columns: 1fr 1fr; }
    .inventory-filters { flex-direction: column; }
    .sales-chart { overflow-x: auto; }
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--color-primary);
    transition: all 0.15s ease;
}

.kpi-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.kpi-card.kpi-revenue { border-left-color: #28a745; }
.kpi-card.kpi-orders { border-left-color: #248acc; }
.kpi-card.kpi-inventory { border-left-color: #ffc107; }
.kpi-card.kpi-customers { border-left-color: #6f42c1; }

.kpi-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.kpi-revenue .kpi-icon { color: #28a745; background: #d4edda; }
.kpi-orders .kpi-icon { color: #248acc; background: #e8f4fd; }
.kpi-inventory .kpi-icon { color: #856404; background: #fff3cd; }
.kpi-customers .kpi-icon { color: #6f42c1; background: #e8d5f5; }

.kpi-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kpi-change {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.kpi-change.positive { color: #28a745; }
.kpi-change.negative { color: #dc3545; }

.kpi-sub {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.1rem;
}

/* Status Cards Row */
.dashboard-status-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.status-card { transition: all 0.15s ease; }
.status-card i { font-size: 1.25rem; }
.status-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-color: var(--color-primary); }
.status-card.active { border-color: var(--color-primary); box-shadow: 0 2px 12px rgba(13,110,253,0.15); background: #f0f7ff; }
.status-value { font-size: 1.35rem; font-weight: 700; color: var(--color-dark); }
.status-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; }
.status-detail-panel { margin-bottom: 1.5rem; animation: slideDown 0.2s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.text-warning { color: #ffc107 !important; }
.text-primary { color: var(--color-primary) !important; }
.text-danger { color: #dc3545 !important; }
.text-info { color: #17a2b8 !important; }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border-light);
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card .card-header h3 i { color: var(--color-primary); }

.admin-table.compact th,
.admin-table.compact td {
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #e8f4fd; color: #0c5460; }
.badge-secondary { background: #e2e8f0; color: #4a5568; }

/* Row highlights */
.row-danger { background: #fff5f5; }
.row-warning { background: #fffbeb; }

/* Sales Chart */
.sales-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    min-height: 200px;
    justify-content: space-around;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}

.chart-bar-container {
    width: 100%;
    max-width: 60px;
    height: 140px;
    display: flex;
    align-items: flex-end;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}

.chart-label { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; }
.chart-value { font-size: 0.8rem; font-weight: 700; color: var(--color-dark); }
.chart-orders { font-size: 0.7rem; color: var(--color-text-muted); }

/* Inventory Filters */
.inventory-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.inventory-filters .filter-group {
    flex: 1;
    min-width: 180px;
}

.inventory-filters .form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
}

.form-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   CHECKOUT STYLES
   ============================================ */

.checkout-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.checkout-page h1 {
    margin-bottom: 1.5rem;
}

/* Progress Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
}

.checkout-step.active {
    color: var(--color-primary);
}

.checkout-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.checkout-step.active .step-number {
    background: var(--color-primary);
    color: white;
}

.checkout-step .step-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-step-line {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin: 0 0.5rem;
}

.checkout-step-line.active {
    background: var(--color-primary);
}

/* Checkout Layout */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.checkout-section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.checkout-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid-2col .full-width {
    grid-column: 1 / -1;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

/* Order Summary Sidebar */
.checkout-summary {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.checkout-summary h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.summary-items {
    margin-bottom: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.summary-item-name {
    flex: 1;
    margin-right: 0.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Review Step */
.review-address {
    background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: 6px;
}

.review-address p {
    margin: 0;
    line-height: 1.6;
}

.review-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--color-bg-alt);
    border-radius: 6px;
}

.review-item-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.review-item-placeholder {
    width: 50px;
    height: 50px;
    background: var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.review-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
}

.review-item-qty {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.review-item-price {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Order Confirmation */
.confirmation-page {
    max-width: 700px;
    margin: 0 auto;
}

.confirmation-header {
    text-align: center;
    padding: 2rem 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-order-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.confirmation-details {
    margin-top: 2rem;
}

.confirmation-section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.confirmation-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.confirmation-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.confirmation-item-info span {
    font-size: 0.8rem;
}

.confirmation-item-price {
    font-weight: 600;
}

.confirmation-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Badge primary */
.badge-primary {
    background: var(--color-primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        gap: 0;
    }

    .checkout-step .step-label {
        display: none;
    }

    .checkout-step-line {
        width: 30px;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .checkout-actions .btn {
        width: 100%;
    }
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */

.btn-dark-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-dark-toggle:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ============================================
   DARK MODE THEME
   ============================================ */

[data-theme="dark"] {
    --color-primary: #3da4e6;
    --color-primary-dark: #2b8dd4;
    --color-primary-light: #1a2d3d;

    --color-dark: #e0e0e0;
    --color-dark-hover: #c0c0c0;

    --color-bg: #1a1f25;
    --color-bg-alt: #222830;
    --color-bg-dark: #12161b;

    --color-text: #d4d4d4;
    --color-text-light: #a0a0a0;
    --color-text-muted: #777;
    --color-text-white: #ffffff;

    --color-border: #333a42;
    --color-border-light: #2a3038;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] body {
    background: #1a1f25 !important;
    color: #d4d4d4 !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #e0e0e0 !important;
}

[data-theme="dark"] p {
    color: #a0a0a0;
}

/* Preserve white text on colored background sections */
[data-theme="dark"] .value-prop p { color: rgba(255,255,255,0.85) !important; }
[data-theme="dark"] .value-prop h4 { color: #fff !important; }
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero h2 { color: #fff !important; }

[data-theme="dark"] a {
    color: #3da4e6;
}
[data-theme="dark"] a.btn {
    color: inherit;
}
[data-theme="dark"] .btn-accent,
[data-theme="dark"] a.btn-accent {
    background: var(--color-primary) !important;
    color: #fff !important;
}
[data-theme="dark"] .btn-accent:hover,
[data-theme="dark"] a.btn-accent:hover {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
}

[data-theme="dark"] code {
    background: #333a42 !important;
    color: #e06c75 !important;
}

/* Cards, panels, modals */
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .status-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .checkout-section,
[data-theme="dark"] .checkout-summary,
[data-theme="dark"] .confirmation-section,
[data-theme="dark"] .admin-form-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .brand-card,
[data-theme="dark"] .card {
    background: #222830 !important;
    border-color: #333a42 !important;
    color: #d4d4d4 !important;
}

/* Admin page backgrounds */
[data-theme="dark"] .admin-page,
[data-theme="dark"] .admin-table-wrapper,
[data-theme="dark"] main,
[data-theme="dark"] .content {
    background: #1a1f25 !important;
}

[data-theme="dark"] .status-card.active {
    background: #1a2d3d;
    border-color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(61,164,230,0.15);
}

[data-theme="dark"] .kpi-card:hover,
[data-theme="dark"] .status-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: var(--color-primary);
}

/* KPI icon backgrounds in dark mode */
[data-theme="dark"] .kpi-revenue .kpi-icon { color: #4caf50; background: #1b3a1b; }
[data-theme="dark"] .kpi-orders .kpi-icon { color: #3da4e6; background: #1a2d3d; }
[data-theme="dark"] .kpi-inventory .kpi-icon { color: #ffc107; background: #3a3018; }
[data-theme="dark"] .kpi-customers .kpi-icon { color: #9c6dd8; background: #2a1f3d; }

/* KPI values */
[data-theme="dark"] .kpi-value,
[data-theme="dark"] .status-value,
[data-theme="dark"] .chart-value {
    color: #e0e0e0;
}

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] select.form-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #2a3038 !important;
    border-color: #333a42 !important;
    color: #d4d4d4 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus {
    border-color: #3da4e6 !important;
    box-shadow: 0 0 0 3px rgba(61,164,230,0.2) !important;
}

/* Tables */
[data-theme="dark"] .admin-table,
[data-theme="dark"] table {
    border-color: #333a42 !important;
}

[data-theme="dark"] .admin-table th,
[data-theme="dark"] table th {
    background: #222830 !important;
    color: #a0a0a0 !important;
    border-color: #333a42 !important;
}

[data-theme="dark"] .admin-table td,
[data-theme="dark"] table td {
    border-color: #333a42 !important;
    color: #d4d4d4 !important;
}

[data-theme="dark"] .admin-table tbody tr:hover,
[data-theme="dark"] table tbody tr:hover {
    background: #252b33 !important;
}

[data-theme="dark"] .admin-table-wrapper {
    border-color: #333a42 !important;
}

/* Row highlights in dark mode */
[data-theme="dark"] .row-danger { background: #2a1a1a; }
[data-theme="dark"] .row-warning { background: #2a2618; }

/* Badges - slightly muted backgrounds */
[data-theme="dark"] .badge-success { background: #1b3a1b; color: #6fcf7f; }
[data-theme="dark"] .badge-warning { background: #3a3018; color: #ffc107; }
[data-theme="dark"] .badge-danger { background: #3a1a1a; color: #f08080; }
[data-theme="dark"] .badge-info { background: #1a2d3d; color: #5bc0de; }
[data-theme="dark"] .badge-secondary { background: #333a42; color: #a0a0a0; }

/* Buttons */
[data-theme="dark"] .btn-primary {
    background: #333a42;
    border-color: #444c56;
    color: #e0e0e0;
}
[data-theme="dark"] .btn-primary:hover {
    background: #444c56;
    border-color: #555d66;
}

[data-theme="dark"] .btn-secondary {
    background: #2a3038;
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] .btn-outline-secondary {
    border-color: var(--color-border);
    color: var(--color-text-light);
}
[data-theme="dark"] .btn-outline-secondary:hover {
    background: #2a3038;
    color: var(--color-text);
}

[data-theme="dark"] .btn-outline-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
[data-theme="dark"] .btn-outline-primary:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Alerts */
[data-theme="dark"] .alert-success { background: #1b3a1b; color: #6fcf7f; border-color: #2a4a2a; }
[data-theme="dark"] .alert-danger { background: #3a1a1a; color: #f08080; border-color: #4a2a2a; }
[data-theme="dark"] .alert-info { background: #1a2d3d; color: #5bc0de; border-color: #2a3d4d; }

/* Dropdown menu */
[data-theme="dark"] .admin-dropdown-menu {
    background: #2a3038;
    border-color: var(--color-border);
}

[data-theme="dark"] .admin-dropdown-menu .dropdown-item {
    color: var(--color-text);
}

[data-theme="dark"] .admin-dropdown-menu .dropdown-item:hover {
    background: #333a42;
    color: var(--color-primary);
}

/* Charts */
[data-theme="dark"] .chart-bar {
    background: linear-gradient(180deg, var(--color-primary), #2b8dd4);
}

/* Product cards */
[data-theme="dark"] .product-card-body h3,
[data-theme="dark"] .product-name {
    color: #e0e0e0;
}

[data-theme="dark"] .product-price,
[data-theme="dark"] .price {
    color: var(--color-primary);
}

/* Hero section */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #12161b 0%, #1a2536 100%);
}

/* Review/checkout backgrounds */
[data-theme="dark"] .review-address,
[data-theme="dark"] .review-item {
    background: #2a3038;
}

/* Modal overlay */
[data-theme="dark"] .modal-overlay {
    background: rgba(0,0,0,0.7);
}

[data-theme="dark"] .modal-dialog {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-text);
}

/* Quick links */
[data-theme="dark"] .quick-link {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] .quick-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar { width: 8px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--color-bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #444c56; border-radius: 4px; }

/* Code elements */
[data-theme="dark"] code {
    background: #333a42;
    color: #e06c75;
}

/* Cart page */
[data-theme="dark"] .cart-item {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

/* Footer */
[data-theme="dark"] footer {
    background: #12161b;
}

/* Pagination */
[data-theme="dark"] .pagination .page-item .page-link {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-text);
}
