/*
 * DigiSocial v1.0.0
 * Ana Frontend Stilleri (style.css)
 * "Fusion" Tasarım (Sosyalevin + Baytakipci Referansı)
 * GÜNCELLEME: Full Responsive (Faz 1) Eklendi.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Ana renkler (PHP tarafından dinamik olarak ezilir) */
    --primary-color: #e91e63; 
    --primary-color-hover: #c2185b;
    --secondary-color: #03a9f4; 
    
    /* Koyu Tema Renk Paleti (Sosyal Evin Stili) */
    --bg-color-dark: #0D0F18;       
    --bg-color-light: #1A1C2A;      
    --bg-color-extra-light: #2A2C3D; 
    --border-color: #3A3D51;      
    --text-color-light: #FFFFFF;    
    --text-color-muted: #A0A3B1;   
    
    --success-color: #00bfa5;
    --error-color: #ff5252;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color-dark);
    color: var(--text-color-muted); 
    line-height: 1.7;
    font-size: 16px;
}

/* body.mobile-menu-open {
    overflow: hidden; 
} */

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-color-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------------- */
/* Header (Üst Menü) */
/* ---------------- */
.site-header {
    background-color: var(--bg-color-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Üst Bar */
.header-top-bar {
    background-color: var(--bg-color-dark);
    padding: 8px 0;
    font-size: 0.85rem;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left a, .top-bar-right a {
    color: var(--text-color-muted);
    text-decoration: none;
    margin-right: 20px;
}
.top-bar-left a:hover, .top-bar-right a:hover {
    color: var(--primary-color);
}
.top-bar-right .btn-special {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

/* Ana Header */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.site-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color-light);
    text-decoration: none;
}
.site-logo a span {
    color: var(--primary-color);
}

/* Ana Navigasyon */
.main-nav {
    /* Mobilde gizlenecek */
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}
.main-nav ul li {
    position: relative; 
}
.main-nav ul li a {
    color: var(--text-color-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 29px 15px; 
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.main-nav ul li a:hover,
.main-nav ul li.active a {
    color: var(--text-color-light);
    border-bottom-color: var(--primary-color);
}

/* Header Eylemleri (Sepet, Giriş, Mobil Buton) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-cart {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-color-muted);
    padding: 10px;
}
.btn-cart:hover {
    color: var(--primary-color);
}
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

/* Header Kullanıcı Menüsü (Giriş Yapan) */
.header-user-menu {
    position: relative;
}
.header-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.header-user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}
.header-user-dropdown {
    display: none; 
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
}
.header-user-dropdown.show {
    display: block;
}
.user-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.user-dropdown-header strong {
    color: var(--text-color-light);
}
.user-dropdown-header small {
    display: block;
    color: var(--text-color-muted);
    font-size: 0.85rem;
}
.user-dropdown-links {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
.user-dropdown-links li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color-muted);
    text-decoration: none;
    font-size: 0.95rem;
}
.user-dropdown-links li a:hover {
    background-color: var(--bg-color-extra-light);
    color: var(--text-color-light);
}
.user-dropdown-links li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.user-dropdown-links .logout a {
    color: var(--error-color);
}

/* ---------------- */
/* Ana İçerik Alanı */
/* ---------------- */
.main-content {
    padding: 50px 0; 
}

/* Kart Yapısı (Genel) */
.card, .customer-card, .checkout-card, .order-summary-box {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}
.card-header, .customer-card-header, .checkout-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-light);
}
.card-body, .customer-card-body, .checkout-card-body {
    padding: 25px;
}

