/*
Theme Name: Sinerji Network
Theme URI: https://sinerjitoptan.online
Author: Sinerji Team
Author URI: https://sinerjitoptan.online
Description: SEO odaklı, hafif ve hızlı network ürün tanıtım teması. Sol sidebar kategoriler, orta slider ve ürün grid yapısı ile optimize edilmiş performans. Mobil uyumlu ve yüksek performanslı.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sinerji-network
Tags: e-commerce, product, network, seo, responsive, custom-post-type, ajax
*/

/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6600;
    --secondary-color: #0066cc;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #e0e0e0;
    --hover-color: #ff8533;
    --max-width: 1200px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --border-color: #333;
    --hover-color: #ff8533;
    --card-bg: #2a2a2a;
    --input-bg: #2a2a2a;
    --input-border: #444;
    --header-bg: #222;
    --header-top-bg: #1a1a1a;
    --nav-bg: #222;
    --sidebar-bg: #2a2a2a;
    --footer-bg: #1a1a1a;
    --link-color: #4a9eff;
    --link-hover-color: #6bb0ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.header-top {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .header-top {
    background: var(--header-top-bg);
    border-bottom: 1px solid var(--border-color);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-top-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dark-mode-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dark-mode-toggle:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
    color: #fff;
}

.dark-mode-icon,
.light-mode-icon {
    display: inline-block;
    transition: opacity 0.3s;
    font-size: 18px;
}

/* Varsayılan olarak dark icon göster (light mode) */
:not([data-theme]) .dark-mode-icon,
[data-theme="light"] .dark-mode-icon {
    display: inline-block;
}

:not([data-theme]) .light-mode-icon,
[data-theme="light"] .light-mode-icon {
    display: none;
}

/* Dark mode'da light icon göster */
[data-theme="dark"] .dark-mode-icon {
    display: none;
}

[data-theme="dark"] .light-mode-icon {
    display: inline-block;
}

.header-main {
    padding: 20px 0;
}

.header-main-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 30px;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.logo-square {
    background: var(--primary-color);
    width: 100%;
    height: 100%;
}

/* Search */
.search-form {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    background: #f5f5f5;
    transition: all 0.3s;
    color: var(--text-color);
}

