/* =========================================
   BLUM Restaurant - Premium Fast Food CSS
   ========================================= */

:root {
    --primary: #dc143c;
    --primary-dark: #8b0000;
    --primary-glow: rgba(220, 20, 60, 0.02);
    --bg-dark: #efefef;
    --bg-darker: #e0e0e0;
    --bg-card: #ffffff;
    --text-main: #0a0a0a;
    --text-muted: #555555;
    --border-color: rgba(0,0,0,0.1);
    --header-bg: #ffffff;
    --header-text: #000000;
    --font-main: 'Outfit', sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 32px;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-dark: #000000;
    --bg-darker: #080808;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --header-bg: #000000;
    --header-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    border-top: none !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark) !important;
    color: var(--text-main);
    line-height: 1.6;
    font-size: var(--font-size-base);
    overflow-x: hidden;
    border-top: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography & Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-gradient {
    color: var(--primary) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

h1 { font-size: var(--font-size-h1); font-weight: 800; line-height: 1.2; }
h2 { font-size: calc(var(--font-size-h1) * 0.85); font-weight: 800; line-height: 1.2; }
h3 { font-size: calc(var(--font-size-h1) * 0.7); font-weight: 800; line-height: 1.2; }
h4 { font-size: calc(var(--font-size-h1) * 0.6); font-weight: 800; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 32px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 10px 20px var(--primary-glow);
    transform: translateY(-3px);
}

.btn-glow {
    box-shadow: 0 0 15px var(--primary-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px var(--primary-glow); }
    50% { box-shadow: 0 0 30px rgba(220, 20, 60, 0.02); }
    100% { box-shadow: 0 0 15px var(--primary-glow); }
}

.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-circle:hover {
    transform: scale(1.1);
    background: white;
    color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    z-index: 1000;
    transition: var(--transition);
    background: var(--header-bg) !important;
    z-index: 1000;
    transition: var(--transition);
    outline: none !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--header-text);
}

body.dark-mode .header {
    background: #000000 !important;
    border-bottom: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.header.scrolled {
    padding: 5px 0;
    background: var(--header-bg) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

body:not(.dark-mode) .logo-img {
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.category-item span {
    font-weight: 700;
    color: var(--text-main);
}

.nav-link {
    font-weight: 600;
    color: var(--header-text) !important;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    background: var(--primary); /* Red */
    border: none;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
    font-family: var(--font-main);
}

.header-btn i { font-size: 1.1rem; }
.header-btn span { letter-spacing: 0.5px; }

.header-btn:hover {
    background: #c41e3a; /* Darker red on hover */
    transform: translateY(-2px);
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--nav-icon-color, inherit);
}

/* Mobile Nav */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: min(280px, 80vw);
    height: 100%;
    background: var(--bg-card);
    padding: 30px;
    transition: var(--transition);
}

.mobile-nav-overlay.active .mobile-nav-content {
    right: 0;
}

.close-menu {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.15) 0%, var(--bg-dark) 80%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(220, 20, 60, 0.02);
    color: var(--primary);
    border: 1px solid rgba(220, 20, 60, 0.02);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content;
}

.timer-label { font-weight: 600; }
.timer-clock { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: 2px;}

.hero-btn-group {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotate(2deg);
    transition: var(--transition);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(2deg); }
}

/* Hero Slider Modernization */
.hero-slider-section {
    position: relative;
    height: 220px; /* Base height for mobile */
    overflow: hidden;
    background: #000;
}

@media (min-width: 640px) { .hero-slider-section { height: 280px; } }
@media (min-width: 768px) { .hero-slider-section { height: 350px; } }
@media (min-width: 1024px) { .hero-slider-section { height: 450px; } }

.hero-slider-container {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    touch-action: pan-y; /* Crucial for mobile: handles X swipe, allows Y scroll */
    cursor: grab;
}

.hero-slider-container:active {
    cursor: grabbing;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 10px;
}

.badge-top-right {
    top: 50px;
    right: -30px;
    animation: float 5s ease-in-out infinite alternate;
}

.badge-bottom-left {
    bottom: 50px;
    left: -30px;
    animation: float 7s ease-in-out infinite alternate-reverse;
}

.floating-badge .icon-box {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.badge-text strong { display: block; font-size: 1.1rem; }
.badge-text span { font-size: 0.8rem; color: var(--text-muted); }

/* Sections Common */
.section {
    padding: 30px 0;
    background-color: var(--bg-dark) !important;
}

.bg-darker {
    background-color: var(--bg-darker) !important;
}

.section-header {
    margin-bottom: 15px;
    background: transparent !important;
    border: none !important;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--text-main) !important;
    background: transparent !important;
}

.section-desc {
    color: var(--text-muted) !important;
    font-size: 1.1rem;
    background: transparent !important;
}

/* Deals Section Slider - General styling for auto-scrolling */
.deals-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 20px !important;
    padding: 15px 10px 30px !important;
    scroll-padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.deals-grid::-webkit-scrollbar { display: none !important; }

.deal-card {
    flex: 0 0 350px !important; /* Fixed width for desktop slider */
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}
@media (max-width: 768px) {
    .deal-card {
        flex: 0 0 75% !important; /* Larger on mobile for better focus */
        min-width: 75% !important;
    }
}

.deal-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.deal-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.deal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.deal-card:hover .deal-img-wrapper img {
    transform: scale(1.1) rotate(-2deg);
}

.deal-tag {
    position: absolute;
    top: 15px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 6px 15px 6px 12px;
    border-radius: 0 50px 50px 0;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-info {
    padding: 25px;
}

.deal-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
.deal-info p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

.deal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price del {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 10px;
    font-weight: 400;
}

/* Menu Section */
.menu-search-container {
    position: relative;
    max-width: 500px;
    margin: 10px auto 5px;
}

.menu-search-container .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.menu-search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.menu-search-input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.02);
}

.menu-categories {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    margin-top: 30px;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.cat-card {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    flex-shrink: 0;
    width: 90px;
    font-family: inherit;
}

.cat-img-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cat-card .cat-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.cat-card:hover .cat-img-box, .cat-card.active .cat-img-box {
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
    transform: translateY(-8px) scale(1.1);
}

.cat-card:hover, .cat-card.active {
    color: var(--primary);
}

.cat-card.active .cat-name {
    color: var(--primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.menu-item {
    background: var(--bg-card);
    border-radius: var(--card-border-radius, 20px);
    padding: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.05);
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.02);
    border-color: rgba(220, 20, 60, 0.02);
}

.menu-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--card-border-radius, 12px);
    margin: 0 auto 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item:hover .menu-img {
    transform: scale(1.1) rotate(5deg);
}

.menu-content h4 { font-size: 1.3rem; margin-bottom: 10px; }
.menu-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; height: 45px; }

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

