
.modal li{
    list-style:inside;
}
.bannerfull {
    background-image: url('/images/product/pabrik.JPG'); /* Gambar latar belakang */
    background-size: cover; /* Membuat gambar menutupi seluruh elemen */
    background-position: center center; /* Memusatkan gambar di dalam elemen */
    background-repeat: no-repeat; /* Menghindari pengulangan gambar */
    height: 100vh; /* Tinggi banner, bisa disesuaikan sesuai kebutuhan */
    width: 100%; /* Lebar penuh sesuai dengan lebar elemen induk */
    position: relative; /* Membantu untuk penempatan elemen anak (seperti teks) */
}

.bannerfull::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay gelap dengan transparansi */
    z-index: 1; /* Pastikan overlay berada di atas gambar */
}

/* Menambahkan teks atau elemen di atas banner */
.bannerfull .banner-content {
    position: absolute;
    top: 50%; /* Posisi di tengah vertikal */
    left: 50%; /* Posisi di tengah horizontal */
    transform: translate(-50%, -50%); /* Menyempurnakan pemposisian */
    color: white; /* Teks putih agar kontras dengan overlay gelap */
    text-align: center; /* Teks berada di tengah */
    z-index: 2; /* Pastikan teks di atas overlay */
}

.bannerfull .banner-content h1 {
    margin-top:-30% ;
    font-size: 33px; /* Ukuran font untuk judul */
    font-weight: bold;
}

.bannerfull .banner-content p {
    font-size: 18px; /* Ukuran font untuk deskripsi */
    font-weight: normal;
    color: white;
}

/* Menambahkan background hitam dengan opacity pada .product-banner */
.product-banner {
overflow-y: hidden;
    background-color: rgba(0, 0, 0, 0.5); /* Hitam dengan opacity */
   
    text-align: center;
    position: absolute; /* Agar berada di dalam bannerfull */
    bottom: 0; /* Posisi di bawah */
    left: 0; /* Posisi di kiri */
    width: 96%; /* Lebar penuh sesuai dengan elemen induk */
    z-index: 2; /* Menempatkan di atas overlay */
}

.product-banner h3 {
    color: #ff0000;
    font-size: 24px;
    margin-bottom: 20px;
}

.swiper-container {
    max-width: 100%;
    overflow: hidden;
    margin: auto;
}

.swiper-slide.product-item {
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
}

.product-item img {

    width: 200px;
    margin-bottom: 10px;
}

.product-item h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
}

.product-item p {
    font-size: 14px;
    color: white;
}

.swiper-pagination {
    bottom: 10px;
}


.swiper-button-next,
.swiper-button-prev {
    color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

/* Hover effect for next/prev buttons */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #ff0000;
    color: #ffffff;
}


    body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}


.imageheader{
width:100%; 
height: 100vh;
}
.container {
    display: flex;
    padding: 20px;
 
}

.sidebar {
    width: 300px;
    background-color: #ffffff;
    padding: 15px;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    
    
}


.sidebar h2 {
    margin-top: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar ul li.active a {
    background-color: #ce181e;
    color: white;
}

.product-list {
    flex-grow: 1;
    display: grid;
   
    gap: 20px;
}

.category-description {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px; /* Jarak antara deskripsi dan produk */
}

.product {
    background-color: darkgray;
    border: 3px solid #ce181e;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.product img {
    max-width: 100%;
    height: auto;
}

.price {
    font-size: 1.5em;
    color: #ce181e;
}

button {
    background-color: #ce181e;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}



.category-button {
    background-color: transparent;
    border: none;
    color: #333;
    text-align: left;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.category-button:hover {
    background-color: #f0f0f0;
}




#product-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }




 
    /* Custom Styles for Modal */
    .modal-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 20%;
        left: 50%;
        transform: translate(-50%, 0);
        height: auto;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .modal-content {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        width: 400px;
        position: relative;
        text-align: center;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .close-button {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #f44336;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 50%;
        font-size: 30px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .close-button:hover {
        background: #d32f2f;
    }

    .modal-content img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
        border-radius: 8px;
    }






    @media (max-width: 1024px) {
    #product-list {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns for medium screens */
    }
}

/* For small screens (smartphones) */
@media (max-width: 600px) {
    #product-list {
        grid-template-columns: 1fr; 
     max-width: 100%;
    }
    .product-list{
        width: 30%;
    }
}



@media (max-width: 480px) {
    .bannerfull .banner-content h1 {
      
        font-size: 20px;

    }

    .bannerfull .banner-content p {
        font-size: 15px;
      
    }
    h1{font-size: 19px;}

    .product-item p {
        font-size: 10px;
        color: white;
    }
    .product-item h4 {
        color: white;
        font-size: 10px;
        margin-bottom: 2px;
    }



#category-description{
    font-size: 8px;
}

.sidebar {
    width: 80px;
    left: 0px;
    top: 30px;
}



.category-button {
   
    font-size: 10px;
    font-weight: 900;
  
}




.category-description {
    background-color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}
.category-description h3 {
   font-size: 12px;
   font-style: bold;
}


button {
 
    padding: 5px 10px;
    font-size: .6em;
    cursor: pointer;
}


.container{
    padding-top: 20px;
    padding-left: 0px;
}



.sidebar h2 {
  font-size: 13px;
}


.modal-content{width: 330px;
font-size:14px}

}


#subcategory-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#subcategory-list li {
    display: inline-block;
}

#subcategory-list button {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#subcategory-list button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

#subcategory-list button.active {
    background-color: #003366;
    border: 2px solid #0056b3;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

#subcategory-container {
    padding: 20px;
    border-radius: 10px;
    display: none;
}

#category-description-container {
    padding: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

#subcategory-container {
    display: none;
    margin: 0;
    padding: 0;
}

#category-name, #category-description {
    margin: 0;
    padding: 0;
}

#subcategory-list {
    margin: 0;
    padding: 0;
}



