/* Anda bisa tambahkan @tailwind directives di sini jika Anda ingin menggunakan Tailwind CSS */
/* Contoh:
@tailwind base;
@tailwind components;
@tailwind utilities;
*/

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Font lebih modern */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #004085; /* Biru Gelap yang lebih kaya */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #007bff; /* Biru terang */
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3; /* Biru Gelap */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f0f0f0; /* Abu-abu terang */
    color: #007bff; /* Biru */
    border: 1px solid #007bff;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn-blue {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-blue:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Shadow lebih menonjol */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    vertical-align: middle; /* Agar logo sejajar dengan teks jika ada */
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu ul li {
    margin-left: 25px;
}

.nav-menu ul li .nav-link {
    text-decoration: none;
    color: #555; /* Warna teks navigasi */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu ul li .nav-link:hover {
    color: #007bff; /* Biru saat hover */
}

.nav-menu ul li .nav-link-icon {
    color: #007bff; /* Warna biru untuk ikon keranjang */
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.nav-menu ul li .nav-link-icon:hover {
    color: #0056b3;
}


/* Hero Section */
.hero-section {
    background-color: #eaf6ff; /* Biru sangat muda yang menenangkan */
    display: flex;
    align-items: center;
    padding: 60px 0;
    margin-bottom: 50px;
    border-radius: 10px; /* Sudut membulat */
    overflow: hidden; /* Penting untuk gambar hero */
}

.hero-section .hero-content {
    flex: 1;
    padding-left: 40px;
}

.hero-section .hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #004085;
}

.hero-section .hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #444;
}

.home-nlp-search {
    max-width: 620px;
    padding: 18px;
    margin: 0 0 14px;
    border: 1px solid rgba(0, 64, 133, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(0, 64, 133, 0.08);
}
.home-nlp-search label,
.catalog-search label {
    display: block;
    margin-bottom: 8px;
    color: #004085;
    font-size: 0.92rem;
    font-weight: 800;
}
.home-nlp-search-row,
.catalog-search-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.home-nlp-search input,
.catalog-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #BFD7EC;
    border-radius: 9px;
    background: #fff;
    color: #263238;
    font: inherit;
    outline: none;
}
.home-nlp-search input:focus,
.catalog-search input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}
.home-nlp-search small,
.catalog-search small {
    display: block;
    margin-top: 8px;
    color: #5F6F7A;
    font-size: 0.78rem;
    line-height: 1.5;
}
.hero-shop-link {
    display: inline-flex;
    color: #004085;
    font-weight: 800;
    text-decoration: none;
}
.hero-shop-link:hover { text-decoration: underline; }

.catalog-search {
    max-width: 760px;
    padding: 18px;
    margin: 22px auto 30px;
    border: 1px solid #D9E8F5;
    border-radius: 14px;
    background: #F8FBFE;
}

.hero-section .hero-image {
    flex: 1;
    text-align: right;
}

.hero-section .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Categories Section */
.categories-section {
    padding: 50px 0;
    text-align: center;
}

