/* 
    GÖKTULPAR - Premium Design System
    Version: 1.0
*/

:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8F9FA;
    --accent-bordo: #800020;
    --accent-bordo-bright: #A52A2A;
    --text-dark: #1A1A1A;
    --text-muted: #6C757D;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #FFFFFF;
    --transition-premium: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    padding-top: 80px; /* Fixed Navbar Fix */
}

/* Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/black-linen.png');
    opacity: 0.03; /* Açık tema için azaltılmış opacity */
    pointer-events: none;
    z-index: 1;
}

/* Typography Overhaul */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    letter-spacing: -1px;
}

.text-white { color: #FFFFFF !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-secondary-dark { background-color: var(--secondary-bg) !important; }

.text-bordo-gradient {
    background: linear-gradient(45deg, #800020, #A52A2A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar Premium */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(165, 42, 42, 0.1);
    padding: 15px 0;
    transition: var(--transition-premium);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--text-dark) !important;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent-bordo) !important;
}

/* Product Card Premium Overhaul */
.product-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: var(--transition-premium);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(128,0,32,0.1) !important;
    border-color: var(--accent-bordo) !important;
}

.product-card .card-img-top {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-card .product-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(128, 0, 32, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    backdrop-filter: blur(4px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-bordo-sm {
    background: var(--accent-bordo);
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-bordo-sm:hover {
    background: var(--accent-bordo-bright);
    box-shadow: 0 5px 15px rgba(128,0,32,0.3);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 550px;
    color: var(--text-muted);
    border-left: 3px solid var(--accent-bordo);
    padding-left: 20px;
}

/* Premium Gold Button */
.btn-bordo {
    background: var(--accent-bordo);
    color: #ffffff !important;
    border: none;
    padding: 16px 36px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(165, 42, 42, 0.3);
    transition: var(--transition-premium);
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-bordo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(165, 42, 42, 0.5);
    background: var(--accent-bordo-bright);
}

/* Cards & Sections */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-bordo);
}

/* Footer Elite Overhaul */
footer {
    background-color: #0f1112 !important;
    color: #ffffff !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
    position: relative;
    z-index: 10;
}
footer h4, footer h6 {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8;
}
footer a.text-white-50:hover {
    color: var(--accent-bordo-bright) !important;
    padding-left: 5px;
}
footer .hover-bordo:hover {
    color: var(--accent-bordo-bright) !important;
}
footer hr {
    border-color: rgba(165, 42, 42, 0.2) !important;
}

/* Image Glowing Effect */
.hero-image img {
    filter: drop-shadow(0 0 40px rgba(165, 42, 42, 0.15));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- ELITE UI PACK (1-40) --- */

/* 1. Magnetic & Tilt Base */
.tilt-card { transform-style: preserve-3d; transition: transform 0.1s; }

/* 2. Liquid Tab */
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--accent-bordo); transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), left 0.3s;
}
.nav-link:hover::after { width: 100%; left: 0; }

/* 7. Button Ripple */
.btn-ripple { position: relative; overflow: hidden; }
.ripple { position: absolute; background: rgba(255, 255, 255, 0.3); border-radius: 50%; transform: scale(0); animation: ripple-effect 0.6s linear; pointer-events: none; }
@keyframes ripple-effect { to { transform: scale(4); opacity: 0; } }

/* 11. Hover Shine */
.shine-effect { position: relative; overflow: hidden; }
.shine-effect::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg); transition: 0.75s;
}
.card:hover .shine-effect::before { left: 125%; }

/* 24. Mega Menu Basic Styles */
.mega-menu {
    position: absolute; width: 100vw; left: 0; top: 100%; background: var(--glass-bg);
    backdrop-filter: blur(20px); display: none; padding: 40px; border-top: 1px solid rgba(165,42,42,0.1);
}
.nav-item:hover .mega-menu { display: block; animation: fadeInDown 0.3s; }

/* 29. Back to Top */
#backToTop {
    position: fixed; bottom: 100px; right: 30px; background: var(--accent-bordo);
    color: #fff; width: 45px; height: 45px; border-radius: 50%; display: none;
    align-items: center; justify-content: center; cursor: pointer; z-index: 9998;
    transition: 0.3s; box-shadow: 0 10px 20px rgba(128, 0, 32, 0.2);
}
#backToTop:hover { transform: translateY(-5px); }

/* 37. Fixed Bottom Mobile Menu — premium app-like, JS-controlled */
/* Base: gizli — medya query ile gösterilir */

/* Custom Cursor Elite */
.custom-cursor {
    width: 8px; height: 8px; background: var(--accent-bordo);
    border-radius: 50%; position: fixed; pointer-events: none;
    z-index: 10000; mix-blend-mode: difference;
}
.custom-cursor-outline {
    width: 30px; height: 30px; border: 1px solid var(--accent-bordo);
    border-radius: 50%; position: fixed; pointer-events: none;
    z-index: 9999; transition: 0.1s ease-out;
}

/* Elite Grain Overlay (Local Fix) */
body::after {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03; pointer-events: none; z-index: 9998;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(to right, var(--accent-bordo), var(--accent-bordo-bright));
    z-index: 10001; width: 0%;
}

