@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary: #F1C338;
    --primary-dark: #d4a72d;
    --secondary: #2D3436;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --price-red: #FF4B2B;
    --whatsapp-green: #25D366;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, .font-heading { font-family: 'Outfit', sans-serif; }

/* Header */
header { background: var(--card-bg); padding: 1.5rem 1rem; text-align: center; }
header h1 { font-size: 1.5rem; font-weight: 800; color: var(--secondary); letter-spacing: -0.8px; }
header .subtitle { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }

.phone-container { margin-top: 15px; display: flex; justify-content: center; }
.phone-link {
    display: flex; align-items: center; gap: 8px;
    background: #FFF; border: 1.5px solid var(--primary);
    color: var(--secondary); text-decoration: none; font-weight: 700;
    font-size: 0.85rem; padding: 6px 16px; border-radius: 50px;
    box-shadow: 0 4px 12px rgba(241, 195, 56, 0.15);
}

.delivery-area-btn-container { margin-top: 10px; display: flex; justify-content: center; }
.delivery-area-btn {
    display: flex; align-items: center; gap: 8px;
    background: #FFF; border: 1.5px solid var(--primary);
    color: var(--secondary); font-weight: 700; cursor: pointer;
    font-size: 0.85rem; padding: 6px 16px; border-radius: 50px;
    box-shadow: 0 4px 12px rgba(241, 195, 56, 0.15);
    transition: all 0.2s ease;
}
.delivery-area-btn:active { transform: scale(0.95); opacity: 0.8; }

/* Offers Carousel */
.deals-section { padding: 1rem 0; background: #fff; }
.offers-title {
    text-align: center; /* Centered as requested */
    font-size: 0.8rem; font-weight: 800;
    color: var(--text-main); letter-spacing: 2px; margin-bottom: 12px;
}
.slider-container { width: 92%; margin: 0 auto; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); height: 100%; }
.slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; cursor: pointer; }
/* Countdown Timer */
.countdown-container {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    padding: 10px 4%;
}
.countdown-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
    width: 100%;
}
.ends-in-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 1.5px;
    opacity: 0.8;
}
.timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    border: none;
}
.time-unit {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.timer-box span {
    font-weight: 800;
    color: var(--price-red);
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    min-width: 24px;
    text-align: center;
}
.timer-box small {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
}
.countdown-progress-bg {
    width: 100%;
    height: 4px;
    background: #f1f3f5;
    border-radius: 10px;
    overflow: hidden;
}
.countdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--price-red));
    width: 100%;
    transition: width 1s linear;
}

