:root {
    --primary-color: #d35400;
    --secondary-color: #1a4d2e;
    --accent-color: #f1c40f;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #95a5a6;
    --font-heading: 'Georgia', serif; 
    --font-body: 'Segoe UI', sans-serif;
    --header-height: 60px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.5;
}

/* Mobile Header */
header {
    background: var(--card-bg);
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 0px rgba(0,0,0,0.05);
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sticky Category Nav */
.category-nav-container {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 99;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.1);
}

.category-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 0 1rem 0;
    scrollbar-width: none; 
}

.category-nav::-webkit-scrollbar {
    display: none; 
}
/* Search Bar Styles */
.search-container {
    padding: 0 1rem 0.5rem;
    background: #fff;
}

@media (max-width: 767px) {
    body.search-active header {
        display: none;
    }
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.search-wrapper:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-icon {
    color: #888;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.filter-row {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.avail-filter {
    display: flex;
    align-items: center;
}



.cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    flex-shrink: 0;
    flex-grow: 1;
}

.cat-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid transparent;
    color: #888;
    font-size: 1.2rem;
}

.cat-pill.active .cat-icon-container {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.2);
    color: var(--primary-color);
    background: #fff;
}

.cat-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-pill span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s;
    text-align: center;
}

.cat-pill.active span {
    color: var(--primary-color);
}

.cat-pill:hover .cat-icon-container {
    transform: translateY(-2px);
}

/* Content Area */
.container {
    padding: 1rem;
    padding-bottom: 2rem;
    max-width: 100%; 
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding: 5px 18px;
    border-radius: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary-color);
}

.item-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Food List Cards (Mobile Optimized) */
.food-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.food-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
    cursor: pointer; /* Indicate clickable */
    transition: transform 0.1s;
}

.food-card:active {
    transform: scale(0.98);
}

/* Grid Layout Styles (for index-2.php) */
.food-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.food-card-vertical {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.food-img-container.vertical-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

.food-info.vertical-info {
    padding: 0.8rem;
    flex-grow: 1;
    justify-content: space-between;
}

.food-header.vertical-header {
    margin-bottom: 0.5rem;
    height: 40px; /* Limit height for 2 lines */
    overflow: hidden;
}

.food-card-vertical .food-name {
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-right: 0;
}

.food-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn-add-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Unavailable State Styles */
.food-card.unavailable {
    opacity: 0.7;
    background: #f4f4f4;
    cursor: pointer;
}

.food-card.unavailable .food-img-container {
    filter: grayscale(100%);
}

.food-card.unavailable .food-name,
.food-card.unavailable .food-price,
.food-card.unavailable .food-desc {
    color: #999;
}

/* Unavailable Overlay */
.unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    z-index: 20;
    backdrop-filter: blur(1px);
}

.food-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background-color: #eee;
}

.food-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    
}

.badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.popular {
    background: linear-gradient(45deg, #e67e22, #d35400);
}

.badge.new {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    color: #333;
}

.food-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.food-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.2rem;
}

.food-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
    margin-right: 0.5rem;
}

.food-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Arial', 'Helvetica', sans-serif; 
}

.food-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto 25% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {transform: translateY(50px);}
    to {transform: translateY(0);}
}

.close-btn {
    color: rgb(224, 1, 1);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    font-weight: bold;
    z-index: 1001;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.modal-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ddd;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.modal-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.variants-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.variant-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    font-weight: 500;
}

.variant-price {
    color: var(--primary-color);
    font-weight: bold;
}

/* Simple Footer Styles (Screenshot-3) */
.simple-footer {
    text-align: center;
    padding: 4rem 1rem 3rem;
    background-color: #f5f3f0; /* Very light beige-grey from screenshot */
    color: #666;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.footer-social-circles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-circle {
    width: 45px;
    height: 45px;
    background-color: #ede9e4; /* Slightly darker than footer bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-circle:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-note {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: #999;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--secondary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--secondary-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        margin: 0 auto;
    }
    .food-card {
        padding: 1.2rem;
    }
    .category-nav {
        justify-content: center;
    }
}

/* Toggle Switch Styles */

/* Add to Cart Button (Card) */
.btn-add {
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--primary-color);
    color: #fff;
}



/* Modal Action Footer */
.modal-footer-action {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-selector button {
    background: #f5f5f5;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.qty-selector span {
    padding: 0 1rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.btn-modal-add {
    flex: 1;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Cart Modal Specifics */
.cart-modal {
    align-items: flex-end; /* Bottom sheet style on mobile? Or center? */
}

.cart-content {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-items-container {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 1rem;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #888;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.empty-cart-msg {
    text-align: center;
    padding: 2rem;
    color: #999;
}


/* Bottom Floating Navigation */

/* PWA Install Prompt Styles */
#pwa-prompt-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); z-index: 100001; 
    display: flex; align-items: center; justify-content: center; 
    padding: 1.5rem; backdrop-filter: blur(3.5px);
}
.pwa-prompt-card {
    background: #fff; width: 100%; max-width: 400px; border-radius: 30px; 
    padding: 2.5rem 1.5rem; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
    animation: pwaPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pwa-icon-box {
    width: 85px; height: 85px; background: #fff; border-radius: 22px; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}
.pwa-icon-box img {
    width: 65px; height: 65px; border-radius: 14px;
}
@keyframes pwaPopIn { 
    from { transform: scale(0.8) translateY(40px); opacity: 0; } 
    to { transform: scale(1) translateY(0); opacity: 1; } 
}

/* Modern Bottom-Sheet PWA Prompt */
.pwa-bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 100002;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pwa-bottom-sheet.show {
    bottom: 0;
}
.pwa-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}
.pwa-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: left;
}
.pwa-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.pwa-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2c3e50;
}
.pwa-text p {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}
.pwa-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}
.pwa-btn {
    flex: 1;
    padding: 0.9rem;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}
.pwa-btn-install {
    background: #d35400;
    color: #fff;
    box-shadow: 0 5px 15px rgba(211,84,0,0.2);
}
.pwa-btn-close {
    background: #f8f9fa;
    color: #95a5a6;
}

/* Footer Hours Button */
.btn-hours-transparent {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    font-family: inherit;
    align-items: baseline;
}

.btn-hours-transparent:hover {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

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

.weekly-hour-item.is-today {
    background: rgba(211, 84, 0, 0.05);
    margin: 0 -2rem;
    padding: 10px 2rem !important;
}

/* Home Slider */
.home-slider-section {
    margin-top: 2rem;
}
.home-slider-container {
    width: 100%;
    max-width: 1070px;
    margin: 1rem auto;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 7;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f0f0f0;
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}
.slide {
    min-width: 100%;
    height: 100%;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}
body.search-active .home-slider-container {
    display: none !important;
}
@media (max-width: 1140px) {
    .home-slider-section {
    margin-top: 0;
}
    .home-slider-container {
        width: calc(100% - 2rem);
        margin: 1rem auto 0 auto;
        border-radius: 10px;
    }
    .footer-brand {
        font-size: 1.3rem;
    }
}

