/* =============================================
   QR Menü - Müşteri Tarafı CSS (Açık Tema)
   Mobile-First Design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary:        #FF6B35;
    --primary-light:  #FF8C5A;
    --primary-dark:   #E55A25;
    --secondary:      #2D3436;
    --bg:             #F7F4F0;
    --bg-card:        #FFFFFF;
    --bg-header:      #FFFFFF;
    --text-dark:      #1A1A2E;
    --text-medium:    #4A4A5A;
    --text-light:     #8A8A9A;
    --border:         #EBEBEB;
    --shadow-sm:      0 2px 10px rgba(0,0,0,0.06);
    --shadow-md:      0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.15);
    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h:       70px;
    --cat-bar-h:      100px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === HEADER === */
.site-header {
    position: relative;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 20px;
    gap: 12px;
    text-align: center;
}

.header-logo {
    height: var(--logo-size, 120px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
}

.header-logo-placeholder {
    width: var(--logo-size, 80px);
    height: var(--logo-size, 80px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.header-info {
    width: 100%;
}

.header-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 4px;
}

.header-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.header-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255,107,53,0.15);
    display: inline-block;
}

/* === SHOP BANNER === */
.shop-banner {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === CATEGORY BAR === */
.category-bar-wrap {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 14px 0 14px;
    display: flex;
    justify-content: center;
}

.category-bar {
    display: flex;
    gap: 10px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}

.category-bar::-webkit-scrollbar { display: none; }

.cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.cat-btn:active { transform: scale(0.95); }

.cat-img-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    border: 2.5px solid transparent;
    background: var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.cat-placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF0EB, #FFD9CC);
    font-size: 1.5rem;
}

.cat-btn.active .cat-img-wrap {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

.cat-btn.active .cat-img-wrap img {
    transform: scale(1.05);
}

.cat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-medium);
    max-width: 60px;
    text-align: center;
    line-height: 1.2;
    transition: color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-btn.active .cat-label {
    color: var(--primary);
}

/* === MAIN CONTENT === */
.menu-main {
    padding: 20px 0 40px;
}

/* === CATEGORY SECTION === */
.category-section {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.category-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.cat-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.cat-section-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--border);
}

.cat-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.cat-section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    border-radius: 1px;
    opacity: 0.3;
}

/* === PRODUCT GRID === */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px;
}

@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === PRODUCT CARD === */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card:active {
    transform: scale(0.98);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF0EB, #FFD9CC);
}

.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.4;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FF3B30, #FF6B6B);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255,59,48,0.4);
}

.product-body {
    padding: 12px;
}

.product-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

.price-original {
    font-size: 0.78rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.has-variations-tag {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--text-light);
    background: var(--bg);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: none;
}

.modal-sheet::-webkit-scrollbar { display: none; }

.modal-overlay.open .modal-sheet {
    transform: translateY(0);
}

.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 8px;
}

.modal-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF0EB, #FFD9CC);
    position: relative;
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), transform var(--transition);
    z-index: 10;
}

.modal-close:hover { background: white; transform: scale(1.1); }

.modal-body {
    padding: 20px 20px 40px;
}

.modal-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.modal-cat-badge {
    font-size: 0.7rem;
    color: var(--primary);
    background: rgba(255,107,53,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.modal-discount-badge {
    font-size: 0.7rem;
    color: white;
    background: linear-gradient(135deg, #FF3B30, #FF6B6B);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.modal-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 18px;
}

.modal-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.modal-price-current {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
}

.modal-price-original {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.modal-price-save {
    margin-left: auto;
    font-size: 0.75rem;
    color: #27AE60;
    font-weight: 600;
    background: rgba(39,174,96,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* === VARİASYONLAR === */
.variations-section {
    margin-bottom: 16px;
}

.variation-group {
    margin-bottom: 14px;
}

.variation-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variation-opt {
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    font-size: 0.82rem;
    color: var(--text-medium);
    background: var(--bg);
    font-weight: 500;
    transition: all var(--transition);
}

.variation-opt .var-price {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-left: 4px;
}

.variation-opt.selected,
.variation-opt:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255,107,53,0.08);
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-text { font-size: 0.9rem; }

/* === FOOTER === */
.site-footer {
    text-align: center;
    padding: 24px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    margin-top: 20px;
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-light);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--text-light);
}

.footer-brand span { color: var(--primary); font-weight: 600; }

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,107,53,0.4);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 150;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === PAGE LOADING === */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-dots {
    display: flex;
    gap: 8px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: loaderDot 1.2s ease-in-out infinite;
    opacity: 0.3;
}

.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

@keyframes loaderDot {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.3); }
}

/* === SEARCH BAR === */
.search-wrap {
    padding: 12px 16px 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 10px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.search-icon {
    font-size: 1rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

.search-input::placeholder { color: var(--text-light); }

.search-clear {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    display: none;
    padding: 0;
    line-height: 1;
}

.search-clear.visible { display: block; }

/* === DESKTOP LAYOUT === */
@media (min-width: 768px) {
    :root { --header-h: 80px; }

    .site-header { padding: 0 32px; gap: 16px; }
    .header-name { font-size: 1.25rem; }
    .header-logo, .header-logo-placeholder { width: 50px; height: 50px; }
    
    .shop-banner { height: 280px; max-width: 1200px; margin: 0 auto; border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: var(--shadow-sm); }
    .menu-main { padding: 28px 0 60px; max-width: 1200px; margin: 0 auto; }
    .search-wrap { padding: 16px 32px 0; }

    .modal-sheet { border-radius: var(--radius-xl); max-height: 85vh; margin: auto; }
    .modal-overlay { align-items: center; }
    .modal-img-wrap { height: 300px; }
}

/* === MENU ACCORDION (THE HUNGER STYLE) === */
.menu-accordion { width: 100%; margin-top: 16px; }
.acc-item { margin-bottom: 4px; }
.acc-header {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    cursor: pointer;
    overflow: hidden;
}
.acc-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.acc-bg-fallback {
    position: absolute; inset: 0;
    width: 100%; height: 100%; z-index: 0;
}
.acc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
.acc-title {
    position: relative; z-index: 2;
    color: white; font-size: 1.35rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0; display: flex; align-items: center; gap: 12px;
}
.acc-new-badge {
    font-family: 'Inter', sans-serif; font-size: 0.65rem; font-style: italic;
    background: transparent; border: 1px solid white; color: white;
    padding: 3px 8px; border-radius: 20px; font-weight: 600;
}
.acc-icon {
    position: relative; z-index: 2; margin-left: auto;
    color: white; font-size: 1.4rem; transition: transform 0.4s ease;
}
.acc-item.active .acc-icon { transform: rotate(90deg); }
.acc-body {
    background: var(--bg);
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* === MINIMAL PRODUCT GRID === */
.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 16px;
}
@media (min-width: 576px) { .product-list { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 992px) { .product-list { grid-template-columns: repeat(4, 1fr); padding: 24px 32px; gap: 24px; } }

.prod-minimal {
    display: flex; flex-direction: column;
    cursor: pointer; background: transparent;
    transition: opacity 0.2s;
}
.prod-minimal:active { opacity: 0.7; }
.pm-img-wrap {
    width: 100%; aspect-ratio: 1;
    position: relative; background: #f0f0f0;
    margin-bottom: 12px;
}
.pm-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}
.pm-img-placeholder {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    font-size: 2.5rem; color: #ccc;
}
.pm-discount {
    position: absolute; top: 0; left: 0;
    background: var(--danger, #FF3B30); color: white;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 8px;
}
.pm-info { display: flex; flex-direction: column; flex: 1; }
.pm-name {
    font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
    color: var(--text-dark); margin: 0 0 6px 0; line-height: 1.3;
}
.pm-desc {
    font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--text-medium);
    margin: 0 0 10px 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pm-price {
    margin-top: auto; font-weight: 700; font-size: 0.95rem; color: var(--primary);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pm-price-old {
    font-size: 0.8rem; color: var(--text-light); text-decoration: line-through; font-weight: 400;
}
