/* =====================================================
   OBD WEBSITE - CLEAN WHITE + #007dbb THEME
   ===================================================== */

/* CSS Variables for consistent theming */
:root {
    --primary: #007dbb;
    --primary-dark: #006699;
    --primary-light: #E6F4FA;
    --secondary: #007dbb;
    --secondary-dark: #006699;
    --accent: #007dbb;
    --dark: #333333;
    --dark-light: #555555;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    background: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid var(--gray-200);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-links a[id="cartBtn"] {
    background: #2ECC71;
    color: var(--white);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
}

.nav-links a[id="cartBtn"]:hover {
    background: #27AE60;
    color: var(--white);
}

#cartCount {
    background: white;
    color: #2ECC71;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
}

/* Hamburger - Hidden, using bottom nav instead */
.hamburger {
    display: none !important;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom-nav li {
    flex: 1;
    text-align: center;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.7rem;
    padding: 8px 4px;
    transition: var(--transition);
}

.bottom-nav a:hover,
.bottom-nav a.active {
    color: var(--primary);
}

.bottom-nav .nav-icon {
    font-size: 1.4rem;
}

.bottom-nav .cart-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(70%);
    background: #007dbb;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.bottom-nav li:nth-child(5) {
    position: relative;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide top nav links on mobile */
    .nav-links {
        display: none !important;
    }

    /* Show bottom nav on mobile */
    .bottom-nav {
        display: block;
    }

    /* Add padding to body so content doesn't hide behind bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Hide footer bottom padding adjustment */
    footer {
        margin-bottom: 0;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background: #007dbb;
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 16px 36px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   PRODUCTS GRID
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    background: var(--gray-100);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--gray-900);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3:hover {
    color: var(--primary);
}

.product-info .brand {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-info .category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info .price {
    font-size: 1.5rem;
    color: #007dbb;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-info .stock {
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.product-info .stock.in-stock {
    color: var(--success);
}

.product-info .stock.out-of-stock {
    color: var(--danger);
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-view-detail {
    flex: 1;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-view-detail:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-add-cart {
    flex: 1;
    background: #00A86B;
    color: var(--white);
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: #008555;
    transform: translateY(-2px);
}

.btn-add-cart:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--gray-900);
    font-size: 2.5rem;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--gray-900);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-600);
}

.featured-products {
    padding: 80px 0;
    background: var(--gray-100);
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 48px;
    color: var(--gray-900);
    font-size: 2.5rem;
    font-weight: 800;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    background: #007dbb;
    color: var(--white);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-header .blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: #007dbb;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 10s ease-in-out infinite;
    filter: blur(40px);
    z-index: 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 800;
    position: relative;
    z-index: 10;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 10;
}

/* =====================================================
   CATALOG SIDEBAR LAYOUT
   ===================================================== */
.catalog-section {
    padding: 0;
    background: var(--gray-100);
    min-height: calc(100vh - 72px);
    overflow: visible;
}

.catalog-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
    overflow: visible;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #007dbb;
    color: var(--white);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

.catalog-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-self: flex-start;
    z-index: 100;
}