[data-theme="dark"] .search-input {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

[data-theme="dark"] .search-input:focus {
    background: var(--input-bg);
    border-color: var(--primary-color);
}

.search-form::before {
    content: "🔍";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

.search-btn {
    display: none;
}

/* Navigation */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .main-nav {
    background: var(--nav-bg);
    border-bottom-color: var(--border-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Search Autocomplete */
.search-form {
    position: relative;
}

.search-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 25px 25px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #f5f5f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.autocomplete-item-info {
    flex: 1;
}

.autocomplete-item-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.autocomplete-item-type {
    font-size: 12px;
    color: #999;
}

.autocomplete-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* Main Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 0;
    align-items: start;
}

/* Sidebar - Sol tarafta sabit */
.sidebar {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Content Area - Sağ taraf */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Category Accordion */
.category-accordion {
    margin-bottom: 20px;
}

.category-accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.category-accordion-toggle:hover {
    opacity: 0.8;
}

.category-accordion-toggle .sidebar-title {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    flex: 1;
}

.accordion-icon {
    font-size: 12px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.category-accordion-toggle[aria-expanded="false"] .accordion-icon {
    transform: rotate(-90deg);
}

.category-accordion-content {
    margin-top: 15px;
    transition: all 0.3s ease;
}

.category-accordion-content[style*="display: none"] {
    display: none !important;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: color 0.3s;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.category-link:hover {
    color: var(--primary-color);
}

.category-list-styled .category-link {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-list-styled .category-link:last-child {
    border-bottom: none;
}

.category-name {
    flex: 1;
}

.category-arrow {
    color: var(--text-color);
    font-size: 16px;
    margin-left: 10px;
    transition: transform 0.3s;
}

.category-link:hover .category-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

.category-more-btn {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.category-more-btn:hover {
    color: var(--hover-color) !important;
}

.category-item-more-wrapper {
    display: none;
    width: 100%;
}

.category-item-more-wrapper.show {
    display: block;
}

.category-item-more-wrapper .category-item {
    list-style: none;
}

.category-count {
    color: #999;
    font-size: 14px;
}

/* Slider */
.slider-section {
    margin-bottom: 25px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-height: 320px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 320px;
    max-height: 320px;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    padding: 18px 22px;
    z-index: 2;
}

.slider-title {
    font-size: 20px;
    margin-bottom: 6px;
    line-height: 1.3;
    font-weight: 600;
}

.slider-description {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.95;
}

.slider-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.slider-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: #0052a3;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    font-size: 20px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255,255,255,1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

/* Products Section */
.products-section {
    margin-top: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Products Grid - Base */
.products-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

/* Products Grid - 3'lü Grid */
.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Products Grid - 4'lü Grid (Varsayılan) */
.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.product-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-best {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    box-shadow: 0 2px 5px rgba(255, 102, 0, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, #00cc66, #00ff80);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 204, 102, 0.3);
}

.badge-discount {
    background: linear-gradient(135deg, #ff0000, #ff3333);
    color: #fff;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.3);
}

.badge-outofstock {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.badge-backorder {
    background: linear-gradient(135deg, #ff9900, #ffbb33);
    color: #fff;
    box-shadow: 0 2px 5px rgba(255, 153, 0, 0.3);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
    padding: 10px;
    display: block;
}

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

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Product Card Pricing */
.product-card-pricing {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.product-card-price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.product-card-discount {
    background: #ff0000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.product-social-proof {
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.social-proof-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.product-rating {
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 16px;
}

.product-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.product-btn:hover {
    background: #0052a3;
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-color, #ff6600);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

.load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.load-more-btn:hover {
    background: var(--hover-color);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    top: 20px;
    right: 15px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
    
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-image-wrapper {
        min-height: 160px;
        max-height: 160px;
    }
    
    .product-image {
        max-height: 160px;
    }
    
    .slider-container {
        height: 320px;
        max-height: 320px;
    }
    
    .slider-content {
        padding: 18px 20px;
    }
    
    .slider-title {
        font-size: 20px;
    }
}

/* Mobil Hamburger Menü */
.mobile-category-toggle {
    display: none;
    width: 100%;
    padding: 12px 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-category-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
}

.mobile-category-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-category-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-category-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-category-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-category-toggle .hamburger-text {
    flex: 1;
    text-align: left;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .mobile-category-toggle {
        display: flex;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 20px;
        display: none;
    }
    
    .sidebar.mobile-open {
        display: block;
    }
    
    .products-grid-3,
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .header-main-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        position: relative;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .product-image-wrapper {
        min-height: 150px;
        max-height: 150px;
    }
    
    .product-image {
        max-height: 150px;
        padding: 8px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-card-price {
        font-size: 16px;
    }
    
    .slider-container {
        height: 280px;
        max-height: 280px;
    }
    
    .slider-content {
        padding: 15px 18px;
    }
    
    .slider-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .slider-description {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .slider-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid-3,
    .products-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        height: 220px;
        max-height: 220px;
    }
    
    .slider-content {
        padding: 12px 15px;
    }
    
    .slider-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .slider-description {
        font-size: 12px;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
    }
    
    .slider-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
    
    .viewed-products-grid,
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .viewed-product-item .popular-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .header-top {
        font-size: 12px;
    }
}

/* Single Product Page */
.product-single {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-single-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-single-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.product-single-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.product-single-info {
    display: flex;
    flex-direction: column;
}

.product-single-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-single-excerpt {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Product Rating */
.product-rating {
    margin-bottom: 20px;
    font-size: 16px;
}

.product-rating .rating-value {
    margin-left: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.product-rating .reviews-count {
    margin-left: 5px;
    color: #999;
    font-size: 14px;
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.product-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-discount {
    background: #dc3232;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.product-savings {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Product Purchase Section */
.product-purchase-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-quantity {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-quantity label {
    font-weight: 600;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.product-btn-purchase {
    display: inline-block;
    padding: 15px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    text-align: center;
}

.product-btn-purchase:hover {
    background: #333;
    color: #fff;
}

.product-categories-single {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.product-categories-single a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-categories-single a:hover {
    text-decoration: underline;
}

.product-single-content {
    margin-top: 40px;
    line-height: 1.8;
}

/* Sosyal Paylaşım Butonları */
.product-social-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-social-share h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    color: #fff;
    border: none;
    cursor: pointer;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-facebook {
    background: #1877f2;
}

.social-facebook:hover {
    background: #166fe5;
}

.social-twitter {
    background: #1da1f2;
}

.social-twitter:hover {
    background: #1a91da;
}

.social-linkedin {
    background: #0077b5;
}

.social-linkedin:hover {
    background: #006399;
}

.social-whatsapp {
    background: #25d366;
}

.social-whatsapp:hover {
    background: #20ba5a;
}

.social-email {
    background: #666;
}

.social-email:hover {
    background: #555;
}

.product-single-content h2,
.product-single-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.product-categories {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Related Products Section */
/* "Bu ürünleri gördünüz mü?" Bölümü */
.viewed-products-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.viewed-products-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.viewed-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.viewed-product-item {
    position: relative;
}

.viewed-product-item .popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.viewed-product-item.popular-product .product-card {
    border: 2px solid #ff6600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    position: relative;
}

.related-products-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-products-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .viewed-products-grid,
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .viewed-products-grid,
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

.product-categories a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 10px;
}

.product-categories a:hover {
    text-decoration: underline;
}

/* Archive Header */
.archive-header {
    margin-bottom: 30px;
}

.archive-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.archive-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li {
    margin: 0;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.error-404 p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Search Results */
.search-results .product-card {
    margin-bottom: 0;
}

/* Active category link */
.category-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #fff;
}

/* Sayfa İçerik Stilleri */
.page-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.page-custom-content {
    line-height: 1.8;
    color: var(--text-color);
}

.page-custom-content p {
    margin-bottom: 20px;
}

.page-custom-content h2,
.page-custom-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* İletişim Sayfası Stilleri */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-info-item {
    background: #fff8f0;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.contact-info-item h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .page-content {
        padding: 25px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Ürün Arama Kelimeleri Bölümü */
.product-search-keywords-section {
    margin-top: 40px;
    padding: 25px;
    background: #fff8f0;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.search-keywords-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.search-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-keyword-tag {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.search-keyword-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.search-keyword-tag .keyword-count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.search-keyword-tag:hover .keyword-count {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .product-search-keywords-section {
        padding: 20px;
    }
    
    .search-keywords-title {
        font-size: 16px;
    }
    
    .search-keyword-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Dark Mode Comprehensive Styles */
[data-theme="dark"] .sidebar {
    background: var(--sidebar-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .product-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

[data-theme="dark"] .product-title a {
    color: var(--text-color);
}

[data-theme="dark"] .product-title a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .product-card-price {
    color: var(--text-color);
}

[data-theme="dark"] .product-btn {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .product-btn:hover {
    background: var(--hover-color);
}

[data-theme="dark"] .category-accordion-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .category-accordion-toggle:hover {
    background: var(--input-bg);
}

[data-theme="dark"] .category-link {
    color: var(--text-color);
}

[data-theme="dark"] .category-link:hover,
[data-theme="dark"] .category-link.active {
    color: var(--primary-color);
}

[data-theme="dark"] .autocomplete-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .autocomplete-item:hover,
[data-theme="dark"] .autocomplete-item.selected {
    background: var(--input-bg);
    border-color: var(--primary-color);
}

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .pagination a:hover,
[data-theme="dark"] .pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

[data-theme="dark"] .search-keyword-tag {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .search-keyword-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .product-single {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .product-single-title {
    color: var(--text-color);
}

[data-theme="dark"] .product-price {
    color: var(--text-color);
}

[data-theme="dark"] .product-old-price {
    color: #999;
}

[data-theme="dark"] .product-btn-purchase {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .product-btn-purchase:hover {
    background: var(--hover-color);
}

[data-theme="dark"] .quantity-input {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

[data-theme="dark"] .related-products-title,
[data-theme="dark"] .viewed-products-title {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

[data-theme="dark"] .site-footer {
    background: var(--footer-bg);
    border-top-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .site-footer a {
    color: var(--link-color);
}

[data-theme="dark"] .site-footer a:hover {
    color: var(--link-hover-color);
}

[data-theme="dark"] .slider-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .slider-content {
    color: var(--text-color);
}

[data-theme="dark"] .slider-title {
    color: var(--text-color);
}

[data-theme="dark"] .slider-description {
    color: var(--text-color);
    opacity: 0.9;
}

[data-theme="dark"] .slider-btn {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .slider-btn:hover {
    background: var(--hover-color);
}

/* Dark Mode Mobile Styles */
@media (max-width: 768px) {
    [data-theme="dark"] .mobile-category-toggle {
        background: var(--card-bg);
        color: var(--text-color);
        border-color: var(--border-color);
    }
    
    [data-theme="dark"] .sidebar.mobile-open {
        background: var(--sidebar-bg);
    }
    
    [data-theme="dark"] .mobile-menu-toggle {
        background: var(--card-bg);
        color: var(--text-color);
        border-color: var(--border-color);
    }
}

/* Responsive Single Product */
@media (max-width: 768px) {
    .product-single-header {
        grid-template-columns: 1fr;
    }
    
    .product-single-title {
        font-size: 24px;
    }
    
    .product-single {
        padding: 20px;
    }
}