.categories-section h2 {
    margin-bottom: 40px;
    font-size: 2.8em;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-item {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 160px; /* Lebar item sedikit lebih besar */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-item img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 12px;
}

.category-item h3 {
    font-size: 1.2em;
    color: #333;
}

/* Featured Products Section */
.featured-products-section {
    padding: 50px 0;
    text-align: center;
}

.featured-products-section h2 {
    margin-bottom: 40px;
    font-size: 2.8em;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product-item {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 280px; /* Lebar item produk sedikit lebih besar */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-item img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-item h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #333;
}

.product-item .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.product-item .rating {
    color: #ffc107;
    margin-bottom: 15px;
}
.product-item .rating .fas.fa-star, .product-item .rating .fas.fa-star-half-alt {
    color: #ffc107;
}
.product-item .rating .far.fa-star {
    color: #e0e0e0; /* Warna abu-abu untuk bintang kosong */
}


/* Newsletter Section */
.newsletter-section {
    background-color: #eaf6ff;
    padding: 60px 0;
    text-align: center;
    margin-top: 50px;
    border-radius: 10px;
}

.newsletter-section h2 {
    margin-bottom: 25px;
    font-size: 2.5em;
    color: #004085;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.user-avatars {
    display: flex;
    justify-content: center;
    position: relative;
    padding-left: 20px; /* Untuk menyeimbangkan tumpukan avatar */
}

.user-avatars img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -20px; /* Untuk efek tumpukan */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.user-avatars img:first-child {
    margin-left: 0;
}


/* Footer */
.footer {
    background-color: #004085; /* Biru gelap paling dominan */
    color: white;
    padding: 50px 0;
    margin-top: 60px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.footer-col {
    width: 22%; /* Sedikit lebih lebar untuk teks */
    margin-bottom: 30px;
    text-align: left;
}

.footer-col h4 {
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #ffffff;
    border-bottom: 2px solid #007bff; /* Garis bawah biru */
    padding-bottom: 8px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #cceeff;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.8em;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

/* Responsif Dasar */
@media (max-width: 992px) { /* Untuk tablet */
    .hero-section .hero-content h1 {
        font-size: 3em;
    }
    .categories-section h2, .featured-products-section h2, .newsletter-section h2 {
        font-size: 2.5em;
    }
    .category-grid, .product-grid {
        gap: 20px;
    }
    .category-item {
        width: 130px;
    }
    .product-item {
        width: 220px;
    }
    .footer-col {
        width: 30%; /* 3 kolom per baris */
    }
    .footer-links {
        justify-content: space-around;
        gap: 20px;
    }
}


@media (max-width: 768px) { /* Untuk mobile */
    .header .container {
        flex-direction: column;
    }
    .nav-menu ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px; /* Jarak antar item menu di mobile */
    }
    .nav-menu ul li {
        margin-left: 0;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
    }
    .hero-section .hero-content {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    .hero-section .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-section .hero-image {
        padding: 0 20px;
    }
    .categories-section h2, .featured-products-section h2, .newsletter-section h2 {
        font-size: 2.2em;
    }
    .category-grid, .product-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .category-item, .product-item {
        width: 90%;
        max-width: 320px;
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer-col {
        width: 90%;
        margin-bottom: 0; /* Jarak sudah diatur oleh gap footer-links */
        text-align: center;
    }
    .footer-col h4 {
        border-bottom: none; /* Hapus garis bawah di mobile */
        padding-bottom: 0;
        margin-bottom: 15px;
    }
    .social-icons {
        justify-content: center;
        display: flex;
        margin-top: 15px;
    }
}
/* Interaksi umum */
html { scroll-behavior: smooth; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-menu ul li .nav-link.active,
.nav-menu ul li .nav-link:focus { color: #007bff; }
.flash-message {
    background: #e7f7ed;
    color: #116530;
    border-left: 4px solid #1f9d55;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 18px 0;
    font-weight: 600;
}

.category-item { text-decoration: none; color: inherit; }
.category-item:focus { outline: 3px solid rgba(0, 123, 255, 0.25); }

.page-section { padding: 55px 20px; }
.page-section h1 { font-size: 2.8em; margin-bottom: 10px; }
.section-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
}
.section-heading-row h2,
.section-heading-row h1 { margin: 0 0 10px; }
.section-heading-row p { margin: 0; color: #555; font-size: 1.05em; }
.center-on-mobile { align-items: flex-end; }

.empty-front {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
}
.product-desc { color: #666; min-height: 42px; }
.button-row-center,
.button-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.button-row { justify-content: flex-start; flex-wrap: wrap; margin-top: 20px; }
.button-row form,
.button-row-center form { margin: 0; }
.button-row button,
.button-row-center button { cursor: pointer; font-family: inherit; }
.wrap { flex-wrap: wrap; }

/* Detail produk dan resep */
.detail-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 32px;
    align-items: center;
}
.detail-image img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 14px;
}
.detail-content h1 { font-size: 2.6em; margin: 12px 0; }
.detail-content p { line-height: 1.7; color: #444; }
.detail-price { font-size: 1.9em; color: #007bff !important; font-weight: 800; margin: 8px 0; }

/* Rekomendasi resep */
.recipe-recommendation-section {
    padding: 55px 0;
    background: #fff;
}
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
}
.recipe-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.recipe-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.13);
}
.recipe-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.recipe-card-body { padding: 22px; }
.recipe-card-body h3 { margin: 8px 0 10px; color: #333; }
.recipe-card-body p { color: #555; line-height: 1.6; }
.recipe-meta {
    display: inline-block;
    color: #007bff;
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 6px;
}
.ingredient-count { font-weight: 700; color: #004085 !important; }
.recipe-steps-section,
.ingredients-section { margin-top: 42px; }
.steps-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 24px;
    line-height: 1.9;
    color: #444;
}
.ingredient-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}
.ingredient-product-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    align-items: center;
}
.ingredient-product-card img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}
.ingredient-product-card h3 { margin: 0 0 8px; color: #333; }
.ingredient-note { color: #795548; font-weight: 700; margin: 0 0 8px; }

/* Daftar bahan */
.cart-list { display: grid; gap: 18px; }
.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.cart-item img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
}
.cart-item h3 { margin: 0 0 8px; color: #333; }
.cart-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cart-actions form { margin: 0; }
.front-actions { justify-content: flex-end; }
.front-actions form { margin: 0; }

@media (max-width: 768px) {
    .section-heading-row,
    .center-on-mobile { flex-direction: column; align-items: center; text-align: center; }
    .home-nlp-search-row,
    .catalog-search-row { flex-direction: column; }
    .home-nlp-search-row .btn,
    .catalog-search-row .btn { width: 100%; }
    .detail-card { grid-template-columns: 1fr; padding: 22px; }
    .detail-content h1 { font-size: 2.1em; }
    .ingredient-product-card,
    .cart-item { grid-template-columns: 1fr; text-align: center; }
    .ingredient-product-card img,
    .cart-item img { margin: 0 auto; }
    .button-row,
    .cart-actions,
    .front-actions { justify-content: center; }
}

/* Smart weather popup */
.weather-floating-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
}
.weather-floating-btn span { font-size: 1.5rem; }
.weather-floating-btn small { font-size: .85rem; }
.weather-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.42);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.weather-popup {
    width: min(920px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    position: relative;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.weather-popup-close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: none;
    background: #f2f2f2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.7rem;
    cursor: pointer;
}
.weather-popup-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 42px;
    margin-bottom: 20px;
}
.weather-popup-icon { font-size: 3rem; }
.weather-popup-head h2 { margin: 0 0 8px; color: #222; }
.weather-popup-head p { margin: 0 0 6px; color: #555; line-height: 1.5; }
.weather-popup-head small { color: #777; }
.weather-popup-products { display: grid; gap: 14px; }
.weather-loading {
    padding: 18px;
    border-radius: 12px;
    background: #f8fbff;
    color: #355070;
}
.weather-product-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e8eef8;
    border-radius: 16px;
    background: #fbfdff;
}
.weather-product-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}
.weather-product-card h3 { margin: 0 0 6px; }
.weather-product-card p { margin: 0 0 8px; color: #555; line-height: 1.45; }
.weather-product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.weather-product-actions button { font-family: inherit; cursor: pointer; }
.weather-popup-help { margin: 16px 0 0; color: #666; font-size: .95rem; }

.cart-total-box,
.checkout-card,
.qris-card,
.qris-summary {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    padding: 22px;
    margin-top: 18px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.checkout-grid label { font-weight: 700; color: #333; }
.checkout-grid input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}
.qris-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
    align-items: start;
}
.qris-demo-box {
    border: 2px solid #111;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
}
.qris-mini-grid {
    display: grid;
    grid-template-columns: repeat(11, 16px);
    grid-template-rows: repeat(11, 16px);
    gap: 3px;
    padding: 10px;
    background: #fff;
}
.qris-mini-grid span { display: block; background: #fff; }
.qris-mini-grid span.dark { background: #111; }
.qris-note { color: #555; line-height: 1.6; }
.payment-paid {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: #e7f7ed;
    color: #116530;
    font-weight: 800;
}
.cart-list.compact .cart-item { grid-template-columns: 1fr; }
.qris-item { padding: 12px; box-shadow: none; border: 1px solid #eee; }
.qris-total { margin-top: 18px; }

@media (max-width: 768px) {
    .weather-product-card { grid-template-columns: 1fr; text-align: center; }
    .weather-product-card img { margin: 0 auto; }
    .weather-product-actions { justify-content: center; }
    .checkout-grid,
    .qris-layout { grid-template-columns: 1fr; }
}

/* Fix popup close & hidden behavior */
.weather-popup-backdrop[hidden] {
    display: none !important;
}
.weather-popup-close {
    z-index: 1002;
    pointer-events: auto;
}
.weather-popup {
    z-index: 1001;
}
.weather-recipe-card strong {
    color: #6a4639;
    display: inline-block;
    margin-bottom: 4px;
}

/* Account OTP + Profile */
.auth-page,
.profile-page {
    min-height: 70vh;
    padding: 90px 20px;
    background: #f7f2ee;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.auth-card,
.profile-card {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(67, 45, 36, .12);
}

.auth-card h1,
.profile-card h1 {
    margin: 0 0 12px;
    color: #4d352b;
}

.auth-card p,
.profile-card p {
    color: #665b55;
    line-height: 1.6;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1e4dc;
}

.profile-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.profile-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: #4d352b;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    border: 1px solid #e1d4cc;
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    background: #fffdfb;
}

.profile-form small,
.auth-note {
    color: #7a6a62;
    font-weight: 400;
}

.full-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.resend-form,
.logout-profile-form {
    margin-top: 16px;
}

.link-button {
    border: 0;
    background: none;
    color: #6b4b3e;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
}

.flash-message.error {
    background: #ffe8e8;
    color: #9c1b1b;
    border-left: 4px solid #c92b2b;
}

.flash-message.warning {
    background: #fff7de;
    color: #725300;
    border-left: 4px solid #d6a600;
}

.weather-popup-close,
.weather-floating-btn,
.weather-product-actions a,
.weather-product-actions button,
.nav-link,
.nav-link-icon,
.btn,
button {
    pointer-events: auto;
}

/* FINAL E-commerce profile, address map, payment options */
.nav-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5eee9;
    color: #4d352b;
    text-decoration: none;
    font-weight: 700;
}
.nav-profile-link:hover { background: #eadbd2; color: #2f211b; }
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}
.nav-login-btn {
    background: #6b4b3e;
    color: #fff !important;
    border-radius: 999px;
    padding: 9px 15px !important;
}
.checkout-card,
.cart-total-box {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-top: 26px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.checkout-form { display: grid; gap: 18px; }
.checkout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.checkout-form label,
.checkout-wide-label,
.coordinate-row label {
    display: grid;
    gap: 8px;
    color: #4d352b;
    font-weight: 700;
}
.checkout-form input,
.checkout-form textarea,
.coordinate-row input {
    width: 100%;
    border: 1px solid #e1d4cc;
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    background: #fffdfb;
}
.map-checkout-box {
    border: 1px solid #eadbd2;
    border-radius: 16px;
    padding: 16px;
    background: #fffaf7;
}
.map-checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}
.map-checkout-head p { margin: 5px 0 0; color: #6d5d55; }
.checkout-map {
    width: 100%;
    height: 310px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2d6cf;
    background: #f3ebe6;
    z-index: 1;
}
.coordinate-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.payment-method-box {
    border: 1px solid #eadbd2;
    border-radius: 16px;
    padding: 18px;
    background: #fffdfb;
}
.payment-method-box h3 { margin: 0 0 14px; color: #4d352b; }
.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.payment-option {
    border: 1px solid #e1d4cc;
    border-radius: 14px;
    padding: 15px;
    background: #fff;
    cursor: pointer;
    display: grid;
    gap: 7px;
    transition: .2s ease;
}
.payment-option:hover { border-color: #6b4b3e; box-shadow: 0 8px 18px rgba(67,45,36,.08); }
.payment-option input { width: auto; }
.payment-option span { font-weight: 800; color: #3b2a23; }
.payment-option small { color: #6d5d55; font-weight: 400; }
.manual-payment-box {
    text-align: left;
    background: #fffaf7;
    border: 1px solid #eadbd2;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
}
.manual-payment-icon { font-size: 48px; margin-bottom: 10px; }
.manual-payment-box pre {
    white-space: pre-wrap;
    font: inherit;
    line-height: 1.7;
    background: #fff;
    border: 1px solid #eadbd2;
    border-radius: 12px;
    padding: 16px;
    color: #3f312b;
}
.dana-box { background: #f5fbff; border-color: #d3ecff; }
.profile-map-box { margin-top: 4px; }
.profile-card { max-width: 780px; }
.leaflet-container button,
.leaflet-container a,
.checkout-map,
#useMyLocationBtn,
#useProfileLocationBtn,
.payment-option,
.nav-profile-link,
.nav-login-btn { pointer-events: auto !important; }
@media (max-width: 768px) {
    .map-checkout-head { flex-direction: column; align-items: flex-start; }
    .checkout-map { height: 260px; }
    .nav-profile-link span { display: none; }
}

/* Final customer auth gate for shopping */
.guest-checkout-card {
    max-width: 760px;
    margin: 26px auto;
    padding: 30px;
    border-radius: 22px;
    background: #fff7f1;
    border: 1px solid #eadbd2;
    text-align: center;
    box-shadow: 0 12px 30px rgba(47, 33, 27, .08);
}
.guest-checkout-card h2 { margin: 0 0 10px; color: #3d2a22; }
.guest-checkout-card p { margin: 0 auto 18px; max-width: 560px; color: #6d5d55; line-height: 1.6; }


/* === Project continuation update: cart badge, qty control, profile avatar upload, reviews & ratings === */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-qty-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 10px;
    flex-wrap: wrap;
}
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d7c9c1;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
}
.qty-control form { margin: 0; }
.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #0d5db8;
    background: #fff;
    color: #0d5db8;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.qty-btn:hover { background: #0d5db8; color: #fff; }
.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    color: #1f2937;
}
.profile-header-enhanced { align-items: center; gap: 18px; }
.profile-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.profile-avatar-upload {
    position: relative;
    display: inline-flex;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.profile-avatar-upload .profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0;
}
.avatar-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: rgba(47, 33, 27, 0.78);
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 10px;
}
.detail-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 18px;
    color: #4b5563;
    font-weight: 500;
}
.rating-stars { color: #f59e0b; display: inline-flex; gap: 2px; }
.rating-stars.small { font-size: 0.92rem; }
.review-section {
    margin-top: 36px;
    display: grid;
    gap: 20px;
}
.review-form-card,
.review-card,
.existing-review-image {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
    padding: 22px;
}
.review-form-card h3 { margin-top: 0; }
.review-form {
    display: grid;
    gap: 16px;
}
.review-form.inline-form {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}
.review-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: #334155;
}
.review-form select,
.review-form textarea,
.review-form input[type="file"] {
    width: 100%;
    border: 1px solid #d8cfc8;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.98rem;
    background: #fff;
}
.review-list { display: grid; gap: 16px; }
.review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}
.review-head small {
    display: block;
    color: #6b7280;
    margin-top: 3px;
}
.review-image,
.existing-review-image img {
    margin-top: 14px;
    width: 100%;
    max-width: 320px;
    border-radius: 14px;
    object-fit: cover;
}
.review-card.compact { padding: 18px 22px; }
.top-recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin: 10px 0 6px;
}
@media (max-width: 768px) {
    .profile-header-enhanced,
    .review-head { flex-direction: column; }
    .review-form.inline-form { grid-template-columns: 1fr; }
    .cart-qty-box { justify-content: center; }
    .detail-rating-summary { justify-content: center; }
}


/* === Update final: auth split page, customer orders, interactive star rating === */
.auth-split-page {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 18px;
    background: #f7f1ed;
}
.auth-split-card {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(47, 33, 27, 0.14);
}
.auth-hero {
    position: relative;
    min-height: 560px;
    background: #3d2b24;
    overflow: hidden;
}
.auth-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.72);
}
.auth-hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 42px;
    color: #fff;
    background: linear-gradient(transparent, rgba(47, 33, 27, 0.92));
}
.auth-hero-overlay h2 {
    margin: 0 0 10px;
    font-size: 2.4rem;
    letter-spacing: 0.02em;
}
.auth-hero-overlay p {
    color: #fff7ed;
    line-height: 1.7;
}
.auth-hero-overlay ul {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 10px;
}
.auth-hero-overlay li::before {
    content: "✓";
    margin-right: 10px;
    font-weight: 800;
}
.auth-form-panel {
    padding: 54px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-form-panel h1 {
    margin: 0 0 10px;
    color: #3d2b24;
}
.auth-subtitle {
    color: #6b5f58;
    line-height: 1.7;
    margin-bottom: 24px;
}
.auth-links-row {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #6b5f58;
}
.auth-links-row a {
    color: #0d6efd;
    font-weight: 700;
    text-decoration: none;
}
.otp-progress {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 22px;
}
.otp-progress span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #efe3da;
    color: #6b4b3e;
    font-size: 0.85rem;
    font-weight: 700;
}
.otp-progress span.active {
    background: #0d6efd;
    color: #fff;
}
.profile-wide-page .profile-wide-card {
    max-width: 1080px;
}
.profile-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 28px;
}
.profile-tabs a {
    text-decoration: none;
    background: #efe3da;
    color: #4b342b;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}
.profile-tabs a:hover {
    background: #6b4b3e;
    color: #fff;
}
.profile-panel {
    margin-top: 24px;
    padding-top: 10px;
}
.orders-panel {
    border-top: 1px solid #eee1d9;
}
.customer-order-list {
    display: grid;
    gap: 18px;
}
.customer-order-card {
    background: #fff;
    border: 1px solid #eee1d9;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.05);
    padding: 22px;
}
.customer-order-head,
.customer-order-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.customer-order-head h3 {
    margin: 0 0 6px;
    color: #0b4d88;
}
.customer-order-head p,
.customer-order-item p {
    margin: 0;
    color: #6b7280;
}
.customer-order-items {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.customer-order-item {
    padding: 14px 0;
    border-top: 1px solid #f0e5dd;
}
.order-status-badge,
.review-done-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf7ef;
    color: #166534;
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
}
.status-pending { background: #fff7ed; color: #9a3412; }
.status-paid { background: #eff6ff; color: #1d4ed8; }
.status-processing { background: #f5f3ff; color: #6d28d9; }
.status-shipping { background: #ecfeff; color: #0e7490; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.order-review-details {
    width: min(460px, 100%);
}
.order-review-details summary {
    cursor: pointer;
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-weight: 800;
}
.order-review-details[open] summary {
    margin-bottom: 12px;
}
.order-complete-form {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}
.star-input {
    direction: rtl;
    display: inline-flex;
    gap: 4px;
    font-size: 2rem;
    line-height: 1;
}
.star-input input {
    display: none;
}
.star-input label {
    cursor: pointer;
    color: #d1d5db;
    transition: transform .12s ease, color .12s ease;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #f59e0b;
}
.star-input label:hover {
    transform: scale(1.08);
}
.rating-label {
    display: block;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}
.small-badge {
    font-size: 0.78rem;
    padding: 6px 10px;
    margin-bottom: 10px;
}
.admin-inline-form {
    display: grid;
    gap: 8px;
    min-width: 150px;
}
.admin-inline-form select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
}
@media (max-width: 860px) {
    .auth-split-card {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        min-height: 320px;
    }
    .auth-form-panel {
        padding: 34px 24px;
    }
    .customer-order-head,
    .customer-order-item {
        flex-direction: column;
    }
    .order-complete-form {
        justify-content: flex-start;
    }
}

/* =========================
   REKOMENDASI BERDASARKAN KATEGORI
========================= */

.ingredient-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ingredient-category-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ingredient-category-title {
    background: #f5f7fb;
    padding: 14px;
    text-align: center;
    font-weight: 700;
    color: #004085;
    border-bottom: 1px solid #e5e5e5;
}

.ingredient-category-body{
    min-height:350px;
}

.ingredient-category-card{
    display:flex;
    flex-direction:column;
}

.ingredient-category-body{
    flex:1;
    min-height:350px;
}

.pagination-container{
    margin-top:auto;
    text-align:center;
    padding-top:10px;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
}

.ingredient-item:last-child {
    margin-bottom: 0;
}

.ingredient-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.recipe-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:20px;
}

.recipe-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    transition:0.3s;
}

.recipe-card:hover{
    transform:translateY(-3px);
}

.recipe-card-image{
    width:100%;
    height:180px;
    object-fit:cover;
}

.recipe-card-body{
    padding:16px;
}

.recipe-grid{
    margin-top:30px;
}

.pagination-container button{
    border:none;
    border-radius:6px;
    background:#f2f2f2;
}

.pagination-container button:hover{
    background:#0d6efd;
    color:white;
}

.search-highlight{
    background:#ffe082;
    font-weight:600;
    border-radius:3px;
    padding:0 2px;
}

.search-input{

    width:300px;

    padding:10px;

    border:1px solid #ddd;

    border-radius:8px;

    font-size:16px;

    transition:.25s;

}

.search-input:focus{

    outline:none;

    border-color:#0d6efd;

    box-shadow:0 0 0 3px rgba(13,110,253,.15);

}
/* QRIS otomatis Midtrans */
.qris-live-box {
    border: 1px solid #e4ddd8;
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    text-align: center;
}
.qris-provider-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f2f8ff;
    color: #185b93;
    font-size: .82rem;
    font-weight: 800;
}
.qris-live-image {
    width: min(100%, 310px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}
.qris-amount {
    font-size: 1.45rem;
    color: #3b2a23;
    font-weight: 900;
}
.payment-live-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    padding: 14px;
    border-radius: 14px;
    background: #fff8e9;
    border: 1px solid #f2dfb8;
}
.payment-live-status p { margin: 5px 0 0; color: #6d5d55; line-height: 1.5; }
.payment-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d99a25;
    box-shadow: 0 0 0 6px rgba(217,154,37,.14);
    margin-top: 5px;
    flex: 0 0 auto;
    animation: paymentPulse 1.8s infinite;
}
@keyframes paymentPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.75); opacity: .55; }
}
.qris-expiry {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f7f7;
    color: #5d514b;
    line-height: 1.5;
}
.payment-result-card {
    border-radius: 20px;
    padding: 30px 22px;
    text-align: center;
    border: 1px solid #ddd;
}
.payment-result-card.success { background: #eefaf2; border-color: #c8ebd3; }
.payment-result-card.failed { background: #fff4f3; border-color: #f0cbc7; }
.payment-result-card h2 { margin: 12px 0 8px; }
.payment-result-card p { line-height: 1.65; color: #5d514b; }
.payment-result-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    background: #fff;
}
.payment-result-card.success .payment-result-icon { color: #14713b; border: 2px solid #42a66b; }
.payment-result-card.failed .payment-result-icon { color: #a33128; border: 2px solid #d7645b; }

/* Midtrans Snap.js checkout */
.snap-checkout-box {
    gap: 12px;
}

.snap-provider-mark {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 2px solid rgba(39, 100, 74, 0.2);
    box-shadow: 0 10px 24px rgba(43, 87, 68, 0.12);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #225f45;
}

.snap-helper {
    max-width: 440px;
    margin: 0;
    color: #6d5d55;
    line-height: 1.6;
    text-align: center;
}

.snap-fallback-link {
    color: #27644a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.snap-sandbox-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff8df;
    border: 1px solid #ecd99b;
    color: #665522;
    line-height: 1.55;
}
