/* ==========================================================================
   OREKA GIDA - MODERN & PREMIUM TEKLİF SEPETİ STİLLERİ (v2)
   ========================================================================== */

:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #fff7ed;
    --primary-border: #fed7aa;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(234, 88, 12, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

.quote-page {
    background-color: var(--bg-page);
    min-height: 88vh;
    padding-bottom: 80px;
    font-family: inherit;
}

/* Şık Glassmorphism & Gradient Header (Dikey olarak küçültüldü) */
.quote-hero {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 45%, #f97316 100%);
    color: #fff;
    padding: 95px 20px 25px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.2);
}

.quote-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.quote-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    width: fit-content;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-title-area h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero-title-area p {
    font-size: 15px;
    margin: 0;
    opacity: 0.92;
    font-weight: 400;
}

/* Şık Cam Efektli İstatistikler */
.hero-stats {
    display: flex;
    gap: 16px;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 14px;
}
.stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.stat-box svg {
    opacity: 0.9;
}
.stat-label { opacity: 0.85; font-weight: 500; }
.stat-val { font-weight: 800; font-size: 15px; }

.quote-content-layout {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
}

/* Sepet Flex Layout */
.cart-layout {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
}
.cart-items-section {
    flex: 1;
    width: 100%;
}
.cart-summary-section {
    width: 380px;
    flex-shrink: 0;
}
.cart-items-list { display: flex; flex-direction: column; gap: 16px; }

/* Modern Ürün Kartı */
.cart-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.cart-item-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
    transform: translateY(-2px);
}

.cart-item-left { display: flex; align-items: center; gap: 18px; }
.cart-item-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.cart-item-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cart-item-details h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px 0; color: var(--text-main); }
.cart-item-details p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; }

.cart-item-right { display: flex; align-items: center; gap: 20px; }

/* Modern Adet Kontrolü */
.quantity-controller {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.qty-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    color: #334155;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { width: 40px; text-align: center; border: none; font-size: 14px; font-weight: 800; background: transparent; color: var(--text-main); }

.remove-item-btn {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.remove-item-btn:hover { background: #ef4444; color: #fff; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2); }

.cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.clear-cart-btn {
    background: #fff;
    color: var(--text-muted);
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.clear-cart-btn:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }

/* Boş Sepet Tasarımı */
.empty-cart-card {
    background: var(--card-bg);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}
.empty-cart-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 25px rgba(234, 88, 12, 0.15);
}
.empty-cart-card h3 { font-size: 24px; color: var(--text-main); margin: 0 0 10px 0; font-weight: 800; }
.empty-cart-card p { font-size: 15px; color: var(--text-muted); margin: 0 0 28px 0; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.explore-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
    transition: var(--transition);
}
.explore-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4); }

/* Sağ Özet Panel */
.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 30px;
    box-shadow: var(--shadow-md);
}
.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 12px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #f1f5f9;
}
.summary-row strong { color: var(--text-main); font-size: 17px; }

.submit-quote-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.submit-quote-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4); }

/* Checkout (Form) Layout - ÖZET SOLDA, FORM SAĞDA DÜZENİ */
.checkout-layout {
    display: flex;
    flex-direction: row-reverse; /* Sağ ve Sol elemanların yerini tersine çevirir */
    gap: 30px;
    align-items: flex-start;
}
.checkout-left {
    flex: 1;
    width: 100%;
}
.checkout-right {
    width: 380px;
    flex-shrink: 0;
}
.checkout-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.checkout-card h2 { margin: 0 0 6px 0; font-size: 24px; color: var(--text-main); font-weight: 800; }
.subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 13px; font-weight: 700; color: #334155; }
.form-group input, .form-group textarea {
    padding: 13px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: #fff;
    color: var(--text-main);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.final-checkout-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
    transition: var(--transition);
}
.final-checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4); }

/* Mini Sepet (Form Yanı Özet) */
.mini-summary h3 { font-size: 18px; font-weight: 800; color: var(--text-main); margin: 0 0 16px 0; border-bottom: 2px solid var(--primary-light); padding-bottom: 10px; }
.mini-cart-list { display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; margin-bottom: 20px; padding-right: 4px; }
.mc-item { display: flex; align-items: center; gap: 14px; background: #f8fafc; padding: 12px; border-radius: var(--radius-sm); border: 1px solid #f1f5f9; }
.mc-img { width: 45px; height: 45px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; }
.mc-name { font-size: 13px; font-weight: 700; margin: 0 0 2px 0; color: var(--text-main); }
.mc-qty { font-size: 12px; color: var(--primary); font-weight: 700; }
.mini-cart-totals { border-top: 1px solid var(--border-color); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mc-row { display: flex; justify-content: space-between; font-size: 14px; color: #475569; }
.mc-row strong { color: var(--text-main); font-size: 15px; }

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .cart-layout { flex-direction: column; }
    .checkout-layout { flex-direction: column-reverse; } /* Mobilde form üstte, özet altta kalır */
    .cart-summary-section, .checkout-right { width: 100%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .cart-item-card { flex-direction: column; align-items: flex-start; gap: 18px; }
    .cart-item-right { width: 100%; justify-content: space-between; border-top: 1px solid #f1f5f9; padding-top: 14px; }
    .hero-stats { flex-direction: column; gap: 10px; }
    .stat-box { width: 100%; justify-content: space-between; }
}