/* assets/css/style.css - DEFUXA ULTIMATE MASTER EDITION */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #ff6b35;          /* Marka Rengi (Turuncu) */
    --primary-hover: #e05520;    /* Koyu Turuncu (Hover) */
    --dark: #0f172a;             /* Koyu Lacivert (Başlıklar) */
    --text: #334155;             /* Ana Metin Rengi (Koyu Gri) */
    --gray-light: #f8fafc;       /* Açık Gri Arka Planlar */
    --border: #e2e8f0;           /* Çerçeve Rengi */
    --white: #ffffff;
    --radius: 12px;              /* Yuvarlatma Değeri */
    
    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- 1. GLOBAL AYARLAR (RESET) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text); 
    background: var(--white); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- 2. NAVBAR (MENÜ) --- */
.navbar { 
    position: sticky; top: 0; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border); 
    padding: 1rem 0; 
    z-index: 1000; 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.6rem; color: var(--dark); letter-spacing: -1px; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.btn-nav { 
    background: var(--dark); color: var(--white); 
    padding: 0.7rem 1.8rem; border-radius: 99px; 
    font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; 
    transition: all 0.2s; 
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* --- 3. HERO SECTION (VİTRİN) --- */
.hero { padding: 4rem 0 6rem 0; background: radial-gradient(circle at top right, #fff7ed, #fff); }
.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Sol ve Sağ Yarı Yarıya */
    gap: 4rem; 
    align-items: start; 
}

/* Sol Taraf: Görseller */
.hero-image { position: sticky; top: 100px; }
.main-img-container { 
    width: 100%; height: 500px; 
    border-radius: 16px; overflow: hidden; 
    background: var(--white); 
    box-shadow: var(--shadow-lg); 
    border: 1px solid var(--border);
    position: relative;
    margin-bottom: 1rem;
}
.main-img-container img { width: 100%; height: 100%; object-fit: cover; }

.thumbnails { display: flex; gap: 12px; justify-content: center; }
.thumb { 
    width: 70px; height: 70px; 
    border-radius: 10px; cursor: pointer; 
    border: 2px solid transparent; 
    background: var(--white); 
    object-fit: cover; 
    transition: 0.2s; opacity: 0.7;
}
.thumb:hover { border-color: var(--primary); opacity: 1; transform: translateY(-3px); }

/* Sağ Taraf: Metin ve Satın Alma */
.hero-text { padding-top: 10px; }
.badges-wrapper { display: flex; gap: 10px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.badge { 
    padding: 6px 12px; border-radius: 6px; 
    font-weight: 700; font-size: 0.75rem; 
    text-transform: uppercase; letter-spacing: 0.5px; 
    background: #fee2e2; color: #b91c1c; 
}

h1 { 
    font-size: 2.8rem; line-height: 1.1; 
    margin-bottom: 1rem; font-weight: 800; 
    color: var(--dark); letter-spacing: -1px; 
}
.hero-sub { 
    font-size: 1.1rem; color: var(--text); 
    margin-bottom: 2rem; max-width: 95%; 
    opacity: 0.9; 
}

.price-box { display: flex; align-items: center; gap: 15px; margin-bottom: 2rem; }
.new-price { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.old-price { font-size: 1.4rem; color: #94a3b8; text-decoration: line-through; }
.discount-badge { 
    background: var(--dark); color: var(--white); 
    padding: 5px 10px; border-radius: 6px; 
    font-weight: 700; font-size: 0.9rem; 
}

.btn-primary { 
    background: var(--primary); color: var(--white); 
    width: 100%; padding: 1.2rem; 
    border-radius: 12px; font-weight: 700; font-size: 1.2rem; 
    border: none; cursor: pointer; 
    box-shadow: 0 10px 20px -5px rgba(255, 107, 53, 0.4); 
    transition: all 0.2s ease;
    text-align: center;
}
.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 20px 30px -5px rgba(255, 107, 53, 0.5); 
}
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(255, 107, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); } }

.trust-features { 
    margin-top: 1.5rem; display: flex; gap: 20px; 
    color: #64748b; font-size: 0.85rem; font-weight: 600; 
    flex-wrap: wrap;
}
.trust-features i { color: #059669; margin-right: 5px; }

/* --- 4. ÖZELLİKLER TABLOSU (SPECIFICATIONS) --- */
.features-section { 
    padding: 5rem 0; 
    background: var(--gray-light); 
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-title { 
    text-align: center; 
    font-size: 2rem; 
    font-weight: 800; 
    margin-bottom: 2.5rem; 
    color: var(--dark); letter-spacing: -0.5px;
}
.specs-box { 
    background: var(--white); 
    padding: 3rem; 
    border-radius: 20px; 
    box-shadow: var(--shadow-md); 
    max-width: 1000px; 
    margin: 0 auto; 
    overflow: hidden; /* Taşmayı engeller */
}

/* Tablo Tasarımı */
.product-description-content table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0; 
    margin-top: 1rem; 
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.product-description-content td { 
    padding: 15px 20px; 
    font-size: 0.95rem; 
    color: var(--text); 
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.product-description-content tr:last-child td { border-bottom: none; }
.product-description-content td:first-child { 
    font-weight: 700; 
    color: var(--dark); 
    width: 35%; 
    background: #f8fafc; 
    border-right: 1px solid var(--border);
}

/* --- 5. GELİŞMİŞ YORUM SİSTEMİ --- */
.reviews { padding: 5rem 0; background: var(--white); }

/* Yorum Özeti Kutusu */
.reviews-header-box {
    display: flex; justify-content: space-between; align-items: center;
    background: #f8fafc; padding: 2rem; border-radius: 16px; margin-bottom: 3rem;
    border: 1px solid var(--border);
}
.rating-summary { display: flex; align-items: center; gap: 20px; }
.big-score { font-size: 3.5rem; font-weight: 900; color: #f59e0b; line-height: 1; }
.stars-static { color: #f59e0b; font-size: 1.2rem; }
.btn-write-review {
    background: var(--white); border: 2px solid var(--dark); color: var(--dark);
    padding: 12px 25px; border-radius: 8px; font-weight: 700; cursor: pointer;
    transition: 0.3s; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}
.btn-write-review:hover { background: var(--dark); color: var(--white); }

/* Yorum Listesi */
.review-list { display: flex; flex-direction: column; gap: 2rem; }
.review-item {
    display: flex; gap: 30px; padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; padding-bottom: 0; }

/* Sol Taraf (Kişi) */
.review-left { width: 160px; flex-shrink: 0; }
.reviewer-name { font-weight: 700; font-size: 1rem; margin-bottom: 5px; color: var(--dark); }
.reviewer-country { 
    font-size: 0.85rem; color: #64748b; 
    display: flex; align-items: center; gap: 8px; 
    background: #f1f5f9; padding: 4px 8px; border-radius: 4px; width: fit-content;
}

/* Sağ Taraf (İçerik) */
.review-right { flex: 1; }
.review-top-row { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.stars-small { color: #f59e0b; font-size: 0.9rem; }
.verified-text { color: #10b981; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.review-date { margin-left: auto; color: #94a3b8; font-size: 0.85rem; }

.review-text { font-size: 1rem; color: var(--text); line-height: 1.6; margin-bottom: 15px; }
.review-attached-img { 
    width: 90px; height: 90px; object-fit: cover; border-radius: 8px; 
    cursor: zoom-in; border: 1px solid var(--border); margin-bottom: 15px;
    transition: 0.2s;
}
.review-attached-img:hover { transform: scale(1.05); }

.review-actions { display: flex; align-items: center; gap: 15px; font-size: 0.85rem; color: #64748b; }
.btn-helpful {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 6px;
    cursor: pointer; color: #475569; font-weight: 600; background: #fff;
}
.btn-helpful:hover { background: #f8fafc; border-color: #94a3b8; color: var(--dark); }

/* --- 6. MODAL (POPUP SİSTEMİ) --- */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); 
    z-index: 2000; justify-content: center; align-items: center; 
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content { 
    background: var(--white); width: 95%; max-width: 950px; 
    border-radius: 20px; position: relative; display: flex; 
    overflow: hidden; max-height: 90vh; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Sipariş Modalı Izgarası */
.modal-grid { display: grid; grid-template-columns: 2fr 3fr; width: 100%; overflow-y: auto; }
.modal-left { 
    background: #f8fafc; padding: 2.5rem; 
    display: flex; flex-direction: column; align-items: center; 
    justify-content: center; text-align: center; border-right: 1px solid var(--border);
}
.modal-right { padding: 2.5rem; }
.close-btn { 
    position: absolute; top: 15px; right: 20px; 
    font-size: 2rem; cursor: pointer; color: #94a3b8; z-index: 10; line-height: 1;
}
.close-btn:hover { color: var(--dark); }

/* Form Elemanları */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.85rem; color: var(--text); }
.form-control, .checkout-form input, .checkout-form select, .checkout-form textarea { 
    width: 100%; padding: 12px; 
    border: 1px solid var(--border); border-radius: 8px; 
    font-size: 0.95rem; background: #fff; transition: 0.2s;
}
.form-control:focus, .checkout-form input:focus { 
    border-color: var(--primary); outline: none; 
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1); 
}

.btn-submit { 
    width: 100%; background: #10b981; color: white; padding: 14px; 
    border: none; border-radius: 8px; font-weight: 700; font-size: 1.1rem; 
    cursor: pointer; display: flex; justify-content: center; gap: 8px; align-items: center;
    margin-top: 1rem;
}
.btn-submit:hover { background: #059669; }

/* Kredi Kartı Alanı */
.payment-wrapper { 
    background: #f1f5f9; padding: 15px; 
    border: 1px solid var(--border); border-radius: 8px; 
    margin-bottom: 15px; 
}

/* --- 7. FOOTER & MOBİL --- */
footer { 
    padding: 3rem 0; text-align: center; 
    background: var(--dark); color: #94a3b8; font-size: 0.9rem; 
}
.policy-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; }

/* MOBİL UYUM (Responsive) */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-text { text-align: center; } 
    .hero-sub { margin: 0 auto 1.5rem auto; }
    .badges-wrapper, .price-box, .trust-features { justify-content: center; }
    .main-img-container { height: 350px; }
    
    .review-item { flex-direction: column; gap: 15px; }
    .review-left { width: 100%; display: flex; align-items: center; gap: 10px; }
    .reviews-header-box { flex-direction: column; text-align: center; gap: 20px; }
    
    .modal-grid { grid-template-columns: 1fr; }
    .modal-left { display: none; }
    .modal-right { padding: 1.5rem; }
}