/* Reveal Init (Optimized) */
.reveal {
    will-change: transform, opacity;
}

/* 10. Custom Gold Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: var(--accent-bordo); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #800020; }

/* Advanced Filter Sidebar */
.filter-sidebar {
    border: 1px solid rgba(165,42,42,0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}
.form-check-input:checked {
    background-color: var(--accent-bordo);
    border-color: var(--accent-bordo);
}
.spinner-border.text-bordo {
    color: var(--accent-bordo) !important;
}
.filter-group label {
    cursor: pointer;
    transition: 0.3s;
}
.filter-group label:hover {
    color: var(--accent-bordo);
}

/* WhatsApp & Floating Buttons */
.whatsapp-float { 
    position: fixed; bottom: 30px; right: 30px; background: #25d366; 
    color: #fff; padding: 12px 25px; border-radius: 50px; text-decoration: none; 
    display: flex; align-items: center; gap: 10px; font-weight: bold; 
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); z-index: 9999; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.whatsapp-float:hover { transform: translateY(-5px) scale(1.05); color: #fff; }

.feedback-float { 
    position: fixed; bottom: 30px; left: 30px; background: var(--accent-bordo); 
    color: #fff; width: 50px; height: 50px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; z-index: 9999; box-shadow: 0 10px 30px rgba(128, 0, 32, 0.3); 
    transition: 0.3s; 
}
.feedback-float:hover { background: var(--accent-bordo-bright); transform: rotate(15deg) scale(1.1); }

.messenger-float { 
    position: fixed; bottom: 30px; left: 95px; background: #000; 
    color: #fff; width: 50px; height: 50px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    border: 2px solid var(--accent-bordo); transition: 0.3s;
}
.messenger-float:hover { border-color: #fff; transform: translateY(-3px); }

.feedback-form, .messenger-panel {
    position: fixed; bottom: 95px; width: 300px; 
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border-radius: 20px; display: none; z-index: 10000; 
    overflow: hidden; border: 1px solid rgba(165,42,42,0.2) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.feedback-form { left: 30px; }
.messenger-panel { left: 95px; }

/* ============================================
   GÖKTULPAR — RESPONSIVE MOBILE SYSTEM v2.0
   Breakpoints: xs<576 | sm<768 | md<992 | lg<1200
   ============================================ */

/* --- FLOATING BUTONLAR GENEL DÜZELTMESİ --- */
@media (max-width: 991px) {
    /* WhatsApp: sağ altta, kısa metin */
    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
        border-radius: 50px;
    }
    .whatsapp-float span { display: none; } /* sadece ikon */
    .whatsapp-float {
        width: 50px; height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    /* feedback ve messenger gizle, sadece whatsapp kalsın */
    .feedback-float,
    .messenger-float,
    .feedback-form,
    .messenger-panel { display: none !important; }

    /* Back to top butonu yukarı taşı */
    #backToTop { bottom: 140px; right: 15px; }
}

/* ====== MOBİL ALT NAVİGASYON — PREMIUM APP STYLE ====== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    height: 68px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: none; /* JS ile gösterilecek, medya query override eder */
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.07);
    z-index: 10001;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform 0.3s ease;
}
.mobile-bottom-nav.hide-nav {
    transform: translateY(100%);
}
.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #999;
    min-width: 52px;
    padding: 6px 8px;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.mbn-item:hover, .mbn-item.active { color: var(--accent-bordo); }
.mbn-item.active { background: rgba(128,0,32,0.08); }
.mbn-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
.mbn-item.active .mbn-icon {
    background: rgba(128,0,32,0.1);
    transform: translateY(-4px) scale(1.12);
    color: var(--accent-bordo);
}
.mbn-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    transition: 0.2s;
}
.mbn-item.active .mbn-label { color: var(--accent-bordo); font-weight: 800; }
/* Sepet orta buton — öne çıkan */
.mbn-item.mbn-center .mbn-icon {
    width: 50px; height: 50px;
    background: var(--accent-bordo);
    color: #fff;
    border-radius: 18px;
    font-size: 1.3rem;
    transform: translateY(-12px);
    box-shadow: 0 8px 20px rgba(128,0,32,0.35);
}
.mbn-item.mbn-center { color: var(--accent-bordo); }
.mbn-item.mbn-center .mbn-label { margin-top: -4px; }
.mbn-item.mbn-center:hover .mbn-icon,
.mbn-item.mbn-center.active .mbn-icon {
    transform: translateY(-14px) scale(1.08);
    box-shadow: 0 12px 25px rgba(128,0,32,0.45);
    background: var(--accent-bordo-bright);
}
/* Badge */
.mbn-badge {
    position: absolute;
    top: -2px; right: -4px;
    background: #e53935;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 900;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.mbn-badge.show { opacity: 1; transform: scale(1); }

@media (max-width: 991px) {
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* --- NAVBAR MOBİL --- */
@media (max-width: 991px) {
    .navbar { padding: 10px 0; }
    .navbar-brand span { font-size: 1.4rem !important; letter-spacing: 1px !important; }
    .navbar-toggler { padding: 6px 10px; }
    .navbar-collapse {
        background: #fff;
        border-top: 1px solid rgba(128,0,32,0.1);
        margin-top: 10px;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        padding: 10px 0 15px;
    }
    .navbar .nav-link { padding: 12px 20px !important; font-size: 0.9rem; }
    .navbar .nav-link::after { display: none; } /* alt çizgi efektini mobilde kapat */
    /* Sağ araçlar */
    .navbar .d-flex.align-items-center.gap-4 {
        flex-direction: row;
        justify-content: center;
        padding: 10px 20px 5px;
        flex-wrap: wrap;
        gap: 12px !important;
        border-top: 1px solid #f0f0f0;
        margin-top: 5px;
    }
    /* Lang switcher ve İletişim butonu mobilde daha küçük */
    .navbar .btn-bordo.d-none.d-lg-block { display: flex !important; font-size: 0.8rem; padding: 8px 18px; }
}

/* --- HERO SLIDER MOBİL --- */
@media (max-width: 767px) {
    .hero-slider .carousel-item {
        height: clamp(340px, 75vw, 500px) !important;
    }
    .carousel-caption {
        bottom: 8% !important;
        padding: 0 10px;
    }
    .carousel-caption h6 { font-size: 0.65rem !important; letter-spacing: 1px !important; }
    .carousel-caption h1 {
        font-size: clamp(1.4rem, 6vw, 2.2rem) !important;
        line-height: 1.2;
        margin-bottom: 12px !important;
    }
    .carousel-caption p { font-size: 0.85rem !important; margin-bottom: 20px !important; }
    .carousel-caption .d-flex { gap: 10px !important; flex-wrap: wrap; }
    .carousel-caption .btn { padding: 10px 22px !important; font-size: 0.75rem !important; }
}
@media (max-width: 575px) {
    .hero-slider .carousel-item { height: clamp(300px, 85vw, 420px) !important; }
    .carousel-caption { bottom: 5% !important; }
    .carousel-caption p { display: none; } /* çok küçük ekranda paragrafı gizle */
    .carousel-caption .btn { width: 100%; text-align: center; margin-bottom: 6px; }
}

/* --- STATS SAYAÇLARI MOBİL --- */
@media (max-width: 767px) {
    #counter-section { gap: 0 !important; }
    #counter-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 16px 8px;
        border-bottom: 1px solid #f0f0f0;
    }
    #counter-section .col-md-3:nth-child(odd) { border-right: 1px solid #f0f0f0; }
    #counter-section .counter { font-size: 2.2rem !important; }
    #counter-section small { font-size: 0.65rem !important; }
}
@media (max-width: 575px) {
    #counter-section .counter { font-size: 1.8rem !important; }
}

/* --- PROMO BANNERS MOBİL --- */
@media (max-width: 767px) {
    .promo-banner { height: clamp(240px, 55vw, 320px) !important; }
}
@media (max-width: 575px) {
    .promo-banner { height: 260px !important; }
}

/* --- ÜRÜN KARTLARI MOBİL --- */
@media (max-width: 767px) {
    .product-card .card-img-top,
    .product-card img[style*="height: 180px"] {
        height: clamp(130px, 35vw, 175px) !important;
    }
    .product-card:hover { transform: translateY(-4px) scale(1.01); }
}
@media (max-width: 575px) {
    /* 2 sütun ürün grid */
    .row.g-3 > .col-xl-3.col-lg-4.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .product-card .card-body { padding: 10px !important; }
    .product-card .card-body h6 { font-size: 0.8rem !important; }
    .product-card .card-body .text-bordo { font-size: 0.9rem !important; }
}

/* --- FOOTER MOBİL --- */
@media (max-width: 991px) {
    .footer-elite-n { padding: 40px 0 20px; }
    .footer-elite-n .row.g-5 { gap: 0 !important; }
    .footer-elite-n .col-lg-4 { margin-bottom: 30px; }
    .currency-mini-wrap {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
        text-align: center;
        padding: 8px 15px !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 10px;
        text-align: center;
    }
}

/* --- SEPETİ MOBİL KART DÜZENİ --- */
@media (max-width: 767px) {
    .cart-table-row {
        display: flex;
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* --- URUN DETAY MOBİL --- */
@media (max-width: 767px) {
    .urun-detay-img { min-height: 250px !important; }
    .tier-box { padding: 8px 4px !important; font-size: 0.8rem; }
    .tier-box .small { font-size: 0.65rem !important; }
}

/* --- GENEL BÖLÜM PADDING MOBİL --- */
@media (max-width: 767px) {
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .container-fluid.px-lg-5 { padding-left: 12px !important; padding-right: 12px !important; }
    h2.display-6 { font-size: 1.5rem !important; }
    .display-6 { font-size: 1.4rem !important; }
}

/* --- CUSTOM CURSOR MOBİLDE KAPALI --- */
@media (hover: none) {
    .custom-cursor, .custom-cursor-outline { display: none !important; }
}
