
        :root {
            --primary: #0f172a;
            --primary-hover: #1e293b;
            --accent: #2563eb;
            --accent-hover: #1d4ed8;
            --bg-body: #f1f5f9;
            --bg-card: #ffffff;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --radius: 12px;
            --sidebar-w: 260px;
        }
        
        /* Modern CSS Reset & FIX for horizontal scroll */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        
        html, body { 
            overflow-x: hidden; 
            max-width: 100vw; 
            width: 100%;
        }
        
        body { 
            font-family: 'Inter', system-ui, -apple-system, sans-serif; 
            background: var(--bg-body); 
            color: var(--text-main); 
            line-height: 1.6; 
            display: flex; 
            flex-direction: column; 
            min-height: 100vh; 
        }
        
        a { text-decoration: none; color: inherit; transition: color 0.2s; }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; }
        
        .container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }

        /* ================= HEADER ================= */
        header { background: #ffffff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.05); width: 100%; }
        .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; flex-wrap: wrap; }
        
        .nav-left { display: flex; align-items: center; gap: 15px; max-width: 100%; }
        .menu-btn { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: var(--text-main); line-height: 1; }
        .logo { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; white-space: nowrap; }
        .logo span { color: var(--accent); }

        .search-form { flex: 1; max-width: 600px; display: flex; margin: 0 20px; }
        .search-form input { flex: 1; padding: 12px 20px; border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); outline: none; font-size: 15px; background: var(--bg-body); transition: background 0.2s; width: 100%; }
        .search-form input:focus { background: #fff; border-color: var(--accent); }
        .search-form button { padding: 12px 25px; background: var(--accent); color: white; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 600; font-size: 15px; transition: background 0.2s; }
        .search-form button:hover { background: var(--accent-hover); }

        .nav-right { display: flex; align-items: center; gap: 25px; font-weight: 500; }
        .cart-btn { position: relative; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
        .cart-btn:hover { color: var(--accent); }
        .cart-badge { position: absolute; top: -10px; right: -15px; background: #ef4444; color: white; font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: bold; line-height: 1; }

        /* ================= LAYOUT ================= */
        .main-layout { display: flex; gap: 30px; margin-top: 30px; margin-bottom: 60px; align-items: flex-start; width: 100%; }
        .content-area { flex: 1; min-width: 0; width: 100%; }

        /* ================= SIDEBAR (DESKTOP & MOBILE) ================= */
        .sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 100px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 25px 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
        .sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .sidebar-title { font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; }
        .close-sidebar { display: none; font-size: 28px; background: none; border: none; cursor: pointer; color: var(--text-main); line-height: 1; padding: 0; }
        
        .cat-nav li { margin-bottom: 4px; }
        .cat-nav a { display: block; padding: 10px 15px; border-radius: 8px; font-size: 15px; color: var(--text-main); font-weight: 500; transition: all 0.2s; }
        .cat-nav a:hover, .cat-nav a.active { background: var(--bg-body); color: var(--accent); }
        
        .mobile-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.6); z-index: 999; backdrop-filter: blur(2px); }

        @media (max-width: 992px) {
            .container { padding: 0 15px; }
            .main-layout { flex-direction: column; margin-top: 20px; }
            .header-inner { justify-content: space-between; }
            .menu-btn { display: block; }
            .logo { font-size: 20px; }
            .search-form { order: 3; flex: 0 0 100%; max-width: 100%; margin: 10px 0 0 0; }
            .nav-right { gap: 15px; font-size: 14px; }
            
            /* Offcanvas Sidebar */
            .sidebar { position: fixed; top: 0; left: -320px; height: 100vh; width: 300px; margin: 0; border-radius: 0; border: none; border-right: 1px solid var(--border); z-index: 1000; overflow-y: auto; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 30px 20px; }
            .sidebar.open { left: 0; box-shadow: 10px 0 25px rgba(0,0,0,0.1); }
            .close-sidebar { display: block; }
            .mobile-overlay.open { display: block; }
        }

        /* ================= HOMEPAGE COMPONENTS ================= */
        .hero { background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%); color: white; padding: 60px 40px; border-radius: var(--radius); text-align: center; margin-bottom: 50px; box-shadow: 0 10px 30px rgba(15,23,42,0.15); }
        .hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
        .hero p { font-size: 18px; color: #94a3b8; max-width: 600px; margin: 0 auto; }

        .section-title { font-size: 24px; font-weight: 800; margin-bottom: 25px; border-bottom: 2px solid var(--border); padding-bottom: 10px; display: inline-block; }

        /* Category Grid */
        .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-bottom: 60px; }
        .cat-card-home { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 25px 15px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .cat-card-home:hover { border-color: var(--accent); box-shadow: 0 10px 20px rgba(37,99,235,0.08); transform: translateY(-4px); }
        .cat-icon-wrap { width: 90px; height: 90px; background: var(--bg-body); border-radius: 50%; overflow: hidden; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; padding: 15px; }
        .cat-icon-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
        .cat-card-home h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: var(--text-main); }
        .cat-card-home p { font-size: 13px; color: var(--text-muted); font-weight: 500; }

        /* ================= PRODUCT GRID ================= */
        .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
        .item-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
        .item-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: #cbd5e1; }
        
        .item-img-box { width: 100%; aspect-ratio: 1; padding: 20px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--bg-body); }
        .item-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
        
        .item-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
        .item-title { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 42px; color: var(--text-main); }
        .item-title:hover { color: var(--accent); }
        
        .item-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; margin-bottom: 15px; }
        .price-current { font-size: 20px; font-weight: 800; color: var(--primary); }
        .price-old { font-size: 14px; text-decoration: line-through; color: #94a3b8; font-weight: 500; }
        
        .btn { display: block; width: 100%; padding: 12px; background: var(--bg-body); color: var(--primary); border: 1px solid var(--border); border-radius: 8px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.2s; font-size: 14px; }
        .btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
        .btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
        .btn-primary:hover { background: var(--accent-hover); }

        /* ================= PRODUCT SINGLE PAGE ================= */
        .product-wrap { display: flex; gap: 50px; background: var(--bg-card); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.02); width: 100%; }
        
        .product-gallery { width: 45%; position: sticky; top: 110px; align-self: flex-start; z-index: 10; max-width: 100%; }
        
        .img-main { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-bottom: 15px; background: #fff; }
        .img-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
        
        .thumb-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 5px; width: 100%; max-width: 100%; }
        .thumb-item { width: 70px; height: 70px; border: 2px solid var(--border); border-radius: 8px; padding: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #fff; flex-shrink: 0; }
        .thumb-item.active, .thumb-item:hover { border-color: var(--accent); }
        .thumb-item img { max-width: 100%; max-height: 100%; object-fit: contain; }

        .product-details { width: 55%; min-width: 0; }
        .breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; font-weight: 500; word-wrap: break-word; overflow-wrap: break-word; }
        .breadcrumbs a:hover { color: var(--accent); }
        
        .product-details h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; word-wrap: break-word; overflow-wrap: break-word; }
        
        .meta-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
        .meta-tag { background: var(--bg-body); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); word-break: break-all; }
        .meta-tag strong { color: var(--primary); }
        .status-badge { background: #dcfce7; color: #166534; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; }
        .status-badge.out { background: #fee2e2; color: #991b1b; }

        .price-huge { font-size: 42px; font-weight: 800; color: var(--primary); margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
        .price-huge .old { font-size: 22px; color: #94a3b8; text-decoration: line-through; font-weight: 600; }

        .add-cart-huge { width: 100%; padding: 18px; font-size: 18px; border-radius: 50px; background: var(--accent); color: white; border: none; font-weight: 800; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(37,99,235,0.3); margin-bottom: 40px; }
        .add-cart-huge:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }

        /* HARD FIX FOR TABLE OVERFLOW AND HORIZONTAL SCROLL */
        .specs-table { table-layout: fixed; width: 100%; border-collapse: collapse; margin-bottom: 40px; font-size: 14px; word-wrap: break-word; }
        .specs-table td { padding: 12px; border-bottom: 1px solid var(--border); word-break: break-all; overflow-wrap: break-word; }
        .specs-table tr td:first-child { width: 35%; color: var(--text-muted); font-weight: 600; background: var(--bg-body); border-radius: 8px 0 0 8px; }
        .specs-table tr td:last-child { font-weight: 500; border-radius: 0 8px 8px 0; }

        .prose { margin-top: 20px; line-height: 1.8; color: #334155; font-size: 16px; word-wrap: break-word; overflow-wrap: break-word; width: 100%; }
        .prose * { max-width: 100% !important; word-wrap: break-word; overflow-wrap: break-word; }
        .prose table { display: block; overflow-x: auto; white-space: normal; width: 100%; border-collapse: collapse; }
        .prose table td { word-break: break-all; }
        .prose img, .prose iframe, .prose video { max-width: 100% !important; height: auto !important; border-radius: var(--radius); margin: 20px 0; }
        .prose h2, .prose h3 { color: var(--primary); margin: 30px 0 15px; font-weight: 700; }
        .prose p { margin-bottom: 15px; }
        .prose ul { margin-left: 20px; margin-bottom: 15px; list-style-type: disc; }

        @media (max-width: 992px) {
            .product-wrap { flex-direction: column; padding: 15px; gap: 20px; border: none; background: transparent; box-shadow: none; }
            .product-gallery { width: 100%; position: relative !important; top: 0 !important; z-index: 1; }
            .product-details { width: 100%; }
            .price-huge { font-size: 36px; }
        }

        /* ================= PAGINATION ================= */
        .pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
        .page-link { padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; font-weight: 600; color: var(--text-main); transition: all 0.2s; }
        .page-link:hover { background: var(--bg-body); border-color: #cbd5e1; }
        .page-link.active { background: var(--primary); color: white; border-color: var(--primary); pointer-events: none; }

        /* ================= FOOTER ================= */
        footer { background: var(--primary); color: white; padding: 80px 0 30px; margin-top: auto; width: 100%; }
        footer h3 { font-size: 18px; font-weight: 700; margin-bottom: 25px; color: white; }
        footer p, footer a { color: #94a3b8; font-size: 14px; text-decoration: none; transition: color 0.2s; }
        footer a:hover { color: white; }
        .footer-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 50px; margin-bottom: 50px; }
        @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }
        .footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #1e293b; color: #64748b; font-size: 14px; }

        /* Toast Notification */
        #toast { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: #10b981; color: white; padding: 15px 30px; border-radius: 30px; font-weight: 700; transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999; box-shadow: 0 10px 25px rgba(16,185,129,0.3); }
        #toast.show { bottom: 40px; }
    