﻿
        /* =========================================================
           RESET & VARIABLES
           ========================================================= */
        :root {
            --bg-primary: #0a0a1a;
            --bg-secondary: #12122a;
            --bg-card: #1a1a3e;
            --bg-card-hover: #222255;
            --text-primary: #e2e8f0;
            --text-secondary: #a0aec0;
            --text-muted: #718096;
            --border: #2d2d5e;
            --cyan: #00d2d3;
            --purple: #667eea;
            --green: #48bb78;
            --red: #e94560;
            --orange: #ed8936;
            --yellow: #f9ca24;
            --blue: #4299e1;
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            --radius: 16px;
            --transition: 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* =========================================================
           SCROLLBAR
           ========================================================= */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--purple);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--cyan);
        }

        /* =========================================================
           HEADER - FIXED TOP
           ========================================================= */
        .header {
            background: var(--bg-secondary);
            padding: 15px 20px 12px;
            text-align: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .header h1 {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--cyan);
        }

        .header h1 i {
            color: var(--cyan);
        }

        .header p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .badge-count {
            display: inline-block;
            background: rgba(0, 210, 211, 0.15);
            padding: 2px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            color: var(--cyan);
            border: 1px solid rgba(0, 210, 211, 0.2);
            margin-top: 4px;
        }

        .badge-count i {
            margin-right: 4px;
        }

        .header .info {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .header .info span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .header .info span i {
            color: var(--cyan);
        }

        /* =========================================================
           MAIN CONTENT
           ========================================================= */
        .main-content {
            flex: 1;
            padding-top: 140px;
            display: flex;
            flex-direction: column;
        }

        /* =========================================================
           CONTAINER
           ========================================================= */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px 20px;
            width: 100%;
            flex: 1;
        }

        /* =========================================================
           SEARCH SECTION
           ========================================================= */
        .search-section {
            max-width: 1200px;
            margin: 0 auto 16px;
            padding: 0 20px;
            width: 100%;
        }

        .search-box {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 16px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .search-form {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .search-form input[type="text"],
        .search-form select {
            padding: 10px 14px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            transition: border-color 0.3s;
            flex: 1;
            min-width: 120px;
        }

        .search-form input[type="text"]::placeholder {
            color: var(--text-muted);
        }

        .search-form input[type="text"]:focus,
        .search-form select:focus {
            outline: none;
            border-color: var(--purple);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
        }

        .search-form select option {
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        .btn-search {
            padding: 10px 24px;
            background: var(--purple);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn-search:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
        }

        .btn-reset {
            padding: 10px 18px;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all var(--transition);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .btn-reset:hover {
            background: rgba(233, 69, 96, 0.1);
            border-color: var(--red);
            color: var(--red);
        }

        .search-result-info {
            margin-top: 10px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .search-result-info strong {
            color: var(--cyan);
        }

        /* =========================================================
           KATEGORI SECTION
           ========================================================= */
        .kategori-section {
            margin-top: 20px;
        }

        .kategori-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            padding: 10px 16px;
            background: var(--bg-card);
            border-radius: var(--radius);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-left: 4px solid var(--cyan);
            border: 1px solid var(--border);
        }

        .kategori-title .icon {
            font-size: 1.3rem;
        }

        .kategori-title .count {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: normal;
            margin-left: auto;
        }

        /* =========================================================
           PRODUCT GRID - RESPONSIVE 3 KOLOM
           ========================================================= */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }

        .product-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 16px;
            text-align: center;
            transition: all var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .product-item:hover {
            transform: translateY(-4px);
            border-color: var(--purple);
            box-shadow: var(--shadow);
        }

        .product-image {
            width: 120px;
            height: 120px;
            margin: 0 auto 10px;
            border-radius: var(--radius);
            overflow: hidden;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            flex-shrink: 0;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-image .no-image {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: var(--text-muted);
        }

        .product-image .no-image span {
            font-size: 0.6rem;
            margin-top: 4px;
        }

        .product-name {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
            font-size: 0.9rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 40px;
            line-height: 1.2;
        }

        .product-name a {
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.3s;
        }

        .product-name a:hover {
            color: var(--cyan);
        }

        .product-sku {
            font-size: 0.65rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .product-kategori-badge {
            display: inline-block;
            background: rgba(102, 126, 234, 0.15);
            padding: 2px 10px;
            border-radius: 10px;
            font-size: 0.6rem;
            color: var(--purple);
            margin-bottom: 6px;
            align-self: center;
            border: 1px solid rgba(102, 126, 234, 0.15);
        }

        .product-price {
            color: var(--cyan);
            font-weight: 700;
            font-size: 1.1rem;
            margin: 6px 0;
        }

        .product-stock {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .product-stock.habis { 
            color: var(--red); 
        }

        .product-stock.sedikit { 
            color: var(--orange); 
        }

        .product-stock.tersedia {
            color: var(--green);
        }

        .badge-stok {
            display: inline-block;
            padding: 1px 8px;
            border-radius: 10px;
            font-size: 9px;
            font-weight: 600;
        }

        .badge-stok.tersedia {
            background: rgba(72, 187, 120, 0.15);
            color: var(--green);
            border: 1px solid rgba(72, 187, 120, 0.2);
        }

        .badge-stok.habis {
            background: rgba(233, 69, 96, 0.15);
            color: var(--red);
            border: 1px solid rgba(233, 69, 96, 0.2);
        }

        .badge-stok.sedikit {
            background: rgba(237, 137, 54, 0.15);
            color: var(--orange);
            border: 1px solid rgba(237, 137, 54, 0.2);
        }

        .btn-beli {
            width: 100%;
            padding: 10px;
            background: var(--purple);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition);
            margin-top: auto;
            text-decoration: none;
            text-align: center;
            display: block;
            flex-shrink: 0;
        }

        .btn-beli:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
        }

        .btn-beli:disabled {
            background: var(--bg-secondary);
            color: var(--text-muted);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* =========================================================
           EMPTY STATE
           ========================================================= */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            margin-top: 20px;
        }

        .empty-state .icon {
            font-size: 3rem;
            margin-bottom: 12px;
            color: var(--text-muted);
        }

        .empty-state h3 {
            font-size: 20px;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .empty-state p {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .empty-state .btn-reset {
            display: inline-block;
            margin-top: 10px;
        }

        /* =========================================================
           FOOTER
           ========================================================= */
        .footer {
            background: var(--bg-secondary);
            color: var(--text-secondary);
            text-align: center;
            padding: 20px;
            margin-top: 20px;
            flex-shrink: 0;
            border-top: 1px solid var(--border);
        }

        .footer p {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .footer .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .footer .footer-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.3s;
        }

        .footer .footer-links a:hover {
            color: var(--cyan);
        }

        .footer .footer-links a i {
            margin-right: 4px;
        }

        /* =========================================================
           FLOATING CART
           ========================================================= */
        .floating-cart {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: linear-gradient(135deg, var(--cyan), var(--purple));
            color: white;
            padding: 14px 22px;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(0, 210, 211, 0.4);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 999;
            transition: all var(--transition);
            font-weight: 600;
            font-size: 14px;
        }

        .floating-cart:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 30px rgba(0, 210, 211, 0.5);
        }

        .cart-badge {
            background: var(--red);
            color: white;
            border-radius: 50%;
            padding: 2px 8px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        /* =========================================================
           RESPONSIVE - 3 KOLOM DI MOBILE
           ========================================================= */
        @media (max-width: 992px) {
            .product-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 14px;
            }
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 1.2rem;
            }
            .header .info {
                font-size: 0.7rem;
                gap: 10px;
            }
            .search-form {
                flex-direction: column;
            }
            .search-form input[type="text"],
            .search-form select {
                width: 100%;
            }
            .btn-search,
            .btn-reset {
                width: 100%;
                justify-content: center;
            }
            .product-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }
            .product-image {
                width: 100px;
                height: 100px;
            }
            .product-name {
                font-size: 0.8rem;
                min-height: 32px;
            }
            .product-price {
                font-size: 0.95rem;
            }
            .btn-beli {
                font-size: 11px;
                padding: 8px;
            }
            .main-content {
                padding-top: 110px;
            }
        }

        @media (max-width: 576px) {
            .header {
                padding: 12px 14px 10px;
            }
            .header h1 {
                font-size: 1rem;
            }
            .header p {
                font-size: 0.7rem;
            }
            .header .info {
                font-size: 0.6rem;
                gap: 6px;
            }
            .search-box {
                padding: 12px;
            }
            .search-form input[type="text"],
            .search-form select {
                font-size: 13px;
                padding: 8px 12px;
            }
            .btn-search,
            .btn-reset {
                font-size: 13px;
                padding: 8px 16px;
            }
            .container {
                padding: 0 12px 12px;
            }
            .product-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            .product-image {
                width: 100%;
                height: 100px;
                max-width: 120px;
            }
            .product-name {
                font-size: 0.7rem;
                min-height: 28px;
                -webkit-line-clamp: 2;
            }
            .product-sku {
                font-size: 0.55rem;
            }
            .product-kategori-badge {
                font-size: 0.5rem;
                padding: 1px 6px;
            }
            .product-price {
                font-size: 0.85rem;
                margin: 4px 0;
            }
            .product-stock {
                font-size: 0.65rem;
            }
            .badge-stok {
                font-size: 7px;
                padding: 0px 5px;
            }
            .btn-beli {
                font-size: 10px;
                padding: 6px;
                border-radius: 6px;
            }
            .search-result-info {
                font-size: 11px;
            }
            .kategori-title {
                font-size: 0.95rem;
                padding: 8px 12px;
            }
            .kategori-title .icon {
                font-size: 1.1rem;
            }
            .main-content {
                padding-top: 120px;
            }
            .floating-cart {
                padding: 10px 16px;
                font-size: 12px;
                bottom: 16px;
                right: 16px;
            }
            .floating-cart i {
                font-size: 1.1rem !important;
            }
        }

        @media (max-width: 400px) {
            .product-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }
            .product-image {
                height: 80px;
            }
            .product-name {
                font-size: 0.6rem;
                min-height: 22px;
                -webkit-line-clamp: 1;
            }
            .product-price {
                font-size: 0.75rem;
            }
            .btn-beli {
                font-size: 9px;
                padding: 5px;
            }
            .product-item {
                padding: 10px;
            }
            .main-content {
                padding-top: 85px;
            }
        }

        @media (max-width: 350px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }
            .product-image {
                height: 70px;
            }
            .product-name {
                font-size: 0.55rem;
                min-height: 18px;
            }
            .product-price {
                font-size: 0.7rem;
            }
            .btn-beli {
                font-size: 8px;
                padding: 4px;
            }
        }

        /* =========================================================
           PRINT
           ========================================================= */
        @media print {
            .header,
            .search-section,
            .floating-cart,
            .footer {
                display: none !important;
            }
            .main-content {
                padding-top: 0 !important;
            }
            .product-item {
                break-inside: avoid;
                border: 1px solid #ccc !important;
            }
        }
  