@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

/* Kaan Bebe — Design tokens */
:root {
    --primary-color: #1e3a5f;
    --primary-hover: #152d4a;
    --primary-light: #2d5a8a;
    --secondary-color: #5c6b7a;
    --accent-color: #d4a574;
    --accent-hover: #c4925f;
    --success-color: #0d9488;
    --warning-color: #d97706;
    --error-color: #dc2626;

    --dark-blue: #0f1c2e;
    --dark-gray: #334155;
    --light-gray-bg: #f7f5f2;
    --cream: #faf8f5;
    --white: #ffffff;
    --text-color: #1a2332;
    --text-muted: #5c6b7a;
    --border-color: #e5e0d8;
    --border-light: #efeae3;

    --hover-blue: #2d5a8a;
    --light-blue-hover: #e8eef5;
    --filter-bg: #f0f4f8;

    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    scroll-behavior: smooth;
}

body,
body.site-body {
    font-family: var(--font-sans);
    margin: 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--light-gray-bg) 120px);
    background-color: var(--light-gray-bg);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.overlay-open {
    overflow: hidden;
}

.page-wrapper {
    display: flex;
    flex-grow: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
    gap: 28px;
}

.main-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    color: var(--text-color);
    padding: 14px clamp(16px, 3vw, 32px);
    box-shadow: 0 1px 0 var(--border-light), var(--shadow-sm);
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 15px;
}

