
        :root {
            --primary: #d80404d2;
            --primary-light: #501818;
            --secondary: #d80404d2;
            --dark: #1a1a2e;
            --light: #f8f9fa;
            --gray: #adb5bd;
            --success: #4cc9f0;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            color: var(--dark);
            background: linear-gradient(-45deg, #30020c, #0c3258, #dee2e6, #330206);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            min-height: 100vh;
        }


        html, body {
            width: 100%;
            overflow-x: hidden; /* Mencegah scroll horizontal */
            position: relative;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }


    .back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-3px);
}

@media (min-width: 769px) {
    .back-button {
        left: calc(280px + 2rem);
    }
}
        
        /* Floating Bubbles */
        .bubbles {
            position: fixed;
            width: 100vw;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
            overflow: hidden;
        }

        .bubbles li {
            position: absolute;
            list-style: none;
            display: block;
            width: 20px;
            height: 20px;
            background: rgba(67, 97, 238, 0.1);
            bottom: -160px;
            animation: bubble 25s infinite;
            border-radius: 50%;
        }

        @keyframes bubble {
            0% { transform: translateY(0) rotate(0deg); opacity: 1; }
            100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
        }

        .container23 {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 2rem;
        }

        .sidebar {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(255, 255, 255, 0.3);
            height: fit-content;
            position: sticky;
            top: 2rem;
        }

        .sidebar h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--secondary);
            position: relative;
            padding-bottom: 0.75rem;
        }

        .sidebar h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
            border-radius: 3px;
        }

        .sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar ul li {
            margin-bottom: 0.5rem;
        }

        .toggle-category {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background: rgba(248, 249, 250, 0.7);
            border-radius: 8px;
            color: var(--dark);
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);
            margin-bottom: 0.5rem;
            border: 1px solid rgba(222, 226, 230, 0.5);
        }

        .toggle-category:hover {
            background: rgba(233, 236, 239, 0.7);
            transform: translateX(5px);
        }

        .toggle-category.active {
            background: var(--primary);
            color: white;
        }

      .toggle-category::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23000' d='M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.toggle-category.active::after {
    transform: rotate(180deg);
}


.list-category {
    padding-left: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    overflow-y: auto; 
    scrollbar-width: thin;
}

.list-category.show {
    max-height: 600px;
    transition: max-height 0.6s ease-in;
}

.list-category::-webkit-scrollbar {
    width: 6px;
}
.list-category::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
        .list-category li {
            margin-bottom: 0.25rem;
        }

        .list-category a {
            display: block;
            padding: 0.6rem 1rem;
            color: var(--dark);
            text-decoration: none;
            border-radius: 6px;
            transition: var(--transition);
            font-size: 0.9rem;
            background: rgba(248, 249, 250, 0.5);
            margin: 0.15rem 0;
        }

        .list-category a:hover, 
        .list-category a.active {
            background: var(--primary-light);
            color: white;
            padding-left: 1.25rem;
        }

        /* Product Section - Modern Card Layout */
        .product-section {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 2rem;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        #selected-category {
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--dark);
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid rgba(206, 212, 218, 0.5);
        }



        /* Search and Filter Bar */
        .sorting {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
            background: rgba(248, 249, 250, 0.7);
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid rgba(222, 226, 230, 0.5);
        }

        .search-container {
            position: relative;
            flex-grow: 1;
            min-width: 250px;
        }

        #product-search {
            width: 80%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid rgba(206, 212, 218, 0.7);
            border-radius: 8px;
            font-size: 0.95rem;
            transition: var(--transition);
            background: rgba(255, 255, 255, 0.9);
        }

        #product-search:focus {
            outline: none;
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }

        .search-container .fa-search {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }

        .sorting select {
            padding: 0.75rem 2.5rem 0.75rem 1rem;
            border: 1px solid rgba(206, 212, 218, 0.7);
            border-radius: 8px;
            font-size: 0.95rem;
            background: rgba(255, 255, 255, 0.9);
            cursor: pointer;
            transition: var(--transition);
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 1rem;
        }

        .sorting select:focus {
            outline: none;
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }


        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .product-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            border: 1px solid rgba(222, 226, 230, 0.5);
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .product-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--primary-light));
        }

        .product-image {
            width: 90%;
            height: 200px;
            object-fit: contain;
            background: rgba(248, 249, 250, 0.7);
            padding: 1.5rem;
            transition: var(--transition);
        }

        .product-card:hover .product-image {
            transform: scale(1.05);
        }


        /* ......... */
        .product-card {
    display: none; /* Default hidden */
}

.product-card[style*="display: block"] {
    display: block !important;
}

