﻿/* public/css/menu.css */

/* =========================================
   ROOT VARIABLES
========================================= */
:root {
   --cream: #fff7ed;
    --light: #fff7ed;
    --text: var(--dark);
    --border: #fde6c8;
}

/* =========================================
   MENU PAGE HERO
========================================= */
.menu-page-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: var(--cream);
}

.menu-page-hero-content {
    max-width: 750px;
    margin: auto;
}

.menu-page-hero-content .section-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 18px;
    background: rgba(213, 112, 40, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
}

.menu-page-hero h1 {
    margin: 15px 0;
    font-size: clamp(38px, 5vw, 55px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text);
}

.menu-page-hero p {
    max-width: 650px;
    margin: auto;
    color: #6b3a26;
    line-height: 1.8;
    font-size: 16px;
}

/* =========================================
   MENU CONTENT
========================================= */
.menu-page-section {
    padding: 132px 0 80px;
    background: var(--light);
}

/* =========================================
   CATEGORY FILTER
========================================= */
.menu-category-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.menu-category {
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-category:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(213, 112, 40, 0.2);
}

.menu-category.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* =========================================
   SEARCH BOX
========================================= */
.menu-search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
}

.menu-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-search-box i {
    position: absolute;
    left: 16px;
    color: #c19660;
    font-size: 16px;
}

.menu-search-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border: 1px solid #fde6c8;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.menu-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(213, 112, 40, 0.08);
}

.menu-search-input::placeholder {
    color: #b0a8a0;
}

/* =========================================
   MENU CARD
========================================= */
.menu-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Menu Image */
.menu-image {
    position: relative;
    height: 200px;
    background: #f8f4f0;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.05);
}

.menu-image-placeholder {
    background: #fef3e6;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.menu-image-placeholder .icon {
    text-align: center;
    color: var(--primary);
}

.menu-image-placeholder .icon i {
    font-size: 48px;
    opacity: 0.5;
}

.menu-image-placeholder .icon span {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
    color: #c19660;
}

/* Menu Content */
.menu-content {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-content .menu-category-wrapper {
    margin-bottom: 7px;
    display: flex;
    justify-content: flex-start;
    text-align: left;
}

.menu-category-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    text-align: left;
}

.menu-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    text-align: left;
}

.menu-content p {
    margin: 0 0 12px;
    color: #6b3a26;
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.menu-outlet-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 12px;
    padding: 9px 10px;
    border: 1px solid #e3c09e;
    border-radius: 9px;
    background: #fff7ed;
    color: #6b3a26;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.menu-outlet-notice i {
    margin-top: 1px;
    color: var(--primary);
    flex: 0 0 auto;
}

.menu-rice-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 12px;
    padding: 9px 10px;
    border: 1px solid #e9d5ca;
    border-radius: 9px;
    background: #fbf7f4;
    color: #6b3a26;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.menu-rice-notice i {
    margin-top: 1px;
    color: var(--primary);
    flex: 0 0 auto;
}

.rice-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #e3ddd8;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    min-height: 44px;
}

.rice-option:has(input:checked) {
    border-color: var(--primary);
    background: #fff7ed;
}

.rice-option input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.rice-option-name {
    flex: 1 1 auto;
    color: #312d2a;
    font-size: 13px;
    font-weight: 600;
}

.rice-option-price {
    color: #6b3a26;
    font-size: 12px;
    white-space: nowrap;
}

.rice-option:has(input:focus-visible) {
    outline: 3px solid rgba(213, 112, 40, 0.28);
    outline-offset: 2px;
}

/* Menu Bottom */
.menu-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #fde6c8;
    text-align: left;
}

.menu-bottom div {
    text-align: left;
}

.menu-bottom div small {
    display: block;
    color: #c19660;
    font-size: 10px;
    font-weight: 500;
    text-align: left;
}

.menu-bottom div strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    text-align: left;
}

/* Add to Cart Button */
.add-cart-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.add-cart-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.add-cart-button i {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================
   MINIMUM ORDER INFO
========================================= */
.minimum-order-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 700px;
    margin: 60px auto 0;
    padding: 20px 25px;
    border: 1px solid #ead8cf;
    border-radius: 15px;
    background: #fff8f4;
}

.minimum-order-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f5e6df;
    color: var(--primary);
    font-size: 18px;
}

.minimum-order-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 14px;
}

.minimum-order-info p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================
   MENU DETAIL MODAL
========================================= */
#menuDetailModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#menuDetailModal .modal-body {
    padding: 28px;
}

#menuDetailModal .modal-footer {
    padding: 0 28px 28px 28px;
    border: none;
    gap: 10px;
}

#modalMenuName {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

#modalMenuDescription {
    font-size: 14px;
    line-height: 1.7;
    color: #6b3a26;
    margin-bottom: 16px;
}

.package-item {
    display: inline-block;
    padding: 4px 14px;
    background: #f8f4f0;
    border-radius: 20px;
    font-size: 12px;
    color: #5d5752;
    font-weight: 500;
    border: 1px solid #fde6c8;
}

.qty-modal-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--dark);
}

.qty-modal-btn:hover {
    border-color: var(--primary);
    background: #fff8f4;
}

.quantity-number {
    font-size: 20px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    color: var(--dark);
}

.modal-order-summary {
    display: grid;
    gap: 18px;
}

.modal-section-heading,
.modal-order-label {
    color: var(--primary);
}

.modal-order-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.modal-total-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0d7ca;
}

#modalMenuPrice {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0;
    white-space: nowrap;
}