body.dark-mode .menu-item { border-color: #222; }
body.dark-mode .menu-content { background: #1a1a1a; }
body.dark-mode .menu-content h4 { color: #ffffff; }
body.dark-mode .menu-desc { color: #aaaaaa; }
body.dark-mode .menu-price-tag { box-shadow: 0 4px 8px rgba(0,0,0,0.5); }

/* Guarantee / Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 20, 60, 0.02);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Reviews */
.reviews-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
}

.review-card {
    flex: 0 0 350px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,0.05);
}

.stars { color: #ffc107; margin-bottom: 15px; }

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.rev-details h4 { font-size: 1.1rem; }
.rev-details span { font-size: 0.85rem; color: var(--text-muted); }

/* Map & Contact */
.map-contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 { margin-bottom: 30px; font-size: 2.5rem; }

.info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-block i {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.info-block h4 { margin-bottom: 5px; font-size: 1.2rem; }
.info-block p { color: var(--text-muted); }

.order-direct-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Components & Extras */
.floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulseGlowWA 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
}

@keyframes pulseGlowWA {
    0% { box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 30px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: absolute;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh; /* Modern mobile height */
    background: var(--bg-card);
    padding: 30px;
    display: block; /* Block layout prevents all flex squishing bugs on iOS Safari */
    transition: var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .cart-sidebar {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-sidebar > * {
    flex-shrink: 0;
}

/* Optimize padding for mobile */
@media (max-width: 480px) {
    .cart-sidebar {
        padding: 20px 15px;
    }
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-info h4 { font-size: 1rem; margin-bottom: 5px;}
.cart-item-price { color: var(--primary); font-weight: 700; }
.remove-item { background: transparent; border: none; color: var(--text-muted); cursor: pointer; }
.remove-item:hover { color: var(--primary); }

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 50px;
}

.cart-summary {
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.summary-line.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.checkout-form h3 { margin-bottom: 15px; font-size: 1.2rem;}

.form-group { margin-bottom: 15px; }

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}

/* Product Variation Modal */
.product-modal-content {
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    height: 90vh;
    max-height: 800px;
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.modal-overlay.active .product-modal-content {
    bottom: 0;
}

@media (min-width: 768px) {
    .product-modal-content {
        border-radius: 20px;
        height: 85vh;
        max-height: 800px;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
    
    .modal-overlay.active .product-modal-content {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
}

#close-product-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.product-modal-hero {
    height: 250px;
    width: 100%;
    position: relative;
    flex-shrink: 0;
}

.product-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.product-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 60vh; /* Limit height to force scroll */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.product-modal-body::-webkit-scrollbar {
    width: 4px;
}
.product-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.pm-header {
    margin-bottom: 25px;
}

.pm-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.pm-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pm-section {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.pm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pm-section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.required-badge {
    background: rgba(220, 20, 60, 0.02);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.optional-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pm-option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--transition);
}

.pm-option-label:last-child {
    border-bottom: none;
}

.pm-option-label:hover {
    background: rgba(255,255,255,0.05);
}

.pm-radio-container, .pm-checkbox-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pm-radio-custom, .pm-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    position: relative;
    transition: var(--transition);
}

.pm-radio-custom {
    border-radius: 50%;
}

.pm-checkbox-custom {
    border-radius: 4px;
}

.pm-option-input:checked + .pm-radio-container .pm-radio-custom,
.pm-option-input:checked + .pm-checkbox-container .pm-checkbox-custom {
    border-color: var(--primary);
    background: rgba(220, 20, 60, 0.02);
}

.pm-option-input:checked + .pm-radio-container .pm-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.pm-option-input:checked + .pm-checkbox-container .pm-checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: var(--primary);
}

.pm-option-input {
    display: none;
}

.pm-option-name {
    font-weight: 500;
    font-size: 1rem;
}

.pm-option-price {
    font-weight: 600;
    font-size: 0.95rem;
}

#pm-instructions {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-family: inherit;
    resize: none;
    height: 80px;
    outline: none;
}

#pm-instructions:focus {
    border-color: var(--primary);
}

.product-modal-footer {
    padding: 20px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 0 0 20px 0; /* right bottom corner, since mobile is full width */
}

@media (max-width: 768px) {
    .product-modal-footer {
        border-radius: 0;
        padding-bottom: 30px; /* Safe area for mobile */
    }
}

.pm-quantity-selector {
    display: flex;
    align-items: center;
    background: var(--bg-darker);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(0,0,0,0.05);
}

body.dark-mode .qty-btn:hover {
    background: rgba(255,255,255,0.1);
}

#pm-qty-value {
    width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.pm-add-btn {
    flex: 1;
    display: flex;
    justify-content: space-between !important;
    padding: 15px 25px !important;
}

/* Exit Modal */
.exit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.exit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    max-width: 800px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: var(--transition);
}

.exit-modal-overlay.active .exit-modal-content {
    transform: scale(1);
}

.exit-img {
    flex: 1;
}

.exit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exit-text {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exit-text h2 { font-size: 2rem; margin-bottom: 15px; color: var(--primary); }
.exit-text p { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.4; color: var(--text-muted); }

.close-exit {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

.close-exit:hover { background: var(--primary); }

/* Slider Utilities */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex { display: flex !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }

/* Hero Slider CSS */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0b0b0b;
    padding-top: 60px; /* Reduced to match more compact header */
}

.hero-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    height: 200px;
    width: 100%;
}

@media (min-width: 640px) { .hero-slider-container { height: 280px; } }
@media (min-width: 768px) { .hero-slider-container { height: 350px; } }
@media (min-width: 1024px) { .hero-slider-container { height: 400px; } }

.slider-loader { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2.5rem; }
.slide { width: 100%; height: 100%; flex-shrink: 0; position: relative; }
.slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #0b0b0b, transparent, transparent); }

/* Hero Slider Navigation */
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); cursor: pointer; transition: all 0.3s; z-index: 10; opacity: 0; }
.hero-slider-section:hover .slider-btn { opacity: 1; }
.slider-btn.hidden { display: none; }
.slider-btn:hover { background: var(--primary); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
@media (min-width: 768px) { .slider-btn { width: 48px; height: 48px; font-size: 1.2rem; } .slider-prev { left: 24px; } .slider-next { right: 24px; } }

.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.slider-dot:hover { background: rgba(255,255,255,0.8); }
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 12px; }

/* Promise Slider (Features) */
.promise-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.promise-slider-inner {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    padding: 10px;
}

.promise-slider .feature-card {
    flex: 0 0 280px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.promise-slider .feature-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .promise-slider-inner {
        gap: 15px;
    }
    .promise-slider .feature-card {
        flex: 0 0 260px;
    }
}

/* Centered Contact Section (No Map) */
.contact-section-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-section-centered .contact-info {
    width: 100%;
}

.contact-section-centered .info-block {
    justify-content: center;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
}

.contact-section-centered .order-direct-links {
    justify-content: center;
    margin-top: 30px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

.d-none-mobile { display: inline-flex; }

/* Grid Layouts - Universal Classes */
.menu-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 5px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-container { grid-template-columns: 1fr 1fr; text-align: left; gap: 15px;}
    .hero-content { display: flex; flex-direction: column; align-items: flex-start; }
    .hero-subtitle { margin: 0 auto 30px; }
    
    .map-contact-container { grid-template-columns: 1fr; }
    
    /* Professional Mobile Footer */
    .footer-grid { 
        grid-template-columns: 1fr 1fr; 
        text-align: left; 
        gap: 30px 15px; 
    }
    .footer-brand { 
        grid-column: span 2; 
        order: 3; 
        text-align: center; 
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 25px;
    }
    .footer-links:nth-child(1) { 
        order: 1; 
        text-align: left; 
    }
    .footer-links:nth-child(3) { 
        order: 2; 
        text-align: right; 
    }
    .footer-links ul { 
        display: flex;
        flex-direction: column;
    }
    .footer-links:nth-child(1) ul { align-items: flex-start; }
    .footer-links:nth-child(3) ul { align-items: flex-end; }
    
    .social-links { align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
    .d-none-mobile { display: none !important; }
    .nav-list { display: none; }
    .menu-toggle { display: block !important; color: var(--nav-icon-color, #000) !important; z-index: 1001; flex-shrink: 0 !important; }
    .container { width: 95% !important; }
    
    .logo-img { height: 70px; } /* Adjusted logo for mobile */
    
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content { align-items: center; }
    .hero-image-wrapper { order: -1; max-width: 400px; margin: 0 auto; }
    
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .hero { padding-top: 80px; }
    
    .section { padding: 30px 0; }
    .section-title { font-size: 1.3rem; margin-bottom: 15px;}
    
    .floating-badge { padding: 4px; }
    .floating-badge .icon-box { width: 20px; height: 20px; font-size: 0.8rem; }
    .badge-top-right { top: 5px; right: -5px; }
    .badge-bottom-left { bottom: 5px; left: -5px; }

    /* Grid Modernization for Mobile (2 Columns) */
    .deals-grid, .menu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .deal-card, .menu-item {
        padding: 8px !important;
        border-radius: 8px !important;
    }

    .menu-img {
        width: 100% !important;
        height: 110px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
    }

    /* Featured Slider for Mobile - Optimized */
    .deals-grid {
        gap: 12px !important;
        padding: 10px 10px 20px !important;
    }

    .deal-card {
        flex: 0 0 45% !important; /* Mobile width */
        min-width: 45% !important;
        max-width: 45% !important;
        margin-right: 5px;
        display: block !important;
        border-radius: 8px !important;
        padding: 8px !important;
    }

    .deal-img-wrapper {
        height: 80px !important;
    }

    .deal-tag {
        top: 5px !important;
        font-size: 0.55rem !important;
        padding: 2px 6px 2px 4px !important;
    }

    .deal-info { padding: 6px !important; }
    .deal-info h3, .menu-content h4 { font-size: 0.75rem !important; margin-bottom: 2px !important; }
    .deal-info p, .menu-desc { font-size: 0.6rem !important; height: auto !important; margin-bottom: 5px !important; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .price, .menu-price { font-size: 0.8rem !important; }
    .price del { font-size: 0.6rem !important; }
    
    .btn-sm { padding: 4px 8px !important; font-size: 0.65rem !important; }
    .menu-footer { padding-top: 4px !important; }
}

/* Auth Modal Styles */
.auth-modal-content {
    max-width: 400px;
    text-align: center;
}

.auth-modal-content h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: white;
}

.auth-modal-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

body #auth-name, body #auth-phone, body #auth-code {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
    width: 100%;
    padding: 12px;
    background: var(--bg-darker) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main) !important;
    margin-bottom: 15px;
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Promo Code & Checkout Summary Styling */
.checkout-promo { margin-bottom: 25px; padding-top: 5px; border-top: none; }
.promo-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px; font-weight: 700; }
.promo-input-wrapper { display: flex; gap: 10px; }
#promo-code-input { flex: 1; background: var(--bg-darker) !important; border: 1px solid var(--border-color) !important; border-radius: 10px !important; padding: 12px 15px !important; color: var(--text-main) !important; font-size: 0.9rem !important; text-transform: uppercase; transition: var(--transition); }
#promo-code-input::placeholder { color: var(--text-muted) !important; opacity: 0.7; }
#promo-code-input:focus { outline: none; border-color: var(--primary) !important; background: rgba(255,255,255,0.08) !important; }
#apply-promo-btn { background: var(--primary) !important; color: white !important; border: none !important; padding: 0 20px !important; border-radius: 10px !important; font-weight: 700 !important; font-size: 0.85rem !important; cursor: pointer; transition: var(--transition); text-transform: uppercase; }
#apply-promo-btn:hover { background: var(--primary-dark) !important; transform: translateY(-2px); }
#apply-promo-btn:disabled { background: var(--border-color) !important; cursor: not-allowed; transform: none; }
.checkout-summary { background: rgba(255,255,255,0.03) !important; border-radius: 15px !important; padding: 20px !important; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--text-muted); font-size: 0.95rem; }
.summary-row.total { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); color: white; font-weight: 800; font-size: 1.2rem; }

@media (max-width: 768px) {
    .header {
        padding: 4px 0 !important;
    }
    .logo-img {
        height: 30px !important;
    }
    .header-btn {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
        gap: 3px !important;
        border-radius: 4px !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    .header-btn i {
        font-size: 0.75rem !important;
    }
    .cart-count {
        width: 14px !important;
        height: 14px !important;
        font-size: 0.55rem !important;
        line-height: 14px !important;
        top: -3px !important;
        right: -5px !important;
    }
    .hero-slider-section {
        padding-top: 52px !important;
    }
    .section {
        padding: 15px 0;
    }
    .section-header {
        margin-bottom: 10px;
    }

    /* PROFESSIONAL FOOTER ALIGNMENT - MOBILE */
    .footer-grid { 
        grid-template-columns: 1fr 1fr !important; 
        text-align: left !important; 
        gap: 30px 15px !important; 
    }
    .footer-brand { 
        grid-column: span 2 !important; 
        order: 3 !important; 
        text-align: center !important; 
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        padding-top: 25px !important;
        margin-top: 10px !important;
    }
    .footer-links:nth-child(1) { 
        order: 1 !important; 
        text-align: left !important; 
    }
    .footer-links:nth-child(3) { 
        order: 2 !important; 
        text-align: right !important; 
    }
    .footer-links h4 {
        margin-bottom: 15px !important;
    }
    .footer-links ul { 
        display: flex !important;
        flex-direction: column !important;
    }
    .footer-links:nth-child(1) ul { align-items: flex-start !important; }
    .footer-links:nth-child(3) ul { align-items: flex-end !important; }
    
    .social-links { align-items: center !important; justify-content: center !important; margin-top: 15px !important; }
}

/* Theme Switch Styling */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.theme-switch-wrapper span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-theme {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 0.8rem;
}

.slider-theme:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    z-index: 2;
}

