/* ============================================
   QR MENU - Modern Menu Style Design
   ============================================ */

:root {
    /* Modern Color Palette */
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5A;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #1A1A1A;
    --dark-light: #2C2C2C;
    --gray: #6B7280;
    --gray-light: #F3F4F6;
    --white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body.qr-menu-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.qr-menu-wrapper {
    min-height: 100vh;
    position: relative;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-md);
    max-width: 100%;
}

/* ============================================
   Hero Banner Section
   ============================================ */

.hero-banner {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 280px;
    max-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--space-md);
    text-align: center;
}

.hero-content {
    color: var(--white);
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle-text {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Sticky Category Navigation
   ============================================ */

.category-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-lg);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.category-nav-sticky.sticky-active {
    transform: translateY(0);
}

.category-nav-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-container::-webkit-scrollbar {
    display: none;
}

.category-nav-scroll {
    display: flex;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    min-width: max-content;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--gray-light);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.category-nav-item:active {
    background: var(--primary);
    color: var(--white);
    transform: scale(0.95);
}

.nav-item-icon {
    font-size: 1rem;
}

.nav-item-text {
    font-weight: 500;
}

/* ============================================
   Modern Categories Grid
   ============================================ */

.categories-section-modern {
    padding: 0 0 var(--space-2xl);
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

.category-card-modern {
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease backwards;
}

.category-card-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card-modern:active .category-card-wrapper {
    transform: scale(0.98);
}

.category-card-modern:hover .category-card-wrapper,
.category-card-modern:focus .category-card-wrapper {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-image-modern {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.category-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card-modern:hover .category-image-modern img {
    transform: scale(1.15);
}

.category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
}

.placeholder-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.placeholder-icon-large {
    position: relative;
    z-index: 1;
    font-size: 4rem;
    opacity: 0.9;
}

.category-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--gradient-dark);
    z-index: 1;
}

.category-badge {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.badge-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.category-info-modern {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.category-desc-modern {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-light);
}

.action-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

.action-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.category-card-modern:hover .action-icon {
    transform: translateX(4px);
}

/* ============================================
   Category Hero Header
   ============================================ */

.category-hero-header {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 320px;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.category-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl) var(--space-md);
}

.back-button-modern {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    z-index: 10;
}

.back-button-modern:active {
    transform: scale(0.9);
}

.back-icon-modern {
    font-size: 1.5rem;
    font-weight: 700;
}

.category-hero-info {
    color: var(--white);
}

.category-hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.category-hero-description {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* ============================================
   Modern Products List
   ============================================ */

.products-section-modern {
    padding: 0 0 var(--space-2xl);
}

.products-list-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.product-item-modern {
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease backwards;
}

.product-item-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    gap: 0;
}

.product-item-modern:active .product-item-wrapper {
    transform: scale(0.98);
}

.product-item-modern:hover .product-item-wrapper,
.product-item-modern:focus .product-item-wrapper {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image-modern {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 140px;
    overflow: hidden;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.product-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-item-modern:hover .product-image-modern img {
    transform: scale(1.1);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
}

.placeholder-icon-medium {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    opacity: 0.9;
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 100%);
}

.product-info-modern {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-header-modern {
    margin-bottom: var(--space-xs);
}

.product-name-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.product-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.product-tag-modern {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--gray-light);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.product-description-modern {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-light);
}

.product-price-modern {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-currency {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.price-range {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-action-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.arrow-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.product-item-modern:hover .arrow-icon {
    transform: translateX(4px);
}

.product-item-modern:hover .product-action-arrow {
    background: var(--primary);
}

.product-item-modern:hover .arrow-icon {
    color: var(--white);
}

/* ============================================
   Empty State
   ============================================ */

.empty-state-modern {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.empty-icon-large {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.empty-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (min-width: 640px) {
    .categories-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-image-modern {
        width: 180px;
        min-width: 180px;
        height: 180px;
    }
}

@media (min-width: 768px) {
    .hero-main-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle-text {
        font-size: 1.25rem;
    }
    
    .category-hero-title {
        font-size: 3rem;
    }
    
    .categories-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .product-image-modern {
        width: 200px;
        min-width: 200px;
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .categories-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container-fluid {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ============================================
   Touch Optimizations
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .category-card-modern:active .category-card-wrapper,
    .product-item-modern:active .product-item-wrapper {
        transform: scale(0.97);
    }
}

