/* --- Gaya Bagian Deskripsi Produk --- */
.product-description-card {
    background-color: white;
    border-radius: 0.5rem;
    display: grid;
    position: relative;
    width: 100%;
    padding: 5;
    grid-template-areas:
        "heading"
        "content";
    justify-content: center;
    align-items: center;
    text-align: left;
    height: fit-content;
}

.product-description-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-section{
    width: 100%;
    display: flex;
    justify-content: center;
}

.product-container{
    width: 100%;
    padding-top: 8rem;
    padding-inline: 8rem;
}

@media (width > 786px) {
    .product-description-card {
        padding-top: 10rem;
    }
    .product-description-container {
        flex-direction: row;
    }
}

.product-description-text {
    width: 100%;
}
@media (min-width: 768px) {
    .product-description-text {
        width: 50%;
    }
}

.product-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-paragraph {
    color: #4a5568;
    margin-bottom: 1rem;
}

.product-description-image {
    width: 100%;
}
@media (min-width: 768px) {
    .product-description-image {
        width: 50%;
    }
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* --- Gaya Sidebar dan Kategori --- */
.grid-sidebar-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.sidebar-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: block;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-link:hover {
    background-color: #e2e8f0;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Menggunakan max-height untuk efek transisi lipat yang mulus */
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

/* Saat class 'open' ditambahkan, tampilkan daftar tautan */
.sidebar-card.open .sidebar-links {
    max-height: 500px; /* Nilai besar agar semua konten terlihat saat terbuka */
}

/* Atur ikon default (+) */
.toggle-icon::before {
    content: '+';
}

/* Ubah ikon menjadi '-' saat sidebar terbuka */
.sidebar-card.open .toggle-icon::before {
    content: '-';
}

/* --- Media Query untuk Desktop --- */
/* Di desktop, menu sidebar akan selalu terlihat dan tombolnya hilang */
@media (width > 786px) {
    .grid-sidebar-main {
        grid-template-columns: 250px 1fr;
    }
}

/* --- Gaya Galeri Produk --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 400px;
    display: block;
}

.product-card-title {
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-card a {
    color: black;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Gaya Pagination --- */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.pagination-link:hover {
    background-color: #eee;
}

.pagination-link.active {
    background-color: #333;
    color: white;
}

/* Styling untuk bagian Brand */
.brand__section {
    padding: 4rem 2rem;
    background-color: var(--white); /* Sesuaikan dengan warna latar belakang halaman Anda */
    text-align: center;
}

.brand__container {
    max-width: 1200px;
    margin: 0 auto;
}

.brand__section h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: left;
}

.brand__logos {
    display: flex;
    flex-wrap: wrap; /* Memastikan logo akan pindah baris jika layar kecil */
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.brand__logo-item {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.brand__logo-item img {
    width: 100%;
    max-width: 10rem;
    height: auto;
    max-height: 10rem; /* Sesuaikan ukuran logo */
    transition: all 0.3s ease-in-out;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .brand__logos {
        flex-direction: column;
    }
}

/* Gaya dasar untuk modal */
        .modal {
            display: none; /* Sembunyikan secara default */
            position: fixed; /* Posisi di atas konten lain */
            z-index: 100; /* Letakkan di lapisan atas */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto; /* Aktifkan scroll jika konten terlalu panjang */
            background-color: rgba(0, 0, 0, 0.4); /* Overlay semi-transparan */
            backdrop-filter: blur(5px); /* Efek blur pada background */
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-content {
            background-color: #fefefe; /* Putih */
            border-radius: 1rem;
            padding: 2rem;
            max-width: 90%;
            max-height: 90%;
            overflow-y: auto; /* Aktifkan scroll di dalam modal */
            position: relative;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            animation-name: animatetop;
            animation-duration: 0.4s;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Animasi muncul dari atas */
        @keyframes animatetop {
            from { top: -300px; opacity: 0 }
            to { top: 0; opacity: 1 }
        }

        .modal-header {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            margin-bottom: 1rem;
        }

        .modal-logo {
            width: 75px;
            height: 70px; /* Ukuran logo */
            display: block;
            margin: auto;
            transform: scale(2);
        }

        .close-button {
            color: #DC3545; /* Merah */
            font-size: 3rem;
            font-weight: bold;
            position: absolute;
            top: 10px;
            right: 20px;
            cursor: pointer;
        }

        .close-button:hover,
        .close-button:focus {
            color: #bd2130; /* Merah sedikit lebih gelap */
            text-decoration: none;
            cursor: pointer;
        }

        .modal-image {
            width: 100%;
            max-width: 400px;
            height: auto;
            border-radius: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .modal-title {
            font-size: 1.875rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1rem;
            color: #333; /* Hitam */
        }

        .modal-description {
            text-align: left;
            line-height: 1.6;
            color: #333; /* Hitam */
        }

        /* Gaya navigasi modal */
        .modal-nav {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-top: 1.5rem;
        }

        .modal-nav-btn {
            background-color: #333; /* Hitam */
            color: white; /* Putih */
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .modal-nav-btn:hover {
            background-color: #555; /* Hitam sedikit lebih terang */
        }