/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background-color: #f8f9fa; color: #374151; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 15px; }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 15px 0; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--theme-color); }
.user-menu a { color: #6b7280; font-weight: 500; transition: .2s; display: flex; align-items: center; gap: 8px; }
.user-menu a:hover { color: var(--theme-color); }

/* SEPET BAŞLIĞI */
.cart-header { margin-bottom: 25px; }
.cart-header h1 { font-size: 1.8rem; color: #111827; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.cart-header p { color: #6b7280; font-size: 0.95rem; }

/* BOŞ SEPET */
.empty-cart { background: #fff; border-radius: 12px; padding: 60px 20px; text-align: center; border: 1px solid #e5e7eb; }
.empty-cart i { font-size: 4rem; color: #d1d5db; margin-bottom: 20px; }
.empty-cart h2 { font-size: 1.5rem; color: #374151; margin-bottom: 10px; }
.empty-cart p { color: #6b7280; margin-bottom: 25px; }
.btn-continue { display: inline-block; background: var(--theme-color); color: #fff; padding: 12px 30px; border-radius: 6px; font-weight: 600; transition: .2s; }
.btn-continue:hover { opacity: 0.9; }

/* SEPET LAYOUT */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }

@media (max-width: 1100px) {
    .cart-layout { grid-template-columns: 1fr; }
}

/* TABLO KISMI */
.cart-items-section { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.table-responsive { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 900px; }

.cart-table th { background: #f9fafb; padding: 15px; font-size: 0.85rem; font-weight: 600; color: #6b7280; text-transform: uppercase; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.cart-table td { padding: 15px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: #6b7280; font-size: 0.9rem; }
.font-semibold { font-weight: 600; color: #374151; }

.cart-product-info { display: flex; align-items: center; gap: 15px; min-width: 250px; }
.cart-product-info img { width: 60px; height: 60px; object-fit: contain; border-radius: 6px; border: 1px solid #eee; }
.prod-name { font-weight: 600; color: #111827; display: block; margin-bottom: 4px; font-size: 0.95rem; transition: .2s; }
.prod-name:hover { color: var(--theme-color); }
.prod-variant { font-size: 0.8rem; color: #6b7280; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; display: inline-block; }

.row-total { font-weight: 700; color: var(--price-color); font-size: 1.1rem; }

/* Miktar Seçici */
.qty-box { display: inline-flex; border: 1px solid #d1d5db; border-radius: 6px; height: 36px; overflow: hidden; background: #fff; }
.qty-box button { width: 30px; border: none; background: #f8fafc; cursor: pointer; font-weight: bold; color: #64748b; font-size: 1.2rem; transition: .2s; }
.qty-box button:hover { background: #e2e8f0; color: var(--theme-color); }
.qty-box input { width: 40px; border: none; text-align: center; font-weight: 600; color: #334155; outline: none; }
.unit-text { font-size: 0.75rem; color: #9ca3af; margin-top: 4px; }

.btn-remove { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; transition: .2s; }
.btn-remove:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* SAĞ TARAF: ÖZET */
.summary-card { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 25px; position: sticky; top: 20px; }
.summary-card h3 { font-size: 1.2rem; color: #111827; margin-bottom: 20px; border-bottom: 1px solid #f3f4f6; padding-bottom: 10px; }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.95rem; color: #4b5563; }
.summary-row.grand-total { border-top: 1px solid #e5e7eb; padding-top: 15px; margin-top: 10px; margin-bottom: 25px; font-size: 1.2rem; font-weight: 700; color: #111827; }
.summary-row.grand-total span:last-child { color: var(--price-color); font-size: 1.5rem; }

.btn-checkout {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px; background: var(--theme-color); color: var(--theme-text);
    border-radius: 8px; font-weight: 700; font-size: 1.1rem; text-transform: uppercase;
    transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-checkout:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

.secure-checkout { text-align: center; margin-top: 20px; font-size: 0.85rem; color: #10b981; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }