@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --primary-color: #a20909;
    --secondary-color: #141419;
    --base-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    overflow-x: clip;
    scroll-behavior: smooth;
    scrollbar-color: var(--primary-color) var(--base-color);
    scrollbar-width: thin;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins";
    background: #f8f8f8;
    overflow-x: clip;
}

header {
    position: sticky;
    top: 0;
    background-color: var(--base-color);
    z-index: 1000;
    width: 100%;
}

.header-kategori {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.header-kategori:hover {
    transform: rotate(360deg);
}

.category-menu-section {
    position: relative;
    display: inline-block;
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    width: 260px;
    max-height: 500px; /* scroll jika melebihi */
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.category-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list-item a {
    text-decoration: none;
    color: #212529;
    display: block;
    transition: background-color 0.2s ease;
}

.category-list-item a:hover {
    background-color: #f8f9fa;
}

.dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

.icon-left {
    width: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .category-dropdown {
        width: 100vw;
        left: -210px;
        right: 0;
        border-radius: 0;
    }

    .category-dropdown.show {
        transform: translateY(0);
    }
}

.whatsapp-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-wrapper2 {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-float {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: 50px; /* awal hanya bulat icon */
}

.whatsapp-float i {
    font-size: 24px;
    min-width: 24px;
    text-align: center;
}

.whatsapp-float .text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    width: 250px; /* melebar saat hover */
    padding: 12px 20px;
}

.whatsapp-float:hover .text {
    opacity: 1;
    max-width: 180px;
}
