/* =====================================================
   GREEN CHEF - COMPONENTS CSS
   Bilesen stilleri: Modal, Cart, Checkout, Auth
   ===================================================== */

/* =====================================================
   MODAL BASE
   ===================================================== */
.modal {
    z-index: 99999 !important;
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

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

.modal-body {
    flex: 1;
    overflow-y: auto;
}

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

.modal-close:hover { background: var(--danger, #ff4757); color: #fff; }

/* Info Modal - Auth Modal üstünde açılması için */
#infoModal {
    z-index: 20000 !important;
    align-items: center;
}
#infoModal { z-index: 999999 !important; }
#infoModal .modal-content {
    max-height: 80vh;
    overflow: hidden;
}
#infoModal .info-modal-body {
    max-height: calc(80vh - 60px);
    overflow-y: auto;
    padding: 1rem 1.5rem 1.5rem;
}
#infoModal .info-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 5;
}

/* Auth Modal scroll düzeltmesi */
#authModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}
#authModal .modal-body {
    padding-bottom: 2rem;
}

/* Consent Checkboxes */
.consent-checkbox {
    margin: 0.75rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
}
.consent-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}
.consent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}
.consent-checkbox a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}
.consent-checkbox a:hover {
    color: var(--primary-dark);
}
.required-star {
    color: var(--danger, #dc2626);
    font-weight: bold;
}

/* =====================================================
   OVERLAY
   ===================================================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    z-index: 99997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active { opacity: 1; visibility: visible; }

/* =====================================================
   CART SIDEBAR
   ===================================================== */
.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--surface);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.cart.active { right: 0; }

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 { font-size: 1.3rem; font-weight: 800; }

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover { background: var(--danger, #ff4757); border-color: var(--danger, #ff4757); color: #fff; }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem; background: var(--bg); }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-light); }
.cart-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.5; }

.cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 14px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}
.cart-item-combo {
    border-left: 3px solid var(--primary);
    background: var(--primary-soft, rgba(76, 175, 80, 0.05));
}
.cart-item-discount {
    border-left: 3px solid var(--success);
    background: var(--primary-glow, rgba(76, 175, 80, 0.1));
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.cart-item-extras { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.cart-item-price { color: var(--price-color, #15803d); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.cart-item-price .original-price { color: var(--text-muted); text-decoration: line-through; font-size: 0.8rem; font-weight: 400; }

.cart-item-discount {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-glow, rgba(17, 153, 142, 0.1));
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.2rem;
}

.cart-item.has-discount {
    border-left: 3px solid var(--primary);
    background: var(--primary-soft, rgba(17, 153, 142, 0.03));
}

/* Kademeli indirim (nth item discount) */
.cart-item-discount.nth-discount {
    color: var(--accent, #9b59b6);
    background: var(--secondary-glow, rgba(155, 89, 182, 0.1));
}

.cart-item.has-nth-discount {
    border-left: 3px solid var(--accent, #9b59b6);
    background: var(--secondary-glow, rgba(155, 89, 182, 0.03));
}

/* İndirim satırı (sepet özeti) */
.discount-row {
    color: var(--success);
    font-weight: 600;
}

.discount-row span:last-child {
    color: var(--primary);
}

.cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.qty-val { font-weight: 600; min-width: 20px; text-align: center; font-size: 0.9rem; }

.remove-btn {
    background: none;
    border: none;
    color: var(--danger, #ff4757);
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
    padding: 0.2rem;
}

.cart-footer { padding: 1.25rem; border-top: 1px solid var(--border); background: var(--surface); }

/* Minimum Order Progress */
.min-order-progress {
    display: none;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 10px;
}
.min-order-progress.visible { display: block; }
.min-order-progress.reached { background: rgba(22, 163, 74, 0.1); }
.min-order-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}
.min-order-text span:first-child { color: var(--text-muted); }
.min-order-text strong { color: var(--primary-dark); }
.min-order-progress.reached .min-order-text span:first-child { color: var(--primary-dark); }
.min-order-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.min-order-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.cart-summary { margin-bottom: 1rem; }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.cart-row.total { font-size: 1.2rem; font-weight: 800; color: var(--price-color, #15803d); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.75rem; }

.checkout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 100px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover { background: var(--primary-dark); }
.checkout-btn:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }

/* Cart Flash Suggestion */
.cart-flash-suggestion {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-dark, #065f46) 0%, var(--primary-dark, #047857) 100%);
    border-radius: 12px;
    animation: cartFlashPulse 2s ease-in-out infinite;
}
.cart-flash-suggestion.visible { display: block; }
@keyframes cartFlashPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(5, 150, 105, 0.5); }
}
.cart-flash-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    text-align: center;
}
.cart-flash-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cart-flash-product:hover { background: rgba(255,255,255,0.25); }
.cart-flash-product img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}
.cart-flash-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.cart-flash-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-flash-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
}
.cart-flash-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fbbf24;
    border: none;
    color: var(--primary-dark, #065f46);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.cart-flash-add:hover { transform: scale(1.1); }

/* =====================================================
   CHECKOUT MODAL
   ===================================================== */
.checkout-modal { align-items: center; }
.checkout-modal .modal-content {
    border-radius: 24px;
    max-height: 95vh;
    max-width: 450px;
    overflow: hidden;
    position: relative;
}
.checkout-modal .modal-body {
    padding: 1rem 1.25rem;
    padding-top: 2rem;
    overflow-y: auto;
    max-height: calc(95vh - 20px);
}
.checkout-modal h2 { font-size: 1.25rem; margin-bottom: 0.5rem !important; }
.checkout-modal h3 { margin-bottom: 0.5rem !important; }
.checkout-modal .form-group { margin-bottom: 0.6rem; }
.checkout-modal .form-group label { margin-bottom: 0.25rem; font-size: 0.8rem; }
.checkout-modal .form-input { padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.checkout-modal textarea.form-input { min-height: auto; }
.checkout-modal .checkout-steps { margin-bottom: 0.5rem; }
.checkout-modal .checkout-btn { padding: 0.75rem; font-size: 0.9rem; }

.checkout-steps { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.step { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.step.active { width: 24px; border-radius: 100px; background: var(--primary); }

.payment-options { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.payment-option {
    flex: 1;
    min-width: 90px;
    padding: 0.6rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-glow); }
.payment-option .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 1.25rem;
}
.payment-option .icon .pm-icon { margin: 0 auto; }
.payment-option .label { font-weight: 600; font-size: 0.8rem; line-height: 1.2; }

.order-summary { background: var(--bg); border-radius: 10px; padding: 0.75rem; margin-bottom: 0.75rem; }
.order-summary h4 { margin-bottom: 0.5rem; font-size: 0.85rem; }
.summary-item { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.3rem; }
.summary-item.total { font-weight: 700; font-size: 0.95rem; border-top: 1px solid var(--border); padding-top: 0.4rem; margin-top: 0.4rem; }

/* Coupon Section */
.coupon-section { margin: 0.75rem 0; }
.coupon-input-row { display: flex; gap: 0.5rem; }
.coupon-input-row input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}
.coupon-apply-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.coupon-apply-btn:hover { background: var(--primary-dark); }
.coupon-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(22, 163, 74, 0.05));
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-top: 0.5rem;
}
.coupon-success { color: var(--primary-dark); font-weight: 600; font-size: 0.85rem; }
.coupon-remove-btn {
    background: transparent;
    color: var(--danger, #dc2626);
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}
.coupon-error {
    color: var(--danger, #dc2626);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 6px;
}

/* Loyalty Use Section */
.loyalty-use-section {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(22, 163, 74, 0.05));
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    margin: 0.5rem 0;
}
.loyalty-balance {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.loyalty-balance strong { color: var(--primary-dark); font-size: 1rem; }
.loyalty-input { display: flex; gap: 0.4rem; }
.loyalty-input input {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}
.loyalty-apply-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.loyalty-apply-btn:hover { background: var(--primary-dark); }
.loyalty-discount { color: var(--primary-dark); font-weight: 600; }

/* Order Success Modal */
.order-success-modal .modal-content {
    border-radius: 24px;
    text-align: center;
    padding: 2rem;
    max-width: 380px;
}
.order-success-modal .success-icon { font-size: 4rem; margin-bottom: 1rem; }
.order-success-modal h2 { margin-bottom: 0.5rem; }
.order-success-modal .order-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* =====================================================
   PAYTR MODAL
   ===================================================== */
.paytr-modal .modal-content.paytr-content {
    width: 95%;
    max-width: 500px;
    height: 85vh;
    max-height: 700px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.paytr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.paytr-header h3 { margin: 0; font-size: 1rem; }
.paytr-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.paytr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}
.paytr-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}
#paytrIframe {
    flex: 1;
    width: 100%;
    border: none;
    display: none;
}
#paytrIframe.loaded { display: block; }

/* =====================================================
   AUTH MODAL
   ===================================================== */
#authModal {
    align-items: center;
    padding: 1rem;
    z-index: 10000;
}