/* =========================================
   ORDER SUCCESS MODAL
========================================= */
.order-success-icon svg {
    width: 64px;
    height: 64px;
}

.order-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

#orderSuccessModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#orderSuccessModal .btn-success {
    background: #25D366;
    border-color: #25D366;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
}

#orderSuccessModal .btn-success:hover {
    background: #1da851;
    border-color: #1da851;
    transform: scale(1.02);
}

/* =========================================
   CUSTOM TOAST
========================================= */
.custom-toast {
    position: fixed;
    top: 108px;
    right: 20px;
    bottom: auto;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    min-width: 300px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.custom-toast.success {
    background: #10B981;
}

.custom-toast.error {
    background: #EF4444;
}

.custom-toast .toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
}

.custom-toast .toast-close:hover {
    opacity: 1;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 991px) {
    .menu-page-hero {
        padding-top: 130px;
        padding-bottom: 60px;
    }
    .menu-page-section {
        padding: 132px 0 60px;
    }
}

@media (max-width: 767px) {
    .menu-page-hero {
        padding-top: 110px;
        padding-bottom: 50px;
    }
    .menu-page-hero h1 {
        font-size: 28px;
    }
    .menu-page-hero p {
        font-size: 14px;
    }
    .menu-page-section {
        padding: 108px 0 40px;
    }
    .menu-category-wrapper {
        gap: 6px;
        margin-bottom: 20px;
    }
    .menu-category {
        padding: 6px 14px;
        font-size: 12px;
    }
    .menu-image {
        height: 160px;
    }
    .menu-content {
        padding: 14px 16px 16px;
    }
    .menu-category-label {
        font-size: 9px;
        padding: 3px 10px;
    }
    .menu-content h3 {
        font-size: 14px;
    }
    .menu-content p {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .menu-bottom div strong {
        font-size: 15px;
    }
    .add-cart-button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .minimum-order-info {
        padding: 16px 18px;
        margin-top: 40px;
    }
    .menu-search-wrapper {
        margin: 0 auto 20px;
    }
    .menu-search-input {
        font-size: 13px;
        padding: 10px 16px 10px 42px;
    }

    /* Modal Mobile */
    #menuDetailModal .modal-dialog {
        margin: 10px;
    }
    #menuDetailModal .modal-body {
        padding: 16px !important;
    }
    #menuDetailModal .modal-footer {
        padding: 0 16px 16px 16px !important;
        flex-direction: column;
    }
    #menuDetailModal .modal-footer .btn {
        width: 100%;
    }
    #modalMenuName {
        font-size: 18px !important;
    }
    #modalMenuDescription {
        font-size: 13px;
    }
    #modalMenuPrice {
        font-size: 24px !important;
    }
    .qty-modal-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .quantity-number {
        font-size: 18px;
    }
    .package-item {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (max-width: 576px) {
    .menu-page-hero h1 {
        font-size: 24px;
    }
    #modalMenuPrice {
        font-size: 20px !important;
    }
    #modalMenuName {
        font-size: 16px !important;
    }
    .qty-modal-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .quantity-number {
        font-size: 16px;
        min-width: 24px;
    }
}
/* BOOTSTRAP ICONS GUARD - jangan timpa font icon */
.bi::before,[class^="bi-"]::before,[class*=" bi-"]::before{font-family:"bootstrap-icons"!important;font-style:normal!important;font-weight:normal!important;}

/* =====================================================
   BACKGROUND BATIK (tambahan)
===================================================== */

/* Biarkan batik terlihat di belakang section */
.menu-page-hero,
.menu-page-section {
    background: transparent;
}

/* Teks hero ditaruh di kotak putih agar terbaca di atas batik */
.menu-page-hero-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   PENYESUAIAN DESAIN (tambahan)
===================================================== */

/* Hero: panel krem, judul marun */
.menu-page-hero-content {
    background: var(--panel, #fffaf0);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 12px 30px rgba(90, 20, 0, 0.25);
}

.menu-page-hero h1 {
    color: var(--dark);
}

.menu-page-hero p {
    color: var(--text);
}

.menu-page-hero-content .section-label {
    background: rgba(var(--primary-rgb), 0.12);
}

/* Filter kategori & pencarian: tampil jelas di atas batik */
.menu-category {
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(90, 20, 0, 0.2);
}

.menu-category:hover,
.menu-category.active {
    background: var(--primary);
    border-color: #ffffff;
    color: #ffffff;
}

.menu-search-input {
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 16px rgba(90, 20, 0, 0.2);
}

.menu-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 217, 54, 0.45);
}

/* Kartu menu */
.menu-card {
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(90, 20, 0, 0.22);
}

.menu-card:hover {
    box-shadow: 0 18px 40px rgba(90, 20, 0, 0.32);
}

.menu-content h3 {
    color: var(--dark);
}

.menu-content p {
    color: var(--text);
}

.menu-bottom div small {
    color: #8a6a4a;
}

/* Info minimal pemesanan: kartu krem dengan aksen kuning */
.minimum-order-info {
    background: var(--panel, #fffaf0);
    border: 2px solid var(--accent);
    box-shadow: 0 10px 25px rgba(90, 20, 0, 0.22);

    /* ponytail: kartu menetap di dasar viewport selama daftar menu masih dalam pandangan */
    position: sticky;
    bottom: 20px;
    z-index: 50;
}

.minimum-order-icon {
    background: rgba(var(--primary-rgb), 0.12);
}

/* Modal */
#modalMenuDescription {
    color: var(--text);
}

.qty-modal-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
}