:root {
    --primary-color: #DC2626;
    /* Vibrant red for accents and CTAs */
    --primary-dark: #991B1B;
    /* Darker red for hover states */
    --bg-white: #FFFFFF;
    --bg-light-gray: #F3F4F6;
    --text-dark: #111827;
    --text-medium: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Landing Page Specific Body */
body:not(.menu-page) {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: transparent;
    position: relative;
}

/* Main Content */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

/* Logo */
.logo-container {
    width: 400px;
    height: auto;
    padding: 20px;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Button */
.menu-button {
    background: #EB0029;
    border: none;
    color: #FFFFFF;
    padding: 1.1rem 2.5rem 1.1rem 2.5rem;
    text-decoration: none;
    font-family: "Titillium Web", sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    letter-spacing: normal;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(235, 0, 41, 0.3);
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.menu-button:hover,
.menu-button:active {
    background: #C00022;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 0, 41, 0.4);
}

.menu-button::after {
    content: '→';
    font-size: 1.3rem;
    font-weight: 200;
    transition: transform 0.3s ease;
}

.menu-button:hover::after {
    transform: translateX(4px);
}

/* Social Share Buttons */
.social-share-buttons {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.3s ease;
}

.social-share-buttons.collapsed {
    left: -60px;
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateX(5px);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
}

.share-btn.whatsapp {
    border-top-right-radius: 8px;
}

.share-btn.whatsapp:hover {
    color: #25D366;
    border-right-color: #25D366;
    background: #F0FDF4;
}

.share-btn.facebook:hover {
    color: #1877F2;
    border-right-color: #1877F2;
    background: #EFF6FF;
}

.share-btn.twitter {
    border-bottom-right-radius: 8px;
}

.share-btn.twitter:hover {
    color: #1DA1F2;
    border-right-color: #1DA1F2;
    background: #EFF6FF;
}

.share-toggle {
    width: 50px;
    height: 40px;
    background: #EB0029;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom-right-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.share-toggle:hover {
    background: #C00022;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .social-share-buttons {
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    }

    .social-share-buttons:hover {
        left: 0;
    }

    .social-share-buttons.collapsed {
        left: 0;
    }

    .share-btn {
        flex: 1;
        width: auto;
        height: 60px;
        border-right: none;
        border-top: 3px solid transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .share-btn:hover {
        transform: translateY(-5px);
        box-shadow: none;
    }

    .share-btn.whatsapp,
    .share-btn.twitter {
        border-radius: 0;
    }

    .share-btn.whatsapp:hover {
        border-top-color: #25D366;
        border-right-color: transparent;
    }

    .share-btn.facebook:hover {
        border-top-color: #1877F2;
        border-right-color: transparent;
    }

    .share-btn.twitter:hover {
        border-top-color: #1DA1F2;
        border-right-color: transparent;
    }

    .share-toggle {
        display: none;
    }
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Modal Styles
   =========================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 600px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.modal-image-container {
    width: 100%;
    height: 350px;
    position: relative;
    background: var(--bg-light-gray);
    border-bottom: 3px solid var(--primary-color);
}

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

.modal-body {
    padding: 24px;
    position: relative;
}

.modal-header {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

.modal-badges {
    display: flex;
    gap: 8px;
}

.modal-description {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .modal-image-container {
        height: 250px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.6rem;
    }
}

/* Specific Mobile Tweaks */
@media (max-height: 600px) {
    .content-wrapper {
        gap: 2rem;
    }

    .logo-container {
        width: 140px;
    }
}

/* ===========================
   Menu Page Styles
   =========================== */

.menu-page {
    display: block;
    background-color: var(--bg-light-gray);
}

.menu-banner {
    position: relative;
    width: 100%;
    height: 200px;
    background-image: url('assets/pide-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--primary-dark);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: block;
    z-index: 1;
}

.menu-banner h1 {
    position: relative;
    z-index: 2;
    font-family: 'Amita', cursive;
    font-size: 48px;
    line-height: 56.64px;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--bg-white);
    text-shadow: none;
}

.menu-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.menu-item-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d1d5db;
    z-index: 2;
}

.menu-item-card:active {
    transform: scale(0.99);
}

.item-image {
    width: 200px;
    /* Reduced width for better proportion */
    height: auto;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    /* For zoom effect */
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    border-right: 1px solid #eeeff2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-image-placeholder span {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    line-height: 1.2;
    opacity: 0.85;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.menu-item-card:hover .no-image-placeholder {
    transform: scale(1.03);
}

.item-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    color: #111827;
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.item-description {
    font-size: 0.95rem;
    color: #4B5563;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

.original-price {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.item-price {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    color: #FFFFFF;
    background: #1F2937;
    /* Dark gray/blue for premium feel */
    padding: 8px 18px;
    border-radius: 50px;
    /* Pill shape */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 80px;
}

.menu-item-card:hover .item-price {
    background: #000000;
    transform: scale(1.05);
}

/* Mobile Tweaks for Menu */
/* Mobile Tweaks for Menu */
@media (max-width: 480px) {
    .menu-item-card {
        flex-direction: column;
        height: auto;
    }

    .item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .item-title {
        font-size: 1.25rem;
    }

    .item-details {
        padding: 20px;
        width: 100%;
    }

    .item-footer {
        margin-top: 15px;
    }
}

/* ===========================
   New Menu Enhancements
   =========================== */

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 14px 50px 14px 20px;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-family: 'Titillium Web', sans-serif;
}

.search-input:focus {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #9CA3AF;
    font-weight: 300;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.search-input:focus+.search-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Category Navigation */
.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 20px 15px 20px;
    /* Added side padding for scroll start/end */
    margin: 0 -20px;
    /* Negative margin to counteract parent padding */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    max-width: 840px;
    /* 800 + 20 + 20 */
}

/* Center nav on desktop if possible */
@media (min-width: 840px) {
    .category-nav {
        margin: 0 auto;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
}

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

.category-link {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 50px;
    background: #F3F4F6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: 'Titillium Web', sans-serif;
}

.category-link.active {
    color: #FFFFFF;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

@media (hover: hover) {
    .category-link:hover {
        color: #FFFFFF;
        background: var(--primary-color);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        transform: translateY(-1px);
    }
}

.category-link:active {
    transform: translateY(0);
}

/* Menu Sections */
.menu-section {
    padding-top: 20px;
    margin-bottom: 30px;
}

.section-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 0;
    border: none;
    padding-left: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before,
.section-title::after {
    content: '';
    display: block;
    flex: 1;
    height: 2px;
    background-color: #EB0029;
    border-radius: 2px;
}

/* Override previous specific after styles if any remain */
.section-title::after {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
}



/* Item Header with Badges */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.badges-container {
    display: flex;
    gap: 6px;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
}

.badge.popular {
    background: #FFF8E1;
    color: #F57C00;
    border: 1px solid rgba(245, 124, 0, 0.2);
}

/* ===========================
   Discount Section Styles
   =========================== */

.discount-section {
    background: #FFF5F5;
    padding: 20px;
    border-radius: 16px;
    border: 2px dashed #FECACA;
    margin-bottom: 40px;
}

.discount-section .section-title {
    color: #DC2626;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.discount-title-icon {
    font-size: 1.5em;
    vertical-align: middle;
}

.discount-card {
    border: 2px solid #FCA5A5;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discount-card:hover {
    border-color: #DC2626;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
    transform: translateY(-5px);
}

.discount-badge-overlay {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #DC2626;
    color: #FFFFFF;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discount-price {
    font-size: 1.4rem;
    background: #DC2626;
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
    font-weight: 800;
}

/* Specific link style for discount in nav */
.category-link.discount-link {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.category-link.discount-link.active,
.category-link.discount-link:hover {
    background: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
}

.badge.new {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.badge.spicy {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}

/* Item Footer */
.item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}

.item-description {
    margin-bottom: 0px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background container with blurred image */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('assets/pide_bg_cozy.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.8);
    transform: scale(1.1);
}

/* Rating Modal Styles */
.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.rating-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.close-rating-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.close-rating-modal:hover {
    color: #333;
}