.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}
/* .... */

        .details {
            padding: 1.25rem;
        }

        .details h4 {
            font-size: 1rem;
            margin: 0 0 1rem 0;
            color: var(--dark);
            font-weight: 600;
            line-height: 1.4;
        }

        .view-details {
            width: 100%;
            padding: 0.75rem;
            background: linear-gradient(to right, var(--primary), var(--primary-light));
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .view-details:hover {
            background: linear-gradient(to right, var(--secondary), var(--primary));
            transform: translateY(-2px);
        }

        .view-details::before {
            content: '\f06e';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }

        .pagination a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            border: 1px solid rgba(206, 212, 218, 0.7);
            background: rgba(255, 255, 255, 0.9);
        }

        .pagination a:hover {
            background: rgba(233, 236, 239, 0.7);
        }

        .pagination a.active {
            background: linear-gradient(to right, var(--primary), var(--primary-light));
            color: white;
            border-color: transparent;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            overflow-y: auto;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.95);
            margin: 5% auto;
            padding: 2rem;
            border-radius: 16px;
            width: 80%;
            max-width: 700px;
            box-shadow: var(--shadow-lg);
            animation: modalFadeIn 0.3s ease-out;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .close {
            float: right;
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--gray);
            cursor: pointer;
            transition: var(--transition);
            background: none;
            border: none;
        }

        .close:hover {
            color: var(--secondary);
            transform: rotate(90deg);
        }

        #modalTitle {
            font-size: 1.5rem;
            color: var(--secondary);
            margin-bottom: 1rem;
            text-align: center;
            font-weight: 600;
        }

        #modalDescription {
            color: var(--dark);
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        #modalSpecifications {
            list-style-type: none;
            padding: 0;
            margin: 0 auto;
            max-width: 80%;
        }

        #modalSpecifications li {
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(206, 212, 218, 0.5);
            display: flex;
            align-items: center;
        }

        #modalSpecifications li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--success);
            display: inline-block;
            width: 1.5em;
            margin-left: -1.5em;
            font-size: 0.9rem;
        }

        /* Popup Styles */
        .popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1001;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            backdrop-filter: blur(5px);
        }

        .popup.show {
            opacity: 1;
            visibility: visible;
        }

        .popup-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            animation: popupFadeIn 0.3s ease-out;
        }

        @keyframes popupFadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .popup-image {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            border: 5px solid white;
        }

        .close-popup {
            position: absolute;
            top: -50px;
            right: 0;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            transition: var(--transition);
            background: none;
            border: none;
        }

        .close-popup:hover {
            color: var(--success);
            transform: rotate(90deg);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .container23 {
                grid-template-columns: 240px 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .container23 {
                grid-template-columns: 1fr;
                padding: 1.5rem;
            }
            
            .sidebar {
                position: static;
                margin-bottom: 1.5rem;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            }
            
            .modal-content {
                width: 90%;
                padding: 1.5rem;
            }
        }

      @media (max-width: 480px) {
    .container23 {
        padding: 0.5rem;
    }
    
    .sidebar {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .toggle-category {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .list-category a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .product-section {
        padding: 1rem;
    }
    
    .sorting {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .search-container,
    .sorting select {
        width: 100%;
        margin-bottom: 0;
    }
    
    #product-search {
        padding: 0.6rem 0.8rem 0.6rem 2.2rem;
        font-size: 0.9rem;
    }
    
    .search-container .fa-search {
        left: 0.8rem;
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image {
        height: 120px;
        padding: 1rem;
    }
    
    .details {
        padding: 0.8rem;
    }
    
    .details h4 {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .view-details {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .pagination {
        margin-top: 1.5rem;
        gap: 0.3rem;
    }
    
    .pagination a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

      #show-count {
        display: none !important;
    }
    
    /* Opsional: Sesuaikan style teks "Show:" jika perlu */
    #show-count + label {
        display: none;
    }
    
    /* Jika dropdown berada dalam span seperti contoh Anda */
    span > #show-count,
    span > label[for="show-count"] {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
        margin: 10% auto;
    }
    
    #modalTitle {
        font-size: 1.2rem;
    }
    
    #modalDescription {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    #modalSpecifications {
        max-width: 100%;
        font-size: 0.85rem;
    }
    
    #modalSpecifications li {
        padding: 0.5rem 0;
    }
    
    /* Adjust bubbles for mobile */
    .bubbles li:nth-child(1),
    .bubbles li:nth-child(4),
    .bubbles li:nth-child(6),
    .bubbles li:nth-child(7),
    .bubbles li:nth-child(10) {
        width: 40px;
        height: 40px;
    }
}


@media (max-width: 768px) {
    #show-count {
        display: block !important; /* Change to block or flex as needed */
    }
    
    /* Optional: Adjust label visibility */
    #show-count + label {
        display: inline; /* Show label if needed */
    }
}

/* For very small screens (under 360px) */
@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 150px;
    }
    
    .container23 {
        padding: 0.5rem 0.25rem;
    }
    
    .sidebar,
    .product-section {
        padding: 0.75rem;
    }
}

        /* Floating Bubbles Positioning */
        .bubbles li:nth-child(1) {
            left: 05%;
            width: 80px;
            height: 80px;
            animation-delay: 0s;
        }

        .bubbles li:nth-child(2) {
            left: 10%;
            width: 20px;
            height: 20px;
            animation-delay: 2s;
            animation-duration: 12s;
        }

        .bubbles li:nth-child(3) {
            left: 70%;
            width: 20px;
            height: 20px;
            animation-delay: 4s;
        }

        .bubbles li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            animation-delay: 0s;
            animation-duration: 18s;
        }

        .bubbles li:nth-child(5) {
            left: 65%;
            width: 20px;
            height: 20px;
            animation-delay: 0s;
        }

        .bubbles li:nth-child(6) {
            left: 75%;
            width: 110px;
            height: 110px;
            animation-delay: 3s;
        }

        .bubbles li:nth-child(7) {
            left: 35%;
            width: 150px;
            height: 150px;
            animation-delay: 7s;
        }

        .bubbles li:nth-child(8) {
            left: 50%;
            width: 25px;
            height: 25px;
            animation-delay: 15s;
            animation-duration: 45s;
        }

        .bubbles li:nth-child(9) {
            left: 20%;
            width: 15px;
            height: 15px;
            animation-delay: 2s;
            animation-duration: 35s;
        }

        .bubbles li:nth-child(10) {
            left: 85%;
            width: 150px;
            height: 150px;
            animation-delay: 0s;
            animation-duration: 11s;
        }