/* Düğmeler (Genel) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px; 
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    color: #fff;
}
.btn-secondary {
    background-color: var(--bg-color-extra-light);
    color: var(--text-color-light);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
    color: var(--text-color-light);
}

/* ---------------- */
/* Footer (Alt Kısım) */
/* ---------------- */
.site-footer {
    background-color: var(--bg-color-light);
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-widget h4 {
    color: var(--text-color-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}
.footer-widget h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 8px;
}
.footer-widget p {
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget ul li a {
    color: var(--text-color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* =============================================
   Ana Sayfa Modülleri
============================================= */
.hero-section {
    background: linear-gradient(100deg, var(--bg-color-light) 40%, rgba(22, 24, 39, 0.7)), url('https://via.placeholder.com/1500x700/0D0F18/FFFFFF?text=Hero+Gorseli'); 
    background-size: cover;
    background-position: center right;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 50%;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color-light);
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero-content h1 span {
    color: var(--primary-color);
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}
.hero-actions .btn {
    margin-right: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 10px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    max-width: 600px;
    margin: 0 auto;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}
.category-card {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.category-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.category-card h3 {
    font-size: 1.3rem;
    color: var(--text-color-light);
    font-weight: 600;
    margin-bottom: 10px;
}
.category-card p {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    line-height: 1.5;
}

.features-section {
    padding-top: 80px;
    display: flex;
    align-items: center;
    gap: 50px;
}
.features-content, .features-image {
    flex: 1;
}
.features-image img {
    max-width: 100%;
    border-radius: 12px;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}
.features-list .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(233, 30, 99, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    flex-shrink: 0;
}
.features-list h4 {
    font-size: 1.2rem;
    color: var(--text-color-light);
    font-weight: 600;
    margin: 0 0 8px 0;
}
.features-list p {
    margin: 0;
    line-height: 1.6;
}

.testimonials-section {
    padding-top: 80px;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}
.testimonial-card {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}
.testimonial-card p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.testimonial-author strong {
    color: var(--text-color-light);
    font-weight: 600;
}
.testimonial-author span {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.faq-section {
    padding-top: 80px;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
}
.faq-question {
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 25px 25px 25px; 
    border-top: 1px solid var(--border-color);
    display: none; 
    line-height: 1.7;
}

.quick-order-form {
    background-color: var(--bg-color-light);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}
.quick-order-form h3 {
    text-align: center;
    color: var(--text-color-light);
    margin-top: 0;
}
.quick-order-form .form-group {
    margin-bottom: 15px;
}
.quick-order-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-color-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color-light);
    font-size: 1rem;
}
.quick-order-form .form-group select.form-control {
    height: 48px; 
}
.quick-order-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* =============================================
   10. HİZMET LİSTELEME SAYFASI (services.php)
============================================= */
.services-page-grid {
    display: grid;
    grid-template-columns: 1fr 3fr; 
    gap: 30px;
    margin-top: 40px;
}

.service-category-header {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: sticky; 
    top: 120px; 
}
.service-category-header .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}
.service-category-header h2 {
    font-size: 2.2rem;
    color: var(--text-color-light);
    margin: 0 0 15px 0;
}
.service-category-header p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-muted);
    margin-bottom: 25px;
}
.service-category-stats {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.95rem;
}
.service-category-stats span {
    display: block;
    margin-bottom: 10px;
}
.service-category-stats span i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.service-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.service-filter-tabs .tab-button {
    background-color: var(--bg-color-extra-light);
    border: 1px solid var(--border-color);
    color: var(--text-color-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.service-filter-tabs .tab-button:hover {
    background-color: var(--border-color);
    color: var(--text-color-light);
}
.service-filter-tabs .tab-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.service-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}

.service-list-item {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start; 
    gap: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.service-list-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.service-list-item .item-icon {
    font-size: 1.8rem; 
    color: var(--primary-color); 
    background-color: var(--bg-color-extra-light);
    border-radius: 10px;
    width: 50px; 
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-list-item .item-details {
    flex-grow: 1;
}
.service-list-item .item-details h3 {
    font-size: 1.1rem; 
    color: var(--text-color-light);
    margin: 0 0 8px 0;
    font-weight: 600;
}
.service-list-item .item-details .item-meta {
    font-size: 0.85rem; 
    color: var(--text-color-muted);
    display: flex;
    gap: 15px; 
}
.service-list-item .item-details .item-meta strong {
    color: var(--text-color-light);
}
.service-list-item .item-arrow {
    font-size: 1.5rem;
    color: var(--text-color-muted);
    flex-shrink: 0;
    margin-left: auto; 
    transition: all 0.3s ease;
    margin-top: 10px; 
}
.service-list-item:hover .item-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* =============================================
   11. HİZMET FİLTRESİ (Mobilde Yatay Kaydırma)
============================================= */

@media (max-width: 768px) {
    .service-filter-tabs {
        flex-wrap: nowrap; 
        overflow-x: auto; 
        
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .service-filter-tabs::-webkit-scrollbar {
        display: none; 
    }
    
    .service-filter-tabs .tab-button {
        flex-shrink: 0; 
    }
}

/* =============================================
   12. MEGA MENÜ (Hizmetler Linki)
============================================= */

.main-nav ul li.has-megamenu {
    position: static; 
}

.mega-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: var(--bg-color-light);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 30px 0;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.main-nav ul li.has-megamenu:hover .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 25px;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 15px;
}

.mega-menu-column {
}

.mega-menu-column .column-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mega-menu-column .column-header i {
    color: var(--primary-color);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; 
    flex-direction: column; 
    gap: 0; 
}

.mega-menu-column ul li {
    margin-bottom: 12px;
}

.mega-menu-column ul li a {
    padding: 5px 0; 
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color-muted);
    border: none !important; 
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px; 
}


/* =============================================
   13. YENİ: FRONTEND MOBIL RESPONSIVE
============================================= */

/* Mobil Menü Butonu (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Masaüstünde gizli */
    background: none;
    border: none;
    color: var(--text-color-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobil Menü Perdesi */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Kayan Mobil Menü */
.mobile-nav-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: var(--bg-color-light);
    z-index: 2000;
    padding: 25px;
    transform: translateX(100%); /* Başlangıçta ekranın sağında gizli */
    transition: transform 0.3s ease;
}
.mobile-nav-menu.active {
    transform: translateX(0);
}
.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column; /* Linkleri alt alta diz */
    gap: 0;
}
.mobile-nav-menu ul li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-menu ul li a {
    padding: 15px 0; /* Menü içi boşluk */
    font-size: 1.1rem;
    color: var(--text-color-light);
    font-weight: 500;
    display: block;
    border: none !important; /* Masaüstü border'ını ez */
}
.mobile-nav-menu ul li a:hover,
.mobile-nav-menu ul li.active a {
    color: var(--primary-color);
}
.mobile-nav-actions {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.mobile-nav-actions .btn {
    width: 100%;
    text-align: center;
}

/* Arka plandaki kaymayı durdur */
body.mobile-menu-open {
    overflow: hidden;
}


/* Ana Kırılma Noktası (Tablet ve altı) */
@media (max-width: 992px) {
    
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 30px 0;
    }

    /* --- Mobil Header --- */
    .header-inner {
        height: 70px;
    }
    .main-nav {
        display: none; /* Masaüstü menüyü gizle */
    }
    .header-actions .header-auth-buttons,
    .header-actions .header-user-menu {
        display: none; /* Masaüstü Giriş/Hesabım butonlarını gizle */
    }
    .header-top-bar {
        display: none; /* Üst info barı gizle */
    }
    .mobile-menu-toggle {
        display: block; /* Hamburger butonu göster */
    }
    
    /* --- Mobil Footer --- */
    .footer-grid {
        grid-template-columns: 1fr; /* Sütunları alt alta yığ */
        gap: 40px; 
    }
    .site-footer {
        padding-top: 40px;
        text-align: center; 
    }
    .footer-widget h4::after {
        margin: 8px auto 0 auto; 
    }
    
    /* --- Mobil Ana Sayfa --- */
    .hero-section {
        padding: 60px 0;
        min-height: auto;
        text-align: center;
        background-position: center center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 2.2rem; 
    }
    .hero-actions .btn {
        margin-right: 5px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-section {
        flex-direction: column-reverse; /* Resmi üste al */
        padding-top: 60px;
        gap: 30px;
    }

    /* --- Mobil Hizmet Sayfası --- */
    .services-page-grid {
        grid-template-columns: 1fr; 
    }
    .service-category-header {
        position: static; 
        text-align: center;
    }
    .service-list-container {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2'li kalsın */
    }
    
    /* --- Mobil Mega Menü --- */
    .mega-menu {
        display: none !important; /* Mobilde mega menüyü zorla kapat */
    }
}

/* Sadece Küçük Mobiller */
@media (max-width: 576px) {
    /* Hizmet listesini tek sütuna düşür */
    .service-list-container {
        grid-template-columns: 1fr; 
    }
    .service-list-item .item-details h3 {
        font-size: 1rem;
    }
    
    /* Ana sayfa kategori ızgarasını tek sütuna düşür */
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero butonlarını alt alta diz */
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .hero-actions .btn {
        width: 80%;
        margin-right: 0;
    }
}

/* ============================================================
   YENİ EKLENENLER: DİNAMİK HEADER, TOPBAR VE KAMPANYA MODÜLÜ
   (Mevcut kodların en altına ekleyiniz)
   ============================================================ */

/* --- 1. YARDIMCI SINIFLAR (Responsive Gizleme/Gösterme) --- */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.w-100 { width: 100%; }

/* Masaüstü/Mobil Görünüm Kontrolü */
.desktop-only { display: none !important; }
@media (min-width: 993px) {
    .desktop-only { display: flex !important; } /* Flex yapısını koruması için */
}
.mobile-only { display: flex !important; }
@media (min-width: 993px) {
    .mobile-only { display: none !important; }
}

/* --- 2. KAMPANYA / DUYURU BARI (Slider) --- */
.campaign-bar {
    position: relative;
    padding: 12px 0; /* Biraz daha geniş */
    text-align: center;
    z-index: 1002; /* Header'ın üstünde kalsın */
}
.campaign-bar .container {
    position: relative;
    height: 24px; /* Metin yüksekliği */
    overflow: hidden; 
}
.campaign-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.campaign-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(10px); /* Alttan gelme efekti */
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none; /* Görünmezken tıklamayı engelle */
}
.campaign-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.campaign-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 0.9rem;
    flex-wrap: nowrap;
}
/* Mobilde slider içeriğini sıkıştır */
@media (max-width: 768px) {
    .campaign-bar { padding: 15px 0; }
    .campaign-bar .container { height: auto; min-height: 40px; }
    .campaign-slide { position: relative; display: none; transform: none; }
    .campaign-slide.active { display: flex; }
    .campaign-content { flex-direction: column; gap: 5px; text-align: center; line-height: 1.4; }
}

.camp-icon { font-size: 1.2rem; margin-right: 5px; }
.camp-text { font-weight: 500; }
.camp-timer {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
}
.camp-coupon {
    border: 1px dashed rgba(255,255,255,0.6);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}
.camp-coupon:hover { background: rgba(255,255,255,0.1); }
.camp-btn {
    background: #fff;
    color: #333 !important;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.camp-btn i { font-size: 0.7rem; }
.campaign-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
}
.campaign-close:hover { color: #fff; }

/* --- 3. TOPBAR DÜZENİ --- */
.site-topbar .container {
    display: flex !important; /* Flex'i zorla */
    height: 40px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    height: 100%;
}
.topbar-link {
    font-size: 0.85rem;
    opacity: 0.8;
}
.topbar-social-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.1);
    margin: 0 10px;
}
.topbar-social {
    margin-left: 10px;
    opacity: 0.7;
    font-size: 1rem;
}
.topbar-social:hover { opacity: 1; }