#authModal .modal-overlay {
    backdrop-filter: blur(8px);
}

#authModal .modal-content {
    max-width: 420px;
    max-height: 90vh;
    border-radius: 24px;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    overflow-y: auto;
}

#authModal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#authModal .modal-body { padding: 0 1.5rem 2rem; }

.auth-tabs { display: flex; }
.auth-tab { flex: 1; padding: 0.75rem; text-align: center; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--text-muted); border: none; border-radius: 10px; }
.auth-tab.active { background: var(--surface); color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* =====================================================
   INFO MODAL
   ===================================================== */
#infoModal {
    z-index: 20000 !important;
    align-items: center;
}
#infoModal { z-index: 999999 !important; }
#infoModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
    max-height: 80vh;
}
.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.info-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.info-modal-header .modal-close {
    position: static;
    background: var(--surface-2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-modal-header .modal-close:hover { background: var(--border); }
.info-modal-body {
    padding: 1.25rem;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.9rem;
}
.info-modal-body p { margin-bottom: 1rem; }
.info-modal-body p:last-child { margin-bottom: 0; }

/* =====================================================
   PUSH NOTIFICATION MODAL
   ===================================================== */
.push-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.push-modal.active { opacity: 1; visibility: visible; }
.push-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.push-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    max-width: 340px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.push-modal.active .push-modal-content { transform: scale(1) translateY(0); }
.push-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(22, 163, 74, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
}
.push-modal-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text); }
.push-modal-desc { color: var(--text-light); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.5rem; }
.push-modal-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.push-btn-allow {
    padding: 0.9rem 1.5rem;
    border-radius: 100px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.push-btn-allow:hover { background: var(--primary-dark); transform: translateY(-2px); }
.push-btn-deny {
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}
.push-btn-deny:hover { color: var(--text); }

/* =====================================================
   STORE CLOSED OVERLAY
   ===================================================== */
.store-closed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-closed-content {
    text-align: center;
    color: #fff;
    padding: 2rem;
    padding-top: env(safe-area-inset-top, 2rem);
    padding-bottom: env(safe-area-inset-bottom, 2rem);
    max-width: 90%;
}
.closed-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(255,255,255,0.2));
}
.store-closed-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.closed-status {
    background: var(--danger);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.closed-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-light);
}
.closed-hours-icon { font-size: 1.5rem; }
.closed-message { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .cart { max-width: 100%; }
}

/* Product Note in Modal */
.product-note-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.modal-note-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.modal-note-input {
    width: 100%;
    min-height: 60px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
    background: var(--bg);
}
.modal-note-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== Quick Register Section ===== */
.quick-register-section {
  text-align: center;
  padding: 1rem 0;
}