.sidebar-header {
    background: #007dbb;
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.sidebar-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-subtitle {
    padding: 0 24px 12px;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: var(--gray-100);
    border-left-color: var(--primary);
}

.sidebar-item.active {
    background: var(--primary-light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.item-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.item-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.item-count {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-item.active .item-count {
    background: var(--primary);
    color: var(--white);
}

.brand-item .brand-logo {
    width: 32px;
    height: 32px;
    background: #007dbb;
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.price-filter {
    padding: 0 24px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-inputs input {
    width: 100px;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-apply-price {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.btn-apply-price:hover {
    background: #006699;
}

.stock-filter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.stock-filter-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-filter-label input:checked + .custom-checkbox {
    background: #007dbb;
    border-color: #007dbb;
}

.stock-filter-label input:checked + .custom-checkbox::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
}

.catalog-main {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
}

.catalog-search {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--white);
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-wrapper label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.sort-wrapper select {
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    min-width: 200px;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: var(--radius);
    margin-bottom: 24px;
    flex-wrap: wrap;
    border: 1px solid #FFE082;
}

.filters-label {
    font-weight: 700;
    color: #F57C00;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid #FFB74D;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #E65100;
}

.remove-tag {
    background: none;
    border: none;
    color: #E65100;
    cursor: pointer;
}

.clear-filters {
    background: none;
    border: none;
    color: #E65100;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.products-count {
    margin-bottom: 20px;
    color: var(--gray-600);
}

.products-count span {
    font-weight: 700;
    color: var(--primary);
}

.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0;
}

/* =====================================================
   PRODUCT DETAIL MODAL
   ===================================================== */
.product-detail-layout {
    display: flex;
    gap: 40px;
    padding: 20px 0;
}

.product-detail-left {
    flex: 0 0 45%;
    max-width: 45%;
}

.product-detail-right {
    flex: 1;
}

.product-detail-right h2 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    font-weight: 800;
}

.product-meta {
    margin-bottom: 20px;
}

.product-meta .brand,
.product-meta .category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
}

.product-meta .brand {
    background: var(--gray-100);
    color: var(--gray-700);
}

.product-meta .category {
    background: var(--primary-light);
    color: var(--primary);
    text-transform: uppercase;
}

.product-description {
    margin-bottom: 24px;
}

.product-description p {
    color: var(--gray-600);
    line-height: 1.8;
}

.product-additional-info {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.product-additional-info h3 {
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.product-additional-info ul {
    list-style: none;
}

.product-additional-info li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-300);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.product-additional-info li span:first-child {
    color: var(--gray-600);
    flex-shrink: 0;
    min-width: 100px;
}

.product-additional-info li span:last-child {
    text-align: right;
    word-break: break-word;
}

.product-additional-info li:last-child {
    border-bottom: none;
}

/* Mobile specs table */
@media (max-width: 576px) {
    .product-additional-info li {
        flex-direction: column;
        gap: 4px;
    }
    
    .product-additional-info li span:first-child {
        font-weight: 600;
        color: var(--gray-700);
    }
    
    .product-additional-info li span:last-child {
        text-align: left;
    }
}

.price-large {
    font-size: 2rem;
    color: #007dbb;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-detail-right .stock {
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.product-detail-right .stock.in-stock {
    color: var(--success);
}

.product-detail-right .stock.out-of-stock {
    color: var(--danger);
}

.product-gallery {
    width: 100%;
}

.main-media-container {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    background: var(--white);
    overflow: hidden;
    margin-bottom: 16px;
}

.main-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
}

.thumbnail {
    min-width: 72px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-300);
    cursor: pointer;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

.video-thumbnail {
    min-width: 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-300);
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--danger);
}

/* =====================================================
   BUNDLE SECTION
   ===================================================== */
.bundle-section {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    border: 2px solid var(--gray-200);
}

.bundle-section h3 {
    color: var(--gray-900);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.bundle-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.bundle-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
}

.bundle-item:hover {
    border-color: var(--primary);
}

.bundle-item.main-product {
    border-color: #007dbb;
    background: #ffffff;
}

.bundle-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.bundle-item-info {
    flex: 1;
}

.bundle-item-info h4 {
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-weight: 600;
}

.bundle-price {
    color: #007dbb;
    font-weight: 700;
}

.bundle-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.bundle-checkbox input {
    display: none;
}

.bundle-checkbox .checkmark {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-checkbox input:checked ~ .checkmark {
    background: #007dbb;
    border-color: #007dbb;
}

.bundle-checkbox .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.bundle-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.bundle-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 2px solid #007dbb;
}

.bundle-total-label {
    font-weight: 600;
    color: var(--gray-700);
}

.bundle-total-price {
    font-size: 1.4rem;
    color: #007dbb;
    font-weight: 800;
}

.btn-add-bundle,
.btn-add-cart-large {
    width: 100%;
    background: #00A86B;
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-bundle:hover,
.btn-add-cart-large:hover {
    background: #008555;
    transform: translateY(-2px);
}

/* =====================================================
   MODAL
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 40px auto;
    padding: 32px;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 560px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--gray-500);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--gray-900);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

/* =====================================================
   CART
   ===================================================== */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
}

.cart-item-info h4 {
    color: var(--gray-900);
    margin-bottom: 4px;
    font-weight: 600;
}

.cart-item-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.quantity-btn {
    background: var(--white);
    color: var(--gray-700);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-remove {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.cart-total {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
    text-align: right;
}

.cart-total h3 {
    color: #007dbb;
    font-size: 1.6rem;
    font-weight: 800;
}

/* =====================================================
   FOOTER
   ===================================================== */

/* Stats Section */
.stats-section {
    padding: 80px 24px;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat {
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

footer {
    background: #007dbb;
    color: var(--white);
    text-align: center;
    padding: 40px 24px;
    margin-top: 0;
}

/* =====================================================
   ABOUT & CONTACT
   ===================================================== */
.about-content {
    padding: 60px 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 40px;
}

.about-text h2 {
    color: var(--primary);
    margin: 32px 0 16px;
    font-size: 1.6rem;
    font-weight: 700;
}

.about-text p {
    color: var(--gray-600);
    line-height: 1.8;
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--gray-700);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007dbb;
    font-weight: bold;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--white);
    padding: 40px 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-card p {
    color: var(--gray-600);
}

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-container h2,
.contact-info h2 {
    color: var(--primary);
    margin-bottom: 32px;
    font-weight: 700;
}

.contact-info .info-item {
    margin-bottom: 28px;
}

.contact-info .info-item h3 {
    color: var(--gray-900);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info .info-item p {
    color: var(--gray-600);
}

/* =====================================================
   ADMIN
   ===================================================== */
.admin-section {
    padding: 40px 0;
    background: var(--gray-100);
    min-height: calc(100vh - 200px);
}

.admin-section h1 {
    color: var(--primary);
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 800;
}

.admin-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.admin-card h2 {
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 700;
}

.admin-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.admin-product-info h4 {
    color: var(--gray-900);
    margin-bottom: 4px;
}

.admin-product-actions {
    display: flex;
    gap: 8px;
}

.btn-edit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.btn-delete {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.category-item,
.brand-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.order-item {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.order-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: flex;
    }

    .catalog-container {
        flex-direction: column;
    }

    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .catalog-sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
    }

    .product-detail-layout {
        flex-direction: column;
    }

    .product-detail-left {
        flex: none;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .catalog-search {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10px;
        margin-bottom: 80px; /* Space for bottom nav */
        padding: 20px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 100px);
        border-radius: var(--radius-lg);
    }

    .modal {
        z-index: 20000; /* Above bottom nav */
        padding-bottom: 70px;
    }

    /* Cart item mobile layout */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cart-total h3 {
        font-size: 1.3rem;
    }

    /* Checkout form mobile */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}


/* =====================================================
   PRODUCT DETAIL - WIKIPEDIA-STYLE FLOAT LAYOUT
   ===================================================== */

/* Main wrapper must be block and create formatting context */
.product-detail-wrapper {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* The floating image container */
.product-image-float {
    float: left !important;
    width: 300px !important;
    margin-right: 25px !important;
    margin-bottom: 15px !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 15px !important;
    background: #fafafa !important;
    box-sizing: border-box !important;
}

/* CRITICAL FIX: Remove the 400px height and border from main-media-container */
.product-image-float .main-media-container {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border: none !important;
    margin-bottom: 10px !important;
    background: transparent !important;
}

.product-image-float .main-media-container img {
    max-width: 100% !important;
    max-height: 250px !important;
    width: auto !important;
    height: auto !important;
}

/* Thumbnails - keep all in one row, scroll if needed */
.product-image-float .thumbnail-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 0 !important;
}

.product-image-float .thumbnail {
    min-width: 60px !important;
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
}

.product-image-float .video-thumbnail {
    min-width: 60px !important;
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
    background: #f0f0f0 !important;
    border: 2px solid #eee !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* Description - MUST NOT have overflow:hidden to allow text wrap */
.product-detail-wrapper .product-description {
    display: block !important;
    overflow: visible !important;
}

.product-detail-wrapper .product-description p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Footer clears the float */
.product-detail-wrapper .product-footer {
    clear: both !important;
}

/* Mobile - stack vertically */
@media (max-width: 600px) {
    .product-image-float {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* Mobile characteristics fix */
@media (max-width: 768px) {
    .product-additional-info li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .product-additional-info li span:first-child {
        font-weight: 600 !important;
        color: #555 !important;
    }
    
    .product-additional-info li span:last-child {
        text-align: left !important;
        width: 100% !important;
    }
}