.slider-theme.round {
    border-radius: 34px;
}

.slider-theme.round:before {
    border-radius: 50%;
}

input:checked + .slider-theme {
    background-color: var(--primary);
}

input:checked + .slider-theme:before {
    transform: translateX(30px);
}

.slider-theme .fa-sun { color: #f1c40f; opacity: 1; transition: .4s; }
.slider-theme .fa-moon { color: #f1c40f; opacity: 0; transition: .4s; }

input:checked + .slider-theme .fa-sun { opacity: 0; }
input:checked + .slider-theme .fa-moon { opacity: 1; }

body.dark-mode .header { background: var(--bg-dark) !important; box-shadow: none; }
body.dark-mode .hero-slider-section { background: var(--bg-dark); }
body.dark-mode .bg-darker { background-color: var(--bg-dark); }
body.dark-mode .modal-content { background: var(--bg-card); color: var(--text-main); }
body.dark-mode .cart-item { border-bottom-color: rgba(255,255,255,0.1); }
body.dark-mode .checkout-summary { background: var(--bg-card) !important; border: 1px solid rgba(255,255,255,0.1); }

/* Polish Dark Mode Cards */
body.dark-mode .deal-card { 
    background: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
}
body.dark-mode .menu-item { 
    background: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
body.dark-mode .section-title { color: var(--text-main); }
body.dark-mode .section-desc { color: var(--text-muted); }
body.dark-mode .price { color: var(--primary); }
body.dark-mode .menu-desc { color: var(--text-muted); }

/* Sidebar & Close Button Fixes */
.mobile-nav-content { background: var(--bg-card) !important; }
.close-menu, .close-modal, .close-exit { color: var(--text-main) !important; }
#mobile-menu-btn { 
    display: flex !important; 
    color: var(--nav-icon-color) !important; 
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1000;
}

/* Force menu toggle on all screens */
.menu-toggle, #mobile-menu-btn {
    display: flex !important;
}
@media (min-width: 992px) {
    .menu-toggle, #mobile-menu-btn {
        display: flex !important;
    }
}

