.header-atas {
    background-color: #010100;
}

.text-32 {
    font-size: 2rem !important;
}


.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-align {
    display: flex;
    align-items: center;
}

.header-tengah {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    /* border-bottom: 1px solid #ddd; */
    background: #fff;
}

.header-wrapper-tengah {
    border-bottom: 1px solid #ddd;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    max-width: 200px;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
    color: #0479a8;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0 24px;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.select-kategori-pencarian {
    border: 0 !important;
}

@media screen and (max-width: 768px) {
    .search-bar {
        display: none;
    }
}

.category-dropdown {
    padding: 10px;
    background: #ffffff;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    min-width: 130px;
    font-size: 14px;
    color: #444;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: #212529;
    border: none;
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    margin: 4px 0px;
}

.search-btn .icon {
    font-size: 16px;
}

/* User Menu */
.category-button {
    border: 0 !important;
    background-color: #ffd700;
    font-weight: 500;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-menu .icon {
    font-size: 18px;
}

.badge {
    background: #17769e;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    right: -10px;
}



/* Menu Hover Sub menu */

.nav-menu {
    display: flex !important;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

.nav-menu li {
    margin: 0;
}

.nav-menu ul li {
    margin: 0;
}

.menu-item {
    position: relative;
    /* padding-bottom: 5px; */
    /* Isi celah hover-nya */
}

.arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* Geser ke bawah sedikit saat disembunyikan */
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
    min-width: 180px;
    z-index: 999;
}

.submenu li {
    padding: 5px 20px;
}

.submenu li a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Saat hover, submenu muncul halus dan panah berputar */
.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Kembali ke posisi semula */
}

.menu-item:hover .arrow {
    transform: rotate(180deg);
    /* Putar panah ke atas */
}

/* HEADER UTAMA */

.menu-kategori-wrapper {
    gap: clamp(0.75rem, -8.243rem + 12vw, 4.5rem);
}

.kategori-produk {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    /* kita akan ubah saat show */
    list-style: none;
    min-width: 420px;
    z-index: 999;
}

.kategori-produk.show {
    max-height: 1000px;
    /* cukup besar, biar semua konten muat */
    opacity: 1;
    padding: 16px;
    /* tambahkan padding saat tampil */
}

.grid-cols-3-repeat {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Rotate Icon  */
.chevron-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.chevron-icon.rotate {
    transform: rotate(180deg);
}

/* end rotate */

/* END HEADER UTAMA */



/* MENU DRAWER */
/* Modal Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    justify-content: flex-end;
}

/* Konten Menu */
.mobile-menu-content {
    width: 80%;
    max-width: 300px;
    background-color: #fff;
    height: 100%;
    padding: 18px;
    position: relative;
    /* animation: slideIn 0.3s ease-in-out; */
    animation: slideInLeft 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: 0;
    /* posisi kiri */
    margin-right: auto;
    /* dorong ke kiri */
}

/* Tombol Close */
.close-mobile-menu {
    background: none;
    border: none;
    font-size: 24px;
    align-self: flex-end;
    cursor: pointer;
}

/* Navigasi */
.mobile-nav {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* @keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
} */

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.common-input {
    padding: 17px 24px !important;
    margin-block-start: 16px;
}





/* Navigasi mobile */
.nav-menu_mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.menu-item_mobile {
    /* border-bottom: 1px solid #eee; */
    padding: 3px 8px;
    position: relative;
}

.menu-item_mobile a {
    text-decoration: none;
    color: #333;
    display: block;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    padding: 4px 0px;
    font-weight: 500;

}

.arrow2 {
    transition: transform 0.3s ease;
}

.submenu_mobile {
    display: flex;
    flex-direction: column;
    /* ⬅️ Ini bikin vertikal */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /* background: #f9f9f9; */
    padding-left: 0;
    margin: 0;
    list-style: none;
    margin-inline-start: 16px;
}

.submenu_mobile li {
    display: block;
    width: 100%;
}

.submenu_mobile li a {
    display: block;
    padding: 7px 0px;
    color: #333;
    text-decoration: none;
    font-weight: 400;

}

.menu-item_mobile.open .submenu_mobile {
    max-height: 500px;
    /* cukup besar agar muat isi */
}

.menu-item_mobile.open .arrow2 {
    transform: rotate(180deg);
}


/* End Navigasi mobile */
/* End menu drawer */







/* Container */
.slider-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    background: #fff;
}

/* Track */
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* background-color: #eee; */
}

/* Slide */
.slide {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    gap: 32px;
    box-sizing: border-box;
    background-color: #eee;

}

.slide-content {
    max-width: 600px;
}

.slide-content h4 {
    font-size: 18px;
    color: #B38600;
    margin-bottom: 12px;
}

.slide-content h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.slide-content h1 span {
    color: #B38600;
}

.slide-content .btn {
    background-color: #212529;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 16px;
}

.slide-content .price {
    font-size: 16px;
    color: #555;
}

.slide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Tombol panah */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.147);
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 2;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .slide {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .slide-content {
        order: -1;
        /* Tampilkan teks di atas gambar */
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .slide-content .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

.slider-btn.rounded-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* ⬅️ Membuat elemen jadi lingkaran */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    /* Warna latar opsional */
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 2;
}

/* Tombol disembunyikan secara default */
.slider-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Saat .slider-container di-hover, tampilkan tombol */
.slider-container:hover .slider-btn {
    opacity: 1;
    pointer-events: auto;
}


/* STICKY */
.header-wrapper-utama {
    position: sticky;
    /* Menempel saat scroll */
    top: 0;
    /* total tinggi header di atasnya */
    z-index: 98;
    /* Supaya di atas elemen lain */
    background: #fff;
    /* Biar tidak transparan saat menempel */
}

/* END STICKY */



/* link header  */

.link-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* list pertama akan di hilangkan dari mobile */
@media (max-width: 768px) {
    .link-header a:first-child {
        display: none !important;
    }
}

/* End link header  */