*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", serif;
}



body{
    background-color: #f2f4ff;
}

.container{
    width: 80%;
    margin-inline: auto;
}

@media (max-width: 992px){
    .container {
        width: 90%;
    }
}


/* Navbar */
.navbar{
    padding: 20px 0 20px 0;
}
.navbar-box{
    padding: 15px;
    line-height: 1.7;
    display: inline;
    justify-content: space-between;
    align-items: center;
}
.navbar-box .menu{
    display: inline;
   
}
.navbar-box .menu li{
    list-style-type: none;
}
.navbar-box .menu li a{
    text-decoration: none;
    color: black;
    font-size: 18px;
}
.navbar-box .menu li a:hover{
    border-bottom: 3px solid rebeccapurple;
}
.navbar-box .ri-menu-3-line{
    display: none;
    font-weight: bold;
}

@media (max-width: 768px){
    .navbar-box .ri-menu-3-line{
    display: block;
}
    .navbar-box .menu{
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translate(-50%);
    flex-direction: column;
    text-align: center;
    background-color: rebeccapurple;
    width: 100%;
    padding: 40px 0 40px 0;
    transition: all 0.2s ease-in-out;
    opacity: 0;
}
.navbar-box .menu.menu-active{
    top: 100px;
    opacity: 1;
}
.navbar-box .menu li a{
    color: white;
    font-size: 20px;
    text-decoration: underline;
}
}
/* Navbar */

.produk {
    padding-bottom: 150px;
    background-color: #f1f1f1;
}

.cat {
    display: grid;
    grid-template-columns: 25% 75%; 
    gap:5px;
    
}

.sidebar {
    
    display: flex;
    position: static;
   
    padding-top: 65px;
}

.sidebar-box {
    background-color: #ffffff;
    width:97%;
    display: flex;
    position: static;
    border-radius:7px;
    border-top: 3px solid #cccccc;
    
}

.sidebar-mobile {
  position: absolute;
  top: 70px;
  width: 95%;
}

.navbar-mobile {
    padding: 5px;
    background-color: white;
    border: 2px solid blue;
}

.navbar-mobile .navheader {
     text-align: center;
      background-color: blue;
      color: white;
      height: 35px;
      padding: 6px;
}

.navbar-mobile .menu {
    list-style: none;
    padding-left: 7px; /* Opsional: Untuk menghilangkan jarak geser di sebelah kiri */
    margin: 2px;       /* Opsional: Untuk mereset margin bawaan browser */
}

.navbar-mobile .menu li{
    font-size: 18px;
    border-bottom: 1px solid #ccc; 
}

.navbar-mobile .menu li a{
    color: #282828;
}

.navbar-mobile .menu li a:hover{
    color: #0c4bd9;
}


.btn-close-filter {
    position: absolute;
    top: 10px;          /* Jarak dari atas */
    right: 15px;        /* Jarak dari kanan */
    background: none;
    border: none;
    font-size: 28px;    /* Ukuran huruf X */
    font-weight: bold;
    color: #ffffff;        /* Warna tombol */
    cursor: pointer;
    line-height: 1;
    z-index: 10;        /* Memastikan tombol berada di layer paling atas */
}

.btn-close-filter:hover {
    color: #f81d1d;     /* Warna berubah saat diarahkan kursor (opsional) */
}

.box {
      border-bottom: 3px solid #90b2f7;
      border-radius: 0px 0px 10px 10px;
      background: none;
      border-top: none;

}



.produk-box h1 {
    text-align: center;
    margin-bottom: 30px;
}

.nav {
    display: flex;
    padding: 10px 20px 10px 20px;
    justify-content: center;
    gap: 10px;
    
    flex-wrap: wrap;
}

.nav-item {
    list-style-type: none;
    background-color: blue;
    color: white;
    font-size: 14px;
    padding: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.nav-item:hover {
    list-style-type: none;
    background-color: white;
    color: blue;
   
}

.nav-item  active {
    background-color: blue;
    color: white;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;         
    }
    
.row .single:hover {
    border: 2px solid blue;
    transform: scale(1.05);
}

.ps-block { 
    margin-bottom: 30px; 
    border: 2px solid blue; 
} 

.ps-block .ps-header { 
    padding: 5px 0px; 
    text-align: center; 
    background-color: blue; 
    color: white; 
} 

/* Wrapper untuk memposisikan tombol panah secara absolut */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: #ffffff;
}

.terlaris { 
    display: flex; 
    flex-wrap: nowrap; /* WAJIB: Mencegah produk turun ke baris baru */
    gap: 15px; 
    overflow-x: auto; /* WAJIB: Mengaktifkan scroll horizontal */
    scroll-behavior: smooth; /* Membuat efek geser menjadi halus */
    padding: 15px 5px;
    width: 100%;
}

/* Menyembunyikan scrollbar bawaan browser agar terlihat bersih */
.terlaris::-webkit-scrollbar {
    display: none;
}
.terlaris {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.terlaris .single-terlaris { 
    flex: 0 0 auto; /* WAJIB: Menjaga ukuran box produk tetap konsisten */
    width: 170px; 
    height: 260px; 
    background-color: #ffffff; 
    padding: 5px; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    box-sizing: border-box;
} 

.terlaris .single-terlaris img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover;
    background-color: white; 
    border-radius: 5px; 
}