.sidebar-social { 
    margin-top: 40px; 
    border-top: 1px solid rgba(255,255,255,0.1) !important; 
    padding-top: 25px; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}
.social-icon {
    width: 45px; 
    height: 45px; 
    background: rgba(255,255,255,0.1) !important; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-main) !important; 
    font-size: 1.1rem; 
    transition: all 0.3s;
}

body.dark-mode .mobile-nav-content { background: var(--bg-card) !important; }
body.dark-mode .close-menu, 
body.dark-mode .close-modal,
body.dark-mode .close-exit { color: var(--text-main) !important; }
body.dark-mode .mobile-nav-link { color: var(--text-main) !important; }
body.dark-mode .theme-switch-wrapper span { color: var(--text-main) !important; }
body.dark-mode .sidebar-social { border-top: 1px solid rgba(255,255,255,0.1) !important; }
body.dark-mode .social-icon { background: rgba(255,255,255,0.1) !important; color: var(--text-main) !important; }

/* Premium Animations */
@keyframes rippleShine {
    0% { left: -100%; opacity: 0; }
    20% { left: 100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: rippleShine 4s infinite;
    pointer-events: none;
}

.cart-count {
    animation: pulseCart 2s infinite;
}

@keyframes pulseCart {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.02); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(220, 20, 60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 20, 60, 0); }
}

