/* qr_menu/qr_style.css (Güncellenmiş Stil Dosyası) */
:root {
    --primary: #dc2626;
    /* Hedef tasarımdaki kırmızı */
    --primary-dark: #b91c1c;
    --secondary: #f59e0b;
    /* Sepet ikonu için (opsiyonel) */
    --bg: #f8f9fa;
    /* Açık gri arka plan */
    --card: #ffffff;
    /* Kart arka planı */
    --text: #1f2937;
    /* Koyu gri metin */
    --text-muted: #6b7280;
    /* Daha açık gri */
    --border: #e5e7eb;
    /* İnce border rengi */
    --radius: 12px;
    /* Daha az yuvarlak köşeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background: var(--bg);
    /* Düz açık gri arka plan */
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Phone Container */
.phone {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--bg);
    /* Ana arka plan */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Topbar (Sadeleştirildi) */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* İkonu sağa, başlığı ortaya iter */
    padding: 5px 10px;
    /* Daha kompakt padding */
    background: var(--card);
    /* Düz beyaz */
    border-bottom: 1px solid var(--border);
    height: 50px;
    /* Sabit yükseklik */
}

.topbar-spacer {
    width: 40px;
    /* Cart icon'la aynı genişlikte boşluk */
    flex-shrink: 0;
}

/* .topbar .title kuralını bu ikisiyle değiştirin */
.title-logo-container {
    flex-grow: 1;
    /* Ortalamak için */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    /* Topbar yüksekliğine uyması için */
    padding: 1px 0;
    /* Logonun çok büyük olmaması için dikey dolgu */
}

.topbar-logo {
    height: 100%;
    /* Dikey dolguya göre yüksekliği ayarla (örn: 40px) */
    width: auto;
    /* Genişlik otomatik */
    max-width: 100%;
    /* Logonun çok genişlemesini engelle */
    object-fit: contain;
    /* Logonun bozulmasını engelle */
}

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Daha küçük ikon */
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    background: var(--primary);
    /* Düz renk */
    color: white;
    transition: transform .2s ease;
    border: none;
    flex-shrink: 0;
}

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

.cart-icon svg {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    /* Badge rengi değişti */
    background: white;
    /* Badge rengi değişti */
    border: 1px solid var(--primary);
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); */
}

/* Search Bar (Butonsuz Tasarım) */
.search-container {
    padding: 12px 16px;
    /* Padding azaltıldı */
    background: var(--card);
    /* Topbar ile aynı */
    border-bottom: 1px solid var(--border);
}

.search-form {
    position: relative;
    display: block;
}

.search-input {
    width: 100%;
    height: 44px;
    /* Yükseklik azaltıldı */
    padding: 10px 16px 10px 40px;
    /* Padding ayarlandı */
    border: 1px solid var(--border);
    /* Border inceltildi */
    border-radius: var(--radius);
    /* Köşeler ayarlandı */
    font-size: 14px;
    font-weight: 400;
    /* Daha ince font */
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    background: var(--bg);
    /* Input arka planı */
    color: var(--text);
    -webkit-appearance: none;
}

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

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    /* Focus'ta beyaz */
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    /* Hafif focus shadow */
}

.search-icon {
    position: absolute;
    left: 14px;
    /* İkon konumu */
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 18px;
    /* İkon boyutu */
    height: 18px;
}

/* Chip Bar (Gizlendi) */
.chipbar {
    display: none;
}

/* Category List (Yeni Tasarım) */
.category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
}

.category-card {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--text-muted);
    /* Görsel yüklenmezse */
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 150px;
    /* Sabit yükseklik korunuyor */
}

.category-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.category-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%);
}

.category-card-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    font-weight: 600;
    font-size: 16px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    white-space: wrap;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
}

.header {
    position: sticky;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    height: 56px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Boyut ayarlandı */
    height: 40px;
    font-size: 20px;
    /* İkon boyutu */
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    border-radius: 50%;
    /* Yuvarlak */
    border: 1px solid var(--border);
    /* Border eklendi */
    background: transparent;
    /* Arka plan kaldırıldı */
    box-shadow: none;
    /* Gölge kaldırıldı */
    transition: background .2s ease, color .2s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    color: var(--primary);
    background: rgba(220, 38, 38, 0.05);
    /* Hafif hover efekti */
    border-color: rgba(220, 38, 38, 0.2);
    transform: none;
    /* Eski transform kaldırıldı */
}

.page-title {
    font-weight: 600;
    /* Daha ince */
    font-size: 18px;
    /* Biraz daha küçük */
    color: var(--primary);
    /* Düz renk */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product List (Yeni Tasarım) */
.plist {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Kartlar arası boşluk */
}

.p-row {
    display: flex;
    gap: 12px;
    /* İç boşluk */
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover efekti kaldırıldı */
/* .p-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
} */

.p-thumb {
    flex: 0 0 100px;
    /* Daha küçük görsel */
    height: 90px;
    overflow: hidden;
    border-radius: calc(var(--radius) - 4px);
    /* İç köşeler */
    background: var(--bg);
    /* box-shadow: var(--shadow-sm); */
}

.p-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition: transform .4s ease; */
    /* Hover efekti kaldırıldı */
}

.p-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Dikeyde yay */
    padding-top: 4px;
    /* Başlık için biraz boşluk */
    padding-bottom: 4px;
    /* Fiyat/Buton için biraz boşluk */
}

.p-title {
    margin: 0 0 4px;
    font-size: 16px;
    /* Biraz küçültüldü */
    font-weight: 600;
    /* Daha ince */
    color: var(--text);
    line-height: 1.3;
}

.p-desc {
    margin: 0 0 8px;
    /* Alt boşluk eklendi */
    font-size: 13px;
    font-weight: 400;
    /* Daha ince */
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-bottom {
    display: flex;
    align-items: flex-end;
    /* Buton ve fiyatı alta hizala */
    justify-content: space-between;
    margin-top: auto;
    /* Otomatik yukarı it */
}

.p-price {
    font-size: 16px;
    font-weight: 700;
    /* Biraz daha kalın */
    color: var(--primary);
    /* Fiyat rengi kırmızı */
    background: none;
    /* Gradient kaldırıldı */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    line-height: 1;
    /* Butonla hizalamak için */
}

.add-btn {
    padding: 8px 16px;
    /* Biraz daha küçük buton */
    font-size: 13px;
    font-weight: 600;
    /* Daha ince */
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    /* Köşeler ayarlandı */
    box-shadow: none;
    /* Gölge kaldırıldı */
    background: var(--primary);
    /* Düz renk */
    transition: background .2s ease;
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: none;
    /* Hover transform kaldırıldı */
    box-shadow: none;
}

.add-btn:active {
    transform: scale(0.97);
    /* Hafif basma efekti */
}

/* Cart Modal (Stil Korundu, ufak ayarlamalar) */
.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    /* Biraz daha açık */
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.cart-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-content {
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    /* Yükseklik biraz azaltıldı */
    border-radius: 20px 20px 0 0;
    /* Köşeler */
    background: var(--card);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.cart-modal.active .cart-content {
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    /* Padding ayarlandı */
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-title {
    font-size: 20px;
    /* Boyut ayarlandı */
    font-weight: 700;
    /* Ağırlık ayarlandı */
    color: var(--primary);
    /* Düz renk */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.close-cart {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    /* Daha ince */
    color: var(--text-muted);
    background: var(--bg);
    border: none;
    transition: all .2s ease;
}

.close-cart:hover {
    color: var(--primary);
    background: rgba(220, 38, 38, 0.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

/* Padding ayarlandı */

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    /* Padding azaltıldı */
    background: transparent;
    /* Arka plan kaldırıldı */
    border-bottom: 1px solid var(--border);
    /* Ayırıcı çizgi */
    border-radius: 0;
    /* Köşe kaldırıldı */
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    /* Boyut azaltıldı */
    border-radius: var(--radius);
    /* Köşeler ayarlandı */
    object-fit: cover;
    /* box-shadow: var(--shadow-sm); */
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
    background: white;
    border: 1px solid var(--border);
    /* Border eklendi */
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: var(--primary);
}

.qty-display {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    font-size: 14px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.cart-empty svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    opacity: 0.3;
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--card);
    /* Düz beyaz */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.clear-cart-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.clear-cart-btn svg {
    width: 14px;
    height: 14px;
}

.clear-cart-btn:hover {
    color: var(--primary);
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.05);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    /* Düz renk */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    /* Ağırlık azaltıldı */
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    box-shadow: none;
    background: var(--primary);
    /* Düz renk */
    transition: background .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn svg {
    width: 18px;
    height: 18px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg);
    margin-top: auto;
    /* Footer'ı en alta it */
}

/* Flying Animation (Korundu) */
.flying-image {
    position: fixed;
    z-index: 2000;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.5, -0.5, 0.8, 0.5);
    /* Ayarlandı */
    transform-origin: center;
    box-shadow: var(--shadow-md);
}

.cart-icon.shake {
    animation: cart-shake 0.4s ease both;
}

@keyframes cart-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0) scale(1.1);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0) scale(1.1);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-3px, 0, 0) scale(1.1);
    }

    40%,
    60% {
        transform: translate3d(3px, 0, 0) scale(1.1);
    }
}

/* Search Info & No Results */
.search-info {
    padding: 0 16px 12px;
    /* Padding ayarlandı */
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.search-info strong {
    color: var(--primary);
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-results svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.no-results p {
    font-size: 13px;
}