/* Styling Tombol Panah Kiri & Kanan */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 255, 0.8);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slide-btn:hover {
    background: rgba(0, 0, 139, 1);
}

.prev-btn { left: -15px; }
.next-btn { right: -15px; }


.btn-filter-mobile {
            display: none; /* Sembunyikan secara default di layar laptop/PC */
          
            color: black;
            border: none;
            padding: 2px 10px;
            font-size: 16px;
            font-weight: bold;
            
            cursor: pointer;
            width: 100%;
            
            text-align: center;
        }

        /* 📱 RESPONSIVE: Hanya muncul di layar HP (maksimal lebar 768px) */
        @media (max-width: 475px) {
            .btn-filter-mobile {
                display: block; /* Munculkan tombol di HP */
            }
            

}




    
.single {
    width: 190px;
    height: 270px;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}


.single  img {
    width: 180px;
    height: 180px;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single  span {
    text-decoration: none;
    
    font-size: 12px;
    color: blue;
    padding: 2px 5px 0px 5px;
    border-radius: 2px;
}
    
.single p {
    
    display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 5px;
}



.pagination { display: flex; justify-content: center; margin-top: 20px; gap: 5px; }
.pagination a { padding: 8px 16px; border: 1px solid #ccc; text-decoration: none; color: black; }
.pagination a.active { background-color: blue; color: white; border: 1px solid blue; }
.pagination span { padding: 8px 12px; color: #666; display: inline-block; }

.search-box { margin-bottom: 20px; text-align: center; }
.search-box input[type="text"] { padding: 8px; width: 250px; border: 1px solid #ccc; border-radius: 4px; }
.search-box button { padding: 8px 15px; background-color: blue; color: white; border: none; border-radius: 4px; cursor: pointer; }



@media (max-width: 640px){
        .cat {
          display: block; /* Mengubah grid menjadi block biasa agar berurutan ke bawah */
        }
        
        .cat .sidebar {
          display: none; /* Menyembunyikan sidebar di mobile */
        }
        
        .cat .produk-box {
          width: 100%; /* Memastikan box produk memenuhi lebar layar */
        }
        .single img{
            width: 130px;
            height: 130px;
        }
        .navbar-box {
            display: none; /* Menu akan hilang sepenuhnya dari layar */
          }
          
    }


@media (max-width: 475px){
    .container{
        padding:5px;
        margin:3px;
        }
        .single {
            width: 135px;
            height: 185px;
        }
        .single img{
            width: 125px;
            height: 125px;
        }
        .single  p {
            font-size: 10px;
            width: 125px;
            margin-bottom: 1px;
        }
        .single  span {
            text-decoration: none;
            font-weight:0.8em;
            font-size: 10px;
            color: blue;
            padding: 0px 3px 0px 3px;
            border-radius: 2px;
        }
        
    }
    
@media (max-width: 360px){
        .container{
        width: revert-layer;
        padding:5px;
        margin:3px;
        }
        .single {
            width: 180px;
            height: 235px;
            border: 1px solid grey;
             padding: 2px;
        }
        .single img{
            width: 100%;
            height: 165px;
        }
        .single  p {
            font-size: 13px;
            width: 165px;
            margin-bottom: 1px;
        }
        .single  span {
            text-decoration: none;
            font-weight:0.8em;
            font-size: 13px;
            color: blue;
            padding: 3px 3px 3px 7px;
            border-radius: 2px;
            
        }
        
        .terlaris .single-terlaris { 
            flex: 0 0 auto; /* WAJIB: Menjaga ukuran box produk tetap konsisten */
            width: 140px; 
            height: 230px; 
            background-color: #ffffff; 
            padding: 5px; 
            border-radius: 5px; 
            cursor: pointer; 
            transition: all 0.2s ease; 
            box-sizing: border-box;
        } 
        
        .terlaris .single-terlaris img { 
            width: 100%; 
            height: 120px; 
            object-fit: cover;
            background-color: white; 
            border-radius: 5px; 
        }
        
        .row {
            display: flex;
            flex-wrap: wrap;
            gap: 2px;
            justify-content: center;         
            }
        
        .pagination { display: flex; justify-content: center; margin-top: 10px; gap: 2px; }
        .pagination a { padding: 4px 8px; border: 1px solid #ccc; text-decoration: none; color: black; }
        .pagination a.active { background-color: blue; color: white; border: 1px solid blue; }
        .pagination span { padding: 4px 6px; color: #666; display: inline-block; }
    }    






/* Nav Produk */

/* Footer  */
.footer {
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p span{
    font-weight: bold;
    color: rebeccapurple;
}

.footer .boxb:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer .boxb i {
    cursor: pointer;
}

.footer .boxb i:hover {
    color: rebeccapurple;
}

@media (max-width: 768px){
    .footer {
        gap: 20px;
    }
    .footer p {
        font-size: 12px;
    }
    .footer .box:nth-child(2){
        gap: 10px;
    }
}
/* Footer  */