@keyframes borderGlow {
    0% { box-shadow: 0 10px 30px rgba(220, 20, 60, 0.02); border-color: rgba(220,20,60,0.1); }
    50% { box-shadow: 0 15px 50px rgba(220, 20, 60, 0.02); border-color: rgba(220,20,60,0.4); }
    100% { box-shadow: 0 10px 30px rgba(220, 20, 60, 0.02); border-color: rgba(220,20,60,0.1); }
}

.auth-modal-content {
    background: var(--bg-card);
    animation: borderGlow 4s infinite;
    border: 1px solid var(--border-color);
}

/* Mobile Banner Fix */
@media (max-width: 767px) {
    .hero-slider-section, .hero-slider-container {
        height: auto !important;
        min-height: 0 !important;
    }
    .slide, .slide img {
        height: auto !important;
        display: block;
    }
    .slide img {
        object-fit: cover !important;
    }
}

/* =========================================
   DYNAMIC BORDER ENGINES
   ========================================= */
.deal-card, .menu-item, .cart-item, .auth-modal-content {
    border-radius: var(--card-border-radius, 8px) !important;
}

/* =========================================
   DYNAMIC THEME SIZING OPTIONS
   ========================================= */
html.ui-size-large body { zoom: 1.15; }
html.ui-size-small body { zoom: 0.85; }
html.ui-size-medium body { zoom: 1; }


