/* ====== GLOBAL STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e86f29;
    --secondary-color: #c95b1e;
    --accent-color: #e86f29;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f7f4;
    --text-dark: #1c1c1c;
    --text-light: #5b616e;
    --border-color: #e7e8eb;
    --bg-light: #ffffff;
    --shadow: 0 10px 30px rgba(18, 26, 38, 0.08);
    --shadow-lg: 0 12px 36px rgba(18, 26, 38, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====== CONTAINER ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ====== HEADER ====== */
.header {
    background: rgba(248, 247, 244, 0.92);
    color: var(--text-dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

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

.logo h1 {
    font-size: 36px;
    margin: 0;
    font-weight: 900;
    color: #000;
    letter-spacing: -0.5px;
}

.home-link {
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.home-link:hover {
    color: var(--text-dark);
    border-color: var(--primary-color);
    background: #fff8f2;
}

.header-search {
    flex: 1;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    background-color: var(--bg-light);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 111, 41, 0.15);
}

.cart-button {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 14px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.cart-button:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.badge {
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 6px;
    font-weight: bold;
}

/* ====== WHATSAPP FLOAT BUTTON ====== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ====== CATEGORY FILTER ====== */
.category-filter {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    overflow-x: auto;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ====== TODAY'S SPECIAL ====== */
.notice-banner {
    background-color: #fff6e7;
    border-left: 4px solid #e9a021;
    padding: 12px 20px;
    margin-bottom: 24px;
    color: #7b5500;
    font-size: 14px;
    border-radius: 4px;
}

.promo-banner {
    background: linear-gradient(135deg, #e86f29, #c95b1e);
    color: white;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ====== TODAY'S SPECIAL ====== */
.today-special {
    margin-bottom: 32px;
    perspective: 1000px;
}

.special-banner {
    background: linear-gradient(135deg, #e86f29 0%, #d67a25 50%, #c95b1e 100%);
    color: white;
    padding: 36px 32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 
        0 20px 50px rgba(232, 111, 41, 0.3),
        0 0 80px rgba(201, 91, 30, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.25);
    animation: specialBannerFloat 4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    transform-style: preserve-3d;
    background-clip: border-box;
}

@keyframes specialBannerFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
        box-shadow: 
            0 20px 50px rgba(232, 111, 41, 0.3),
            0 0 80px rgba(201, 91, 30, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: translateY(-12px) rotateX(2deg);
        box-shadow: 
            0 30px 70px rgba(232, 111, 41, 0.4),
            0 0 100px rgba(201, 91, 30, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.special-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: bannerShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bannerShine {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.special-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: decorativeBlobMove 6s ease-in-out infinite;
}

@keyframes decorativeBlobMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, -30px) scale(1.2);
    }
}

.special-image {
    font-size: 90px;
    flex-shrink: 0;
    min-width: 90px;
    text-align: center;
    animation: imageBounce3D 3.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes imageBounce3D {
    0% {
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotateZ(-5deg) scale(1.1);
    }
    50% {
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
    75% {
        transform: translateY(-20px) rotateZ(5deg) scale(1.1);
    }
    100% {
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
}

.special-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.special-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    animation: tagFloat 2.5s ease-in-out infinite;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@keyframes tagFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.special-content h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 900;
    letter-spacing: -0.7px;
    animation: textReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.2;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateX(-30px) rotateY(20deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.special-content p {
    font-size: 15px;
    margin: 0 0 18px 0;
    opacity: 0.98;
    line-height: 1.6;
    font-weight: 500;
}

.special-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.special-price {
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: pricePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pricePopIn {
    0% {
        transform: scale(0) rotateZ(-10deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotateZ(5deg);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        opacity: 1;
    }
}

.special-footer .btn-primary {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    background: white;
    color: #c95b1e;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    animation: buttonEmerge 0.8s ease-out 0.2s both;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.special-footer .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.special-footer .btn-primary:hover::before {
    left: 100%;
}

@keyframes buttonEmerge {
    0% {
        opacity: 0;
        transform: translateX(30px) rotateZ(10deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateZ(0deg) scale(1);
    }
}

.special-footer .btn-primary:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 18px 45px rgba(232, 111, 41, 0.3);
    background: #fff8f2;
}

.special-footer .btn-primary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ====== BESTSELLER BADGE ====== */
.bestseller-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(255, 165, 0, 0.6);
    }
}

.menu-card {
    position: relative;
    animation: cardFadeIn 0.4s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== CATEGORY FILTER ANIMATIONS ====== */
.filter-button {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: filterFadeIn 0.3s ease-out;
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-button.active {
    animation: filterActive 0.3s ease-out;
}

@keyframes filterActive {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ====== CONFETTI ANIMATION ====== */
@keyframes confettiFall {
    from {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    to {
        opacity: 0;
        transform: translateY(${window.innerHeight}px) rotate(720deg);
    }
}

/* ====== SMOOTH TRANSITIONS ====== */
@keyframes fadeTransition {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

#menuGrid {
    transition: opacity 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* ====== NOTICE BANNER ====== */
/* ====== MENU SECTION ====== */
.menu-section {
    padding: 20px 0 80px 0;
}

.menu-content {
    display: flex;
    flex-direction: column;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

/* ====== MENU CARD ====== */
.menu-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-card-image {
    width: 100%;
    height: 140px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.menu-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.menu-card-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
    flex: 1;
    line-height: 1.3;
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.menu-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.btn-add-cart:active {
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.category {
    margin-bottom: 40px;
}

.category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart:active {
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ====== CART SIDEBAR ====== */
.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-bg);
}

.cart-header h2 {
    font-size: 22px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--light-bg);
}

.quantity-display {
    width: 32px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}

.cart-summary {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background-color: var(--light-bg);
    position: sticky;
    bottom: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.checkout-btn {
    width: 100%;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.cart-overlay.open {
    display: block;
}

/* ====== MODAL ====== */
.modal,
.modal-overlay,
.item-modal,
#itemModalOverlay {
    display: none;
    z-index: 2000;
}

.item-modal-content {
    display: block;
    z-index: 2001;
}

.modal-overlay,
#itemModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

#itemModalOverlay.open,
.modal-overlay.open {
    display: block;
}

.item-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    z-index: 2001;
}

.item-modal.open {
    display: block;
}

.item-modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    position: relative;
}

.item-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.menu-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
    background: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.menu-card-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.menu-card-image {
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override/add image-friendly card image styling: prefer full-bleed image with cover; emoji fallback shown when image missing */
.menu-card-image {
    position: relative;
    width: 140px; /* used in side layout */
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    display: block;
    flex-shrink: 0;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-card-image .emoji-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-light);
}

/* Vertical card layout (grid): image on top, then content */
.menu-grid .menu-card {
    flex-direction: column;
    align-items: stretch;
}

.menu-grid .menu-card-image {
    width: 100%;
    height: 140px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 12px;
}

.menu-card-body {
    padding: 0 8px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.menu-card-details {
    min-width: 0;
}

.menu-card-name {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
}

.menu-card-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6a6a6a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-card-advanced {
    margin: 6px 0 0;
    font-size: 12px;
    color: #a0a0a0;
}

.menu-card-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.menu-card-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.btn-add-cart {
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
    min-width: 90px;
}

.btn-add-cart:hover {
    opacity: 0.92;
}

.modal-section h4 {
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.modal-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
}

.variant-row input {
    margin-right: 8px;
}
.menu-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0;
}

.modal-price-row {
    margin: 12px 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-quantity button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.modal-quantity span {
    min-width: 30px;
    text-align: center;
}

.item-modal-content select,
.item-modal-content label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.item-modal-content select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.item-modal-content .btn-primary {
    width: 100%;
    margin-top: 10px;
}

.item-modal-content .modal-card-image {
    width: 100%;
    height: 240px;
    background-color: var(--bg-light);
    display: block;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.item-modal-content .modal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-modal-content .modal-card-image .emoji-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--text-light);
}

@media(max-width: 768px) {
    .item-modal {
        width: 95%;
        bottom: 10px;
        top: auto;
        transform: translateX(-50%);
        left: 50%;
    }
}
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

.modal-overlay.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
}

.modal.open {
    display: block;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-content {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h2 {
    margin-bottom: 24px;
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 700;
}

/* ====== ORDER SUMMARY ====== */
.order-summary {
    background: linear-gradient(135deg, var(--bg-light) 0%, #eeeeee 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    border: 2px solid var(--border-color);
}

.order-summary .summary-row.total {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 16px;
    border-radius: 10px;
    margin: 16px -20px -20px -20px;
    font-size: 20px;
}

.order-summary h3 {
    font-size: 17px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-items {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item-qty {
    color: var(--text-light);
    font-weight: 600;
    margin-left: 8px;
}

.summary-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

/* ====== FORM STYLES ====== */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #fafafa;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(232, 111, 41, 0.15);
    background-color: white;
    color: var(--text-dark);
}

.error-msg {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
    animation: shake 0.3s ease;
}

.error-msg.show {
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger-color);
    background-color: #fff0f0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.location-status {
    font-size: 14px;
    margin-top: 8px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    line-height: 1.5;
}

.location-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: slideIn 0.3s ease;
}

.location-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: slideIn 0.3s ease;
}

.location-status a {
    color: #0c5460;
    font-weight: 600;
    text-decoration: underline;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* ====== BUTTONS ====== */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 111, 41, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 111, 41, 0.3);
}

.submit-order-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.submit-order-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.submit-order-btn:disabled:hover {
    background-color: #ccc;
    transform: none;
}

/* ====== STICKY FOOTER ====== */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    border-top: 1px solid var(--border-color);
}

.sticky-footer.show {
    display: block;
}

.order-now-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(232, 111, 41, 0.3);
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }

    .header-content {
        gap: 8px;
        flex-wrap: wrap;
    }

    .logo h1 {
        font-size: 28px;
    }

    .header-search {
        flex: 1;
        min-width: 0;
    }

    .home-link {
        order: 3;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .menu-card-image {
        height: 120px;
        font-size: 40px;
    }

    .menu-card-body {
        padding: 10px;
    }

    .menu-card-name {
        font-size: 13px;
    }

    .menu-card-desc {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .menu-card-price {
        font-size: 14px;
    }

    .special-banner {
        padding: 16px;
        gap: 12px;
    }

    .special-image {
        font-size: 60px;
        min-width: 60px;
    }

    .special-content h2 {
        font-size: 18px;
    }

    .special-content p {
        font-size: 13px;
    }

    .special-price {
        font-size: 20px;
    }

    .special-footer .btn-primary {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cart-sidebar {
        max-width: 100%;
    }

    .modal-content {
        padding: 20px;
        border-radius: 12px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    .order-summary {
        margin-bottom: 20px;
        padding: 16px;
    }

    .order-summary h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .summary-item {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .submit-order-btn {
        padding: 14px;
        font-size: 16px;
        margin-top: 14px;
    }

    body {
        padding-bottom: 70px;
    }

    .sticky-footer.show {
        display: block;
    }

    .notice-banner {
        font-size: 12px;
        padding: 8px 12px;
        margin-bottom: 16px;
    }

    .promo-banner {
        font-size: 14px;
        padding: 12px 16px;
        margin-bottom: 16px;
    }

    .category-filter {
        margin-bottom: 16px;
        padding: 12px 0;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .home-link {
        font-size: 13px;
        padding: 6px 10px;
    }

    .cart-button {
        padding: 8px 10px;
        font-size: 14px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .menu-card-image {
        height: 100px;
        font-size: 32px;
    }

    .menu-card-body {
        padding: 8px;
    }

    .menu-card-name {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .menu-card-desc {
        font-size: 10px;
        margin-bottom: 6px;
        display: none;
    }

    .menu-card-footer {
        flex-direction: column;
        gap: 6px;
    }

    .menu-card-price {
        font-size: 13px;
        align-self: flex-start;
    }

    .btn-add-cart {
        width: 100%;
        padding: 6px 8px;
        font-size: 11px;
    }

    .special-banner {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
    }

    .special-image {
        font-size: 50px;
    }

    .special-content h2 {
        font-size: 16px;
    }

    .special-content p {
        font-size: 12px;
    }

    .special-footer {
        width: 100%;
    }

    .special-footer .btn-primary {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }

    .modal-content {
        padding: 16px;
        width: 95% !important;
    }

    .modal {
        width: 95% !important;
        top: 0;
        left: 0;
        transform: none;
        height: 100vh;
        max-height: 100vh;
    }

    .modal-content {
        height: 100%;
        overflow-y: auto;
    }

    .order-summary {
        padding: 14px;
        margin-bottom: 16px;
    }

    .whatsapp-float {
        bottom: 90px;
        right: 10px;
    }

    .whatsapp-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .order-summary h3 {
        font-size: 14px;
    }

    .order-summary .summary-row.total {
        margin: 12px -14px -14px -14px;
    }

    .summary-item {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .form-group {
        gap: 4px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 12px;
        font-size: 16px;
    }

    .submit-order-btn {
        padding: 13px;
        font-size: 15px;
        margin-top: 12px;
    }

    .btn-secondary {
        padding: 12px 16px;
        font-size: 15px;
    }

    .order-summary {
        padding: 12px;
    }

    .notice-banner {
        font-size: 11px;
        padding: 6px 10px;
        margin-bottom: 12px;
    }

    body {
        padding-bottom: 70px;
    }

    .category-filter {
        margin-bottom: 12px;
        padding: 10px 0;
        gap: 8px;
    }

    .filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .badge {
        font-size: 10px;
        padding: 2px 4px;
    }
}
