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

/* Header */
.header {
    background-color: #FFE81B;
    color: black;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Search */
/* Style untuk tombol pencarian dan ikon keranjang */
#search {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: white;
    align-items: center;  /* Untuk menyamakan tinggi ikon dengan input dan tombol */
}

#search input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#search button {
    padding: 10px 15px;
    background-color: #FFE81B;
    color: black;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 16px;
}

#search .btn-cart {
    background-color: transparent;
    color: #FFE81B; /* Warna kuning */
    border: none;
    font-size: 24px; /* Ukuran ikon disesuaikan dengan ukuran tombol search */
    cursor: pointer;
    padding: 10px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#search .btn-cart:hover {
    background-color: #FFE81B;
    color: #333; /* Warna gelap saat hover */
}
/* Responsif */
@media (max-width: 768px) {
    #search input {
        width: 80%;
    }

    #search .btn-cart, #search button {
        font-size: 20px; /* Mengurangi ukuran ikon saat layar lebih kecil */
    }
}

@media (max-width: 480px) {
    #search input {
        width: 90%;
    }

    #search .btn-cart, #search button {
        font-size: 18px; /* Ukuran lebih kecil lagi untuk perangkat lebih kecil */
    }
}

/* Slider */
.slider-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.mini-slides {
    display: flex;
    width: max-content;
    animation: mini-slide 40s linear infinite;
}
.mini-slides img {
    width: auto;
    height: 130px;
    flex-shrink: 0;
}
@keyframes mini-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Grid Produk */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Kartu Produk */
.card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}
.card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.card h3 {
    font-size: 16px;
    margin: 10px 0;
    font-weight: bold;
    color: #333;
}
.card p {
    font-size: 17px;
    color: red;
    margin-bottom: 10px;
    font-weight:bold;
}
.card .btn {
    background-color: #FFE81B;
    color: black;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}
.card .btn:hover {
    background-color: #e6c700;
}

/* Footer */
footer {
    background-color: #FFE81B;
    color: #333;
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
}
footer p {
    margin: 0;
    font-weight: bold;
}
footer span {
    font-size: 14px;
    font-weight: normal;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 15px;
    padding: 10px;
    text-align: center;
    background: white;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.menu-item img {
    width: 50px;
    height: 50px;
}
.menu-item p {
    font-size: 14px;
    margin-top: 5px;
    color: #333;
}

/* Greeting & Logout */
.greeting {
    text-align: center;
    margin: 10px 0;
    font-size: 16px;
}
.logout-btn {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    color: red;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    #search input {
        width: 90%;
    }
    .container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 15px;
        gap: 15px;
    }
    .card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 10px;
    }
    .card h3 {
        font-size: 14px;
    }
    .card p, .card .btn {
        font-size: 12px;
    }
}
/* Icon Style */
.user-menu a i, .btn-cart i {
    font-size: 20px;
    color: black;
}

.user-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
}

.user-menu a:hover {
    background: #FFE81B;
}

/* Icon Keranjang */
#search .btn-cart {
    padding: 10px;
    background-color: transparent;
    color: #252525; /* Warna biru */
    border: none;
    font-size: 1000000px; /* Ukuran ikon lebih besar */
    cursor: pointer;
    margin-left: 10px;
}

#search .btn-cart:hover {
    background-color: #FFE81B;
    color: #efff13; /* Warna biru lebih gelap saat hover */
}
