/* =====================================================
   QR MENU SYSTEM - MAIN STYLESHEET
   Version: 1.0
   ===================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
  font-family: var(--theme-font-family);
  background-color: var(--theme-background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.sidebar-logo {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 2rem auto;
}
.sidebar-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px #e53e3e44);
}

.nav-tabs {
    display: flex;
    gap: 10px;
}

.nav-tab {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-tab:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: white;
    color: #e53e3e;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Category Section */
.category-section {
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #e53e3e;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

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

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Categories Section */
.featured-categories-section {
    margin-bottom: 4rem;
}

.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.featured-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--theme-accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;

    gap: 0.5rem;
}

.featured-category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.featured-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.featured-category-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-category-count {
    color: #e53e3e;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Featured Subcategories Section */
.featured-subcategories-section {
    margin-bottom: 4rem;
}

.featured-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.featured-subcategory-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.featured-subcategory-image {
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.subcategory-icon {
    width: 60px;
    height: 60px;
}

.featured-subcategory-info {
    padding: 1.5rem;
}

.featured-subcategory-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.featured-subcategory-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-subcategory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.subcategory-count {
    color: #e53e3e;
    font-weight: 600;
}

.subcategory-price {
    color: #666;
}

/* Featured Items Section */
.featured-section {
    margin-bottom: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.badge-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 10;
    overflow-y: visible;
}

.featured-badge {
    background: var(--theme-primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px var(--theme-primary-color);
}

.on-discount-badge {
    background: var(--theme-accent-color);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px var(--theme-accent-color);
}

.popular-badge {
    background: var(--theme-secondary-color);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px var(--theme-secondary-color);
}

.dairy-free-badge {
    background: #f5ebd8;
    color: var(--theme-text-color);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px #f5ebd8;
}

.vegan-badge {
    background: #38a169;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px #38a169;
}

.gluten-free-badge {
    background: #f5ebd8;
    color: var(--theme-text-color);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px #f5ebd8;
}

.recommended-badge {
    background: #FFD700;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px #FFD700;
}

.kosher-badge {
    background: #000080;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px #000080;
}

.halal-badge {
    background: green;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 1px 4px green;
}

.featured-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.food-placeholder {
    width: 80px;
    height: 80px;
}

.featured-info {
    padding: 1.5rem;
}

.featured-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.featured-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.featured-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53e3e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-subcategories-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card,
    .featured-category-card,
    .featured-subcategory-card,
    .featured-card {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .featured-category-title {
        font-size: 1.2rem;
    }
    
    .featured-name {
        font-size: 1.1rem;
    }
    
    .nav-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: #e53e3e;
}

.bg-primary {
    background-color: #e53e3e;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } 

.subcategory-card-img-picture {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  color: var(--theme-primary-color);
} 