/* --- 1. SIFIRLAMA & DEĞİŞKENLER --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-color: #0d0d0d;
    --text-color: #f0f0f0;
    --text-muted: #888888;
    --primary-color: #C19A6B; 
    --card-bg: #1a1a1a;
    --border-color: rgba(255,255,255,0.1); 
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(193, 154, 107, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. NAVİGASYON (MENÜ) --- */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 30px 50px; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
}

.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo svg { stroke: var(--primary-color); filter: drop-shadow(0 0 5px rgba(193, 154, 107, 0.4)); }
.brand-text { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: #fff; }
.brand-text .lighter { color: var(--primary-color); font-weight: 300; }

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.menu li a {
    color: #ffffff;
    text-decoration: none; 
    font-size: 1rem;      
    font-weight: 500;      
    transition: 0.3s;      
    text-transform: uppercase; 
    letter-spacing: 1px;   
}

.menu li a:hover, .menu li a.active { color: var(--primary-color); }

/* --- SABİT (YÜZEN) SEPET BUTONU --- */
.cart-icon-container {
    position: fixed;
    top: 30px;        
    right: 40px;      
    z-index: 10000;   
    background-color: #333333; 
    border-radius: 50px;       
    padding: 12px 25px;        
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    overflow: visible !important;
    text-decoration: none !important;
    color: #fff !important;
}

.cart-icon-container:visited { color: #fff !important; }

.cart-icon-container svg.cart-svg {
    stroke: #ffffff; 
    width: 22px;
    height: 22px;
    transition: stroke 0.4s ease;
}

.cart-icon-container:hover {
    background-color: var(--primary-color) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(193, 154, 107, 0.4); 
    cursor: pointer;
}

.cart-icon-container:hover svg.cart-svg { stroke: #212121; }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #d32f2f;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none; 
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a1a; 
    z-index: 10;
}

/* --- 3. HERO ALANLARI --- */
.hero {
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    min-height: 50vh; 
    padding-top: 180px; 
    padding-bottom: 60px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1610701596007-11502861dcfa?auto=format&fit=crop&w=1920&q=80');
}

.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1504198458649-3128b932f49e?auto=format&fit=crop&w=1920&q=80');
    min-height: 80vh !important; 
}
.contact-hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    min-height: 70vh !important;
}

