:root {
    --primary: #d45d79;
    --primary-hover: #b83b5e;
    --bg: #FFFDF9;
    --section-light: #FFF0F3;
    --text-dark: #2b1b1d;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 7%;
    background-color: white;
    border-bottom: 2px solid var(--section-light);
    box-shadow: 0 4px 20px rgba(43, 27, 29, 0.02);
    z-index: 9999;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-logo span {
    color: var(--text-dark);
}

/* MENU DESKTOP */
.navbar-nav {
    display: flex;
    gap: 20px;
}

.navbar-nav a {
    color: var(--primary);
    font-size: 1rem;
    transition: 0.2s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-hover);
}

.navbar-nav a.active {
    font-weight: 600;
}

.navbar-extra {
    display: flex;
    gap: 15px;
}

.navbar-extra a {
    color: var(--primary);
    transition: 0.2s ease;
}

.navbar-extra a:hover {
    color: var(--primary-hover);
}

.navbar-extra a svg {
    pointer-events: none;
}

#shopping-cart-button .quantity-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    line-height: 1 !important;
    z-index: 10;
}
#hamburger-menu {
    display: none;
}

/* Search Form */
.search-form {
    position: fixed;
    top: 85px;        
    right: 7%;
    width: 30rem;
    max-width: 90vw;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(43,27,29,0.08);
    border: 1px solid var(--section-light); 
    display: none;     
    align-items: center;
    z-index: 99999;   
}

.search-form.active {
    display: flex;  
}

.search-form input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--section-light);
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--text-dark);
    background: var(--bg);
}

.search-form label {
    cursor: pointer;
    font-size: 2rem;
    margin-left: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

/* Shopping Cart */
.shopping-cart {
    position: fixed;      
    top: 0;
    right: -100%;         
    height: 100vh;
    width: 30rem;          
    padding: 0 1.5rem;
    background-color: #ffffff;
    border-left: 1px solid var(--section-light);
    z-index: 9999;         
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    overflow-y: auto;      
    box-shadow: -10px 0 30px rgba(43,23,29,0.05);
}

.shopping-cart.active {
    right: 0; 
}

.shopping-cart.active {
    right: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.shopping-cart h3 {
    margin: 1.5rem 0;
    font-size: 1.8rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--section-light);
    padding-bottom: 1rem;
    margin-top: 2rem;
}

.shopping-cart .cart-total {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 2px solid var(--section-light);
    margin-bottom: 2.5rem;
}

.shopping-cart .cart-total h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.shopping-cart .cart-total span {
    color: var(--primary); 
    font-weight: bold;
}

.shopping-cart .btn-checkout {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
}

.shopping-cart .btn-checkout:hover {
    background-color: var(--primary-hover);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFFDF9 0%, #FFE5EC 100%);
}

.hero .content {
    padding: 1.4rem 7%;
    max-width: 60rem;
}

.hero .content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary);
}

.hero .content h1 span {
    color: var(--primary-hover);
}

.hero .content p {
    font-size: 1.2rem;
    margin-top: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.hero .content .cta {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(212, 93, 121, 0.2);
    transition: 0.3s ease;
}

.hero .content .cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* BACKGROUND LAYOUT CONFS */
.about {
    padding: 8rem 7% 5rem;
    background-color: var(--bg);
}

.kategori {
    padding: 7rem 7% 3rem;
    background-color: var(--section-light);
}

/* Mengubah background produk menjadi warna cerah netral */
.produk {
    padding: 7rem 7% 3rem;
    background-color: #ffffff; 
}

/* STRUKTUR JUDUL */
.about h2,
.kategori h2,
.produk h2,
.contact h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.contact h2 {
    margin-top: 4rem;
    margin-bottom: 2.5rem;
}

.about h2 span, 
.kategori h2 span,
.produk h2 span,
.contact h2 span {
    color: var(--primary);
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* GAMBAR ABOUT */
.about .row .about-img {
    flex: 1 1 40%;
}

.about .row .about-img img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* TEKS ABOUT */
.about .row .content {
    flex: 1 1 50%;
}

.about .row .content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about .row .content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* KATEGORI */
.kategori h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.kategori > p {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    text-align: center;
}

.kategori-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.kategori-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 25px rgba(43, 27, 29, 0.03);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.kategori-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 93, 121, 0.1);
}

.kategori-card.active {
    background: var(--primary);
    color: #ffffff;
}

.kategori-card.active p {
    color: #ffffff;
}

.kategori-card i {
    width: 30px;
    height: 30px;
    margin-bottom: 1rem;
}

.kategori-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.kategori-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* GRID PRODUK */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Ditambahkan border halus agar kartu terlihat kontras di bg putih */
.menu-item {
    background: #ffffff; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(43, 27, 29, 0.02); 
    border: 1px solid var(--section-light);
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding-bottom: 1.2rem;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 93, 121, 0.15); 
}

.menu-item img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #ffffff;
    padding: 1rem;
}

.menu-item h3 {
    font-size: 1.05rem;
    margin: 1rem 1rem 0.5rem;
    color: var(--text-dark);
}

.menu-item p {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 1rem 1.2rem;
}

.menu-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.btn-buy {
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-buy:hover {
    background-color: var(--primary-hover);
}

.btn-cart {
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    transition: 0.2s ease;
}

.btn-cart:hover {
    background: var(--section-light);
    color: var(--primary);
}

/* CONTACT SECTION */
.contact .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--section-light);
    box-shadow: 0 15px 40px rgba(43, 27, 29, 0.04);
    border-radius: 16px;
    border: 1px solid var(--section-light);
}

.contact .row .map {
    flex: 1 1 35rem;
    width: 100%;
    min-height: 350px;
    border: 0;
    border-radius: 12px;
}

.contact .row form {
    flex: 1 1 35rem;
    padding: 1rem;
}

.contact .row form .input-group {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--bg);
    border: 1px solid var(--section-light);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: 0.3s;
}

.contact .row form .input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 93, 121, 0.1);
}

.contact .row form .input-group i {
    color: var(--primary);
    flex-shrink: 0;
}

.contact .row form .input-group input {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border: none;
    outline: none;
    color: var(--text-dark);
    background: transparent;
}

.contact .row form .btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 93, 121, 0.2);
    transition: 0.3s;
}

.contact .row form .btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* FOOTER */
footer {
    background-color: #FFF0F3;
    border-top: 1px solid var(--section-light);
    text-align: center;
    padding: 2rem 0 3rem;
    margin-top: 3rem;
}

footer .socials {
    padding: 1rem 0;
}

footer .socials a {
    color: var(--primary);
    margin: 1rem;
    transition: 0.2s;
    display: inline-block;
}

footer .socials a:hover,
footer .links a:hover {
    color: var(--primary-hover);
}

footer .links {
    margin-bottom: 1.4rem;
}

footer .links a {
    color: var(--text-dark);
    padding: 0.7rem 1rem;
    transition: 0.2s;
}

footer .credits {
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer .credits a {
    color: var(--primary);
    font-weight: 700;
}

.product-image {
    height: auto;
}

.product-image img {
    object-fit: contain;
}

/* TABLET LAYOUT */
@media (max-width: 768px) {
    #hamburger-menu {
        display: inline-block;
    }

    .navbar-nav {
        position: absolute;
        top: 100%;
        right: -100%;
        background-color: #ffffff;
        width: 250px;
        height: 100vh;
        flex-direction: column;
        padding: 20px;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.05);
        transition: 0.3s ease;
    }

    .navbar-nav.active {
        right: 0;
    }

    .shopping-cart {
        width: 28rem;  
    }

    .about .row {
        flex-direction: column;
        text-align: center;
    }

    .about .row .content {
        text-align: center;
    }

    .about .row .about-img img {
        max-width: 300px;
        margin: 0 auto;
    }

    .kategori-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* HANDPHONE / MOBILE LAYOUT */
@media (max-width: 450px) {
    html {
        font-size: 55%;
    }

    .shopping-cart {
        width: 100%;
        border-left: none;
    }

    .kategori-container {
        grid-template-columns: 1fr;
    }

    .kategori-card {
        padding: 2rem 1.5rem;
    }

    .product-image {
        height: auto;
    }

    .product-image img {
        object-fit: contain;
    }
}