/* Premium Variant Styles */
/* DISABLED: Potential source of rogue red lines */
@keyframes premiumPulse {
    0% { box-shadow: none; border-color: transparent; }
    50% { box-shadow: none; border-color: transparent; }
    100% { box-shadow: none; border-color: transparent; }
}
@keyframes shimmerBg {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.pm-option-label.pm-option-premium {
    background: linear-gradient(110deg, var(--premium-bg-1, rgba(234,179,8,0.05)) 0%, var(--premium-bg-1, rgba(234,179,8,0.05)) 40%, var(--premium-bg-2, rgba(234,179,8,0.2)) 50%, var(--premium-bg-1, rgba(234,179,8,0.05)) 60%, var(--premium-bg-1, rgba(234,179,8,0.05)) 100%);
    background-size: 200% auto;
    border: 1px solid var(--premium-glow, rgba(234,179,8,0.5));
    animation: premiumPulse 2s infinite ease-in-out, shimmerBg 4s infinite linear;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pm-option-label.pm-option-premium:hover {
    transform: translateY(-2px);
    border-color: var(--premium-color, #eab308);
    box-shadow: 0 5px 20px var(--premium-glow, rgba(234,179,8,0.5)) !important;
    animation: none;
    background-position: center;
}
.pm-radio-container.premium-radio .pm-radio-custom {
    border-color: var(--premium-glow, rgba(234,179,8,0.6));
    box-shadow: inset 0 0 5px var(--premium-bg-2, rgba(234,179,8,0.3));
}
input:checked ~ .pm-radio-container.premium-radio .pm-radio-custom {
    border-color: var(--premium-color, #eab308);
    background: var(--premium-color, #eab308);
    box-shadow: 0 0 12px var(--premium-glow, rgba(234,179,8,0.8));
}

/* Order History Styles */
.history-item {
    margin-bottom: 15px;
    transition: transform 0.2s;
}
.history-item:hover {
    transform: translateY(-2px);
}
.badge {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* DISABLED: Definitive separator removal */
.order-status-tracker, .order-status-tracker::before, .status-progress-line {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    background: none !important;
    content: none !important;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 60px;
}

.status-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-color);
    border: 3px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status-step.active .status-node {
    background: #22c55e;
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.status-step.completed .status-node {
    background: #4ade80;
    color: white;
}

.status-label {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.status-step.active .status-label {
    color: var(--text-main);
}

.cancel-reason-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-top: 15px;
}

.live-tracker-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.2);
    animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

@keyframes slideInDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Vertical Status Tracker for Sidebar */
.order-status-tracker-vertical {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 40px;
    margin: 10px 0;
}

.order-status-tracker-vertical::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 14px;
    bottom: 10px;
    width: 3px;
    background: var(--card-color);
    z-index: 1;
    border-radius: 4px;
}

.vertical-progress-line {
    position: absolute;
    top: 10px;
    left: 14px;
    width: 3px;
    background: linear-gradient(180deg, #4ade80, #22c55e);
    z-index: 2;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.status-step-v {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 3;
    height: 50px;
}

.status-node-v {
    position: absolute;
    left: -33px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-color);
    border: 3px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

.status-step-v.active .status-node-v {
    background: #22c55e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-step-v.completed .status-node-v {
    background: #4ade80;
    color: white;
}

.status-label-v {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-step-v.active .status-label-v {
    color: #4ade80;
    font-weight: 800;
}

#tracker-chevron {
    transition: transform 0.3s;
}
#tracker-chevron.open {
    transform: rotate(180deg);
}

/* Sidebar Tracker Overrides */
#sidebar-live-tracker-content .order-status-tracker-vertical {
    margin: 5px 0 !important;
}
/* --- Referral & Wallet System Styles --- */
#wallet-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#wallet-transactions-list > div {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

#wallet-transactions-list > div:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

#user-ref-code {
    background: var(--bg-dark);
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px dashed var(--primary);
    color: var(--primary);
    font-size: 1.3rem !important;
    letter-spacing: 2px !important;
    word-break: break-all;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

#copy-ref-btn, #share-wa-btn {
    font-size: 0.8rem;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
}

#share-wa-btn:hover {
    background: #128C7E !important;
}

#sidebar-wallet-balance {
    color: var(--primary);
    font-weight: 800;
    margin-left: 5px;
}

/* Animations for new modals */
.modal-overlay.active #invite-modal .product-modal-content,
.modal-overlay.active #wallet-modal .product-modal-content {
    top: 40px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) scale(1) !important;
    height: auto !important;
    max-height: 90vh !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    #invite-modal .product-modal-content,
    #wallet-modal .product-modal-content {
        width: 92% !important;
        max-width: 450px !important;
        border-radius: 24px !important;
    }
}

/* Menu Section Separators */
/* DEFINITIVE SEPARATOR WIPE: Remove all potential rogue lines */
.menu-categories::before, .menu-categories::after,
.cat-card::before, .cat-card::after,
.section-header::before, .section-header::after,
.menu-categories, .cat-card, .section-header {
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
    background-image: none !important;
}

.menu-separator {
    display: none !important;
}

.menu-section-group {
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.menu-section-title {
    grid-column: 1 / -1;
    font-size: 2rem;
    font-weight: 800;
    margin-top: 5px !important;
    margin-bottom: 20px;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    color: var(--text-main, #fff);
    background: transparent !important;
}
