/* --- NURTAŞ TASARIM: BLACK & PURPLE EDITION (V6.0) --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;600&display=swap');

:root {
    --bg-dark: #050505;
    --card-bg: #121212;
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.4);
    --text-main: #e0e0e0;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }

/* HEADER */
header {
    position: fixed; top: 0; width: 100%; padding: 20px 50px; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 24px; font-weight: 700; color: #fff; text-decoration: none; }
.logo span { color: var(--primary); }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { color: #fff; text-decoration: none; transition: 0.3s; }
nav a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

/* PRELOADER */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-logo-img { width: 180px; animation: nefesal 2s infinite ease-in-out; }
@keyframes nefesal { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }

/* HERO */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background-size: cover; background-attachment: fixed; background-position: center;
}
.hero-content { z-index: 2; position: relative; }
.hero h1 { font-size: 4rem; margin-bottom: 20px; }
.hero span { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }

.btn-main {
    padding: 12px 30px; background: var(--primary); color: #fff; border-radius: 30px;
    text-decoration: none; font-weight: bold; box-shadow: 0 5px 15px var(--primary-glow); transition: 0.3s;
    display: inline-block; margin-top: 15px; border: none; cursor: pointer;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--primary-glow); }

/* GENEL YAPILAR */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary); }

/* --- YENİ TAŞ LİSTESİ IZGARASI --- */
.stones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.stone-item {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
    color: #ccc;
}

.stone-item:hover {
    border-color: var(--primary);
    background: #222;
    color: #fff;
    transform: translateY(-3px);
}

.stone-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- TAŞ BİLGİ KUTUSU (GİZLİ BAŞLAR) --- */
.stone-info-panel {
    display: none; /* Başta gizli */
    background: linear-gradient(45deg, #111, #1a0b2e);
    border: 1px solid var(--primary);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.stone-info-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.stone-info-desc {
    color: #ddd;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ARAMA ÇUBUĞU */
.search-area { width: 90%; max-width: 900px; margin: 0 auto; text-align: center; margin-bottom: 30px; }
.search-input { width: 100%; padding: 15px 25px; border-radius: 50px; border: 1px solid #333; background: #111; color: #fff; font-size: 1.1rem; text-align: center; outline: none; transition: 0.3s; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }

/* ÜRÜN KARTLARI */
.services-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.grid-20 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.luxury-card {
    background: var(--card-bg); border: 1px solid #222; border-radius: 10px; overflow: hidden;
    display: block; text-decoration: none; transition: 0.3s; position: relative;
    flex: 1 1 300px; max-width: 350px;
}
.services-wrapper:has(> :nth-last-child(1):nth-child(1)) .luxury-card { max-width: 400px; }
.luxury-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.card-img-box { height: 280px; overflow: hidden; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.luxury-card:hover img { transform: scale(1.05); }
.card-info { padding: 20px; text-align: center; }
.card-info h3 { color: #fff; margin-bottom: 5px; font-size: 1.2rem; }
.card-info p { color: #777; font-size: 0.9rem; }

/* DETAY SAYFASI */
.detail-box { display: flex; gap: 40px; background: #111; padding: 40px; border-radius: 20px; border: 1px solid #333; margin-top: 50px; }
.detail-left { flex: 1; }
.detail-right { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.detail-right h1 { color: var(--primary); margin-bottom: 20px; font-size: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.gallery-thumb { width: 100%; height: 70px; object-fit: cover; border-radius: 5px; cursor: pointer; opacity: 0.6; }
.gallery-thumb:hover { opacity: 1; border: 1px solid var(--primary); }

/* FOOTER */
footer { background: #000; border-top: 1px solid #222; padding: 60px 0 20px; margin-top: 50px; font-size: 0.9rem; }
.footer-container { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }
.footer-col h3 span { color: var(--primary); }
.footer-col h4 { color: var(--primary); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid #111; margin-top: 50px; padding-top: 20px; color: #555; }

@media (max-width: 768px) { 
    .detail-box { flex-direction: column; } 
    .hero h1 { font-size: 2.5rem; } 
    header { flex-direction: column; gap: 15px; padding: 15px; } 
    .stones-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- YENİ SEPET / KAYDEDİLENLER BÖLÜMÜ --- */
.cart-floating-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--primary); color: #fff;
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; cursor: pointer; box-shadow: 0 0 20px var(--primary-glow);
    z-index: 1000; transition: 0.3s; border: none;
}
.cart-floating-btn:hover { transform: scale(1.1); background: #b562f7; }
.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: #dc2743; color: white;
    font-size: 0.8rem; font-weight: bold; width: 24px; height: 24px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
}

.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 350px; height: 100vh;
    background: rgba(10, 10, 10, 0.95); z-index: 1001; border-left: 1px solid var(--primary);
    transition: right 0.4s ease; padding: 20px; display: flex; flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.8); backdrop-filter: blur(10px);
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 15px; }
.cart-header h3 { color: var(--primary); font-size: 1.5rem; margin:0; }
.close-cart { cursor: pointer; font-size: 1.5rem; color: #fff; transition: 0.3s; }
.close-cart:hover { color: #dc2743; }

.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; padding-right: 5px; }
.cart-item { background: #1a1a1a; padding: 15px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #333;}
.cart-item h4 { font-size: 0.9rem; color: #fff; margin-bottom:5px; }
.cart-item a { color: var(--primary); font-size: 0.8rem; text-decoration: none; }
.cart-item-remove { color: #dc2743; cursor: pointer; font-size: 1.2rem; transition: 0.3s;}
.cart-item-remove:hover { transform: scale(1.2); }

.cart-footer { margin-top: 15px; border-top: 1px solid #333; padding-top: 15px; display:flex; flex-direction: column; gap: 10px;}
.btn-add-cart {
    background: transparent; border: 1px solid var(--primary); color: var(--primary);
    padding: 8px; border-radius: 5px; cursor: pointer; transition: 0.3s; margin-top: 15px; width: 100%; font-weight:bold;
}
.btn-add-cart:hover { background: var(--primary); color: #fff; }

/* AÇILIR MENÜ STİLLERİ (GLOBAL) */
nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 20px; }
nav ul li { position: relative; }
nav ul li a { color: #ccc; text-decoration: none; transition: 0.3s; padding: 10px; display: block; cursor: pointer; font-weight: 500;}
nav ul li a:hover { color: var(--primary); }

nav ul li ul.dropdown {
    display: none; position: absolute; top: 100%; left: -20px;
    background: rgba(15, 15, 15, 0.95); border: 1px solid var(--primary);
    border-radius: 8px; min-width: 240px; padding: 10px 0;
    z-index: 1000; box-shadow: 0 10px 30px rgba(157,78,221,0.4); backdrop-filter: blur(10px);
}
nav ul li:hover ul.dropdown { display: block; animation: fadeIn 0.3s ease; }
nav ul li ul.dropdown li { width: 100%; }
nav ul li ul.dropdown li a {
    padding: 12px 20px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ddd;
}
nav ul li ul.dropdown li:last-child a { border-bottom: none; }
nav ul li ul.dropdown li a:hover { background: rgba(157,78,221,0.2); color: #fff; padding-left: 25px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }