/* ==========================================================================
   Nare Uyku Dünyası - Lüks & Profesyonel Tasarım Stilleri (2025 Koleksiyonu)
   ========================================================================== */

:root {
    --primary-slate: #0f172a;
    --secondary-slate: #1e293b;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --gold-primary: #b8860b;
    --gold-light: #d4af37;
    --gold-soft: #fef3c7;
    --gold-accent: #d97706;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    --bg-page: #fbfbfa;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --whatsapp-green: #25d366;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Mobilde yatay kaymayı önleyen güvenlik ağı (clip: position:sticky bozulmaz) */
html, body {
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-page);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Tipografi */
h1, h2, h3, h4, .heading-serif {
    font-family: var(--font-heading);
    color: var(--primary-slate);
    letter-spacing: -0.02em;
}

.font-11 { font-size: 11px; }
.font-12 { font-size: 12px; }
.font-13 { font-size: 13px; }
.font-14 { font-size: 14px; }
.font-15 { font-size: 15px; }
.font-16 { font-size: 16px; }
.width-20 { width: 20px; text-align: center; }
.letter-spacing-1 { letter-spacing: 1.2px; }
.cursor-pointer { cursor: pointer; }

/* Renk Sınıfları */
.text-gold { color: var(--gold-primary) !important; }
.bg-gold-soft { background-color: var(--gold-soft) !important; }
.bg-slate-900 { background-color: #0b1120 !important; }

/* Butonlar */
.btn-gold {
    background: var(--gold-gradient);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    transition: all 0.25s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #b8860b 0%, #926507 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

.btn-success-nare {
    background-color: #25d366;
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    transition: all 0.25s ease;
}
.btn-success-nare:hover {
    background-color: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

/* Top Bar */
.top-bar {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-whatsapp-link {
    background: rgba(37, 211, 102, 0.15);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

/* Header & Nav */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
}
.site-logo {
    max-height: 52px;
    width: auto;
}

/* Tüm Kategoriler Butonu Düzeltmesi (Metin net ve beyaz!) */
.btn-all-categories {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-all-categories:hover, 
.btn-all-categories:focus {
    background: #1e293b !important;
    color: #fef08a !important;
}
.btn-all-categories * {
    color: inherit;
}

/* Menü Linkleri */
.main-nav-links .nav-link {
    font-weight: 600;
    font-size: 14.5px;
    color: #334155 !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}
.main-nav-links .nav-link:hover {
    color: var(--gold-primary) !important;
    background-color: #f8fafc;
}
.main-nav-links .nav-link.active {
    color: var(--gold-primary) !important;
    font-weight: 700;
}

/* Arama Kutusu */
.search-form input {
    background: #f8fafc;
    border-color: #e2e8f0;
    font-size: 14px;
    transition: all 0.2s ease;
}
.search-form input:focus {
    background: #ffffff;
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Hero Slider (Bootstrap Uyumlu ve Lüks) */
.hero-slider-item {
    height: 540px;
    position: relative;
    background-color: #0f172a;
    overflow: hidden;
}
.hero-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.92);
}
.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 45%, rgba(15, 23, 42, 0.1) 100%);
    display: flex;
    align-items: center;
    z-index: 2;
}
.hero-slider-content {
    max-width: 620px;
    padding-left: 20px;
}

/* Kategori Kartları */
.category-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: var(--gold-light);
}
.category-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-soft);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.category-card:hover .category-card-icon {
    background: var(--gold-gradient);
    color: #ffffff;
    transform: scale(1.08);
}

/* Ürün Kartları (Product Card) */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
    border-color: rgba(184, 134, 11, 0.4);
}
.product-image-box {
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
    padding-top: 72%; /* 4:3 en boy oranı */
}
.product-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-image-box img {
    transform: scale(1.06);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
    z-index: 2;
}
.product-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-category-name {
    font-size: 11.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}
.product-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-slate);
    line-height: 1.35;
}
.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-card-title a:hover {
    color: var(--gold-primary);
}
.product-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price-box {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}
.price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-slate);
}
.price-old {
    font-size: 13.5px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 6px;
}

/* Hızlı WhatsApp Butonu */
.btn-card-whatsapp {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-card-whatsapp:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/* Blog Kartları */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
.blog-image-box {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
}
.blog-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-image-box img {
    transform: scale(1.05);
}

/* Footer & Sosyal */
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}
.social-icon-btn {
    width: 38px;
    height: 38px;
    background: #1e293b;
    border: 1px solid #334155;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}
.feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* Floating WhatsApp Butonu */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulseWhatsapp 2.2s infinite;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1eb956;
}
.floating-whatsapp-tooltip {
    position: absolute;
    right: 74px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}
.floating-whatsapp:hover .floating-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

@keyframes pulseWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Başa Dön Butonu */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
}
.scroll-top-btn:hover {
    background: var(--gold-primary);
    transform: translateY(-3px);
}

/* Ölçü Seçici */
.size-selector-btn {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.size-selector-btn:hover, .size-selector-btn.active {
    border-color: var(--gold-primary);
    background-color: var(--gold-soft);
    color: var(--gold-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider-item {
        height: 420px;
    }
    .hero-slider-content {
        padding-left: 0;
    }
}

/* Küçük telefonlar (≤ 400 px): üst barda logo + WhatsApp + menü düğmesi tek satıra sığsın */
@media (max-width: 400px) {
    .site-logo {
        height: 40px;
        width: auto;
        max-width: 165px;
    }
}