.quick-register-header {
  margin-bottom: 1.5rem;
}

.quick-register-header .quick-register-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.quick-register-header h3 {
  margin: 0.5rem 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.quick-register-header p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.quick-register-form {
  background: var(--surface-2);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.quick-register-form .form-group {
  text-align: left;
  margin-bottom: 1rem;
}

.quick-register-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.quick-register-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--surface);
}

.quick-register-form .consent-checkbox {
  text-align: left;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.quick-register-form .consent-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: normal;
}

.quick-register-form .consent-checkbox input[type=checkbox] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.quick-register-form .consent-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.quick-register-form .consent-checkbox .required-star {
  color: var(--danger);
}

.quick-register-skip {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.quick-register-skip .btn-text {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.quick-register-skip .btn-text:hover {
  color: var(--primary);
}

/* =====================================================
   PUAN KAZANIMI - LOYALTY EARN
   ===================================================== */

/* Puan Kazanımı Box - Hızlı Üyelik */
.loyalty-earn-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.loyalty-earn-box .loyalty-earn-icon {
    font-size: 28px;
    animation: coinBounce 1s ease-in-out infinite;
}

@keyframes coinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.loyalty-earn-box .loyalty-earn-text {
    flex: 1;
}

.loyalty-earn-box .loyalty-earn-text strong {
    display: block;
    color: #b45309;
    font-size: 0.95rem;
}

.loyalty-earn-box .loyalty-earn-text small {
    color: #92400e;
    font-size: 0.75rem;
}

/* Puan Kazanımı - Checkout Summary */
.loyalty-earn-summary {
    background: linear-gradient(135deg, var(--primary-soft, #ecfdf5) 0%, var(--primary-glow, #d1fae5) 100%);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loyalty-earn-summary .loyalty-earn-icon {
    font-size: 22px;
}

.loyalty-earn-summary .loyalty-earn-info {
    flex: 1;
    font-size: 0.85rem;
    color: var(--primary-dark, #047857);
}

.loyalty-earn-summary .loyalty-earn-info strong {
    color: var(--primary);
    font-weight: 700;
}

/* Üye olmayan için farklı stil */
.loyalty-earn-summary.not-member {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.loyalty-earn-summary.not-member .loyalty-earn-info {
    color: #b45309;
}

.loyalty-earn-summary.not-member .loyalty-earn-info strong {
    color: #d97706;
}

/* Closed Banner - Top notification */
.closed-banner {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    position: sticky;
    top: 59px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.closed-banner.hidden { display: none; }
.closed-banner-icon { width: 18px; height: 18px; flex-shrink: 0; }
.closed-banner-text { text-align: center; }

/* Closed Modal - Beautiful popup */
.closed-modal-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.closed-modal-body {
    padding: 40px 30px;
    text-align: center;
    color: #fff;
}
.closed-modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.closed-modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.closed-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.closed-modal-subtitle {
    color: #a0a0a0;
    font-size: 1rem;
    margin-bottom: 25px;
}
.closed-modal-hours {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 1rem;
}
.closed-modal-hours-icon { font-size: 1.3rem; }
.closed-modal-hours strong { color: var(--primary-light, #4ade80); }
.closed-modal-message {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.closed-modal-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.closed-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.4);
}

/* ===== LOYALTY PROGRAM BANNER ===== */
.loyalty-banner {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    overflow: hidden;
    min-width: 200px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.loyalty-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}
.loyalty-banner.hidden { display: none; }

.loyalty-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent, rgba(255, 165, 0, 0.1), transparent);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}
@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loyalty-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.loyalty-stars span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatStar 3s ease-in-out infinite;
}
.loyalty-stars span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.loyalty-stars span:nth-child(2) { top: 60%; left: 85%; animation-delay: 1s; }
.loyalty-stars span:nth-child(3) { top: 80%; left: 30%; animation-delay: 2s; }
@keyframes floatStar {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 1; }
}

.loyalty-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.loyalty-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0); }
}
.loyalty-icon {
    width: 26px;
    height: 26px;
}

.loyalty-text {
    flex: 1;
    min-width: 0;
}
.loyalty-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}
.loyalty-percent {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    font-weight: 800;
}
.loyalty-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loyalty-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.loyalty-banner:hover .loyalty-cta {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.loyalty-banner.has-points .loyalty-cta {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.loyalty-points-value {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .loyalty-banner {
        padding: 14px 16px;
    }
    .loyalty-icon-wrap {
        width: 38px;
        height: 38px;
    }
    .loyalty-icon {
        width: 22px;
        height: 22px;
    }
    .loyalty-title {
        font-size: 0.9rem;
    }
    .loyalty-subtitle {
        font-size: 0.7rem;
    }
    .loyalty-cta {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

    color: #666;
}


/* === 20 May 2026: Ürün modal'da Alerjen + Kalori badge'leri (yasal zorunluluk) === */
.modal-nutrition-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}
.modal-nutrition-badges:empty {
    display: none;
}
.nut-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid transparent;
    max-width: 100%;
}
.nut-badge svg {
    flex-shrink: 0;
}
.nut-badge.nut-cal {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.nut-badge.nut-cal strong {
    font-weight: 700;
    color: #065f46;
}
.nut-badge.nut-allergen {
    background: #fffbeb;
    color: #92400e;
    border-color: #fcd34d;
}
.nut-badge.nut-allergen strong {
    font-weight: 700;
    margin-right: 2px;
}
@media (max-width: 480px) {
    .nut-badge {
        font-size: 11.5px;
        padding: 5px 10px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SAYFA DUZENI MOTORU — KLASIK TEMA (28 Agu 2026)
   YALNIZ body.layout-motor-klasik icin gecerlidir; bu sinifi sadece
   index-default-layout.ejs basar (layout_engine='1' olan paneller).
   Canli klasik siteler index.ejs kullanir -> asagidaki kurallar onlara DEGMEZ.
   ═══════════════════════════════════════════════════════════════════════════ */
.layout-motor-klasik .layout-gizli { display: none !important; }

/* Banner satiri artik .featured-slider'in DISINDA (bloklar bagimsiz siralanabilsin diye).
   Koyu bant eskiden ikisini birlikte sariyordu; ayni bandi banner satirina da veriyoruz
   ki bayi siralamayi degistirmediginde gorunum ayni kalsin. */
.layout-motor-klasik .banners-row {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding-top: 0.5rem;
}

/* Sayfa sonundaki "bos bant koruyucusu" betiginin ekledigi sinif (Fable C2/C3/C4).
   Icerigi kalmayan banner satirini / one-cikanlar bandini kapatir. */
.layout-motor-klasik .layout-bos { display: none !important; }

/* Dikis duzeltmesi (Fable 🟡-6): banner satirinin alt bosluguyla featured bandinin ust
   boslugu ust uste binip kart araligini 2 katina cikariyordu. */
.layout-motor-klasik .banners-row + .featured-slider { padding-top: 0; }

/* 28 Agu 2026 — banner esit genislik (Mustafa: "flash saga sola tam uzamiyor").
   OLCULEN SEBEP flex-shrink DEGIL, IC BOSLUK: uc bannerin ICERIK genisligi zaten esitti
   (446px), DIS genislikleri kendi padding/border'lari kadar farkliydi — kampanya +27px,
   flash +0px, sadakat +42px. Cunku flex-basis:0 serbest alani ICERIK kutusuna esit dagitir,
   dis kutuya degil; ic boslugu olmayan flash en dar kaliyordu.
   Izgara sutunlari (1fr) DIS genisligi esitler, ic bosluktan etkilenmez.
   Mobilde (<=600px) home.css:884 zaten alt alta + width:100% -> oraya DOKUNULMUYOR. */
/* Esik home.css:884'un max-width:600px kuraliyla BITISIK olmali: 600.02px kesirli
   genisliklerde (zoom/DPR) iki kuralin da uygulanmadigi bosluk kalmasin (Fable 🟡-1). */
@media (min-width: 600.02px) {
  .layout-motor-klasik .banners-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    /* align-items:start iken her kutu KENDI dogal yuksekliginde kaliyordu: kampanya/flash
       91px, sadakat 78px (ic boslugu farkli) -> gorunum bozuk. stretch ile ucu de en uzun
       kutunun yuksekligine esitlenir. .campaigns-banner-card zaten height:100% tanimli
       (home.css:800), yani tasarim ZATEN esit yukseklik varsayiyordu. */
    align-items: stretch;
  }
  /* Sadakat banner'i esnerken icerigi dikeyde ORTALI kalsin (yukari yapismasin) */
  .layout-motor-klasik .banners-row > .loyalty-banner { display: flex; align-items: center; }
}

/* renderFlashBanner() (home.js:1458) #featuredSlider'dan .hidden sinifini kaldiriyor.
   Banner'lar artik disarida oldugundan, one cikan urun yokken geriye 177px'lik BOS koyu
   bant kalirdi (home.css:326 min-height). Kart yoksa bandi tamamen gizle.
   :has() desteklemeyen eski tarayicida kural yok sayilir -> eski davranis (zararsiz). */
.layout-motor-klasik .featured-slider:not(:has(.featured-card)) { display: none !important; }

/* ── Ozel metin blogu (bayi ekler, DUZ METIN — sunucu HTML etiketini reddeder) ── */
.layout-motor-klasik .sr-textblock { max-width: 1200px; margin: 26px auto 6px; padding: 0 16px; text-align: center; }
.layout-motor-klasik .sr-textblock.is-left { text-align: left; }
.layout-motor-klasik .sr-textblock__title { font-size: 22px; font-weight: 700; margin: 0 0 8px;
  color: var(--text, #1a1a1a); letter-spacing: -.01em; }
/* Baslik altindaki serit TEMA RENGINDEN gelir (Mustafa: "tema rengine gore altina bir serit cizgi") */
.layout-motor-klasik .sr-textblock__rule { display: inline-block; width: 54px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary, #16a34a), var(--primary-light, #22c55e)); margin: 0 auto 10px; }
.layout-motor-klasik .sr-textblock.is-left .sr-textblock__rule { margin-left: 0; }
.layout-motor-klasik .sr-textblock__text { font-size: 14px; line-height: 1.65; color: var(--text-light, #666);
  margin: 0; white-space: pre-line; }

/* ── Gorsel bloklari (1/2/3/4'lu, otomatik WebP, her gorsele link verilebilir) ── */
.layout-motor-klasik .sr-gallery { max-width: 1200px; margin: 18px auto; padding: 0 16px; display: grid; gap: 12px; }
.layout-motor-klasik .sr-gallery--1 { grid-template-columns: 1fr; }
.layout-motor-klasik .sr-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.layout-motor-klasik .sr-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.layout-motor-klasik .sr-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.layout-motor-klasik .sr-gallery__item { display: block; border-radius: 14px; overflow: hidden;
  background: var(--surface, #fff); box-shadow: 0 2px 10px var(--shadow, rgba(0,0,0,.08));
  transition: transform .18s ease, box-shadow .18s ease; }
.layout-motor-klasik a.sr-gallery__item:hover,
.layout-motor-klasik .sr-gallery__item.is-urun:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
/* Urun secili gorsel: tiklanabilir oldugu belli olsun + klavye odagi gorunur */
.layout-motor-klasik .sr-gallery__item.is-urun { cursor: pointer; }
.layout-motor-klasik .sr-gallery__item.is-urun:focus-visible { outline: 3px solid var(--primary, #16a34a); outline-offset: 2px; }
.layout-motor-klasik .sr-gallery__item img { display: block; width: 100%; height: 100%;
  aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 640px) {
  .layout-motor-klasik .sr-gallery--3, .layout-motor-klasik .sr-gallery--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tema duzenleyici onizlemesi: veri kosulu gizlese bile bloklar GORUNUR olmali ──
   Mustafa: "TEKRAR SIPARIS GIBI ALANLAR TEMA DUZENLEYICIDE HER ZAMAN GOZUKMELI".
   .te-onizleme yalnizca onizleme oturumunda (tenant.isPreview) basilir; canli ziyaretcide YOK. */
/* Fable 🟠-1: KAMPANYA KARTI listede YOKTU -> 0 kampanyali panelde bayi bu blogu
   editorde hic goremiyordu. Fable 🟡-2: canlida .flash-banner ve .quick-reorder
   display:BLOCK (home.css:143,270); onizlemede flex yapmak karti daraltiyordu. */
.te-onizleme.layout-motor-klasik .quick-reorder,
.te-onizleme.layout-motor-klasik .flash-banner { display: block !important; visibility: visible !important; }
.te-onizleme.layout-motor-klasik .loyalty-banner,
.te-onizleme.layout-motor-klasik .campaigns-banner-card { display: flex !important; visibility: visible !important; }
/* Onizlemede "bos" diye gizleme YAPILMAZ (betik zaten atlıyor); kural yine de savunma katmanı */
.te-onizleme.layout-motor-klasik .layout-bos { display: revert !important; }
.te-onizleme.layout-motor-klasik .featured-slider { display: block !important; visibility: visible !important;
  opacity: 1 !important; max-height: none !important; }
/* Gizlenmis blok onizlemede de GIZLI kalir — bayi ne gizlediyse onu gorsun */
.te-onizleme.layout-motor-klasik .layout-gizli { display: none !important; }

/* ── KLASIK TEMA: KAPAK GORSELI (28 Agu 2026) ──────────────────────────────
   Klasik tasarimda kapak alani YOKTU. Eklendi ama VARSAYILAN GIZLI: mevcut 4 canli
   klasik bayi motoru acsa bile sayfasi degismez, isteyen editorden acar. */
.layout-motor-klasik .sr-hero {
  position: relative;
  min-height: 190px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary, #16a34a), var(--primary-dark, #15803d));
}
@media (min-width: 768px) { .layout-motor-klasik .sr-hero { min-height: 280px; } }
.layout-motor-klasik .sr-hero__media { position: absolute; inset: 0; }
.layout-motor-klasik .sr-hero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Perde: marka adi her fotografta okunur kalsin (kontrast garantisi) */
.layout-motor-klasik .sr-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.66) 100%);
}
.layout-motor-klasik .sr-hero__content {
  position: relative; z-index: 1; text-align: center; padding: 24px 16px;
}
.layout-motor-klasik .sr-hero__logo {
  width: 72px; height: 72px; object-fit: contain; border-radius: 16px;
  background: rgba(255,255,255,.92); padding: 6px; display: inline-block;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.layout-motor-klasik .sr-hero__name {
  margin-top: 10px; font-size: 22px; font-weight: 700; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.45); letter-spacing: -.01em;
}

/* ── KLASIK TEMA: KATEGORI KAPAKLARI ───────────────────────────────────────
   Kartlari home.js:renderV3CategoryCovers() basar (TEMA-NOTR, yalniz #v3CategoryGrid'e
   bakar). Ic sinif adlari (v3-catcard vb.) JS'ten geldigi icin AYNEN kullanilir;
   yalniz kapsayici klasige ozeldir. Bos ise hic gorunmez. */
.layout-motor-klasik .sr-catgrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; padding: 16px 12px 4px; max-width: 1200px; margin: 0 auto;
}
.layout-motor-klasik .sr-catgrid:empty { display: none; }
@media (min-width: 768px) { .layout-motor-klasik .sr-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .layout-motor-klasik .sr-catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.layout-motor-klasik .sr-catgrid .v3-catcard {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  cursor: pointer; border: 1px solid var(--border, rgba(0,0,0,.08));
  background: var(--surface-2, #f0f0f2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.layout-motor-klasik .sr-catgrid .v3-catcard:hover { box-shadow: 0 6px 18px var(--shadow, rgba(0,0,0,.12)); }
.layout-motor-klasik .sr-catgrid .v3-catcard:active { transform: scale(.97); }
.layout-motor-klasik .sr-catgrid .v3-ph { position: absolute; inset: 0; }
.layout-motor-klasik .sr-catgrid .v3-catcard img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: var(--surface-2, #f0f0f2);
  opacity: 0; transition: opacity .4s ease;
}
.layout-motor-klasik .sr-catgrid .v3-catcard img.is-loaded { opacity: 1; }
.layout-motor-klasik .sr-catgrid .v3-catcard__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.68) 45%, rgba(0,0,0,.92) 100%);
}
.layout-motor-klasik .sr-catgrid .v3-catcard__label {
  position: absolute; inset-inline: 0; bottom: 0; padding: 34px 11px 11px; z-index: 1;
}
.layout-motor-klasik .sr-catgrid .v3-catcard__label h3 {
  font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; margin: 0;
}
/* Baslik alti serit TEMA RENGINDEN — metin bloguyla ayni dil */
.layout-motor-klasik .sr-catgrid .v3-catcard__label span {
  display: block; width: 24px; height: 2px; margin-top: 6px;
  background: var(--primary-light, #22c55e);
}
.layout-motor-klasik .sr-catgrid .v3-catcard__count {
  font-size: 11.5px; color: rgba(255,255,255,.82); margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   KLASIK TEMA — BANNER'LAR MARKA RENGINI TAKIP ETSIN (28 Agu 2026)
   Mustafa: "hazir gorunum denedim, her yerde gecerli olmuyor". Klasikte kampanya
   (mor), sadakat (lacivert) ve flash rozeti (amber) SABIT renkti; v3'te ayni
   banner'lar tema vurgusunu (--gold) kullaniyor -> tutarsizlik.
   KAPSAM: yalniz .layout-motor-klasik. Canli klasik bayiler (Joi, Green Chef,
   Izabella, Diamanje) bu sinifi ALMAZ -> gorunumleri DEGISMEZ.
   KONTRAST: bayinin rengi ACIK olabilir (sari, acik yesil, beyaza yakin) ve
   uzerindeki yazi BEYAZ. Perde orani TAHMIN DEGIL, tarayicida OLCULDU:
     perde   sari#ffd400  acikyesil#4ade80  beyazaYakin#f5f5f5
     %34        3.3:1         3.9:1              2.6:1     <- AA'yi GECMEZ
     %45        4.5:1         5.3:1              3.6:1     <- hala yetersiz
     %55        6.2:1         7.1:1              5.1:1     <- TUMUNDE AA (4.5:1)
   Bu yuzden perde %55'ten baslar. Metin SOLDA oldugu icin gradyan capraz:
   solda koyu (okunurluk), sagda marka rengi canli kalir.
   ═══════════════════════════════════════════════════════════════════════════ */
.layout-motor-klasik .campaigns-banner-card {
  background:
    linear-gradient(120deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.18) 100%),
    linear-gradient(135deg, var(--primary, #16a34a) 0%, var(--primary-light, #22c55e) 100%);
  box-shadow: 0 4px 15px var(--primary-glow, rgba(0,0,0,.2));
}
.layout-motor-klasik .loyalty-banner {
  background:
    linear-gradient(120deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.22) 100%),
    linear-gradient(135deg, var(--primary-dark, #15803d) 0%, var(--primary, #16a34a) 100%);
}
/* Flash rozeti KUCUK ve uzerinde KOYU yazi var -> perde binmez, marka rengi dogrudan;
   okunurluk icin metin rengi acik/koyu otomatik secilemedigi surece amber tonunda
   kalmasi daha guvenli olurdu; bu yuzden yalniz ikincil renge baglaniyor. */
/* ── VURGULAR: marka renginin ACIK TONU ────────────────────────────────────
   Olculen sorun: banda marka rengi verilince, uzerindeki KUCUK vurgulari da marka
   rengine baglamak kontrasti COKERTIYOR — flash rozetini --secondary yapinca banda
   karsi 9.8:1'den 3.0:1'e dustu (ayni hue, ayni koyuluk).
   Cozum: vurgu = marka renginin BEYAZA yaklastirilmis tonu. Hem markaya uyar hem
   koyu bandin uzerinde okunur kalir. color-mix desteklemeyen tarayicida amber'e duser. */
.layout-motor-klasik { --marka-vurgu: #fbbf24; --marka-vurgu-zayif: rgba(251, 191, 36, .15); }
@supports (color: color-mix(in srgb, red 50%, white)) {
  .layout-motor-klasik {
    --marka-vurgu: color-mix(in srgb, var(--primary, #16a34a) 22%, #fff);
    --marka-vurgu-zayif: color-mix(in srgb, var(--primary, #16a34a) 22%, transparent);
  }
}
.layout-motor-klasik .flash-badge { background: var(--marka-vurgu); color: #14210b; }
.layout-motor-klasik .campaigns-banner-badge { background: var(--marka-vurgu); color: #14210b; }
.layout-motor-klasik .flash-price { color: var(--marka-vurgu); }
.layout-motor-klasik .loyalty-icon-wrap { background: var(--marka-vurgu-zayif); }
.layout-motor-klasik .loyalty-cta { background: var(--marka-vurgu); color: #14210b; }
.layout-motor-klasik .loyalty-percent { color: var(--marka-vurgu); }


/* ═══════════════════════════════════════════════════════════════════════════
   KLASIK TEMA — SAYDAM BASLIK + LOGO ISILTISI (28 Agu 2026, Mustafa)
   Baslik yalnizca KAPAK BLOGU GORUNUR ve gorseli VARSA saydamlasir (.ust-saydam
   sinifini gorunum basar). Kapak yoksa eski koyu baslik korunur — yoksa logo
   sayfa zemininde okunmaz kalirdi.
   KAPSAM: .layout-motor-klasik -> canli klasik bayiler ETKILENMEZ.
   ═══════════════════════════════════════════════════════════════════════════ */
.layout-motor-klasik.ust-saydam .top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  z-index: 12;                      /* kapak perdesinin (z-index yok) uzerinde */
  /* 🔴 Logo gizlenince cubuk 24px'e (sadece padding) DUSUYOR ve .top-bar-actions
     mutlak konumlu oldugu icin 40px'lik ikonlar -8px'e tasip EKRANIN USTUNDEN
     KESILIYORDU (olculdu). Yukseklik ikonlari tasiyacak sekilde sabitlenir. */
  min-height: 64px;
  align-items: center;
}
/* Baslik artik akista yer kaplamiyor: kapak onun altindan basliyor, icerik
   basligin altina denk gelmesin diye ust bosluk verilir. */
.layout-motor-klasik.ust-saydam .sr-hero { padding-top: 64px; }

/* ── Kapak varken BASLIKTAKI LOGO GIZLENIR (28 Agu, Mustafa: "mukerrer goruyor")
   Kapak bloğu zaten logoyu ortada, buyuk halde gosteriyor; ayni logoyu baslikta
   tekrar gostermek gereksiz. .ust-saydam ZATEN "kapak gorunur + gorseli var"
   demek, yani bu kural tam o durumda devreye girer.
   Baslik bos kalmaz: sag ustteki hesap/sepet butonlari yerinde durur. */
.layout-motor-klasik.ust-saydam .top-bar .logo { display: none; }

/* ── Logonun ARKASINDAKI yayvan isilti ──────────────────────────────────────
   NOT: yukaridaki kural yuzunden BASLIK logosunda artik gorunmez; kural, kapak
   gizlenip baslik logosu geri geldiginde (veya isiltinin hero logosuna tasinmasi
   istendiginde) hazir dursun diye korunuyor. */
.layout-motor-klasik.ust-saydam .top-bar .logo { position: relative; }
.layout-motor-klasik.ust-saydam .top-bar .logo::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 230px; height: 130px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(14px);
  transition: background .3s ease;
}
/* KOYU logo -> ACIK isilti (logo okunur kalsin) */
.layout-motor-klasik.ust-saydam .top-bar .logo.isilti-acik::before {
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,.72) 0%, rgba(255,255,255,.42) 42%, rgba(255,255,255,0) 72%);
}
/* ACIK logo -> KOYU isilti */
.layout-motor-klasik.ust-saydam .top-bar .logo.isilti-koyu::before {
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 42%, rgba(0,0,0,0) 72%);
}
/* Olcum bitene kadar (birkac ms) hafif bir hale: logo hicbir an cıplak kalmasin */
.layout-motor-klasik.ust-saydam .top-bar .logo:not(.isilti-acik):not(.isilti-koyu)::before {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 70%);
}
/* Saydam baslikta sag ustteki ikon butonlari fotograf uzerinde kaybolmasin */
.layout-motor-klasik.ust-saydam .top-bar .icon-btn {
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
@media (max-width: 600px) {
  .layout-motor-klasik.ust-saydam .sr-hero { padding-top: 60px; }
  .layout-motor-klasik.ust-saydam .top-bar .logo::before { width: 170px; height: 100px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   URUN KART TASARIMI: "TASAN" (29 Agu 2026, Mustafa — homedesing.png referansi)
   Gorsel kartin USTUNDEN tasar; beyaz, genis kosegen yuvarlatilmis kart; kalin
   buyuk harf isim; 2 satir aciklama; altta buyuk fiyat + kare sepet butonu.
   YILDIZ PUANI YOK: referansta var ama bizde urun puani VERISI YOK — uydurma
   veri basmiyoruz (no_defaults kurali).
   ISARETLEME AYNI: home.js:renderProducts() degismedi, bu tamamen CSS. Boylece
   paylasilan urun render'ina dokunulmuyor (tum temalar onu kullaniyor).
   KAPSAM: body.kart-tasan -> yalnizca bu tasarimi SECEN panelde.
   ═══════════════════════════════════════════════════════════════════════════ */
/* 🔴 !important ZORUNLU: pages/home.css'te `.card{border-radius:12px !important}` ve
   izgara bosluklarinda da !important var — ozgulluk yetmiyor, ancak !important yeniyor.
   Kapsam yine .kart-tasan oldugu icin diger kartlar etkilenmez. */
.layout-motor-klasik.kart-tasan .grid {
  row-gap: 76px !important;   /* gorsel 56px yukari tasiyor + nefes payi */
  column-gap: 18px !important;
  padding-top: 56px;          /* ilk siranin tasan gorseli baslikla cakismasin */
}
.layout-motor-klasik.kart-tasan .card {
  position: relative;
  overflow: visible;      /* tasma icin ZORUNLU (temel kural overflow:hidden) */
  border: 0;
  border-radius: 22px !important;
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
  padding-top: 0;         /* gorsel AKISTA: bosluk hesabina gerek yok (asagiya bak) */
  min-height: 0;
}
.layout-motor-klasik.kart-tasan .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.14); }

/* Gorsel: kartin ustunde, ortalanmis, yuvarlatilmis foto karosu.
   NOT: referanstaki urunler ARKA PLANSIZ (kesilmis) fotograflar. Bayilerimizin
   fotograflari dikdortgen oldugu icin kirpmadan "yuzen kare" olarak gosteriyoruz;
   kesilmis foto yuklendiginde de dogru durur. */
/* 🔴 MUTLAK KONUM DENENDI, YANLISTI: gorsel yuksekligi kart genisligine bagli
   (82% x 4:3) oldugu icin "kartin icine ne kadar giriyor" degeri degisken; sabit
   padding-top ile hesap tutmadi ve GORSEL BASLIGIN USTUNE BINDI (olculdu: gorsel
   163px, tasma 56px -> 107px iceri girdi, padding 72px'ti).
   Dogrusu: gorsel AKISTA kalir, negatif ust bosluk ile yukari cekilir. Boylece
   kartin icinde kapladigi yer TARAYICI tarafindan hesaplanir, matematik gerekmez. */
.layout-motor-klasik.kart-tasan .card-img {
  position: relative;
  margin: -56px auto 14px;
  width: 82%;
  aspect-ratio: 4 / 3;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}
.layout-motor-klasik.kart-tasan .card-img img { border-radius: 18px; }
.layout-motor-klasik.kart-tasan .card:hover .card-img img { transform: scale(1.06); }
/* Rozetler gorselin icinde kaliyor (mutlak konumlu) — kucuk hizalama */
.layout-motor-klasik.kart-tasan .badge { top: 8px; left: 8px; }
.layout-motor-klasik.kart-tasan .happy-hour-badge { left: auto; right: 8px; }

.layout-motor-klasik.kart-tasan .card-body { padding: 0 18px 18px; }
.layout-motor-klasik.kart-tasan .card-title {
  font-size: 1rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .01em; margin-bottom: .45rem; color: var(--text, #1a1a1a);
}
.layout-motor-klasik.kart-tasan .card-desc { font-size: .82rem; margin-bottom: 1rem; }
.layout-motor-klasik.kart-tasan .card-footer { align-items: flex-end; }
.layout-motor-klasik.kart-tasan .price { font-size: 1.45rem; font-weight: 800; }
/* Sepet butonu: referanstaki gibi daha buyuk, kare-yuvarlak */
.layout-motor-klasik.kart-tasan .add-btn {
  width: 50px; height: 50px; border-radius: 14px;
  box-shadow: 0 6px 16px var(--primary-glow, rgba(0,0,0,.18));
}
.layout-motor-klasik.kart-tasan .add-btn svg { width: 22px; height: 22px; }

@media (max-width: 600px) {
  .layout-motor-klasik.kart-tasan .grid { row-gap: 58px !important; column-gap: 12px !important; padding-top: 44px; }
  .layout-motor-klasik.kart-tasan .card { padding-top: 0; border-radius: 18px !important; }
  .layout-motor-klasik.kart-tasan .card-img { margin: -44px auto 12px; width: 86%; border-radius: 14px; }
  .layout-motor-klasik.kart-tasan .add-btn { width: 44px; height: 44px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ÜRÜN YORUMLARI (pazaryeri) · 29 Ağu 2026
   Kart yıldızları · modal bloğu · yan panel. Tema-nötr: değişkenlerden beslenir.
   ═══════════════════════════════════════════════════════════════════════════ */
.yr-satir { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; line-height: 1; }
.yr-yildiz { color: rgba(0,0,0,.18); font-size: 13px; }
.yr-yildiz.dolu, .yr-yildiz.yarim { color: #fbbf24; }
.yr-yildiz.yarim { opacity: .55; }
.yr-sayi { font-size: 11.5px; color: var(--text-light, #666); font-weight: 600; }

/* Modal içi blok */
.yr-modal-blok { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.yr-modal-blok .yr-satir { margin: 0; }
.yr-btn {
  border: 1px solid var(--border, rgba(0,0,0,.12)); background: var(--surface, #fff);
  color: var(--text, #1a1a1a); font-family: inherit; font-size: 12.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: border-color .18s, background .18s;
}
.yr-btn:hover { border-color: var(--primary, #16a34a); background: var(--primary-soft, rgba(0,0,0,.03)); }

/* Yan panel — 29 Ağu akşamı KULLANIMDAN KALKTI: yorumlar artık ürün pop-up'ının
   2. sekmesinde açılıyor. Kurallar duruyor ama hiçbir şey .yr-panel üretmiyor. */
.yr-panel { position: fixed; inset: 0; z-index: 100050; display: none; }
.yr-panel.acik { display: block; }
.yr-panel-arka { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.yr-panel-kart {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--surface, #fff); box-shadow: -8px 0 30px rgba(0,0,0,.22);
  display: flex; flex-direction: column; animation: yrKay .22s cubic-bezier(.16,1,.3,1);
}
@keyframes yrKay { from { transform: translateX(28px); opacity: .6 } to { transform: none; opacity: 1 } }
.yr-panel-ust {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
  font-size: 15px; color: var(--text, #1a1a1a);
}
.yr-kapat { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--text-light, #666); line-height: 1; padding: 4px 6px; }
.yr-panel-govde { flex: 1; overflow-y: auto; padding: 14px 16px 22px; }
.yr-ozet { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border, rgba(0,0,0,.08)); }
.yr-ozet .yr-yildiz { font-size: 17px; }
.yr-ozet .yr-sayi { font-size: 13px; }
.yr-secki-not { font-size: 11.5px; color: var(--text-light, #666); margin: 10px 0 0; font-style: italic; }
.yr-yorum { padding: 13px 0; border-bottom: 1px solid var(--border, rgba(0,0,0,.06)); }
.yr-yorum-ust { display: flex; align-items: center; gap: 8px; }
.yr-tarih { font-size: 11px; color: var(--text-muted, #94a3b8); margin-left: auto; }
.yr-metin { margin: 7px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text, #1a1a1a); white-space: pre-line; }
.yr-cevap {
  margin: 9px 0 0; padding: 9px 11px; border-radius: 9px; font-size: 12.5px; line-height: 1.5;
  background: var(--surface-2, #f5f5f7); color: var(--text-light, #555);
}
.yr-bos { padding: 26px 0; text-align: center; color: var(--text-light, #666); font-size: 13px; }

/* ── Ürün pop-up'ı: "Ürün / Yorumları Oku" sekmeleri ────────────────────────
   Yerleşim: ÜRÜN ADI → yıldız → sekmeler → (aktif sekmenin içeriği).
   NOT: sticky DENENDI, KALDIRILDI — kaydırırken çubuğun ekranda asılı kalması
   rahatsız ediyordu; sekmeler sayfayla birlikte akıyor. */
.yr-sekmeler {
  display: flex; gap: 4px; margin: 10px 0 12px; padding: 3px;
  background: var(--surface-2, #f5f5f7); border-radius: 11px;
}
.yr-sekme {
  flex: 1; min-width: 0; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2;
  color: var(--text-light, #666); padding: 9px 8px; border-radius: 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .18s, color .18s;
}
.yr-sekme:hover { color: var(--text, #1a1a1a); }
.yr-sekme.aktif {
  background: var(--surface, #fff); color: var(--text, #1a1a1a);
  box-shadow: 0 1px 3px rgba(0,0,0,.10);
}
.yr-sekme-govde { padding-bottom: 6px; }
.yr-sekme-govde .yr-yorum:first-child { padding-top: 4px; }

/* Kart yıldızı KISA biçim: "4.5 (109)". Uzun metin ('109 değerlendirme') dar
   kartta alt satıra taşıp yıldızların altına düşüyordu. */
.yr-satir.yr-kisa { flex-wrap: nowrap; white-space: nowrap; }
.yr-satir.yr-kisa .yr-sayi { font-size: 11px; }

@media (max-width: 640px) {
  .yr-panel-kart { top: auto; left: 0; width: 100%; height: 82vh; border-radius: 18px 18px 0 0; animation: yrYuksel .24s cubic-bezier(.16,1,.3,1); }
  @keyframes yrYuksel { from { transform: translateY(30px); opacity: .6 } to { transform: none; opacity: 1 } }
  .yr-satir.yr-kisa .yr-yildiz { font-size: 12px; }
  .yr-sekme { font-size: 12px; padding: 9px 6px; }
}
