:root {
    --primary-color: #050b14; /* Çok Koyu Lacivert/Siyah */
    --accent-color: #f59e0b; /* Turuncu/Sarı - Endüstriyel */
    --accent-hover: #d97706;
    --text-color: #e2e8f0;
    --bg-color: #0f172a;
    --white: #ffffff;
    --wa-color: #25D366;
    --wa-hover: #128C7E;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --red-alert: #e3000f; /* Resimdeki Kırmızı Tonu */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Arka Plan Parlamaları (Glassmorphism için) */
.bg-shape { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.5; }
.shape-1 { width: 400px; height: 400px; background: #1e3a8a; top: -100px; left: -100px; }
.shape-2 { width: 500px; height: 500px; background: #0f766e; bottom: -200px; right: -100px; }
.shape-3 { width: 300px; height: 300px; background: #b45309; top: 40%; left: 50%; transform: translate(-50%, -50%); opacity: 0.3; }

/* Glassmorphism Sınıfı */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; color: var(--white); }
a { text-decoration: none; color: inherit; }

/* 1. Kayan Yazı (Ticker) */
.top-ticker { background: var(--red-alert); color: white; padding: 8px 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 14px; }
.ticker-track { display: inline-block; animation: scrollTicker 25s linear infinite; }
.ticker-track span { margin-right: 50px; }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 2. Üst Bar */
.top-bar { border-bottom: 1px solid var(--glass-border); font-size: 13px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.socials a { margin-right: 15px; color: #cbd5e1; transition: color 0.3s; }
.socials a:hover { color: var(--accent-color); }
.top-links a { margin-left: 15px; color: #cbd5e1; transition: color 0.3s; }
.top-links a:hover { color: var(--accent-color); }

/* 3. Ana Header (Logo + Arama) */
.main-header { padding: 25px 0; border-bottom: 1px solid var(--glass-border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.logo-img { height: 60px; object-fit: contain; }
.search-container { flex-grow: 1; max-width: 700px; }
.search-form { display: flex; width: 100%; }
.search-form input { flex-grow: 1; padding: 14px 20px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); color: white; border-radius: 8px 0 0 8px; outline: none; font-family: 'Inter', sans-serif; }
.search-form input:focus { border-color: var(--red-alert); }
.search-form button { padding: 14px 30px; background: var(--red-alert); border: none; color: white; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 18px; transition: background 0.3s; }
.search-form button:hover { background: #b9000c; }
.search-quick-links { margin-top: 10px; font-size: 13px; color: #64748b; }
.search-quick-links a { color: #94a3b8; margin: 0 5px; transition: color 0.3s; }
.search-quick-links a:hover { color: var(--accent-color); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; }

/* 4. Kategori Navigasyonu */
.category-nav { background: rgba(0,0,0,0.4); padding: 15px 0; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.ecommerce-categories { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.ecommerce-categories::-webkit-scrollbar { display: none; }
.cat-pill { padding: 10px 20px; background: rgba(255,255,255,0.05); color: var(--white); border-radius: 30px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid var(--glass-border); transition: all 0.3s; text-decoration: none; }
.cat-pill:hover { background: rgba(245, 158, 11, 0.1); border-color: var(--accent-color); color: var(--accent-color); }
.cat-pill.active { background: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }

/* 5. Hero Slider */
.hero-slider { position: relative; width: 100%; height: 450px; overflow: hidden; background: #000; }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide-content { padding: 40px; text-align: center; max-width: 700px; border-radius: 16px; }
.slide-content h2 { font-size: 44px; margin-bottom: 15px; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.slide-content p { font-size: 20px; margin-bottom: 25px; color: #cbd5e1; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--glass-bg); border: 1px solid var(--glass-border); color: white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 20px; backdrop-filter: blur(10px); transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: rgba(255,255,255,0.2); }
.prev-slide { left: 30px; }
.next-slide { right: 30px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.3s; }
.dot.active { background: var(--red-alert); }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.3s; border: none; text-align: center; font-size: 16px; }
.btn-primary { background-color: var(--accent-color); color: var(--primary-color); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 0 25px rgba(245, 158, 11, 0.6); }

.btn-whatsapp { background-color: rgba(37, 211, 102, 0.1); color: var(--wa-color); border: 1px solid var(--wa-color); width: 100%; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-whatsapp:hover { background-color: var(--wa-color); color: var(--white); }

/* 6. Çizgili Section Title */
.products-section, .about-section { padding: 80px 0; }
.section-title-wrapper { display: flex; align-items: center; justify-content: center; margin-bottom: 50px; }
.section-title-wrapper::before, .section-title-wrapper::after { content: ""; height: 1px; background: var(--glass-border); flex: 1; max-width: 100px; margin: 0 20px; }
.section-title { font-size: 32px; margin: 0; color: var(--white); }

/* Products Layout with Sidebar */
.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.products-sidebar { padding: 20px; border-radius: 16px; position: sticky; top: 120px; }
.filter-group { margin-bottom: 25px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title { font-size: 16px; color: var(--white); margin-bottom: 15px; border-bottom: 1px solid var(--glass-border); padding-bottom: 8px; }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 14px; cursor: pointer; }
.filter-checkbox input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent-color); }
.filter-checkbox:hover { color: var(--accent-color); }
.price-filter { display: flex; align-items: center; gap: 5px; }
.price-filter input { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.5); color: white; font-size: 13px; }
.price-filter span { color: #94a3b8; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.loading-text { text-align: center; grid-column: 1 / -1; font-size: 20px; color: #94a3b8; }

.product-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, filter 0.3s; border-radius: 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); }
.product-card.out-of-stock { filter: grayscale(100%); opacity: 0.7; }
.product-card.out-of-stock:hover { filter: grayscale(80%); opacity: 0.9; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.4); border-color: var(--accent-color); }
.product-card img, .product-card video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 1px solid var(--glass-border); background: #fff; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; position: relative; }
.out-of-stock-badge { position: absolute; top: 10px; left: 10px; background: #ef4444; color: white; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; z-index: 10; }
.product-info h3 { font-size: 18px; margin-bottom: 10px; color: var(--white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.4; }
.product-desc-html { color: #94a3b8; font-size: 14px; flex-grow: 1; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; font-weight: 400; }
.product-desc-html p { margin: 0; }
.product-desc-html h1, .product-desc-html h2, .product-desc-html h3 { color: var(--white); margin: 5px 0; font-size: 14px; }
.product-info .price { font-size: 22px; font-weight: 800; color: var(--accent-color); margin-bottom: 15px; margin-top: auto; }

/* About */
.about-content { padding: 50px; text-align: center; font-size: 18px; color: #cbd5e1; border-radius: 16px; }
.about-content p { margin-bottom: 20px; }

/* Features Bar */
.features-bar { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 30px 0; background: rgba(0,0,0,0.2); }
.features-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { display: flex; align-items: center; gap: 15px; }
.feature-item svg { color: var(--accent-color); flex-shrink: 0; }
.feature-item h4 { margin: 0 0 5px 0; font-size: 16px; color: var(--white); }
.feature-item p { margin: 0; font-size: 13px; color: #94a3b8; }

/* Footer */
.glass-footer { background: rgba(5, 11, 20, 0.8); backdrop-filter: blur(20px); padding: 60px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 18px; }
.footer-col p { margin-bottom: 10px; color: #94a3b8; font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #94a3b8; font-size: 14px; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--accent-color); }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { color: var(--white); transition: color 0.3s; }
.footer-socials a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--glass-border); color: #64748b; font-size: 13px; }

/* 7. Yüzen Widget */
.floating-widget { position: fixed; bottom: 30px; right: 30px; padding: 15px 25px; border-radius: 8px; z-index: 1000; cursor: pointer; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transition: transform 0.3s; color: var(--white); }
.floating-widget:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }

/* Upload Zone */
.upload-zone { border: 2px dashed rgba(255,255,255,0.2); border-radius: 12px; padding: 40px 20px; text-align: center; position: relative; cursor: pointer; transition: all 0.3s; background: rgba(0,0,0,0.2); margin-top: 10px; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent-color); background: rgba(245, 158, 11, 0.05); }
.upload-zone-content { pointer-events: none; }
.upload-zone-content svg { color: var(--accent-color); margin-bottom: 15px; transition: transform 0.3s; }
.upload-zone:hover .upload-zone-content svg { transform: translateY(-5px); }
.upload-zone-content p { color: var(--white); font-size: 16px; margin: 0 0 5px 0; }
.upload-zone-content p span { color: var(--accent-color); text-decoration: underline; }
.upload-zone-content small { color: #94a3b8; font-size: 12px; }
.file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; }
.preview-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); aspect-ratio: 1; background: #000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-btn { position: absolute; top: 5px; right: 5px; background: rgba(239, 68, 68, 0.9); color: white; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: transform 0.2s; z-index: 10; }
.preview-item .remove-btn:hover { transform: scale(1.1); background: #ef4444; }
.preview-item.loading::after { content: 'Yükleniyor...'; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; color: var(--accent-color); font-size: 12px; font-weight: bold; z-index: 5; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 992px) {
    .header-inner { flex-direction: column; gap: 15px; padding: 15px 0; }
    .search-container { width: 100%; }
    .top-bar-inner { flex-direction: column; gap: 10px; }
    .cat-nav-inner { flex-direction: column; align-items: stretch; }
    .all-categories button { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .products-layout { grid-template-columns: 1fr; }
    .products-sidebar { position: static; margin-bottom: 30px; }
}

/* --- SEPET SİSTEMİ (CART) --- */
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 100%; max-width: 400px; height: 100vh; background: rgba(15, 23, 42, 0.95); z-index: 2000; transition: right 0.3s ease; display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.5); border-left: 1px solid var(--glass-border); }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { margin: 0; font-size: 20px; color: var(--white); }
.cart-header button { background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; transition: color 0.3s; }
.cart-header button:hover { color: var(--red-alert); }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.cart-item { display: flex; gap: 15px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; border: 1px solid var(--glass-border); position: relative; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; background: #fff; }
.cart-item-info { flex-grow: 1; padding-right: 20px; }
.cart-item-info h4 { margin: 0 0 5px 0; font-size: 14px; color: var(--white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-info .price { color: var(--accent-color); font-weight: bold; font-size: 14px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-controls button { background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); color: white; width: 28px; height: 28px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.cart-item-controls button:hover { background: var(--accent-color); color: var(--primary-color); }
.cart-item-remove { position: absolute; top: 10px; right: 10px; color: #ef4444; background: none; border: none; cursor: pointer; font-size: 16px; transition: transform 0.2s; }
.cart-item-remove:hover { transform: scale(1.2); }
.cart-footer { padding: 20px; border-top: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); }
.cart-total { font-size: 18px; font-weight: bold; margin-bottom: 15px; display: flex; justify-content: space-between; color: var(--white); }
.cart-icon-container { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 50%; transition: all 0.3s; color: var(--white); margin-left: 15px; }
.cart-icon-container:hover { background: rgba(245, 158, 11, 0.1); border-color: var(--accent-color); color: var(--accent-color); }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--red-alert); color: white; font-size: 11px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1999; display: none; backdrop-filter: blur(3px); }
.cart-overlay.open { display: block; }
/* LOGO CONTAINER */
.logo {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 10px 20px;
}

/* LOGO IMAGE */
.logo img {
    height: 60px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.9) contrast(1.1);
}

/* GLOW EFFECT (arka ışık) */
.logo::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

/* LIGHT SWEEP (sinematik ışık geçişi) */
.logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(-25deg);
}

/* HOVER EFFECT */
.logo:hover img {
    transform: scale(1.08) translateY(-2px);
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

/* hover glow aktif */
.logo:hover::before {
    opacity: 1;
}

/* hover light sweep animasyonu */
.logo:hover::after {
    animation: lightSweep 1.2s ease forwards;
}

/* ANIMATION */
@keyframes lightSweep {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* hafif sürekli sinematik nefes efekti */
.logo img {
    animation: cinematicBreath 4s ease-in-out infinite;
}

@keyframes cinematicBreath {
    0%, 100% {
        transform: scale(1);
        filter: brightness(0.95);
    }
    50% {
        transform: scale(1.03);
        filter: brightness(1.1);
    }
}
/* NAV CONTAINER ORTALAMA */
.container.main-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGO */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGO IMAGE - %50 BÜYÜTME */
.logo img {
    height: 90px; /* önce 60px idi → %50 büyüttük */
    transform: scale(3); /* ekstra sinematik büyütme */
    scale: 1.6;
}

/* --- CINEMATIC PRELOADER --- */
#cinematic-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    background-image: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.9), #0f172a);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
    animation: preloader-logo-glow 2s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 15px rgba(245,158,11, 0.3));
}

@keyframes preloader-logo-glow {
    0% { transform: scale(0.98); filter: drop-shadow(0 0 10px rgba(245,158,11, 0.2)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 35px rgba(245,158,11, 0.8)); }
}

.preloader-line {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.preloader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: preloader-line-slide 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px var(--accent-color);
}

@keyframes preloader-line-slide {
    0% { left: -100%; }
    100% { left: 150%; }
}

.preloader-text {
    color: #94a3b8;
    font-size: 13px;
    letter-spacing: 6px;
    font-weight: 500;
    text-transform: uppercase;
    animation: preloader-fade 1.5s infinite alternate;
}

@keyframes preloader-fade {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
}