/* --- CSS TASARIMI --- */
:root {
    --primary: #D32F2F;
    --secondary: #2D3436;
    --bg: #F9FAFB;
    --white: #FFFFFF;
    --success: #27ae60;
    --info: #3498db;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* DÜZELTME: padding-bottom kaldırıldı */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--secondary);
    -webkit-tap-highlight-color: transparent;
}

header {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cart-badge {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary);
}

.step-content {
    display: none;
    padding: 15px 20px;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-title {
    font-size: 1.3rem;
    margin: 20px 0 15px 0;
    font-weight: 800;
    color: #1a1a1a;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.category-title {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}


.pizza-card {
    background: var(--white);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s;
}

.pizza-card:active {
    transform: scale(0.98);
    background: #fafafa;
}

.pizza-thumb-container {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.pizza-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pizza-info {
    flex-grow: 1;
}

.pizza-info h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
}

.pizza-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

.price {
    font-weight: 800;
    color: var(--primary);
    margin-top: 6px;
    display: block;
}

.add-btn-fake {
    background: #fff0ed;
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.option-group {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.option-group h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.custom-control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.label-left {
    display: flex;
    align-items: center;
    width: 75%;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.price-diff {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.price-diff.plus {
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: max(1rem, 16px);
    /* iOS Safari auto-zoom engellemesi */
}

.form-input:read-only {
    background: #f0f0f0;
    color: #555;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--success);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.gps-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px dashed #1976d2;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.gps-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 5%;
    width: 90%;
    background: linear-gradient(135deg, #D32F2F 0%, #b71c1c 100%);
    color: white;
    padding: 0;
    /* İçerik padding'i kaldırıldı, wrapper'a eklenecek */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
    display: none;
    flex-direction: column;
    /* Dikey hizalama */
    z-index: 200;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* Taşmaları gizle */
}

.floating-cart-bar:active {
    transform: scale(0.98);
}

.cart-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    box-sizing: border-box;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-count {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-total {
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 2px;
}

.cart-arrow {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

.cart-item-details h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
}

.delete-btn {
    color: #ff0000;
    font-size: 0.8rem;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    text-decoration: underline;
}

.action-btn {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#extras-btn-area button {
    transition: all 0.3s ease;
}

#extras-btn-area button:hover {
    background: #eee !important;
    color: #333 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-banner-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #000;
    transition: border-radius 0.3s ease;
}

.product-banner-container.has-audio {
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-banner-img,
.product-banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* --- İLERLEME ÇUBUĞU (GÜNCELLENDİ) --- */
#min-limit-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Transparan Siyah Arkaplan */
    padding: 12px 15px;
    display: none;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.limit-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    display: block;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Okunabilirlik için gölge */
}

.limit-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.limit-progress-fill {
    height: 100%;
    background: #f39c12;
    width: 0%;
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
    /* Hafif parlama */
}

.limit-highlight {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    /* Vurgu için */
}

.discount-mode .limit-progress-fill {
    background-color: #2ecc71 !important;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
    /* Yeşil parlama */
}

.discount-mode .limit-highlight {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
}

/* --- KAYITLI ADRES KUTUSU --- */
#saved-address-view {
    background: #f6fff9;
    border: 1px solid #27ae60;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: none;
}

.saved-addr-title {
    font-weight: bold;
    color: #27ae60;
    display: block;
    margin-bottom: 5px;
}

.saved-addr-text {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    display: block;
    line-height: 1.4;
}

.change-addr-btn {
    background: white;
    border: 1px solid #ccc;
    color: #555;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- SİPARİŞ TAKİP ÇUBUĞU --- */
.order-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 15px;
    margin-bottom: 10px;
}

.tracker-step {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #ddd;
    transition: color 0.3s;
    background: white;
    padding: 0 5px;
}

.step-dot {
    width: 12px;
    height: 12px;
    background: #eee;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 2px solid #fff;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step-label {
    font-size: 0.65rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

.progress-line-container {
    position: absolute;
    top: 38px;
    left: 12%;
    width: 76%;
    height: 3px;
    background: #f0f0f0;
    z-index: 1;
    border-radius: 3px;
}

.progress-line-fill {
    height: 100%;
    background: #27ae60;
    width: 0%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Aktif Adım Stilleri */
.tracker-step.active .step-icon {
    color: #2D3436;
    transform: scale(1.1);
}

.tracker-step.active .step-dot {
    background: #27ae60;
    transform: scale(1.2);
}

.tracker-step.active .step-label {
    color: #27ae60;
}

.tracker-step.completed .step-icon {
    color: #27ae60;
}

/* --- FOOTER & MODAL --- */
footer {
    text-align: center;
    padding: 20px 10px 80px 10px;
    color: #999;
    font-size: 0.8rem;
    background-color: #f1f3f5;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    max-height: 80dvh;
    /* Dynamic viewport height - mobil klavye açıkken doğru hesaplar */
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Küçük ekranlarda modal'ı daha fazla genişlet */
@media (max-height: 700px) {
    .modal-content {
        max-height: 95vh;
        max-height: 95dvh;
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    /* Header'ın küçülmesini engelle */
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

/* Modal Animasyonu */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- TELEFON DOĞRULAMA (SİPARİŞ FORMU) --- */
.phone-input-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.phone-input-group .form-input {
    flex: 1;
    margin-bottom: 0;
}

#btn-verify-phone-order {
    padding: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    white-space: nowrap;
    display: none;
    /* Başlangıçta gizli */
}

#phone-verified-label {
    display: none;
    /* Başlangıçta gizli */
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--success);
    background: #f0fff4;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 12px;
}

/* --- RESİM BÜYÜTME MODAL (LIGHTBOX) --- */
.image-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10001;
    /* Diğer modalların üstünde */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10002;
}

.close-image-modal:hover,
.close-image-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- YORUM KARTLARI --- */
.review-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-name {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.75rem;
    color: #999;
}

.review-stars {
    color: #f1c40f;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    font-style: italic;
}

/* --- GOOGLE REVIEW KARTLARI (YENİ) --- */
.google-review-card {
    flex: 0 0 260px;
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.google-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.google-user-img {
    width: 35px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #777;
    font-size: 0.9rem;
}

.google-user-info {
    flex: 1;
}

.google-user-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.google-verify-icon {
    color: #4285F4;
    font-size: 0.8rem;
}

.google-review-meta {
    font-size: 0.7rem;
    color: #888;
}

.google-stars {
    color: #FBBC05;
    font-size: 0.85rem;
}

.google-review-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-brand-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.google-brand-footer img {
    width: 16px;
}

.google-brand-footer span {
    font-size: 0.75rem;
    color: #777;
    font-weight: 600;
}

/* --- YENİ YATAY MENÜ STİLLERİ --- */
.horizontal-menu {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 0 0 10px 0;
    -webkit-overflow-scrolling: touch;
    /* iOS için akıcı kaydırma */
    scrollbar-width: none;
    /* Firefox */
}

.horizontal-menu::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.new-product-card {
    flex: 0 0 150px;
    /* Kartların genişliği sabit */
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Badge için */
}

.new-product-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.new-product-image {
    width: 100%;
    height: 150px;
    /* Kare resim alanı */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.new-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin: 10px 8px 5px 8px;
}

.new-product-description {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin: 0 8px 10px 8px;
    flex-grow: 1;
    /* Açıklama alanını esnetir */
    line-height: 1.4;
    /* Açıklamanın çok uzamasını engellemek için */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    /* 2 satır için minimum yükseklik */
}

.new-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    padding: 8px 20px;
    background: #fff;
    margin: 5px auto 10px auto;
    /* Centered */
    border-radius: 50px;
    /* More rounded for button look */
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Slightly stronger shadow */
    margin-top: auto;
    /* Fiyatı en alta sabitler */
    width: fit-content;
    display: block;
}

/* --- STOK DURUMU STİLLERİ --- */
.new-product-card.out-of-stock {
    opacity: 0.6;
    pointer-events: none;
    /* Tıklamayı engelle */
}

.stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: #e74c3c;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 800;
    border: 2px solid #e74c3c;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- DÜŞÜK STOK UYARISI (YENİ) --- */
.low-stock-badge {
    position: absolute;
    top: 120px;
    /* Resmin alt kısmına yakın */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #e67e22;
    /* Turuncu renk */
    padding: 3px 8px;
    border-radius: 4px;
    /* Daha keskin */
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 5;
    white-space: nowrap;
    border: 1px solid #f39c12;
    line-height: 1;
}

/* --- KOMPAKT MİKTAR SEÇİCİ (YENİ) --- */
.qty-compact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 10px;
    gap: 15px;
}

.qty-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.qty-pill-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f8f9fa;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-pill-btn:active {
    background: #e9ecef;
    transform: scale(0.95);
}

.qty-pill-input {
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    color: var(--secondary);
    background: transparent;
}

.qty-pill-input:focus {
    outline: none;
}

.stock-info-compact {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* Sepet içi miktar kontrolü */
.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.cart-qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-qty-val {
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

/* --- SES OYNATICI (AUDIO PLAYER) --- */
.audio-player-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-top: 1px solid #f5f5f5;
    border-radius: 0 0 12px 12px;
    padding: 8px 15px;
    margin: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.audio-player-container:hover {
    background: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.audio-play-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.audio-play-btn:active {
    transform: scale(0.9);
}

.audio-progress-bar {
    flex-grow: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    min-width: 80px;
}

.audio-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.audio-time {
    font-size: 0.75rem;
    color: #666;
    font-variant-numeric: tabular-nums;
    min-width: 35px;
}

/* --- İÇECEK KARTLARI (MODAL İÇİN) --- */
.drink-box {
    flex: 0 0 140px;
    /* Genişlik artırıldı */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 5px;
}

.drink-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.drink-box-img-container {
    width: 100%;
    height: 100px;
    position: relative;
    background: #f9f9f9;
}

.drink-box-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Görselin tamamı görünsün */
    padding: 10px;
    box-sizing: border-box;
}

.drink-box-content {
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.drink-box-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    min-height: 2.4em;
    /* 2 satır */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drink-box-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
}

.drink-box-actions {
    margin-top: auto;
    /* En alta it */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Miktar Seçici (Mini) */
.drink-qty-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 2px;
}

.drink-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: white;
    border-radius: 50%;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.drink-qty-val {
    font-size: 0.85rem;
    font-weight: bold;
    width: 20px;
    text-align: center;
}

.drink-add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

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

.drink-add-btn.added {
    background: var(--success);
}