.hero-content { width: 100%; padding: 0 20px; }
.hero-content h1 { font-size: 3.5rem; font-family: var(--font-heading); font-weight: 400; color: #fff; margin-bottom: 15px;}
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 30px auto; }
.btn-hero { display: inline-block; background: var(--primary-color); color: #000; padding: 15px 40px; border-radius: 5px; font-weight: 600; text-transform: uppercase; }
.btn-hero:hover { background: #fff; transform: translateY(-3px); }

/* --- 4. KARTLAR VE DÜZEN --- */
.container, .vitrin { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.vitrin { text-align: center; }
.vitrin h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary-color); margin-bottom: 50px; }

.container { display: flex; gap: 40px; align-items: flex-start; }
.sidebar { width: 250px; border-right: 1px solid var(--border-color); padding: 20px 0; flex-shrink: 0; }
.sidebar h3 { font-family: var(--font-heading); color: var(--primary-color); margin-bottom: 25px; }
.sidebar ul li { margin-bottom: 15px; }
.sidebar ul li a { color: var(--text-muted); font-size: 0.95rem; }
.sidebar ul li a:hover, .sidebar ul li a.active-cat { color: #fff; padding-left: 10px; border-left: 2px solid var(--primary-color); }

.urun-grid, .product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; width: 100%; }

.card {
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color);
    border-radius: 15px; 
    padding: 20px; 
    text-align: left; 
    transition: 0.4s;
    display: flex; 
    flex-direction: column;
    text-decoration: none; 
    color: inherit; 
    height: 100%; 
}
.card:hover { 
    border-color: var(--primary-color); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.btn-add {
    background: var(--primary-color); 
    color: #1a1a1a;                  
    font-family: var(--font-body);
    font-weight: 700;                 
    text-transform: uppercase;        
    letter-spacing: 0.5px;            
    padding: 10px 20px;               
    font-size: 0.85rem;              
    border-radius: 30px;              
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(193, 154, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;                        
    width: 100%;
    margin-top: auto; 
}
.btn-add:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.btn-add:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- 5. DETAY SAYFASI --- */
.interactive-section { padding: 50px 0; display: flex; justify-content: center; }

/* DÜZELTME: Eşit yükseklik ve hizalama */

.product-container {
    background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 30px; border-radius: 20px; max-width: 1000px; width: 90%;
    display: flex; 
    align-items: stretch; /* Kutuları eşitler */
    gap: 40px; 
    flex-wrap: wrap; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.model-wrapper {
    flex: 1.5; 
    height: auto; 
    min-height: 550px;
    background: radial-gradient(circle, #2a2a2a 0%, #111 100%);
    border-radius: 15px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.05);
}
model-viewer { width: 100%; height: 100%; }
.ar-hint { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* DÜZELTME: Sağ kutu düzeni */
.controls { 
    flex: 1; 
    min-width: 300px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; /* İçeriği dikeyde ortala */
}

.controls h3 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--primary-color); margin-bottom: 10px; line-height: 1.2; }
.controls .desc { color: #aaa; font-size: 1rem; margin-bottom: 25px; line-height: 1.6; }

.color-options-title { font-size: 0.95rem; color: #fff; font-weight: 600; margin-top: 15px; }
.color-options { display: flex; gap: 15px; margin: 15px 0; }
.color-btn { width: 45px; height: 45px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,0.2); transition: 0.3s; }
.color-btn:hover { transform: scale(1.1); }
.color-btn.selected { border: 3px solid #fff; box-shadow: 0 0 15px var(--primary-color); transform: scale(1.15); }

.bulb-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.bulb-btn { background: rgba(255,255,255,0.05); border: 1px solid #333; color: #fff; padding: 15px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: 0.3s; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.bulb-btn:hover { background: rgba(255,255,255,0.1); }
.bulb-btn.active-bulb { border-color: var(--primary-color); background: rgba(193, 154, 107, 0.1); color: var(--primary-color); }
.bulb-btn span { display: block; font-size: 0.75rem; color: #888; margin-top: 4px; }

/* --- İŞTE DÜZELTİLEN YER: Fiyat Üstte, Buton Altta, Ortalı --- */

.price-action {
    display: flex;
    flex-direction: column; /* Alt alta diz */
    align-items: center;    /* Ortala */
    gap: 15px;              /* Fiyat ve buton arası boşluk */
    margin-top: 25px;       /* Yukarıdan boşluk */
    padding-top: 25px;      /* Çizgiden boşluk */
    border-top: 1px solid rgba(255,255,255,0.1); /* Beyaz çizgi */
    width: 100%;
}

.price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#price-display {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2.8rem; /* Büyük fiyat */
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.kargo-bilgi {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sepete Ekle Butonu */
.buy-btn {
    width: 100%; /* Tam genişlik */
    background: var(--primary-color); 
    color: #1a1a1a;                  
    font-family: var(--font-body);
    font-weight: 700;                 
    text-transform: uppercase;        
    letter-spacing: 1px;            
    padding: 18px 0; /* Tok yükseklik */              
    font-size: 1.1rem;              
    border-radius: 50px;              
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(193, 154, 107, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.buy-btn svg { width: 22px; height: 22px; }

.buy-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.buy-btn:active { transform: scale(0.98); }

/* --- 6. İLETİŞİM & HAKKIMIZDA & FOOTER --- */
.contact-wrapper, .about-container { align-items: center; flex-wrap: wrap; }
.contact-info, .about-text { flex: 1; min-width: 300px; }
.contact-form-container, .about-image { flex: 1; min-width: 300px; }
.info-card { background: rgba(255,255,255,0.03); border-left: 3px solid var(--primary-color); padding: 20px; margin-bottom: 20px; border-radius: 0 10px 10px 0; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 15px; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color);
    border-radius: 8px; color: #fff; margin-bottom: 20px;
}
.about-image img { width: 100%; border-radius: 15px; border: 1px solid var(--border-color); }

.site-footer { margin-top: 100px; border-top: 1px solid var(--border-color); padding-top: 60px; padding-bottom: 30px; background: #050505; }
.footer-container { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; max-width: 1200px; margin: 0 auto 40px auto; padding: 0 20px; }
.footer-brand, .footer-links, .footer-contact { flex: 1; min-width: 200px; }
.footer-links ul li a { color: #888; font-size: 0.9rem; transition: 0.3s; }
.footer-links ul li a:hover { color: var(--primary-color); padding-left: 5px; }
.mail-link { color: var(--primary-color); font-weight: 600; display: block; margin-bottom: 15px; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: #555; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }

.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
    .menu { display: none; }
    nav { padding: 20px; }
    /* Mobilde düzen */
    .product-container { flex-direction: column; }
    .model-wrapper { width: 100%; min-height: 400px; }
    .controls { width: 100%; }
}

/* --- ENERJİ TOPU ve ZIGZAG EFEKTLERİ --- */
.energy-ball {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 10%, var(--primary-color) 60%);
    box-shadow: 
        0 0 15px var(--primary-color), 
        0 0 30px 10px rgba(193, 154, 107, 0.8),
        0 0 60px 20px rgba(255, 255, 255, 0.4);
    opacity: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0); 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.power-drain {
    transform: scale(0.9) !important;
    filter: grayscale(100%) brightness(0.5) !important;
    box-shadow: none !important;
    transition: all 0.5s ease !important;
}

/* --- PATLAMA EFEKTİ --- */
.cart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffffff 30%, var(--primary-color) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    animation: burstAnim 0.6s ease-out forwards;
}

@keyframes burstAnim {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; box-shadow: 0 0 20px #fff; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; box-shadow: 0 0 0px transparent; }
}