.navbar-left, .navbar-right {
    flex: 1;
    display: flex;
}
.navbar-left { justify-content: flex-start; }
.navbar-right {
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
.navbar-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-link {
    display: inline-block;
    padding: 0;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 90px;
    transition: max-height 0.3s ease;
}

.categories-menu-toggle {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.categories-menu-toggle:hover {
    background-color: var(--light-gray-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.categories-menu-toggle i {
    font-size: 1.3em;
}

.navbar-whatsapp-btn {
    display: inline-grid;
    grid-template-columns: 1.2em auto 1.2em;
    align-items: center;
    justify-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #1DAE56 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.navbar-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.navbar-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.navbar-whatsapp-btn:hover::before {
    left: 100%;
}
.navbar-whatsapp-btn i {
    grid-column: 1;
    font-size: 1.2em;
    line-height: 1;
}
.navbar-whatsapp-btn span {
    grid-column: 2;
    line-height: 1;
    text-align: center;
}

/* --- Kategori Overlay --- */
.categories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.categories-overlay.active {
    opacity: 1;
    visibility: visible;
}
.categories-menu-content {
    background-color: var(--white);
    width: 400px;
    max-width: 90%;
    height: 100%;
    overflow-y: auto;
    box-shadow: 0 8px 30px var(--shadow-strong);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
.categories-overlay.active .categories-menu-content {
    transform: translateX(0);
}

.categories-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    /* Arka plan kaldırıldı */
}

.close-categories-menu {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.close-categories-menu:hover {
    color: var(--dark-blue);
    transform: rotate(90deg);
}

.category-menu-nav {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
}

.category-list-in-overlay {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list-in-overlay .nav-item {
    border-bottom: 1px solid #f0f0f0;
}
.category-list-in-overlay .nav-item:last-child {
    border-bottom: none;
}
.main-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.main-category-header:hover {
    background-color: var(--light-gray-bg);
}
.main-category-link-container {
      display: flex;
      align-items: center;
      min-width: 0;
      flex: 1;
}
.category-list-in-overlay .nav-link {
    color: var(--text-color);
    padding: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-grow: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
    min-width: 0;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    overflow: hidden;
}
.category-list-in-overlay .nav-link:hover {
    background-color: var(--filter-bg);
    color: var(--hover-blue);
}

.category-list-in-overlay .nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.nav-link .icon {
    margin-right: 15px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.nav-link .category-menu-icon-img {
    margin-right: 15px;
}
.subcategory-list-in-overlay a .icon,
.subcategory-list-in-overlay a .category-menu-icon-img {
    margin-right: 0;
    width: auto;
}
.nav-link:hover .icon {
    color: var(--hover-blue);
}
.arrow-icon {
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.arrow-icon:hover {
    color: var(--primary-color);
    background-color: var(--light-gray-bg);
}
.nav-item.active > .main-category-header .arrow-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}
.subcategory-list-in-overlay {
    list-style: none;
    margin: 0;
    padding-left: 35px;
    background-color: #fdfdfd;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.nav-item.active > .subcategory-list-in-overlay {
    max-height: 500px; /* İçerik taşarsa bu değeri artırın */
}
.subcategory-list-in-overlay a {
    color: var(--secondary-color);
    padding: 12px 15px 12px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
    font-size: 0.9em;
    border-left: 3px solid transparent;
}
.subcategory-list-in-overlay a:hover {
    background-color: var(--filter-bg);
    color: var(--hover-blue);
    border-left-color: var(--hover-blue);
}


/* --- YENİ FİLTRELEME MENÜSÜ --- */
.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.filters-overlay.active {
    opacity: 1;
    visibility: visible;
}
.filter-menu-content {
    background-color: var(--white);
    width: 350px;
    max-width: 90%;
    height: 100%;
    position: absolute;
    top: 0;
    right: -350px;
    box-shadow: -8px 0 30px var(--shadow-strong);
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease-in-out;
}
.filters-overlay.active .filter-menu-content {
    right: 0;
}
.filter-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f9fa;
}
.filter-menu-header h2 {
    margin: 0;
    font-size: 1.2rem;
}
.close-filter-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.close-filter-menu:hover {
    color: var(--dark-blue);
    transform: rotate(90deg);
}
.filter-options-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}
.filter-menu-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}
.filter-menu-footer .btn {
    flex-grow: 1;
    padding: 12px;
}

.pagination-dots {
    padding: 10px 5px;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-section { width: 100%; margin-bottom: 40px; position: relative; overflow: hidden; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block; }
.hero-image-container { width: 100%; height: 100%; position: relative; background-color: #f0f0f0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-area { 
    flex-grow: 1; 
    padding: 30px; 
    max-width: 100%; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}
.product-grid-section { margin-top: 20px; }
.product-grid { 
    flex-grow: 1; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 16px; 
    width: 100%;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.product-card { 
    background-color: var(--white); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    max-width: none;
    min-width: 0;
    width: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    transform: scaleX(1);
}
.product-card .image-container { 
    width: 100%; 
    position: relative; 
    overflow: hidden; 
    background-color: #f8f9fa; 
    aspect-ratio: 1 / 1.2; 
    max-height: 280px;
}
.product-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-info { 
    padding: 14px; 
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray-bg) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 { 
    margin: 0 0 10px 0; 
    color: var(--dark-blue); 
    font-size: 1rem; 
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.product-info .product-sku {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 6px;
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
}
.product-info p { 
    margin: 0; 
    font-size: 0.85rem;
    color: #555; 
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-info .product-meta-color,
.product-info .product-meta-age {
    margin-top: 4px;
}

.product-info .product-meta-age {
    font-size: 0.8rem;
    color: #666;
}

.no-products { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--secondary-color); font-size: 1.3em; background-color: var(--white); border-radius: 12px; box-shadow: 0 4px 15px var(--shadow-light); }

/* Responsive ürün grid ayarları */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        min-width: 0;
        max-width: none;
    }
    
    .product-info {
        padding: 13px;
    }
    
    .product-info h3 {
        font-size: 0.95rem;
        margin-bottom: 9px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        min-width: 0;
        max-width: none;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .product-info .product-sku {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .product-info p {
        font-size: 0.8rem;
    }
    
    /* Daha küçük mobil cihazlarda kategoriler butonunu daha da kompakt yap */
    .categories-menu-toggle {
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .categories-menu-toggle .categories-text {
        display: none !important;
    }
    
    .navbar-whatsapp-btn {
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
    }

    .navbar-link-btn {
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .product-card {
        min-width: 0;
        max-width: none;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .product-info .product-sku {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .product-info p {
        font-size: 0.9rem;
    }
}

.main-footer {
    background: var(--white);
    color: var(--text-color);
    padding: 48px 24px;
    margin-top: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
}
.footer_div {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
}

.footer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-width: 200px;
    text-align: center;
}
.footer-categories h3 { 
    color: var(--dark-blue); 
    border-bottom: 2px solid var(--primary-color); 
    padding-bottom: 12px; 
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

#footerCategoryList { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

#footerCategoryList li a { 
    color: var(--text-muted); 
    text-decoration: none; 
    display: block; 
    padding: 8px 0; 
    transition: var(--transition);
    border-radius: var(--radius-sm);
    padding-left: 8px;
}

#footerCategoryList li a:hover { 
    color: var(--primary-color); 
    background: var(--filter-bg);
    transform: translateX(4px);
}
.address-info { 
    padding: 20px; 
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); 
    color: var(--dark-blue);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-lg);
}

.address-info p { 
    display: grid; 
    align-items: center; 
    gap: 12px; 
    margin: 12px 0;
    font-weight: 500;
}

.copyright-bar { 
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.9); 
    text-align: center; 
    padding: 20px 0; 
    font-size: 0.9rem; 
    width: 100%;
    border-top: 1px solid var(--border-color);
}

.copyright-bar p { 
    margin: 0;
    font-weight: 500;
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
    padding: 0 0 8px;
    background: none;
    box-shadow: none;
    border-bottom: 1px solid var(--border-light);
}

.page-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 12px;
    padding: 32px 36px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--text-color);
    -webkit-text-fill-color: var(--text-color);
    background: none;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.page-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
    line-height: 1.15;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.page-hero__subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    max-width: 52ch;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.page-breadcrumb a:hover {
    color: var(--accent-color);
}

.page-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobil için Kontrol Butonları */
.controls-container {
    display: none; /* Masaüstünde gizli */
    gap: 10px;
}

.btn, .btn-control {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn:hover, .btn-control:hover {
    background-color: var(--light-gray-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* YENİ: Arama ve Sıralama Kapsayıcısı */
.search-and-sort-container {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

/* Kategori sayfasında arama/sıralama çubuğu normal akışta kalır */
.page-wrapper.has-product-filters .search-and-sort-container {
    background: rgba(247, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    margin-bottom: 20px;
}

.page-wrapper.has-product-filters .page-header {
    scroll-margin-top: 100px;
}

.page-wrapper.has-product-filters #productGridSection {
    scroll-margin-top: 120px;
}

.search-container {
    display: flex;
    flex-grow: 1; /* Arama çubuğunun genişlemesini sağlar */
}

#pageSearchInput {
    flex-grow: 1;
    border: 2px solid var(--border-color);
    padding: 14px 18px;
    font-size: 1rem;
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    min-width: 200px;
    transition: var(--transition);
    background: var(--white);
}

#pageSearchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--white);
}

#pageSearchBtn {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 0 24px;
    cursor: pointer;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

#pageSearchBtn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    flex-wrap: nowrap;
    margin: auto;
    width: 80%;
    gap: 8px;
}
.page-btn {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    font-size: 0.95rem;
    background-color: var(--white);
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.page-btn:hover {
    background-color: var(--filter-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}
.page-btn:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}
.pagination-dots {
    padding: 8px 5px;
    color: #6c757d;
}

/* RESPONSIVE STYLES */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .content-area {
        padding: 40px;
    }
    
    .main-header {
        padding: 20px 40px;
    }
    
    .navbar {
        gap: 20px;
    }
}

@media (min-width: 1800px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
    
    .content-area {
        padding: 50px;
    }
    
    .main-header {
        padding: 24px 50px;
    }
    
    .navbar {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .page-wrapper {
        margin: 0;
        padding: 0 16px;
    }
    
    .main-header {
        padding: 14px 20px;
    }
    
    .navbar {
        gap: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .search-and-sort-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    #sortDropdownWrapper {
        display: none;
    }
    
    .controls-container {
        display: flex;
        gap: 12px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .sidebar-filter {
        border-radius: 0;
        box-shadow: var(--shadow-xl);
    }
    
    /* Tablet categories menu adjustments */
    .categories-menu-content {
        width: 350px;
        max-width: 85%;
    }
}

@media (max-width: 767px) {
    .page-wrapper {
        margin: 0;
        padding: 0 12px;
    }
    
    .navbar-center {
        display: flex;
        justify-content: space-around;
        flex: 1;

    }
    
    .navbar-left {
        flex: 0 0 auto;
    }
    
    .navbar-right {
        flex: 0 0 auto;
    }
    
    .logo {
        max-width: 140px;
    }
    
    .main-header { 
        padding: 12px 16px; 
    }
    
    .navbar {
        gap: 4px;
        align-items: center;
    }

    .navbar-right {
        gap: 4px;
    }

    .navbar-link-btn {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .site-user-nav {
        gap: 0;
    }

    .site-user-nav .navbar-link-btn--accent,
    .site-user-nav .site-logout-btn {
        display: none;
    }
    
    .categories-menu-toggle .categories-text { 
        display: none !important; 
    }
    
    .categories-menu-toggle { 
        padding: 8px; 
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
    
    .navbar-whatsapp-btn span { 
        display: none; 
    }
    
    .navbar-whatsapp-btn { 
        grid-template-columns: 1fr;
        padding: 8px; 
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .navbar-whatsapp-btn i {
        grid-column: 1;
    }
    
    .content-area { 
        padding: 20px 12px; 
    }
    
    .product-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-info { 
        padding: 12px; 
    }
    
    .product-info h3 { 
        font-size: 0.9em; 
    }
    
    .product-info p { 
        font-size: 0.8em; 
    }
    
    .page-header h1 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .footer_div {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        max-width: none;
    }
    
    .logo-section {
        order: -1;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-contact-info {
        margin-bottom: 15px;
    }
    
    .footer-categories {
        padding: 0;
        text-align: left;
    }
    
    /* Mobile-specific arrow icon improvements */
    .arrow-icon {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-category-header {
        padding: 15px;
    }
    
    /* Mobile categories menu adjustments */
    .categories-menu-content {
        width: 100%;
        max-width: 100%;
    }
    
    .category-list-in-overlay .nav-link span {
        max-width: 150px;
    }
}

@media (max-width: 767px) {
    .footer-categories {
        text-align: center;
    }
    
    .main-footer {
        padding: 32px 16px 40px 16px;
    }
    
    .hero-slider {
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }
}

/* === Anasayfa.html'den TAŞINAN CSS KODLARI BAŞLANGICI === */
.page-wrapper { display: flex; flex-direction: row; gap: 40px; align-items: flex-start; }
.content-area { flex: 1; min-width: 0; }
.sidebar-filter {
    flex: 0 0 clamp(380px, 28vw, 430px);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-xl);
    margin: 16px 0 32px;
    padding: 0;
    border: 1px solid rgba(224, 218, 209, 0.9);
    position: relative;
    align-self: flex-start;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sidebar-filter:hover,
.sidebar-filter:focus-within {
    border-color: rgba(201, 169, 98, 0.55);
    box-shadow: var(--shadow-lg);
}

.sidebar-filter-scroll {
    flex: none;
    overflow: visible;
    padding: 8px 28px 28px;
    -webkit-overflow-scrolling: touch;
}

.sidebar-filter-header { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    padding: 28px 28px 18px;
    margin: 0;
    border-bottom: 1px solid rgba(224, 218, 209, 0.8);
    display: flex; 
    align-items: center; 
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 245, 242, 0.86) 100%);
}
.sidebar-filter-header i {
    color: var(--accent-color);
}
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    border-top: 1px solid rgba(224, 218, 209, 0.85);
    padding-top: 16px;
    padding-bottom: 8px;
    position: relative;
    z-index: 2;
    background: transparent;
}
.filter-actions .btn { flex: 1; }
#openFilterBtn { display: none; }
.sidebar-filter-mobile-header { display: none; }

@media (max-width: 992px) {
    .page-wrapper { flex-direction: column; }
    #openFilterBtn { display: inline-flex; }
    .sidebar-filter-header { display: none; }
    .sidebar-filter-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--dark-blue);
        padding: 16px 20px;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 3;
        background: var(--white);
    }
    .close-filter-menu { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }
    .sidebar-filter {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85%;
        height: 100%;
        z-index: 1010;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        max-height: 100vh;
        margin: 0;
        overflow: hidden;
        border-radius: 0;
        flex: none;
    }

    .sidebar-filter-scroll {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 20px 20px;
        overscroll-behavior: contain;
    }
    .sidebar-filter.active::before { content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }
    .sidebar-filter.active { transform: translateX(0); }
    
    /* Tablet için hero slider yüksekliği */
    .hero-slider {
        max-height: 350px;
    }
}
.category-list-in-overlay .nav-item { border-bottom: 1px solid #f0f0f0; overflow: hidden; }
.subcategory-list-in-overlay { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.nav-item.active > .subcategory-list-in-overlay { max-height: 500px; }
/* This rule is already defined above, removing duplicate */

/* Filtre Menüsü Stilleri */
.filter-group { 
    border-bottom: 1px solid var(--border-light); 
    margin-bottom: 16px; 
    padding-bottom: 16px; 
    transition: var(--transition);
}

.filter-group:hover {
    border-color: var(--primary-color);
}

.filter-group:last-child { 
    border-bottom: none; 
    margin-bottom: 0; 
}

.collapse-toggle-checkbox { 
    display: none; 
}

.collapse-toggle-label { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 8px; 
    cursor: pointer; 
    font-weight: 700; 
    color: var(--dark-blue);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.collapse-toggle-label:hover {
    background-color: var(--filter-bg);
    color: var(--primary-color);
}
.collapse-toggle-label .arrow-icon,
.custom-select-trigger .arrow-icon { transition: transform 0.3s ease-in-out; font-size: 0.8em; color: #8C8C8C; }
.collapse-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.collapse-toggle-checkbox:checked + .collapse-toggle-label .arrow-icon { transform: rotate(180deg); }
.collapse-toggle-checkbox:checked ~ .collapse-content { max-height: 400px; overflow-y: auto; }
.filter-options-list { padding: 5px; display: flex; flex-direction: column; gap: 5px; }
.filter-list-item { 
    display: flex; 
    align-items: center; 
    padding: 10px 12px; 
    border-radius: var(--radius-md); 
    cursor: pointer; 
    transition: var(--transition); 
    user-select: none;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.filter-list-item:hover { 
    background-color: var(--filter-bg); 
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.filter-list-item:not(.available) { 
    display: none; 
}

.filter-list-item.active { 
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.filter-list-item.active .filter-label-text { 
    color: var(--primary-color); 
    font-weight: 600; 
}
.filter-list-item .hidden-checkbox { display: none; }
.custom-checkbox { 
     width: 18px; 
     height: 18px; 
     border: 2px solid var(--border-color); 
     border-radius: var(--radius-sm); 
     margin-right: 12px; 
     display: flex; 
     align-items: center; 
     justify-content: center; 
     transition: var(--transition); 
     flex-shrink: 0;
     background: var(--white);
     position: relative;
 }

.filter-list-item .hidden-checkbox:checked + .custom-checkbox { 
     border-color: var(--primary-color);
     background-color: var(--primary-color);
     transform: scale(1.1);
 }

.custom-checkbox::after { 
     content: '\f00c'; 
     font-family: 'Font Awesome 6 Free'; 
     font-weight: 900; 
     font-size: 11px; 
     color: white; 
     opacity: 0; 
     transform: scale(0.5); 
     transition: var(--transition); 
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%) scale(0.5);
 }
 
 .filter-list-item .hidden-checkbox:checked + .custom-checkbox::after { 
     opacity: 1; 
     transform: translate(-50%, -50%) scale(1); 
 }
.color-swatch { 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    margin-right: 12px; 
    border: 2px solid var(--border-light); 
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.filter-list-item:hover .color-swatch {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.filter-label-text { 
    flex-grow: 1; 
    font-size: 0.95rem; 
    color: var(--text-color);
    font-weight: 500;
}

.filter-item-count { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-left: 10px;
    background: var(--light-gray-bg);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.collapse-toggle-label .fas { margin-right: 8px; color: var(--secondary-color); }

/* Özel Dropdown Stilleri (Filtre ve Sıralama için Ortak) */
.custom-select-wrapper { 
    position: relative; 
    margin-bottom: 15px; 
}
/* -- KONTROL BUTONLARI İÇİNDEKİ DROPDOWN İÇİN EK STİLLER -- */
.controls-container .custom-select-wrapper {
    margin-bottom: 0;
    width: 200px;
}
.custom-select-trigger { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 16px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    background-color: var(--white); 
    font-size: 0.95rem; 
    font-weight: 600;
    cursor: pointer; 
    user-select: none;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.custom-select-trigger:hover {
    border-color: var(--primary-color);
    background-color: var(--light-gray-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* -- GÜNCELLENDİ: Hem mobil hem masaüstü için sıralama butonu stilleri -- */
.controls-container .custom-select-trigger,
.search-and-sort-container .custom-select-trigger {
    background: transparent;
    border: 1px solid #ccc;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.controls-container .custom-select-trigger:hover,
.search-and-sort-container .custom-select-trigger:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
}

/* YENİ: Masaüstü sıralama menüsünün genişliği */
#sortDropdownWrapper {
    width: 220px;
    flex-shrink: 0; /* Küçülmesini engelle */
    margin-bottom: 0;
}
#pageSearchInput {
    height: 45px; /* Butonlarla aynı yükseklik */
}


.custom-select-wrapper.active .custom-select-trigger { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 2px rgba(0,123,255,.25); 
}
.controls-container .custom-select-wrapper.active .custom-select-trigger {
    box-shadow: none;
}
.custom-select-wrapper.active .arrow-icon { transform: rotate(180deg); }
.custom-select-options { 
    position: absolute; 
    top: 105%; 
    left: 0; 
    right: 0; 
    background-color: var(--white); 
    border: 2px solid var(--border-light); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-xl); 
    z-index: 100; 
    max-height: 220px; 
    overflow-y: auto; 
    display: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.custom-select-wrapper.active .custom-select-options { 
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-option { 
    padding: 12px 16px; 
    cursor: pointer; 
    transition: var(--transition); 
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover { 
    background-color: var(--filter-bg); 
    color: var(--primary-color);
    transform: translateX(4px);
}

.custom-option.selected { 
    background: linear-gradient(135deg, var(--filter-bg) 0%, var(--light-blue-hover) 100%);
    color: var(--primary-color); 
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}
/* === TAŞINAN CSS KODLARI SONU === */

/* Modern Animasyonlar ve Hover Efektleri */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Sayfa yüklendiğinde animasyon */
.page-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

/* Ürün kartları için staggered animasyon */
.product-card {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.btn-control:focus,
#pageSearchInput:focus,
.custom-select-trigger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Footer Link Stilleri */
.footer-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-categories li {
    padding: 6px 0;
    margin: 2px 0;
}

.footer-categories a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 500;
}

.footer-categories a:hover {
    color: var(--primary-color);
    background: var(--filter-bg);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin: -4px -8px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    width: 100%;
}

.footer-logo .dynamic-logo {
    max-height: 100px;
    max-width: 250px;
    object-fit: contain;
    transition: var(--transition);
}

.footer-logo .dynamic-logo:hover {
    transform: scale(1.05);
}

.footer-contact-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--light-gray-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    width: 100%;
    box-sizing: border-box;
}

.footer-contact-info p {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
    gap: 8px;
}

.footer-contact-info p a,
.footer-contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: var(--radius-sm);
    padding: 2px 4px;
    margin: -2px -4px;
}

.footer-contact-info p a:hover,
.footer-contact-link:hover {
    color: var(--primary-color);
    background-color: var(--filter-bg);
}

.footer-contact-info i {
    color: var(--primary-color);
    width: 16px;
}
/* ================================================================== */
/* === YÖNETİLEBİLİR İÇERİK KUTUSU STİLLERİ (YENİ EKLENDİ) ========= */
/* ================================================================== */

/* Ana Kapsayıcı Div */
.managed-content-box {
    padding: clamp(24px, 4vw, 40px);
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative; /* İçerideki absolute konumlandırmalar için referans noktası olur */
    overflow: hidden;    /* Kendi sınırları dışına çıkan her şeyi gizler */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Kutu içindeki genel metin stilleri */
.managed-content-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.2em;
}

/* Kutu içindeki başlıklar */
.managed-content-box h1,
.managed-content-box h2,
.managed-content-box h3,
.managed-content-box h4 {
    color: var(--dark-blue);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.managed-content-box h1 { font-size: 2em; }
.managed-content-box h2 { font-size: 1.7em; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; font-family: var(--font-display); color: var(--primary-color); }
.managed-content-box h3 { font-size: 1.4em; }
.managed-content-box h4 { font-size: 1.2em; }

/* Kutu içindeki linkler */
.managed-content-box a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.managed-content-box a:hover {
    color: var(--hover-blue);
}

/* Kutu içindeki resimlerin taşmasını engelleme ve stil verme */
.managed-content-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Kutu içindeki listeler */
.managed-content-box ul,
.managed-content-box ol {
    padding-left: 25px;
    margin-bottom: 1.2em;
}

.managed-content-box li {
    margin-bottom: 0.5em;
}

/* Responsive Düzenleme: Mobilde kutunun kenar boşluklarını azaltma */
@media (max-width: 767px) {
    .managed-content-box {
        padding: 20px 15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
.hero-slider-section {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    max-height: 400px;
    overflow: hidden;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
}
.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--cream, #f7f5f2);
}
.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Masaüstü: sabit alan, görsel tam görünsün taşmasın */
@media (min-width: 768px) {
    .hero-slider.hero-layout-slider {
        aspect-ratio: 21 / 8;
        max-height: 460px;
        min-height: 260px;
        height: auto;
        border-radius: var(--radius-lg, 12px);
    }

    .hero-slider.hero-layout-slider .slider-wrapper {
        height: 100%;
    }

    .hero-slider.hero-layout-slider .slide {
        background: var(--cream, #f7f5f2);
    }

    .hero-slider.hero-layout-slider .slide img,
    .hero-slider.hero-layout-slider .hero-image-link img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .hero-slider.hero-layout-slider .hero-image-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    .hero-slider.hero-layout-slider .hero-image-link:hover {
        transform: none;
    }
}
.hero-slider .slider-control,
.hero-slider .slider-dots {
    display: none !important;
}

.hero-slider-section > .slider-dots {
    display: none;
}

.hero-slider-section > .slider-dots.is-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .hero-slider-section > .slider-dots:not(.is-hidden) {
        display: flex;
        position: relative;
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
        padding-bottom: 4px;
    }

    .hero-slider-section > .slider-dots .dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        background-color: rgba(0, 0, 0, 0.2);
    }

    .hero-slider-section > .slider-dots .dot.active {
        background-color: var(--primary-color, #3b82f6);
        border-color: transparent;
    }
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark-blue);
    border: 2px solid var(--border-light);
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.slider-control:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}
.slider-control.prev { left: 15px; }
.slider-control.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* ============================================= */
/* ===== MOBİL CİHAZLAR İÇİN SLAYT AYARLARI ==== */
/* ============================================= */
@media (max-width: 767px) {
    .hero-slider-section {
        width: 100%;
        margin: 0 0 10px 0;
        padding: 0;
    }

    .hero-slider {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 300px;
        margin: 0;
        border-radius: 0;
        background: var(--white);
        box-shadow: none;
    }

    .hero-slider.hero-layout-slider {
        aspect-ratio: 4 / 3;
        max-height: 300px;
        min-height: 200px;
        height: auto;
    }

    .hero-slider.hero-layout-slider .slider-wrapper {
        height: 100%;
        min-height: inherit;
        transform: none !important;
    }

    .hero-slider.hero-layout-slider .slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        height: 100%;
    }

    .hero-slider.hero-layout-slider .slide img,
    .hero-slider.hero-layout-slider .hero-image-link img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .hero-slider.hero-layout-slider .hero-image-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-slider.hero-layout-slider .hero-image-link:hover {
        transform: none;
    }

    .hero-slider .slider-control {
        display: none;
    }

}

/* ============================================= */
/* ===== RESPONSIVE HERO-SLIDER LAYOUTS ======== */
/* ============================================= */

/* Stacked Layout Styles - Very Strong Overrides */
.hero-slider.hero-layout-stacked {
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: hidden !important; /* bölüm dışına taşmayı kesin kapat */
    position: relative !important;
    min-height: auto !important;
    background: var(--white) !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hero-slider.hero-layout-stacked .slider-wrapper {
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    transform: none !important; /* inline translateX'i sıfırla */
    position: relative !important;
    overflow: hidden !important; /* stacked içinde kesme */
    width: 100% !important;
    transition: none !important;
    display: block !important;
}

.hero-slider.hero-layout-stacked .slide {
    flex: none !important;
    height: auto !important;
    min-height: auto !important;
    margin-bottom: 5px !important; /* Slide'lar arası boşluk minimuma indirildi */
    width: 100% !important;
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    display: block !important;
}

.hero-slider.hero-layout-stacked .slide:last-child {
    margin-bottom: 0 !important;
}

.hero-slider.hero-layout-stacked .slide img {
    object-fit: contain !important;
    max-height: none !important; /* stacked'ta resimleri kesme, tamamını göster */
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
    position: relative !important;
}

/* Ensure stacked layout overrides slider behavior */
.hero-slider.hero-layout-stacked .slider-control,
.hero-slider.hero-layout-stacked .slider-dots {
    display: none !important;
}

/* Responsive adjustments for stacked layout */
@media (max-width: 767px) {
    .hero-slider.hero-layout-stacked {
        margin: 0 !important; /* Kayma sorununu düzelt - negatif margin kaldırıldı */
        border-radius: 0 !important;
        background: var(--white) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-slider.hero-layout-stacked .slide {
        margin-bottom: 3px !important; /* Mobilde slide'lar arası boşluk minimuma indirildi */
    }
    
    .hero-slider.hero-layout-stacked .slide img {
        max-height: 250px !important; /* Mobilde yüksekliği kısaltıldı: 300px'den 250px'e */
        border-radius: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-slider.hero-layout-stacked .slide img {
        max-height: 300px !important; /* Tablet'te yüksekliği kısaltıldı: 350px'den 300px'e */
    }
}

/* Hero Layout Controls */
.hero-layout-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
}

.layout-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.layout-toggle-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.layout-toggle-btn i {
    font-size: 1em;
}

.layout-toggle-btn span {
    font-size: 0.85em;
}

/* Responsive adjustments for layout controls */
@media (max-width: 767px) {
    .hero-layout-controls {
        top: 10px;
        right: 10px;
    }
    
    .layout-toggle-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .layout-toggle-btn span {
        display: none; /* Mobilde sadece ikon göster */
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .layout-toggle-btn {
        padding: 9px 15px;
        font-size: 0.88em;
    }
}
/* ÜRÜN KARTI YILDIZ STİLLERİ */
.product-card-rating {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.product-card-rating .fa-star {
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.product-card-rating .far.fa-star {
    color: #e5e7eb;
}

.product-card-rating .review-count-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 8px;
    vertical-align: middle;
    background: var(--light-gray-bg);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
/* İSMİMİ GİZLE CHECKBOX STİLİ */
.form-group-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group-inline label {
    margin-bottom: 0; /* form-group'tan gelen alt boşluğu sıfırla */
    font-weight: normal;
    color: #555;
}

.form-group-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Kurumsal Sayfalar Bölümü Stilleri */
.corporate-pages-section {
    border-top: 1px solid #f0f0f0;
    padding: 20px 10px;
    margin-top: 20px;
}

.corporate-pages-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.corporate-pages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.corporate-pages-list li {
    margin-bottom: 8px;
}

.corporate-pages-list a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.corporate-pages-list a:hover {
    background-color: var(--filter-bg);
    color: var(--hover-blue);
}

/* ============================================= */
/* ===== HOMEPAGE IMAGES SECTION =============== */
/* ============================================= */

.homepage-images-section {
    padding: 40px 0;
    background: var(--white);
    margin: 20px 0;
    border: none;
    outline: none;
}

.homepage-images-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    max-height: 400px; /* Maksimum yükseklik sınırı */
    border: none;
    outline: none;
}

/* Ensure container has no borders */
.homepage-images-section .container {
    border: none;
    outline: none;
    box-shadow: none;
}

.homepage-image-item {
    position: relative;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    max-height: 400px; /* Görsel öğesi için maksimum yükseklik */
    border: none;
    outline: none;
}

.homepage-image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
    max-height: 400px; /* Görsel için maksimum yükseklik */
    border: none;
    outline: none;
}

/* Remove all hover effects and overlays */
.homepage-image-overlay {
    display: none !important;
}

.homepage-image-item:hover {
    transform: none;
    box-shadow: none;
}

.homepage-image-item:hover img {
    transform: none;
}

@media (max-width: 767px) {
    .homepage-images-grid {
        padding: 0 15px;
        max-height: 300px; /* Mobil için daha küçük yükseklik */
    }
    
    .homepage-image-item {
        width: 100%;
        max-height: 300px; /* Mobil için daha küçük yükseklik */
    }
    
    .homepage-image-item img {
        max-height: 300px; /* Mobil için daha küçük yükseklik */
    }
}

/* ============================================= */
/* ===== BLOG VE BLOG POST SAYFALARI STİLLERİ = */
/* ============================================= */

/* Blog Sayfası Genel Stilleri */
.blog-page-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.blog-page-wrapper .breadcrumb {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.blog-page-wrapper .breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-page-wrapper .breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.blog-page-wrapper .breadcrumb span {
    margin: 0 5px;
    color: var(--text-muted);
}

.blog-page-title {
    font-size: 2.4em;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 20px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Öne Çıkan Gönderi Stilleri */
.featured-post-section {
    margin-bottom: 60px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 60px;
}

.featured-post {
    display: flex;
    align-items: center;
    gap: 40px;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.featured-image {
    flex: 0 0 58%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    flex: 1;
    padding: 0;
}

.featured-content h2 {
    font-size: 2em;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-blue);
    margin: 0 0 15px 0;
}

.featured-content .post-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.featured-content .post-date {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Blog Kartları Stilleri */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    break-inside: avoid;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-image {
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    line-height: 0;
    aspect-ratio: 16 / 9;
}

.blog-card:hover .card-image {
    box-shadow: var(--shadow-md);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray-bg) 100%);
}

.card-content h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card-content .card-excerpt {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-content .post-date {
    font-size: 0.85em;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: auto;
}

/* Blog Post Sayfası Stilleri */
.page-content-wrapper { 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 0 20px; 
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.main-content { 
    flex: 1; 
    min-width: 0; 
    margin-left: -20px; /* Blog post'u biraz daha sola al */
}

.sidebar { 
    flex: 0 0 320px; 
    position: sticky; 
    top: 40px; 
}

/* Blog Post Breadcrumb Stili */
.page-content-wrapper .breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9em;
    color: var(--text-muted);
}

.page-content-wrapper .breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.page-content-wrapper .breadcrumb a:hover {
    color: var(--primary-color);
}

.page-content-wrapper .breadcrumb span {
    margin: 0 8px;
    color: var(--text-muted);
}

/* Blog Post Ana İçerik Alanı */
.post-container { 
    background: transparent; 
    padding: 0; 
    border: none; 
}

.post-title { 
    font-family: 'Merriweather', serif;
    font-size: 3em; 
    color: var(--dark-blue); 
    margin: 0 0 25px 0; 
    line-height: 1.3;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-meta { 
    display: flex; 
    justify-content: center;
    align-items: center; 
    gap: 15px; 
    font-size: 0.9em; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
    padding-bottom: 25px; 
    border-bottom: 2px solid var(--border-light); 
}

.post-meta i { 
    margin-right: 5px; 
    color: var(--primary-color);
}

.post-content { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: var(--text-color); 
    word-wrap: break-word; 
}

.post-content p { 
    margin-bottom: 1.5em; 
}

.post-content img { 
    max-width: 100%; 
    height: auto; 
    border-radius: var(--radius-lg); 
    margin: 2em 0; 
    box-shadow: var(--shadow-md);
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    color: var(--dark-blue);
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

.post-content h1 { font-size: 2em; }
.post-content h2 { font-size: 1.7em; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; }
.post-content h3 { font-size: 1.4em; }
.post-content h4 { font-size: 1.2em; }

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.post-content a:hover {
    color: var(--primary-hover);
}

.post-content ul, .post-content ol {
    padding-left: 25px;
    margin-bottom: 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-muted);
    background: var(--light-gray-bg);
    padding: 20px;
    border-radius: var(--radius-md);
}

/* Blog Post Kenar Çubuğu (Sidebar) */
.sidebar-widget { 
    background: transparent; 
    padding: 0;
    border: none;
}

.sidebar-widget-title { 
    font-size: 1.3em; 
    font-weight: 700; 
    margin: 0 0 20px 0; 
    padding-bottom: 15px; 
    border-bottom: 2px solid var(--border-light); 
    color: var(--dark-blue);
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-posts-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.featured-post-item { 
    margin-bottom: 20px; 
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.featured-post-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.featured-post-item:last-child { 
    margin-bottom: 0; 
}

.featured-post-item a { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition);
    border-radius: var(--radius-md);
    padding: 5px;
}

.featured-post-item a:hover {
    background-color: var(--filter-bg);
}

.featured-post-item-img { 
    flex: 0 0 80px; 
    height: 60px; 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm);
}

.featured-post-item-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition);
}

.featured-post-item:hover .featured-post-item-img img {
    transform: scale(1.05);
}

.featured-post-item-title { 
    font-size: 0.95em; 
    font-weight: 500; 
    line-height: 1.4; 
    color: var(--text-color); 
}

/* Blog Sayfaları Responsive Stilleri */
@media (max-width: 992px) { 
    .page-content-wrapper { 
        flex-direction: column; 
        gap: 40px; 
    } 
    
    .sidebar { 
        flex-basis: auto; 
        width: 100%; 
        position: static; 
    } 
    
    .post-title { 
        font-size: 2.5em; 
    }
    
    .blog-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .featured-post {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .main-content {
        margin-left: 0; /* Mobilde sola kaydırmayı kaldır */
    }
}

@media (max-width: 767px) {
    .blog-grid { 
        grid-template-columns: 1fr; 
    }
    
    .blog-page-title { 
        font-size: 2em; 
    }
    
    .featured-content h2 { 
        font-size: 1.6em; 
    }
    
    .post-title {
        font-size: 2em;
    }
    
    .page-content-wrapper {
        padding: 0 15px;
    }
    
    .featured-post {
        padding: 20px;
    }
    
    .card-content {
        padding: 15px;
    }
}

/* ========================================
   GOOGLE MAPS HARİTA STİLLERİ
   ======================================== */

.google-maps-container {
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.google-maps-container h2 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--dark-blue);
    text-align: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.google-maps-frame {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.google-maps-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

/* Responsive Google Maps */
@media (max-width: 767px) {
    .google-maps-container {
        margin-top: 20px;
        padding: 15px;
    }
    
    .google-maps-container h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .google-maps-frame {
        height: 300px;
    }
}

/* ========================================
   MARKA VİTRİN MODÜLÜ STİLLERİ
   ======================================== */

.brand-vitrin-section {
    background: #ffffff;
    padding: 60px 0;
    margin: 40px 0;
}

.brand-vitrin-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-vitrin-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-vitrin-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-vitrin-slider {
     display: flex;
     gap: 30px;
     align-items: center;
     justify-content: center;
     flex-wrap: nowrap;
     overflow-x: auto;
     scroll-behavior: smooth;
     transition: all 0.3s ease;
     padding: 10px 0;
 }

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: default;
    min-width: 180px;
    text-decoration: none;
    color: inherit;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--white);
    cursor: pointer;
}

.brand-item:active {
    transform: translateY(-1px);
}

.brand-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 10px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.brand-item:hover .brand-logo {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.brand-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-blue);
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

/* Ok tuşları kaldırıldı - markalar yan yana kayacak */

/* Responsive Marka Vitrin */
@media (max-width: 1200px) {
    .brand-vitrin-slider {
        gap: 20px;
    }
    
    .brand-item {
        min-width: 160px;
        padding: 20px;
    }
    
    .brand-logo {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .brand-vitrin-section {
        padding: 30px 0;
        margin: 20px 0;
    }
    
    .brand-vitrin-header h2 {
        font-size: 1.5em;
    }
    
    .brand-vitrin-container {
        padding: 0 15px;
        overflow: hidden;
    }
    
    .brand-vitrin-slider {
        gap: 15px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .brand-vitrin-slider::-webkit-scrollbar {
        display: none;
    }
    
    .brand-item {
        min-width: 140px;
        max-width: 140px;
        padding: 15px;
        flex-shrink: 0;
        margin-bottom: 15px;
    }
    
    .brand-logo {
        width: 80px;
        height: 60px;
    }
    
    .brand-name {
        font-size: 1em;
        word-wrap: break-word;
        text-align: center;
    }
    
    /* Ok tuşları kaldırıldı */
}

@media (max-width: 480px) {
    .brand-vitrin-section {
        padding: 20px 0;
        margin: 15px 0;
    }
    
    .brand-vitrin-container {
        padding: 0 10px;
        overflow: hidden;
    }
    
    .brand-vitrin-slider {
        gap: 10px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .brand-vitrin-slider::-webkit-scrollbar {
        display: none;
    }
    
    .brand-item {
        min-width: 120px;
        max-width: 120px;
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .brand-logo {
        width: 70px;
        height: 50px;
    }
    
    .brand-name {
        font-size: 0.9em;
        word-wrap: break-word;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .brand-vitrin-section {
        padding: 15px 0;
        margin: 10px 0;
    }
    
    .brand-vitrin-container {
        padding: 0 8px;
        overflow: hidden;
    }
    
    .brand-vitrin-slider {
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .brand-vitrin-slider::-webkit-scrollbar {
        display: none;
    }
    
    .brand-item {
        min-width: 100px;
        max-width: 100px;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .brand-logo {
        width: 60px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 0.8em;
        word-wrap: break-word;
        text-align: center;
    }
    
    /* Çok küçük mobil cihazlarda kategoriler butonunu en kompakt yap */
    .categories-menu-toggle {
        padding: 5px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .categories-menu-toggle .categories-text {
        display: none !important;
    }
    
    .navbar-whatsapp-btn {
        padding: 5px;
        min-width: 36px;
        min-height: 36px;
    }

    .navbar-link-btn {
        padding: 5px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* =========================================
   FİLTRE BİLGİ MESAJI
   ======================================== */

.filter-info {
    display: inline-block;
    padding: 8px 12px;
    background: var(--light-blue);
    color: var(--dark-blue);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

@media (max-width: 767px) {
    .filter-info {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ============================================= */
/* ===== KATEGORİ VİTRİN STİLLERİ ============= */
/* ============================================= */

.category-vitrin-section {
    width: 100%;
    padding: 30px 0;
    margin: 20px 0;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.category-vitrin-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.category-vitrin-header h2 {
    color: var(--text-color);
    font-size: 2em;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.category-vitrin-container {
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-vitrin-grid {
    display: grid;
    gap: 25px;
    justify-items: center;
    transition: all 0.3s ease;
}

/* Dinamik grid düzenleri */
.category-vitrin-grid.grid-1 {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
}

.category-vitrin-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.category-vitrin-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.category-vitrin-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.category-vitrin-grid.grid-5-plus {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
    width: 100%;
}

.category-vitrin-grid.grid-5-plus .category-vitrin-item {
    min-width: 250px;
    max-width: 300px;
}

/* Slider kontrolleri */
.category-vitrin-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.category-vitrin-slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.category-vitrin-slider-btn:hover {
    background: var(--dark-blue);
    transform: scale(1.1);
}

.category-vitrin-slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.category-vitrin-slider-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.category-vitrin-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-vitrin-slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.category-vitrin-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    min-width: 220px;
    max-width: 280px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-vitrin-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-vitrin-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-vitrin-item:hover img {
    transform: scale(1.1);
}

.category-vitrin-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    color: var(--text-color);
    transition: var(--transition);
}

.category-vitrin-item:hover h3 {
    color: var(--primary-color);
}

/* Responsive Kategori Vitrin */
@media (max-width: 768px) {
    .category-vitrin-section {
        padding: 20px 0;
        margin: 15px 0;
    }
    
    .category-vitrin-header h2 {
        font-size: 1.5em;
    }
    
    .category-vitrin-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .category-vitrin-grid {
        gap: 20px;
    }
    
    /* Mobil grid düzenleri */
    .category-vitrin-grid.grid-1 {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
    
    .category-vitrin-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
    
    .category-vitrin-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
    
    .category-vitrin-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
    
    .category-vitrin-grid.grid-5-plus {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
    
    .category-vitrin-item {
        padding: 20px;
        min-width: 160px;
        max-width: 200px;
    }
    
    .category-vitrin-item img {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .category-vitrin-item h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-vitrin-section {
        padding: 15px 0;
        margin: 10px 0;
    }
    
    .category-vitrin-container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .category-vitrin-grid {
        gap: 15px;
    }
    
    /* Küçük mobil grid düzenleri */
    .category-vitrin-grid.grid-1 {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .category-vitrin-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .category-vitrin-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .category-vitrin-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .category-vitrin-grid.grid-5-plus {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .category-vitrin-item {
        padding: 15px;
        min-width: 130px;
        max-width: 160px;
    }
    
    .category-vitrin-item img {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }
    
    .category-vitrin-item h3 {
        font-size: 0.9rem;
    }
}

/* --- Navbar extras --- */
.navbar-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    transition: var(--transition);
}

.navbar-link-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--light-blue-hover);
}

.site-user-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar-cart-link {
    position: relative;
    overflow: visible;
}

.navbar-cart-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-cart-link > .navbar-cart-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    z-index: 1;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent-color, #c0392b);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--white, #fff);
    pointer-events: none;
}

.navbar-cart-badge.is-hidden {
    display: none;
}

.corporate-pages-list .navbar-cart-link > .navbar-cart-badge {
    top: 8px;
    right: 14px;
}

@media (max-width: 767px) {
    .site-user-nav.site-user-nav--logged-in .navbar-cart-link > .navbar-cart-badge {
        top: 3px;
        right: 3px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 0.6rem;
        line-height: 16px;
    }
}

.navbar-link-btn--accent {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.navbar-link-btn--accent:hover {
    background: var(--primary-hover);
    color: #fff;
}

button.navbar-link-btn {
    cursor: pointer;
    font-family: inherit;
}

.categories-menu-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 12px 4px;
}

.categories-menu-logo {
    max-height: 48px;
}

.corporate-pages-list a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.corporate-pages-list a i {
    width: 18px;
    color: var(--accent-color);
}

.content-area {
    flex: 1;
    min-width: 0;
    padding-bottom: 48px;
}

.static-page-layout {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* --- Auth (login) --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--dark-blue) 50%, #0a1220 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    padding: 40px 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.auth-card__brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__logo {
    display: block;
    max-width: 120px;
    max-height: 64px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.auth-card__site-name {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-card__brand h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 8px;
}

.auth-card__brand p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form .input-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.auth-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.auth-error {
    color: var(--error-color);
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.25em;
}

/* --- Public light/dark color mode --- */
html[data-color-mode="dark"] {
    color-scheme: dark;
    --primary-color: #8ec5ff;
    --primary-hover: #b8dcff;
    --primary-light: #5aa7f0;
    --secondary-color: #b5c4d6;
    --accent-color: #f2c48c;
    --accent-hover: #ffd7a3;
    --success-color: #4fd1c5;
    --warning-color: #f6ad55;
    --error-color: #f87171;

    --dark-blue: #f5f8ff;
    --dark-gray: #d6deea;
    --light-gray-bg: #111827;
    --cream: #0b1220;
    --white: #172033;
    --text-color: #f3f6fb;
    --text-muted: #b9c4d3;
    --border-color: #334155;
    --border-light: #263449;

    --hover-blue: #aad7ff;
    --light-blue-hover: #1f3450;
    --filter-bg: #1b2840;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.35);
    --shadow-md: 0 8px 18px -8px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 16px 32px -14px rgb(0 0 0 / 0.75);
    --shadow-xl: 0 24px 48px -18px rgb(0 0 0 / 0.8);
}

html[data-color-mode="dark"] body,
html[data-color-mode="dark"] body.site-body {
    background: radial-gradient(circle at top, #16243a 0%, #0b1220 42%, #070b12 100%);
    background-color: #0b1220;
}

html[data-color-mode="dark"] .main-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: var(--border-color);
    box-shadow: 0 1px 0 var(--border-color), var(--shadow-md);
}

.theme-toggle-btn {
    cursor: pointer;
    font-family: inherit;
}

html[data-color-mode="dark"] .theme-toggle-btn {
    background: #24344f;
    border-color: #49617f;
    color: #ffffff;
}

html[data-color-mode="dark"] .categories-menu-content,
html[data-color-mode="dark"] .sidebar-filter,
html[data-color-mode="dark"] .main-footer,
html[data-color-mode="dark"] .product-card,
html[data-color-mode="dark"] .featured-post,
html[data-color-mode="dark"] .blog-card,
html[data-color-mode="dark"] .auth-card,
html[data-color-mode="dark"] .site-auth-card,
html[data-color-mode="dark"] .account-card,
html[data-color-mode="dark"] .managed-content-box,
html[data-color-mode="dark"] .homepage-images-section,
html[data-color-mode="dark"] .brand-vitrin-section,
html[data-color-mode="dark"] .brand-item,
html[data-color-mode="dark"] .category-vitrin-section,
html[data-color-mode="dark"] .category-vitrin-item {
    background: var(--white) !important;
    color: var(--text-color);
    border-color: var(--border-light);
}

html[data-color-mode="dark"] .categories-menu-header,
html[data-color-mode="dark"] .sidebar-filter-header,
html[data-color-mode="dark"] .sidebar-filter-mobile-header,
html[data-color-mode="dark"] .product-info,
html[data-color-mode="dark"] .product-card .product-price,
html[data-color-mode="dark"] .card-content,
html[data-color-mode="dark"] .filter-actions {
    background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

html[data-color-mode="dark"] .filter-actions {
    background: linear-gradient(0deg, #172033 70%, transparent);
}

html[data-color-mode="dark"] .product-card .image-container,
html[data-color-mode="dark"] .main-image-container,
html[data-color-mode="dark"] .account-item,
html[data-color-mode="dark"] .filter-item-count,
html[data-color-mode="dark"] .footer-contact-info,
html[data-color-mode="dark"] .post-content blockquote,
html[data-color-mode="dark"] .brand-logo {
    background: #0f172a;
    border-color: var(--border-light);
}

html[data-color-mode="dark"] .product-info h3,
html[data-color-mode="dark"] .product-info p,
html[data-color-mode="dark"] .product-info .product-meta-age,
html[data-color-mode="dark"] .product-info .product-sku,
html[data-color-mode="dark"] .footer-categories h3,
html[data-color-mode="dark"] .blog-page-title,
html[data-color-mode="dark"] .featured-content h2,
html[data-color-mode="dark"] .card-content h3,
html[data-color-mode="dark"] .post-title,
html[data-color-mode="dark"] .post-content h1,
html[data-color-mode="dark"] .post-content h2,
html[data-color-mode="dark"] .post-content h3,
html[data-color-mode="dark"] .post-content h4,
html[data-color-mode="dark"] .post-content h5,
html[data-color-mode="dark"] .post-content h6,
html[data-color-mode="dark"] .sidebar-widget-title,
html[data-color-mode="dark"] .collapse-toggle-label,
html[data-color-mode="dark"] .account-item strong,
html[data-color-mode="dark"] .managed-content-box p,
html[data-color-mode="dark"] .managed-content-box li,
html[data-color-mode="dark"] .managed-content-box h1,
html[data-color-mode="dark"] .managed-content-box h2,
html[data-color-mode="dark"] .managed-content-box h3,
html[data-color-mode="dark"] .managed-content-box h4,
html[data-color-mode="dark"] .brand-vitrin-header h2,
html[data-color-mode="dark"] .brand-name,
html[data-color-mode="dark"] .category-vitrin-header h2,
html[data-color-mode="dark"] .category-vitrin-item h3 {
    color: var(--text-color);
}

html[data-color-mode="dark"] .blog-page-title,
html[data-color-mode="dark"] .post-title,
html[data-color-mode="dark"] .sidebar-widget-title,
html[data-color-mode="dark"] .brand-vitrin-header h2 {
    background: none;
    -webkit-text-fill-color: currentColor;
}

html[data-color-mode="dark"] .category-list-in-overlay .nav-item,
html[data-color-mode="dark"] .corporate-pages-section,
html[data-color-mode="dark"] .featured-post-section {
    border-color: var(--border-light);
}

html[data-color-mode="dark"] .page-wrapper.has-product-filters .search-and-sort-container {
    background: rgba(11, 18, 32, 0.92);
}

html[data-color-mode="dark"] .page-hero {
    background: linear-gradient(135deg, #1d4f82 0%, #10243d 100%);
}

html[data-color-mode="dark"] .page-hero,
html[data-color-mode="dark"] .page-hero h1 {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html[data-color-mode="dark"] .page-btn:disabled,
html[data-color-mode="dark"] .category-vitrin-slider-btn:disabled {
    background-color: #334155;
    color: var(--text-muted);
}

html[data-color-mode="dark"] .pagination-dots,
html[data-color-mode="dark"] .custom-select-trigger .arrow-icon,
html[data-color-mode="dark"] .collapse-toggle-label .arrow-icon {
    color: var(--text-muted);
}

html[data-color-mode="dark"] input,
html[data-color-mode="dark"] textarea,
html[data-color-mode="dark"] select,
html[data-color-mode="dark"] .custom-select-trigger,
html[data-color-mode="dark"] .custom-select-options {
    background-color: #0f172a;
    color: var(--text-color);
    border-color: var(--border-color);
}

html[data-color-mode="dark"] input::placeholder,
html[data-color-mode="dark"] textarea::placeholder {
    color: #93a4ba;
}

html[data-color-mode="dark"] .close-categories-menu,
html[data-color-mode="dark"] .close-filter-menu {
    color: var(--text-muted);
}

html[data-color-mode="dark"] .close-categories-menu:hover,
html[data-color-mode="dark"] .close-filter-menu:hover {
    color: var(--text-color);
}

html[data-color-mode="dark"] .navbar-link-btn--accent,
html[data-color-mode="dark"] .btn.btn-primary,
html[data-color-mode="dark"] .auth-form button[type="submit"] {
    color: #06111f;
}

html[data-color-mode="dark"] .navbar-whatsapp-btn,
html[data-color-mode="dark"] .btn-primary,
html[data-color-mode="dark"] .btn-secondary {
    color: #ffffff;
}

html[data-color-mode="dark"] .site-auth-field input,
html[data-color-mode="dark"] .site-auth-field textarea,
html[data-color-mode="dark"] .auth-form input {
    background: #0f172a;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .navbar-link-text {
        display: none;
    }

    .categories-text {
        display: none;
    }
}

/* Mobile navbar hardening */
.mobile-whatsapp-menu-link {
    display: none;
}

@media (max-width: 767px) {
    .main-header {
        padding: 10px 12px;
        overflow: visible;
    }

    .navbar {
        display: grid;
        grid-template-columns: auto minmax(108px, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .navbar-left,
    .navbar-center,
    .navbar-right {
        min-width: 0;
    }

    .navbar-left {
        justify-content: flex-start;
    }

    .navbar-center {
        justify-content: center;
    }

    .navbar-right {
        justify-content: flex-end;
        gap: 6px;
        min-width: 0;
    }

    .logo-link {
        display: inline-flex;
        justify-content: center;
        max-width: 100%;
        min-width: 0;
    }

    .logo {
        width: auto;
        max-width: clamp(112px, 34vw, 150px);
        max-height: 56px;
        object-fit: contain;
    }

    .categories-menu-toggle,
    .navbar-link-btn,
    .lang-switcher-btn,
    .navbar-whatsapp-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
        flex-shrink: 0;
        border-radius: var(--radius-lg);
    }

    .categories-menu-toggle {
        gap: 0;
    }

    .categories-menu-toggle .categories-text,
    .navbar-link-text,
    .navbar-whatsapp-btn span,
    .navbar-right .lang-switcher-label {
        display: none !important;
    }

    .navbar-whatsapp-btn {
        display: inline-flex;
        grid-template-columns: none;
        align-items: center;
        justify-items: center;
        gap: 0;
    }

    .navbar-whatsapp-btn i {
        grid-column: auto;
    }

    .navbar-right > .navbar-link-btn[href="/blog"] {
        display: none;
    }

    .site-user-nav {
        display: none;
    }

    .site-user-nav.site-user-nav--logged-in {
        display: inline-flex;
        gap: 0;
    }

    .site-user-nav.site-user-nav--logged-in .navbar-link-btn {
        display: inline-flex;
    }

    .lang-switcher-menu {
        position: fixed;
        top: 66px;
        right: 12px;
        left: 12px;
        width: auto;
        min-width: 0;
        max-height: min(70vh, 420px);
    }

    .categories-menu-content {
        width: min(92vw, 380px);
        max-width: 92vw;
    }

    .mobile-whatsapp-menu-link {
        display: list-item;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 8px 10px;
    }

    .navbar {
        grid-template-columns: auto minmax(102px, 1fr) auto;
        gap: 6px;
    }

    .navbar-right {
        gap: 4px;
    }

    .logo {
        max-width: clamp(104px, 32vw, 126px);
        max-height: 50px;
    }

    .categories-menu-toggle,
    .navbar-link-btn,
    .lang-switcher-btn,
    .navbar-whatsapp-btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

}

@media (max-width: 360px) {
    .main-header {
        padding-inline: 8px;
    }

    .navbar {
        grid-template-columns: auto minmax(96px, 1fr) auto;
        gap: 5px;
    }

    .logo {
        max-width: 104px;
    }

    .categories-menu-toggle,
    .navbar-link-btn,
    .lang-switcher-btn {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
    }
}

/* Desktop: wider product listing layout (tablet/mobile unchanged) */
@media (min-width: 1024px) {
    .page-wrapper {
        max-width: min(96vw, 1680px);
        padding-left: clamp(12px, 1.25vw, 20px);
        padding-right: clamp(12px, 1.25vw, 20px);
    }

    .page-wrapper.has-product-filters {
        gap: 20px;
    }

    .page-wrapper.has-product-filters .sidebar-filter {
        flex: 0 0 clamp(260px, 20vw, 320px);
    }

    .page-wrapper.has-product-filters .content-area {
        padding: 16px 8px 30px;
    }

    .footer_div {
        max-width: min(96vw, 1680px);
    }
}

@media (min-width: 1400px) {
    .page-wrapper.has-product-filters .content-area {
        padding: 16px 12px 30px;
    }
}

/* Copyright bar — dark mode (var(--dark-blue) inverts to light) */
html[data-color-mode="dark"] .copyright-bar {
    background: #0a1020;
    color: rgba(243, 246, 251, 0.88);
    border-top-color: var(--border-color);
}

html[data-color-mode="dark"] .copyright-bar p {
    color: rgba(243, 246, 251, 0.88);
}

/* Cart page (/sepet) dark mode */
html[data-color-mode="dark"] .cart-card {
    background: var(--white);
    border-color: var(--border-light);
    color: var(--text-color);
}

html[data-color-mode="dark"] .cart-head h1,
html[data-color-mode="dark"] .empty-cart h2 {
    color: var(--primary-color);
}

html[data-color-mode="dark"] .cart-head p,
html[data-color-mode="dark"] .cart-meta,
html[data-color-mode="dark"] .cart-price-meta,
html[data-color-mode="dark"] .empty-cart,
html[data-color-mode="dark"] .empty-cart p {
    color: var(--text-muted);
}

html[data-color-mode="dark"] .cart-table th {
    color: var(--text-muted);
}

html[data-color-mode="dark"] .cart-table th,
html[data-color-mode="dark"] .cart-table td {
    border-bottom-color: var(--border-light);
}

html[data-color-mode="dark"] .cart-table tr {
    border-color: var(--border-light);
}

html[data-color-mode="dark"] .cart-product img {
    background: #0f172a;
}

html[data-color-mode="dark"] .qty-input {
    background: #0f172a;
    color: var(--text-color);
    border-color: var(--border-color);
}

html[data-color-mode="dark"] .btn-light-cart {
    background: #24344f;
    color: var(--text-color);
}

html[data-color-mode="dark"] .btn-danger-cart {
    background: #3b1014;
    color: #fecaca;
}

html[data-color-mode="dark"] .message.success {
    background: #123524;
    color: #bbf7d0;
}

html[data-color-mode="dark"] .message.error {
    background: #3b1014;
    color: #fecaca;
}

/* Account page (/hesabim) — Siparişlerim dark mode */
html[data-color-mode="dark"] .account-header h1,
html[data-color-mode="dark"] .orders-head h2 {
    color: var(--primary-color);
}

html[data-color-mode="dark"] .account-header p,
html[data-color-mode="dark"] .orders-head p,
html[data-color-mode="dark"] .order-meta,
html[data-color-mode="dark"] .order-summary,
html[data-color-mode="dark"] .empty-orders {
    color: var(--text-muted);
}

html[data-color-mode="dark"] .account-header {
    border-bottom-color: var(--border-light);
}

html[data-color-mode="dark"] .orders-section {
    border-top-color: var(--border-light);
}

html[data-color-mode="dark"] .order-card {
    background: #1a2438;
    border-color: var(--border-light);
    color: var(--text-color);
}

html[data-color-mode="dark"] .order-number {
    color: var(--text-color);
}

html[data-color-mode="dark"] .order-detail-toggle {
    color: var(--primary-color);
}

html[data-color-mode="dark"] .order-items {
    background: #0f172a;
}

html[data-color-mode="dark"] .order-items th,
html[data-color-mode="dark"] .order-items td {
    border-bottom-color: var(--border-light);
    color: var(--text-color);
}

html[data-color-mode="dark"] .order-items th {
    color: var(--text-muted);
}

html[data-color-mode="dark"] .order-items tr {
    border-color: var(--border-light);
}

html[data-color-mode="dark"] .empty-orders {
    background: #0f172a;
}

html[data-color-mode="dark"] .refresh-orders-btn {
    background: #24344f;
    color: var(--text-color);
}

html[data-color-mode="dark"] .status-badge {
    background: #334155;
    color: var(--text-color);
}

html[data-color-mode="dark"] .status-new {
    background: #1e3a5f;
    color: #bfdbfe;
}

html[data-color-mode="dark"] .status-approved {
    background: #123524;
    color: #bbf7d0;
}

html[data-color-mode="dark"] .status-preparing {
    background: #422006;
    color: #fde68a;
}

html[data-color-mode="dark"] .status-completed {
    background: #2e1065;
    color: #ddd6fe;
}

html[data-color-mode="dark"] .status-cancelled {
    background: #3b1014;
    color: #fecaca;
}

/* Çerez / analitik onay banner'ı */
.kb-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12000;
    padding: 14px 16px;
    background: rgba(20, 28, 44, 0.96);
    color: #f8fafc;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
}

.kb-cookie-consent__inner {
    max-width: 980px;
    margin: 0 auto;
}

.kb-cookie-consent__text {
    margin: 0 0 12px;
    line-height: 1.55;
    font-size: 0.92rem;
}

.kb-cookie-consent__link {
    color: #93c5fd;
    text-decoration: underline;
}

.kb-cookie-consent__customize {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.kb-cookie-consent__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.kb-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.kb-cookie-consent__btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.kb-cookie-consent__btn--primary {
    background: #2563eb;
    color: #fff;
}

.kb-cookie-consent__btn--ghost {
    background: transparent;
    color: #e2e8f0;
    border-color: #475569;
}

body.kb-cookie-banner-open {
    padding-bottom: 120px;
}

html[data-color-mode="dark"] .kb-cookie-consent {
    background: rgba(10, 15, 28, 0.98);
}

/* Kategori kampanya popup */
.kb-campaign-modal {
    position: fixed;
    inset: 0;
    z-index: 11500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: auto;
}

.kb-campaign-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.62);
    cursor: pointer;
}

.kb-campaign-modal__panel {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: min(100%, 440px);
    max-height: min(88vh, 640px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    padding: 24px 22px 20px;
    text-align: center;
}

.kb-campaign-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
}

.kb-campaign-modal__image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
}

.kb-campaign-modal__title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #0f172a;
}

.kb-campaign-modal__body {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.55;
    font-size: 0.95rem;
}

.kb-campaign-modal__coupon {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: #334155;
}

.kb-campaign-modal__coupon code {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.kb-campaign-modal__cta {
    display: inline-block;
    background: #1e3a5f;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 10px;
}

body.kb-campaign-open {
    overflow: hidden;
}

html[data-color-mode="dark"] .kb-campaign-modal__panel {
    background: #1e293b;
    color: #e2e8f0;
}

html[data-color-mode="dark"] .kb-campaign-modal__title {
    color: #f8fafc;
}

html[data-color-mode="dark"] .kb-campaign-modal__body {
    color: #cbd5e1;
}