/* --- 4. HIBRIT HEADER YAPISI --- */
/* Logo Yönetimi */
.logo-desktop-dark { display: block; max-height: 45px; }
.logo-mobile-dark { display: none; max-height: 35px; }

/* Orta Alan: Arama Kutusu */
.header-center {
    flex-grow: 1;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}
.header-search-wrapper {
    width: 100%;
    max-width: 550px;
    position: relative;
}
.header-search-wrapper form {
    display: flex;
    align-items: center;
    background: var(--bg-color-extra-light); /* Input arkaplanı */
    border: 1px solid var(--border-color);
    border-radius: 10px; /* Yuvarlak köşeler */
    padding: 5px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.header-search-wrapper form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}
.header-search-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color-light);
    height: 34px;
    font-size: 0.95rem;
    outline: none;
}
.header-search-wrapper button {
    background: transparent;
    border: none;
    color: var(--text-color-muted);
    font-size: 1.1rem;
    cursor: pointer;
}
.header-search-wrapper button:hover { color: var(--primary-color); }

/* Orta Alan: Inline Menü (Alternatif) */
.header-menu-inline ul {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0; margin: 0;
}
.header-menu-inline a {
    font-weight: 600;
    color: var(--text-color-muted);
    font-size: 1rem;
}
.header-menu-inline a:hover { color: var(--primary-color); }


/* Sağ Alan: İkonlar ve Kullanıcı */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--bg-color-extra-light); /* İkon arkaplanı */
    color: var(--text-color-muted);
    transition: all 0.3s;
}
.header-icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.cart-badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    border: 2px solid var(--bg-color-light);
}
.header-icon-btn:hover .cart-badge {
    background: #fff;
    color: var(--primary-color);
}

/* Auth Butonları */
.auth-buttons { display: flex; gap: 10px; }
.btn-header-login, .btn-header-register {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s;
    display: inline-block;
    text-decoration: none;
}
.btn-header-login:hover, .btn-header-register:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Kullanıcı Dropdown */
.user-dropdown-wrapper { position: relative; margin-left: 10px; }
.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 30px;
    transition: background 0.3s;
}
.user-trigger:hover { background: rgba(255,255,255,0.05); }
.user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: #fff; font-size: 1.1rem;
    border: 2px solid var(--bg-color-light);
    box-shadow: 0 0 0 2px var(--border-color);
}
.user-info {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.user-info .name { font-size: 0.9rem; font-weight: 600; color: var(--text-color-light); }
.user-info .balance { font-size: 0.8rem; color: var(--success-color); font-weight: 500; }

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 130%; right: 0;
    width: 220px;
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 1001;
    overflow: hidden;
    animation: fadeInDropdown 0.2s ease;
}
@keyframes fadeInDropdown { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.user-dropdown-menu.show { display: block; }

.user-dropdown-menu .dd-header {
    padding: 15px;
    background: var(--bg-color-extra-light);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.user-dropdown-menu ul { list-style: none; padding: 5px 0; margin: 0; }
.user-dropdown-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    color: var(--text-color-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.user-dropdown-menu li a:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text-color-light);
    padding-left: 25px; /* Hafif kayma efekti */
}
.user-dropdown-menu li .divider {
    height: 1px; background: var(--border-color); margin: 5px 0;
}
.user-dropdown-menu li .logout { color: var(--error-color); }
.user-dropdown-menu li .logout:hover { background: rgba(255, 82, 82, 0.1); }

/* --- 5. HEADER BOTTOM (Alt Menü Şeridi) --- */
.header-bottom {
    background: var(--bg-color-extra-light);
    border-bottom: 1px solid var(--border-color);
}
.header-bottom .container { display: flex; align-items: center; height: 50px; }
.bottom-nav { width: 100%; display: flex; justify-content: space-between; }

/* Mega Menu Tetikleyici */
.services-dropdown-wrapper { position: relative; height: 50px; display: flex; align-items: center; }
.services-trigger {
    background: var(--primary-color);
    color: #fff !important;
    height: 50px;
    padding: 0 25px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); /* Hafif eğik kesim */
    margin-left: -15px; /* Container'dan taşsın */
}
.services-trigger i { font-size: 1.1rem; }

