﻿/* ======================================
   TEMPLATE 4 
====================================== */

/* Container */
.menu4-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header Section */
.menu4-header {
    position: relative;
    background: #ffffff;
    padding: 40px 20px 30px;
    text-align: center;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

.menu4-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.menu4-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    display: block;
}

.menu4-restaurant-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2d3748;
    letter-spacing: -0.5px;
}

.menu4-restaurant-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
    line-height: 1.4;
    color: #718096;
}

/* Main Content Area */
.menu4-main {
    background: #f8f9fa;
    position: relative;
    z-index: 3;
    padding: 20px;
    min-height: calc(100vh - 200px);
    width: 100%;
    box-sizing: border-box;
}

/* Contact Info Strip */
.menu4-contact-strip {
    background: #e2e8f0;
    padding: 12px 20px;
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Highlights Section */
.menu4-highlights {
    padding: 20px 0;
    background: #f8f9fa;
}

.menu4-highlights-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .menu4-highlights-grid::-webkit-scrollbar {
        display: none;
    }

.menu4-highlight-item {
    flex: 0 0 auto;
    width: 70px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .menu4-highlight-item:hover {
        transform: scale(1.05);
    }

.menu4-highlight-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ff6b35;
    margin: 0 auto 6px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    padding: 2px;
}

    .menu4-highlight-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #ffffff;
    }

.menu4-highlight-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #a0aec0;
    border-radius: 50%;
}

.menu4-highlight-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Categories Grid */
.menu4-categories-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.menu4-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0;
    width: 100%;
}

.menu4-category-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .menu4-category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #cbd5e0;
    }

.menu4-category-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f7fafc;
}

    .menu4-category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.menu4-category-card:hover .menu4-category-image img {
    transform: scale(1.05);
}

.menu4-category-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #a0aec0;
}

.menu4-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 15px 15px;
    color: white;
}

.menu4-category-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Product List View (when category is selected) */
.menu4-product-list-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.menu4-back-button {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .menu4-back-button:hover {
        background: #f7fafc;
        border-color: #cbd5e0;
    }

.menu4-selected-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
}

.menu4-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu4-product-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .menu4-product-item:hover {
        background: #f7fafc;
        border-color: #cbd5e0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.menu4-product-image-small {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7fafc;
    align-items: center;
    justify-content: center;
}

    .menu4-product-image-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.menu4-product-image-small-placeholder {
    width: 100%;
    height: 100%;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a0aec0;
}

.menu4-product-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.menu4-product-info {
    flex: 1;
}

.menu4-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.menu4-product-description {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu4-product-extras {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.menu4-calorie,
.menu4-prep-time {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: #718096;
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 8px;
}

.menu4-allergens {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.menu4-allergen-emoji {
    font-size: 0.9rem;
    padding: 1px;
}

.menu4-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    margin-left: 15px;
}

/* Responsive Design */
@media (min-width: 1400px) {
    .menu4-main {
        padding: 30px 40px;
    }

    .menu4-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .menu4-category-image {
        height: 220px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .menu4-main {
        padding: 25px 30px;
    }

    .menu4-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .menu4-category-image {
        height: 200px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .menu4-main {
        padding: 20px 25px;
    }

    .menu4-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .menu4-category-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .menu4-main {
        padding: 15px;
    }

    .menu4-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .menu4-category-image {
        height: 150px;
    }

    .menu4-product-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .menu4-product-details {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .menu4-product-info {
        text-align: center;
    }

    .menu4-product-price {
        margin-left: 0;
    }

    .menu4-restaurant-name {
        font-size: 1.5rem;
    }

    .menu4-restaurant-desc {
        font-size: 0.85rem;
    }

    .menu4-logo {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .menu4-main {
        padding: 10px;
    }

    .menu4-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .menu4-category-image {
        height: 120px;
    }

    .menu4-category-name {
        font-size: 1rem;
    }

    .menu4-product-item {
        padding: 12px;
    }

    .menu4-product-image-small {
        width: 80px;
        height: 80px;
    }

    .menu4-product-name {
        font-size: 1rem;
    }

    .menu4-product-description {
        font-size: 0.8rem;
    }

    .menu4-product-price {
        font-size: 1rem;
    }

    .menu4-highlight-avatar {
        width: 50px;
        height: 50px;
    }

    .menu4-highlight-item {
        width: 60px;
    }

    .menu4-highlight-name {
        font-size: 0.65rem;
    }
}

/* Desktop optimizations */
@media (min-width: 1200px) and (max-width: 1399px) {
    .menu4-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        margin: 0 auto;
        gap: 25px;
    }

    .menu4-category-image {
        height: 200px;
    }
}
