/* --- 1. SIFIRLAMA & TEMEL AYARLAR --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: 'Inter', sans-serif; cursor: pointer; }

/* --- 2. HEADER ALANI --- */
header {
    background-color: #111827;
    color: #ffffff;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tb-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tb-left { display: flex; align-items: center; gap: 8px; color: #9ca3af; }
.tb-right { display: flex; gap: 20px; align-items: center; }

.social-icon { color: #9ca3af; display: flex; align-items: center; transition: all 0.3s ease; }
.social-icon:hover { color: #fff; transform: translateY(-2px); }

.main-header { padding: 15px 0; }
.mh-content { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.8rem; font-weight: 900; display: flex; align-items: center; gap: 10px; color: #fff; letter-spacing: -1px; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-item { position: relative; padding: 10px 0; cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 5px; color: #d1d5db; font-size: 0.95rem; }
.nav-item:hover { color: #fff; }
.chevron { width: 14px; height: 14px; opacity: 0.6; transition: 0.2s; }
.nav-item:hover .chevron { transform: rotate(180deg); opacity: 1; }

.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background-color: #1f2937; min-width: 220px; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-radius: 12px; padding: 10px; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); border: 1px solid rgba(255,255,255,0.05); z-index: 9999;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu li a { display: block; padding: 12px 15px; color: #d1d5db; font-size: 0.9rem; border-radius: 8px; }
.dropdown-menu li a:hover { background-color: #374151; color: #fff; }

@keyframes color-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #34d399, #fbbf24, #a78bfa, #60a5fa);
    background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent; font-weight: 800;
    animation: color-shift 5s linear infinite; display: inline-block;
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.action-icon { width: 24px; height: 24px; cursor: pointer; color: #fff; transition: transform 0.2s; }
.action-icon:hover { transform: scale(1.1); }

.cart-wrapper {
    display: flex; align-items: center; gap: 10px; background-color: rgba(255,255,255,0.08);
    padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.cart-wrapper:hover { background-color: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }
.cart-count { background-color: #3b82f6; color: white; font-size: 0.75rem; padding: 2px 8px; border-radius: 20px; }

/* --- BAŞLIK ALANI --- */
.section-header {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.sub-title {
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.main-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #111;
}

.desc-text {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- YENİ ÜRÜN IZGARASI (GRID) SİSTEMİ --- */
.products-wrapper {
    max-width: 1600px; 
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 25px;
}

/* --- KART TASARIMI --- */
.card {
    background: white;
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    width: 100%; 
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Resim */
.card-img-box {
    height: 220px; 
    overflow: hidden;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: #f1f5f9;
    position: relative;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-box img {
    transform: scale(1.1);
}

/* Etiketler */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}
.bg-red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.bg-green { background: linear-gradient(135deg, #10b981, #047857); }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }

/* İçerik */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-title { font-size: 0.65rem; color: #94a3b8; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.prod-title { font-size: 1.05rem; color: #0f172a; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }

.price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.old-p { text-decoration: line-through; color: #cbd5e1; font-size: 0.85rem; font-weight: 500; }
.new-p { color: #2563eb; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px; }

/* VIP Buton */
.btn-vip {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #0f172a;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-vip:hover {
    background: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.btn-vip svg { stroke-width: 2.5px; }

/* --- RESPONSIVE / MOBİL AYARLARI --- */
@media (max-width: 1400px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-menu, .tb-right { display: none; }
}

@media (max-width: 800px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .main-title { font-size: 2.2rem; }
}

@media (max-width: 500px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* --- SEPET MODAL STİLLERİ --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}

/* Modal Görünür Olduğunda */
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-overlay.active .modal-card { transform: scale(1); opacity: 1; }

.modal-card {
    background: white;
    width: 90%; max-width: 400px;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9); opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255,255,255,0.5);
}

.modal-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.modal-title { font-size: 1.25rem; font-weight: 800; color: #111827; margin-bottom: 5px; }
.modal-desc { font-size: 0.95rem; color: #6b7280; margin-bottom: 25px; }

.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-modal {
    width: 100%; padding: 14px;
    border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: 0.3s; display: block; text-align: center;
}

.btn-primary {
    background: #111827; color: white; border: none;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3); }

.btn-outline {
    background: transparent; color: #64748b; border: 2px solid #e2e8f0;
}
.btn-outline:hover { border-color: #111827; color: #111827; }
/* --- SEPET SAYFASI (sepet.html) STİLLERİ --- */

/* Sepet Düzeni */
.cart-page-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

/* Sol Taraf - Ürün Listesi */
.cart-list-section {
    flex: 2; /* Geniş alan */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sağ Taraf - Sipariş Özeti */
.cart-summary-section {
    flex: 1; /* Dar alan */
    background: white;
    border-radius: 24px;
    padding: 30px;
    position: sticky;
    top: 100px; /* Sayfa kayınca sabit kalsın */
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
}

/* Sepet Boş Uyarısı */
.empty-cart {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 24px;
    width: 100%;
}
.empty-text { color: #64748b; margin-top: 10px; margin-bottom: 20px; }

/* Sepetteki Tekil Ürün Kartı */
.cart-item-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: 0.3s;
}
.cart-item-card:hover { transform: translateY(-3px); }

.cic-img {
    width: 100px; height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.cic-img img { width: 100%; height: 100%; object-fit: cover; }

.cic-info { flex-grow: 1; }
.cic-title { font-weight: 700; color: #1e293b; font-size: 1.1rem; margin-bottom: 5px; }
.cic-price { color: #2563eb; font-weight: 700; font-size: 1rem; }

.btn-remove {
    background: #fee2e2; color: #ef4444;
    border: none; padding: 10px; border-radius: 8px;
    transition: 0.2s; display: flex; align-items: center; justify-content: center;
}
.btn-remove:hover { background: #ef4444; color: white; }

/* Özet Alanı Detayları */
.summary-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: #475569; font-size: 0.95rem; }
.summary-total { display: flex; justify-content: space-between; margin-top: 20px; border-top: 2px dashed #e2e8f0; padding-top: 20px; font-weight: 800; font-size: 1.2rem; color: #0f172a; }

.btn-checkout {
    width: 100%; background: #111827; color: white;
    padding: 16px; border-radius: 12px; border: none;
    font-weight: 600; font-size: 1rem; margin-top: 25px;
    transition: 0.3s;
}
.btn-checkout:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37,99,235,0.2); }

.btn-clear {
    margin-top: 15px; width: 100%; background: transparent; color: #94a3b8;
    border: 1px solid #e2e8f0; padding: 10px; border-radius: 12px; font-size: 0.85rem;
}
.btn-clear:hover { border-color: #ef4444; color: #ef4444; }

/* Mobil Uyum */
@media (max-width: 900px) {
    .cart-page-wrapper { flex-direction: column; }
    .cart-summary-section { width: 100%; position: static; }
}
/* --- HEADER GİRİŞ ALANI (PREMIUM STYLE) --- */
.auth-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(255,255,255,0.1); /* Sepetle arasına çizgi */
    padding-right: 20px;
    margin-right: 10px;
}

/* Giriş Yapmamış Hali */
.btn-login-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
}

.btn-login-premium:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Giriş Yapmış Hali */
.user-info-premium {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout {
    color: #ef4444; /* Kırmızımsı */
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
}

.btn-logout:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
}

/* Mobilde Giriş Alanını Gizle/Düzenle */
@media (max-width: 768px) {
    .auth-wrapper { border: none; padding: 0; margin: 0; }
    .btn-login-premium span { display: none; } /* Sadece ikon kalsın */
}