/* Alt Linkler */
.bottom-links {
    display: flex; list-style: none; gap: 5px; padding: 0; margin: 0 0 0 20px;
}
.bottom-links li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-muted);
}
.bottom-links li a:hover, .bottom-links li.active a {
    background: rgba(255,255,255,0.05);
    color: var(--text-color-light);
}
.bottom-right .special-link {
    color: var(--primary-color);
    font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }


/* --- 6. MOBİL MENÜ (Overlay Sidebar) --- */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    z-index: 1998;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-side-menu {
    position: fixed; top: 0; right: 0;
    width: 85%; max-width: 320px; height: 100vh;
    background: var(--bg-color-light);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--border-color);
}
.mobile-side-menu.active { transform: translateX(0); }

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu-header .title { font-size: 1.2rem; font-weight: 700; color: var(--text-color-light); }
.mobile-menu-header .close-btn {
    background: none; border: none; color: var(--text-color-muted); font-size: 1.5rem; cursor: pointer;
}

.mobile-menu-content {
    flex: 1; overflow-y: auto; padding: 20px;
}
.mobile-auth-box { margin-bottom: 25px; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.03); }
.mobile-nav-list li a {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 0;
    font-size: 1rem; color: var(--text-color-light);
    font-weight: 500;
}
.mobile-nav-list li a i {
    color: var(--primary-color);
    width: 25px; text-align: center;
    background: rgba(233, 30, 99, 0.1);
    height: 25px; line-height: 25px; border-radius: 6px;
    font-size: 0.9rem;
}

