/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Lazy loading for better performance */
    loading: lazy;
    /* Optimize rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Preload critical images */
.logo-image {
    /* Ensure logo loads quickly */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Menu item images optimization */
.item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.item-image img:hover {
    transform: scale(1.05);
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* PWA-specific logo styling - Black background when installed */
@media (display-mode: standalone) {
    .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
    
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

/* PWA-specific logo styling for mobile when installed */
@media (display-mode: standalone) and (max-width: 768px) {
    .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
    
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

@media (display-mode: standalone) and (max-width: 480px) {
    .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
    
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

@media (display-mode: standalone) and (max-width: 360px) {
    .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
    
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

/* Alternative PWA detection for older browsers */
@media (display-mode: minimal-ui) {
    .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
    
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

@media (display-mode: fullscreen) {
    .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
    
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

/* JavaScript-based PWA detection fallback */
body.pwa-installed .logo {
    background: #000000 !important;
    border: 3px solid #d32f2f !important;
}

body.pwa-installed .category-header .logo {
    background: #000000 !important;
    border: 3px solid #d32f2f !important;
}

/* Additional PWA detection for iOS Safari */
@media (display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen) {
    .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
    
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

/* Install Banner */
.install-banner {
    background: #ffeb3b;
    padding: 15px 20px;
    text-align: center;
    color: #000;
    font-size: 14px;
}

.install-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.install-content i {
    font-size: 18px;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.step-number {
    background: #2196f3;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Main Header */
.main-header {
    background: #000000;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.logo {
    width: 500px;
    height: 375px;
    background: #000000;
    border: 4px solid #d32f2f;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    box-shadow: 
        0 10px 30px rgba(211, 47, 47, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(211, 47, 47, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-image {
    width: 110%;
    height: 149%;
    object-fit: scale-down;
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.brand-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    letter-spacing: 2px;
}

.tagline {
    background: #ffeb3b;
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.menu-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hours {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Menu Categories */
.menu-categories {
    background: #1a1a1a;
    padding: 30px 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Buttons - Desktop Layout */
.category-btn {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 16px rgba(44, 62, 80, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 0 0 15px 15px;
}

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

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(44, 62, 80, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.category-btn.active {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    box-shadow: 
        0 8px 16px rgba(231, 76, 60, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.category-btn.active::after {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.category-btn i {
    font-size: 2rem;
}

/* Menu Content */
.menu-content {
    background: #1a1a1a;
    padding: 20px;
}

.menu-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.menu-section.active {
    display: block;
}

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

.menu-items {
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #d32f2f;
    color: white;
}

/* Product Images - Desktop Layout */
.item-image {
    width: 280px;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 2px solid #d32f2f;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
    transition: all 0.3s ease;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-image:hover {
    border-color: #ff5722;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.item-image img:hover {
    transform: scale(1.05);
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .item-image:active img {
        transform: scale(1.02);
    }
    
    .menu-item:active {
        transform: translateY(1px);
    }
    
    .order-btn:active {
        transform: scale(0.98);
    }
}

/* Menu items without images (beverages and beers) */
.menu-item:not(:has(.item-image)) .item-content {
    padding: 20px;
    text-align: center;
}

.menu-item:not(:has(.item-image)) .item-details {
    text-align: center;
    width: 100%;
}

/* Mobile-first card layout for products */
@media (max-width: 768px) {
    .menu-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }
    
    .item-image {
        width: 100%;
        max-width: 300px;
        height: 200px;
        margin: 0 0 15px 0;
        align-self: center;
        border-radius: 12px;
        border: 2px solid #d32f2f;
    }
    
    .item-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .item-details {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .item-details h3 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #d32f2f;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .description {
        color: #cccccc;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
        max-width: 280px;
    }
    
    .item-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 300px;
        gap: 10px;
        margin-top: 10px;
    }
    
    .item-details .price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #ffffff !important;
        background: linear-gradient(145deg, #d32f2f, #b71c1c);
        padding: 10px 18px;
        border-radius: 12px;
        border: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 0;
        min-width: 120px;
        text-align: center;
        box-shadow: 
            0 6px 12px rgba(211, 47, 47, 0.4),
            0 3px 6px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .item-details .price::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .item-details .price:hover::before {
        left: 100%;
    }
    
    .item-details .price:hover {
        transform: translateY(-1px);
        box-shadow: 
            0 8px 16px rgba(211, 47, 47, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .order-btn {
        background: #4caf50;
        color: white;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: 140px;
        justify-content: center;
    }
}

/* Menu item layout optimization */
.menu-item {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #d32f2f;
    color: white;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item .item-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

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

.item-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.item-details .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    padding: 12px 20px;
    border-radius: 15px;
    display: inline-block;
    width: fit-content;
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    box-shadow: 
        0 8px 16px rgba(211, 47, 47, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-details .price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.item-details .price:hover::before {
    left: 100%;
}

.item-details .price:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(211, 47, 47, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Enhanced image container styling */
.item-image {
    position: relative;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
    border-radius: 12px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.menu-item:hover .product-image {
    transform: scale(1.05);
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-left: auto;
}

.order-btn {
    background: #4caf50;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: flex-start;
}

.order-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    color: white;
    text-decoration: none;
}

.order-btn i {
    font-size: 1rem;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.item-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 8px;
}

.description {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    padding: 10px 18px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    box-shadow: 
        0 6px 12px rgba(211, 47, 47, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.price:hover::before {
    left: 100%;
}

.price:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(211, 47, 47, 0.5),
        0 5px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    background: #1a1a1a;
    padding: 30px 20px;
    text-align: center;
}

.address, .contact {
    margin-bottom: 25px;
}

.address h3, .contact h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.address p {
    color: #2196f3;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.address a:hover p {
    color: #1976d2;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.address i {
    color: #d32f2f;
    font-size: 1.2rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon.phone {
    background: #4caf50;
}

.contact-icon.facebook {
    background: #2196f3;
}

.contact-icon.whatsapp {
    background: #4caf50;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.contact-btn:hover,
.footer .btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .install-banner {
        padding: 12px 15px;
    }
    
    .install-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .install-steps {
        font-size: 11px;
    }
    
    .main-header {
        padding: 20px 15px;
    }
    
    .logo {
        width: 400px;
        height: 300px;
        background: #000000 !important;
        border: 3px solid #d32f2f;
        border-radius: 20px;
        box-sizing: border-box;
        box-shadow: 
            0 8px 25px rgba(211, 47, 47, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: perspective(800px) rotateX(3deg);
    }
    
    .logo:hover {
        transform: perspective(800px) rotateX(0deg) scale(1.02);
        box-shadow: 
            0 12px 35px rgba(211, 47, 47, 0.4),
            0 6px 15px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .brand-text h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .tagline {
        font-size: 1.1rem;
        padding: 8px 18px;
    }
    
    .menu-title {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }
    
    .hours {
        font-size: 1.2rem;
    }
    
    .menu-categories {
        padding: 20px 15px;
    }
    
    .category-grid {
        gap: 12px;
    }
    
    /* Category Buttons - Mobile Optimized Colors (768px) */
    .category-btn {
        background: linear-gradient(145deg, #1e3a8a, #1e40af);
        padding: 15px 10px;
        font-size: 1rem;
        text-decoration: none;
        border-radius: 12px;
        box-shadow: 
            0 6px 12px rgba(30, 58, 138, 0.4),
            0 3px 6px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .category-btn::after {
        background: linear-gradient(90deg, #60a5fa, #3b82f6);
    }
    
    .category-btn:hover {
        background: linear-gradient(145deg, #1d4ed8, #2563eb);
        transform: translateY(-2px);
        box-shadow: 
            0 8px 16px rgba(29, 78, 216, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .category-btn.active {
        background: linear-gradient(145deg, #dc2626, #b91c1c);
        box-shadow: 
            0 6px 12px rgba(220, 38, 38, 0.5),
            0 3px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .category-btn.active::after {
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
    }
    
    .category-btn i {
        font-size: 1.6rem;
    }
    
    .menu-content {
        padding: 15px;
    }
    
    .menu-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .menu-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .menu-item .item-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .item-image {
        width: 100%;
        max-width: 350px;
        height: 250px;
        margin: 0 0 15px 0;
        align-self: center;
        border-radius: 12px;
    }
    
    .item-details {
        text-align: center;
        width: 100%;
    }
    
    .item-details h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .item-details .price {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .item-actions {
        align-self: stretch;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .price {
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff !important;
        background: linear-gradient(145deg, #d32f2f, #b71c1c);
        padding: 6px 12px;
        border-radius: 8px;
        display: inline-block;
        width: fit-content;
        border: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        box-shadow: 
            0 3px 6px rgba(211, 47, 47, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .price::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .price:hover::before {
        left: 100%;
    }
    
    .price:hover {
        transform: translateY(-1px);
        box-shadow: 
            0 5px 10px rgba(211, 47, 47, 0.5),
            0 3px 6px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .order-btn {
        background: #4caf50;
        color: white;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
        cursor: pointer;
        position: relative;
        z-index: 10;
    }
    
    .order-btn:hover {
        background: #45a049;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
        color: white;
        text-decoration: none;
    }
    
    .contact-section {
        padding: 20px 15px;
    }
    
    .address h3, .contact h3 {
        font-size: 1.4rem;
    }
    
    .address p {
        font-size: 1.1rem;
    }
    
    .contact-icons {
        gap: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .footer p {
        font-size: 1rem;
    }
    
    .contact-btn,
    .footer .btn-success {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .install-banner {
        padding: 10px 12px;
    }
    
    .install-steps {
        font-size: 10px;
    }
    
    .step-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .main-header {
        padding: 15px 10px;
    }
    
    .logo {
        width: 320px;
        height: 240px;
        background: #000000 !important;
        border: 2px solid #d32f2f;
        border-radius: 18px;
        box-sizing: border-box;
        box-shadow: 
            0 6px 20px rgba(211, 47, 47, 0.3),
            0 3px 10px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: perspective(600px) rotateX(2deg);
    }
    
    .logo:hover {
        transform: perspective(600px) rotateX(0deg) scale(1.02);
        box-shadow: 
            0 10px 30px rgba(211, 47, 47, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .brand-text h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .tagline {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .menu-title {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
    }
    
    .hours {
        font-size: 1rem;
    }
    
    .menu-categories {
        padding: 15px 10px;
    }
    
    .category-grid {
        gap: 10px;
    }
    
    /* Category Buttons - Small Mobile Optimized Colors (480px) */
    .category-btn {
        background: linear-gradient(145deg, #ffeb3b, #fdd835);
        color: #000;
        padding: 12px 8px;
        font-size: 0.9rem;
        text-decoration: none;
        border-radius: 10px;
        box-shadow: 
            0 4px 8px rgba(255, 235, 59, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .category-btn::after {
        background: linear-gradient(90deg, #dc2626, #b91c1c);
    }
    
    .category-btn:hover {
        background: linear-gradient(145deg, #fdd835, #fbc02d);
        transform: translateY(-1px);
        box-shadow: 
            0 6px 12px rgba(253, 216, 53, 0.5),
            0 3px 6px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .category-btn.active {
        background: linear-gradient(145deg, #dc2626, #b91c1c);
        box-shadow: 
            0 4px 8px rgba(220, 38, 38, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .category-btn.active::after {
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
    }
    
    .category-btn i {
        font-size: 1.4rem;
    }
    
    .menu-content {
        padding: 10px;
    }
    
    /* Enhanced mobile card layout for 480px and below */
    .menu-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .item-image {
        width: 100%;
        max-width: 300px;
        height: 200px;
        margin: 0 0 12px 0;
        align-self: center;
        border-radius: 10px;
        border: 2px solid #d32f2f;
    }
    
    .item-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .item-details {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .item-details h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #d32f2f;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .description {
        color: #cccccc;
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 12px;
        max-width: 280px;
    }
    
    .item-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 280px;
        gap: 8px;
        margin-top: 8px;
    }
    
    .item-details .price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #ffffff !important;
        background: linear-gradient(145deg, #d32f2f, #b71c1c);
        padding: 8px 16px;
        border-radius: 10px;
        border: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 0;
        min-width: 100px;
        text-align: center;
        box-shadow: 
            0 4px 8px rgba(211, 47, 47, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .item-details .price::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .item-details .price:hover::before {
        left: 100%;
    }
    
    .item-details .price:hover {
        transform: translateY(-1px);
        box-shadow: 
            0 6px 12px rgba(211, 47, 47, 0.5),
            0 3px 6px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .order-btn {
        background: #4caf50;
        color: white;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: 130px;
        justify-content: center;
    }
    
    .contact-section {
        padding: 15px 10px;
    }
    
    .address h3, .contact h3 {
        font-size: 1.2rem;
    }
    
    .address p {
        font-size: 1rem;
    }
    
    .contact-icons {
        gap: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 15px 10px;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
    
    .contact-btn,
    .footer .btn-success {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    /* Category Buttons - Ultra Small Mobile Optimized Colors (360px) */
    .category-btn {
        background: linear-gradient(145deg, #7c3aed, #6d28d9);
        padding: 10px 6px;
        font-size: 0.85rem;
        border-radius: 8px;
        box-shadow: 
            0 3px 6px rgba(124, 58, 237, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .category-btn::after {
        background: linear-gradient(90deg, #a78bfa, #8b5cf6);
    }
    
    .category-btn:hover {
        background: linear-gradient(145deg, #6d28d9, #5b21b6);
        transform: translateY(-1px);
        box-shadow: 
            0 4px 8px rgba(109, 40, 217, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .category-btn.active {
        background: linear-gradient(145deg, #dc2626, #b91c1c);
        box-shadow: 
            0 3px 6px rgba(220, 38, 38, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .category-btn.active::after {
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
    }
    
    .category-btn i {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 280px;
        height: 210px;
        background: #000000 !important;
        border: 2px solid #d32f2f;
        border-radius: 15px;
        box-sizing: border-box;
        box-shadow: 
            0 5px 18px rgba(211, 47, 47, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: perspective(500px) rotateX(1deg);
    }
    
    /* Enhanced mobile card layout for 360px and below */
    .menu-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .item-image {
        width: 100%;
        max-width: 280px;
        height: 180px;
        margin: 0 0 10px 0;
        border-radius: 8px;
        border: 2px solid #d32f2f;
    }
    
    .item-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .item-details {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .item-details h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #d32f2f;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .description {
        color: #cccccc;
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 10px;
        max-width: 240px;
    }
    
    .item-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 260px;
        gap: 6px;
        margin-top: 6px;
    }
    
    .item-details .price {
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff !important;
        background: linear-gradient(145deg, #d32f2f, #b71c1c);
        padding: 6px 14px;
        border-radius: 8px;
        border: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 0;
        min-width: 90px;
        text-align: center;
        box-shadow: 
            0 3px 6px rgba(211, 47, 47, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .item-details .price::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .item-details .price:hover::before {
        left: 100%;
    }
    
    .item-details .price:hover {
        transform: translateY(-1px);
        box-shadow: 
            0 5px 10px rgba(211, 47, 47, 0.5),
            0 3px 6px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .order-btn {
        background: #4caf50;
        color: white;
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
        cursor: pointer;
        position: relative;
        z-index: 10;
    }
    
    .order-btn:hover {
        background: #45a049;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
        color: white;
        text-decoration: none;
    }
    
    .logo:hover {
        transform: perspective(500px) rotateX(0deg) scale(1.02);
        box-shadow: 
            0 8px 25px rgba(211, 47, 47, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .brand-text h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .tagline {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .menu-title {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }
    
    .hours {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .install-banner {
        padding: 8px 15px;
    }
    
    .install-steps {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .main-header {
        padding: 15px 20px;
    }
    
    .logo-container {
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .menu-categories {
        padding: 15px 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(211, 47, 47, 0.3);
    border-top: 3px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Category Pages Styles */
.back-navigation {
    padding: 20px;
    background: #000000;
    border-bottom: 2px solid #d32f2f;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #d32f2f;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.back-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    color: white;
    text-decoration: none;
}

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

.category-header {
    background: #000000;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid #d32f2f;
}

.category-header .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.category-header .logo {
    width: 200px;
    height: 150px;
    background: #000000 !important;
    border: 3px solid #d32f2f;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    box-shadow: 
        0 8px 25px rgba(211, 47, 47, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.category-header .brand-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-header .brand-text h1 i {
    color: #d32f2f;
    font-size: 2.2rem;
}

.category-header .tagline {
    font-size: 1.1rem;
    color: #ffeb3b !important;
    font-weight: 400;
    font-style: italic;
    background: transparent !important;
}

.category-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments for category pages */
@media (max-width: 768px) {
    .category-header .logo {
        width: 150px;
        height: 120px;
        background: #000000 !important;
    }
    
    .category-header .brand-text h1 {
        font-size: 1.8rem;
    }
    
    .category-header .brand-text h1 i {
        font-size: 1.6rem;
    }
    
    .category-header .tagline {
        font-size: 0.9rem;
        color: #ffeb3b !important;
        background: transparent !important;
    }
    
    .back-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-header .logo {
        width: 120px;
        height: 100px;
        background: #000000 !important;
    }
    
    .category-header .brand-text h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .category-header .brand-text h1 i {
        font-size: 1.4rem;
    }
}

/* Welcome Content Styles */
.welcome-content {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-message {
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #d32f2f;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
}

.welcome-message h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-message p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #e0e0e0;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: rgba(211, 47, 47, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid rgba(211, 47, 47, 0.3);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
    border-color: #d32f2f;
}

.feature i {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 15px;
    display: block;
}

.feature h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature p {
    font-size: 1rem;
    color: #b0b0b0;
    margin: 0;
}

/* Responsive adjustments for welcome content */
@media (max-width: 768px) {
    .welcome-content {
        padding: 40px 20px;
    }
    
    .welcome-message {
        padding: 30px 20px;
    }
    
    .welcome-message h2 {
        font-size: 2rem;
    }
    
    .welcome-message p {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature {
        padding: 25px 15px;
    }
    
    .feature i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-message h2 {
        font-size: 1.6rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
    
    .feature h4 {
        font-size: 1.1rem;
    }
    
    .feature p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* High-priority PWA logo styling - must be at the end to override other styles */
/* This ensures the logo background is black and has a red border when PWA is installed */
@media (display-mode: standalone),
       (display-mode: minimal-ui),
       (display-mode: fullscreen) {
    .logo,
    .category-header .logo {
        background: #000000 !important;
        border: 3px solid #d32f2f !important;
    }
}

/* JavaScript fallback for PWA detection */
body.pwa-installed .logo,
body.pwa-installed .category-header .logo {
    background: #000000 !important;
    border: 3px solid #d32f2f !important;
} 