/* Category Tabs */
.tabs-container { background: var(--card-bg); padding: 0.5rem 0; position: sticky; top: 0; z-index: 99; border-bottom: 1px solid rgba(0,0,0,0.05); }
.tabs { display: flex; overflow-x: auto; padding: 0.5rem 1rem; gap: 0.6rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 0.5rem 1.2rem; border-radius: 50px; background: #f1f3f5; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; border: none; transition: 0.2s; }
.tab.active { background: var(--primary); color: var(--secondary); box-shadow: 0 4px 10px rgba(241, 195, 56, 0.2); }

/* Menu Section */
.menu-section { padding: 1rem; padding-bottom: 15rem; }
.category-title { font-size: 1rem; font-weight: 800; margin: 1.5rem 0 1rem; color: var(--secondary); }
.menu-grid { display: grid; gap: 1rem; }

.food-card { background: #fff; border-radius: 20px; display: flex; box-shadow: var(--shadow); cursor: pointer; border: 1px solid rgba(0,0,0,0.02); }
.food-img-container { width: 85px; height: 85px; margin: 12px; }
.food-img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.food-info { flex: 1; padding: 12px 12px 12px 0; display: flex; flex-direction: column; justify-content: space-between; }
.food-name { font-size: 0.9rem; font-weight: 700; color: var(--secondary); }
.food-desc { font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; margin-top: 2px; height: 32px; overflow: hidden; }

/* Decent Yellow Add Button */
.food-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.food-price { font-weight: 800; color: var(--price-red); font-size: 0.9rem; }
.add-btn-yellow {
    background: var(--primary); color: var(--secondary); 
    font-size: 0.7rem; font-weight: 800; padding: 6px 14px; 
    border-radius: 10px; box-shadow: 0 2px 8px rgba(241, 195, 56, 0.3);
}

/* Modals & Cart */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: none; z-index: 2000; align-items: flex-end; backdrop-filter: blur(8px); }
.modal-content { 
    background: white; 
    width: 100%; 
    max-width: 500px; 
    margin: 0 auto;
    max-height: 85vh; 
    border-radius: 30px 30px 0 0; 
    position: relative; 
    padding: 1.5rem; 
    overflow-y: auto; 
    transform: translateY(100%); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.map-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}
.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.option-item {
    transition: all 0.2s ease;
    background: #fff;
}
.option-item.selected {
    border-color: var(--primary) !important;
    background: rgba(241, 195, 56, 0.05) !important;
}

/* Decent Close Button */
.close-drawer-btn {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 32px; height: 32px; border-radius: 50%;
    background: #f1f3f5; border: none; color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; z-index: 10;
}

/* Quality Quantity Selector */
.quality-qty-box {
    display: flex; align-items: center; justify-content: center; gap: 25px;
    background: #f8f9fa; padding: 12px; border-radius: 18px; margin: 1rem 0;
    border: 1px solid rgba(0,0,0,0.03);
}
.qty-action-btn {
    width: 38px; height: 38px; border-radius: 12px;
    background: white; border: none; color: var(--secondary);
    font-size: 1.3rem; font-weight: 400; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
}
.qty-action-btn:active { background: #eee; transform: scale(0.95); }
.qty-display-text { font-size: 1.3rem; font-weight: 800; color: var(--secondary); min-width: 25px; text-align: center; }

/* Floating Cart Container */
.cart-floating { 
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); 
    width: 90%; max-width: 480px; background: var(--secondary); 
    color: white; padding: 12px 20px; border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 1000;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cart-summary { display: flex; justify-content: space-between; align-items: center; }
.cart-main-text { font-weight: 700; font-size: 0.9rem; }
.cart-sub-text { font-size: 0.75rem; opacity: 0.6; }

.cart-floating.expanded { 
    bottom: 0px; width: 100%; max-width: 100%; border-radius: 28px 28px 0 0; 
    height: auto; max-height: 85vh; padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column;
}

.cart-minimize-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 20px;
    margin-bottom: 5px;
    cursor: pointer;
    touch-action: none;
}
.cart-minimize-handle i { 
    width: 28px; height: 28px; 
    opacity: 0.4;
    transition: opacity 0.2s;
}
.cart-minimize-handle:active i { opacity: 1; }

.cart-expanded-content { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.cart-floating.expanded .cart-expanded-content { display: flex; }

.cart-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.cart-scroll-area { flex: 1; overflow-y: auto; padding-right: 5px; }

/* Fixed Send Button at Bottom of Cart */
.fixed-send-footer {
    padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1);
}

.send-order-btn-green {
    background: var(--whatsapp-green); color: white;
    width: 100%; padding: 14px; border-radius: 14px; border: none;
    font-weight: 800; font-size: 1rem; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.send-order-btn-green:active { opacity: 0.8; transform: scale(0.99); }

/* Bundle Design */
.bundle-box {
    border: 2px solid #f1f3f5; border-radius: 20px; padding: 1.2rem; margin-bottom: 1rem;
    position: relative; transition: 0.3s;
}
.bundle-box.selected { border-color: var(--primary); background: rgba(241, 195, 56, 0.05); }
.bundle-tag { position: absolute; top: -12px; left: 20px; background: var(--price-red); color: white; font-size: 0.65rem; font-weight: 800; padding: 3px 12px; border-radius: 50px; }

@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pop-in { animation: popIn 0.3s ease-out; }