/* --- 7. RESPONSIVE DÜZELTMELER --- */
@media (max-width: 992px) {
    .site-header { position: sticky; }
    .header-inner { height: 65px; }
    
    /* Header Elemanları */
    .header-center, .header-bottom { display: none !important; }
    .auth-buttons, .user-info, .header-icon-btn.desktop-only { display: none !important; }
    
    .logo-desktop-dark { display: none !important; }
    .logo-mobile-dark { display: block !important; }
    
    /* Mobilde Topbar */
    .site-topbar .container {
        height: auto; flex-direction: column; gap: 5px; padding: 8px 15px;
        text-align: center;
    }
    .topbar-left, .topbar-right { justify-content: center; flex-wrap: wrap; gap: 10px; }
    .topbar-link { margin: 0; }
    
    /* Mobil Menü Butonu */
    .mobile-menu-toggle {
        background: none; border: none;
        font-size: 1.6rem; color: var(--text-color-light);
        cursor: pointer; padding: 5px;
    }
}

/* --- DİNAMİK TOPBAR LİNKLERİ (CSS VARIABLES) --- */
.topbar-link {
    text-decoration: none;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    position: relative;
}

/* Tek Renk Modu */
.topbar-link.tb-solid {
    color: var(--tb-color);
}
.topbar-link.tb-solid:hover {
    color: var(--tb-hover);
}
.topbar-link.tb-solid i {
    color: var(--tb-color); /* İkon da aynı renk olsun */
    transition: color 0.3s;
}
.topbar-link.tb-solid:hover i {
    color: var(--tb-hover);
}

/* Gradyan Modu */
.topbar-link.tb-gradient .tb-text {
    background: var(--tb-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s;
}
/* İkon gradyan olamaz, o yüzden ilk renkten alır */
.topbar-link.tb-gradient i {
    color: #fff; /* Veya bir standart renk */
    opacity: 0.8;
}
.topbar-link.tb-gradient:hover .tb-text {
    /* Gradyan hoverda değişemez, opaklık oynayalım */
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}
/* İstersen hoverda gradyanı kaldırıp hover rengine de döndürebiliriz: */
/* .topbar-link.tb-gradient:hover .tb-text { 
    -webkit-text-fill-color: var(--tb-hover); 
    background: none; 
} */