/* ============================================
   QR MENU - Modern Mobile-First Design
   ============================================ */

:root {
    /* Colors */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5A;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark: #2C3E50;
    --dark-light: #34495E;
    --light: #ECF0F1;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --success: #27AE60;
    --warning: #F39C12;
    --error: #E74C3C;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --gradient-dark: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(78, 205, 196, 0.9) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.qr-menu-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: var(--text-dark);
    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(--spacing-sm);
    max-width: 100%;
}

/* ============================================
   Hero Slider Section
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide:nth-child(1) {
    background: var(--gradient-primary);
}

.hero-slide:nth-child(2) {
    background: var(--gradient-secondary);
}

.hero-slide:nth-child(3) {
    background: var(--gradient-dark);
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    font-size: 1.2rem;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: var(--white) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 24px !important;
    border-radius: var(--radius-full) !important;
}

/* ============================================
   Section Styles
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

/* ============================================
   Categories Grid
   ============================================ */

.categories-section {
    padding: var(--spacing-lg) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease backwards;
}

.category-card-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:active .category-card-inner {
    transform: scale(0.98);
}

.category-card:hover .category-card-inner,
.category-card:focus .category-card-inner {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.category-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.category-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.category-count {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.category-arrow {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
}

/* ============================================
   Category Header
   ============================================ */

.category-header {
    background: var(--white);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    margin: 0 var(--spacing-sm) var(--spacing-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.back-button:hover {
    background: var(--light);
}

.back-icon {
    font-size: 1.25rem;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.category-header-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.category-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-header-text {
    flex: 1;
}

.category-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.category-header-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.category-header-meta {
    display: flex;
    gap: var(--spacing-sm);
}

.product-count-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   Products Grid
   ============================================ */

.products-section {
    padding: var(--spacing-lg) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

/* Mobile bottom bar için padding - sadece mobile'da */
@media (max-width: 767px) {
    .products-section {
        padding-bottom: calc(var(--spacing-lg) + 70px);
    }
    
    .products-grid {
        padding-bottom: calc(var(--spacing-md) + 70px);
    }
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease backwards;
}

.product-card-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:active .product-card-inner {
    transform: scale(0.98);
}

.product-card:hover .product-card-inner,
.product-card:focus .product-card-inner {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.product-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: center;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.product-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--light);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-light);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (min-width: 768px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container-fluid {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ============================================
   Product Detail Page
   ============================================ */

.product-header {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.product-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.product-back-button {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.product-back-button:active {
    transform: scale(0.95);
}

.product-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Image Slider */
.product-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.product-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-slide.active {
    opacity: 1;
    position: relative;
}

.product-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: rgb(var(--color-primary));
    width: 24px;
    border-radius: 4px;
}

.product-image-slider-prev,
.product-image-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(var(--color-text-primary));
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-image-slider-prev {
    left: 1rem;
}

.product-image-slider-next {
    right: 1rem;
}

.product-image-slider-prev:hover,
.product-image-slider-next:hover {
    background: rgb(var(--color-primary));
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.product-image-slider-prev:active,
.product-image-slider-next:active {
    transform: translateY(-50%) scale(0.95);
}

.product-content-section {
    position: relative;
    margin-top: -40px;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--spacing-lg) 0;
    min-height: calc(100vh - 50vh + 40px);
    padding-bottom: 100px;
}

.product-info {
    padding: 0 var(--spacing-sm);
}

.product-header-info {
    margin-bottom: var(--spacing-lg);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.product-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.product-price-section {
    margin-bottom: var(--spacing-md);
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light);
}

.product-tag-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--light);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.section-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.product-allergens-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light);
}

.allergens-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--light);
    border-radius: var(--radius-md);
}

.allergen-icon {
    font-size: 1.25rem;
}

.allergen-name {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
}

.product-nutrition-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    background: var(--light);
    border-radius: var(--radius-md);
}

.nutrition-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.nutrition-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-portions-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light);
}

.portions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.portion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.portion-item:active {
    background: var(--primary-light);
    color: var(--white);
}

.portion-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.portion-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.portion-gram {
    font-size: 0.875rem;
    color: var(--text-light);
}

.portion-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-options-section {
    margin-bottom: var(--spacing-lg);
}

.option-group {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light);
}

.option-group:last-child {
    border-bottom: none;
}

.option-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.option-group-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.option-required-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--error);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.option-item:active {
    background: var(--primary-light);
    color: var(--white);
}

.option-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.option-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.option-price-delta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-add-to-cart-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.btn-add-to-cart {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-add-to-cart:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.cart-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* ============================================
   Touch Optimizations
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .category-card:active .category-card-inner,
    .product-card:active .product-card-inner {
        transform: scale(0.95);
    }
}

