/* Sepete Git butonu animasyonu (customize ile tutarlı) */
.cart-btn-animation {
    animation: pulseAndShake 1.5s ease;
}

@keyframes pulseAndShake {
    0% {
        transform: scale(1);
        background-color: var(--accent);
    }

    20% {
        transform: scale(1.05);
        background-color: var(--accent-secondary);
    }

    40% {
        transform: scale(1) translateX(-3px);
        background-color: var(--accent-secondary);
    }

    60% {
        transform: scale(1) translateX(3px);
        background-color: var(--accent-secondary);
    }

    80% {
        transform: scale(1.03) translateX(-2px);
        background-color: var(--accent);
    }

    100% {
        transform: scale(1) translateX(0);
        background-color: var(--accent);
    }
}

/* ===== PRODUCTS PAGE - COMPLETE STYLES ===== */

/* CSS Variables */
:root {
    --primary: #1D1D1F;
    --secondary: #FFFFFF;
    --background-alt: #F5F5F7;
    --accent: #0071E3;
    --accent-secondary: #30B34A;
    --text: #1D1D1F;
    --text-secondary: #86868B;
    --subtle: #E8E8ED;
    --border: #D2D2D7;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --spacing: 24px;
    --header-height: 60px;
    --radius: 12px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 69px;
    /* Desktop'ta sadece site-top-bar (69px) */
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
/* ===== PRODUCTS PAGE HEADER OVERRIDES ===== */

/* 1. Hide Standard Header Search (Standard header uses this container) */
html body .header-container>.search-container {
    display: none !important;
}

/* 2. Single-Row Header Hack: Overlay 'header' on 'site-top-bar' */
/* We only apply this heavily on Desktop where the layout is horizontal */
@media (min-width: 901px) {

    /* Ensure container is fixed and on top */
    html body .header-container {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 10001;
        /* High z-index as requested */
    }

    /* Make the nav bar transparent and overlay it */
    /* Accessing the <header> element inside the container */
    html body .header-container header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 69px !important;
        /* Match site-top-bar height */
        background: transparent !important;
        border: none !important;
        pointer-events: none;
        /* Let clicks pass to top bar elements (like logo/actions) */
        justify-content: center;
        /* Center the menu */
        padding: 0;
        display: flex !important;
        /* Force display flex to override legacy hidden if any */
    }

    /* Enable clicks on the specific nav items and header actions (language switcher, cart, etc.) */
    html body .header-container .main-nav,
    html body .header-container .nav-links,
    html body .header-container .header-actions {
        pointer-events: auto;
        height: 100%;
        align-items: center;
        display: flex;
    }

    /* Center the nav in the available space */
    html body .header-container .main-nav {
        margin: 0 auto;
        width: auto;
    }

    /* Adjust spacing */
    html body .header-container .nav-links {
        gap: 36px;
    }
}

/* Mobile adjustments */
@media (max-width: 900px) {
    html body .header-container>.search-container {
        display: none !important;
    }

    /* Mobile header logic in header.css usually handles generic behavior, 
       we just trust header.css for mobile menu drawer functionality. */
}



/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 60px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
    /* Header's bottom matches top of this */
    margin-bottom: 0;
}

.promo-content {
    width: 100%;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    animation: scroll-left 45s linear infinite;
    font-weight: 500;
    font-size: 16px;
}

.scrolling-text span {
    margin-right: 100px;
    display: inline-block;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Search Bar Container */
.search-bar-container {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.page-search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-search-container .search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.page-search-container .search-input:focus {
    border-color: #007bff;
}

.page-search-container .search-button {
    background: #007bff;
    border: 2px solid transparent;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.page-search-container .search-button:hover {
    background: #0056b3;
}

.mobile-filter-sort-bar {
    display: none;
}

.mobile-toggle-btn {
    border: none;
    background: transparent;
}

.mobile-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 14990;
}

.mobile-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-panel-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
}

body.panel-open {
    overflow: hidden;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.visible {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    font-size: 15px;
}

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

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f8f9fa;
}

.suggestion-item.active {
    background-color: #007bff;
    color: white;
}

.suggestion-icon {
    font-size: 14px;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
}

.suggestion-category {
    font-size: 12px;
    color: #666;
    opacity: 0.8;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text);
}

.language-button:hover {
    color: var(--accent);
}

.language-button .flag {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    object-fit: contain;
    vertical-align: middle;
}

.language-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility 0s linear var(--transition);
    border: 1px solid var(--border);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--secondary);
    color: var(--text);
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.language-option .flag {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    object-fit: contain;
    vertical-align: middle;
}

.language-option:hover {
    background: var(--background-alt);
}

/* CTA Button */
.cta-button {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #0077ED;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 113, 227, 0.2);
}

header .cta-button {
    position: relative;
    padding: 10px 20px;
    background-color: #3776DD;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    overflow: visible;
}

header .cta-button:hover {
    background-color: #2a66bf;
}

.cart-item-count {
    position: absolute;
    bottom: -6px;
    left: -13px;
    background-color: var(--accent-secondary);
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: none;
    /* Varsayılan olarak gizli, sepette ürün varsa cart-manager.js ile gösterilir */
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
    border: 2px solid white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    flex-shrink: 0;
    line-height: 1;
}

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
}

.breadcrumb ol li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #666;
}

.breadcrumb ol li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb ol li a:hover {
    color: #0056b3;
}

.breadcrumb ol li span {
    color: #666;
}

/* Main Layout */
.page-content-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    flex: 0 0 280px;
    width: 280px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 89px;
    /* Header (69px) + küçük margin (20px) = 89px - header'a yakın */
    align-self: flex-start;
    z-index: 100;
    max-height: calc(100vh - 109px);
    /* Viewport height - top offset - margin */
    overflow-y: auto;
}

/* Desktop'ta sidebar'ın header altında kalması için */
@media (min-width: 901px) {
    .sidebar {
        top: 89px;
        /* Header'a yakın */
    }
}

.sidebar h3 {
    font-size: 1.6em;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 12px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.sidebar ul li a {
    display: block;
    padding: 12px 8px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #007bff;
    color: #fff;
    transform: translateX(5px);
}

/* Filter Sections */
.filter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Price Filter */
.price-filter {
    position: relative;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-bottom: 10px;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider:hover {
    opacity: 1;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #007bff;
    font-size: 14px;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.3s ease;
}

.checkbox-group label:hover {
    color: #007bff;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #007bff;
}

/* Color Filters */
.color-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-option:hover,
.color-option.selected {
    border-color: #007bff;
    transform: scale(1.1);
}

/* Clear Filters Button */
.clear-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Main Content */
.products-main-content {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.products-header .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.product-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.active-filter-pills {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.active-filter-pills.show {
    display: flex;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(55, 118, 221, 0.12);
    color: #1f418d;
    font-size: 14px;
    border: 1px solid rgba(55, 118, 221, 0.25);
}

.filter-pill .pill-remove {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-pill .pill-remove:hover {
    color: #0f2f7a;
}

/* Products Controls */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Desktop'ta yapışkan değil - sayfa ile birlikte kaybolur */
    position: relative;
    z-index: 101;
    margin-top: 0;
    margin-bottom: 30px;
}

.sorting-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sorting-controls label {
    font-weight: 600;
    color: #333;
}

.sorting-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.view-controls {
    display: flex;
    gap: 12px;
}

.view-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #dce2ea;
    background: #fbfcff;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
}

.view-btn i {
    font-size: 18px;
}

.view-label {
    font-size: 14px;
    font-weight: 600;
}

.view-label {
    display: none;
}

.view-btn.active,
.view-btn:hover {
    background: rgba(0, 123, 255, 0.15);
    color: #0b5ed7;
    border-color: #007bff;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.18);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    margin-bottom: 40px;
    min-height: 400px;
    position: relative;
}

.product-grid.list-view {
    grid-template-columns: 1fr;
    gap: 15px;
}

/* No Products Message */
.no-products-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px dashed #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.no-products-message h3 {
    color: #333;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.no-products-message p {
    color: #666;
    font-size: 1em;
    margin: 0 0 25px 0;
    line-height: 1.6;
    max-width: 400px;
}

.no-products-message .cta-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.no-products-message .cta-button:hover {
    background: #0056b3;
}

/* Error Message */
.error-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px dashed #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.error-message h3 {
    color: #333;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.error-message p {
    color: #666;
    font-size: 1em;
    margin: 0 0 25px 0;
    line-height: 1.6;
    max-width: 400px;
}

.error-message .cta-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-message .cta-button:hover {
    background: #0056b3;
}

/* Loading Skeleton */
.loading-skeleton {
    display: contents;
}

.skeleton-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Product Cards */
.product-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

/* Ürün kartı animasyonu */
.product-card.animate-in {
    /* Animasyon süresi eski haline (0.8s) getirildi; tetiklenme gecikmeleri JS tarafında kısaltıldı */
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* İlk yüklemede daha belirgin sıralı animasyon için */
.product-card:not(.animate-in) {
    opacity: 0;
    transform: translateY(30px);
}

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

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.product-card-content {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info {
    flex-grow: 1;
}

.product-card .product-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-card .product-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-card .product-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #007bff;
    margin: 15px 0;
}

.product-card .product-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.product-card .cta-button {
    flex-grow: 1;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.product-card .cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.product-card .quick-action-btns {
    display: flex;
    gap: 8px;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* List View */
.product-grid.list-view .product-card {
    flex-direction: row;
    padding: 20px;
    align-items: center;
    gap: 20px;
}

.product-grid.list-view .product-card img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-grid.list-view .product-card-content {
    flex-direction: row;
    flex: 1;
    padding: 0;
    justify-content: space-between;
    align-items: center;
}

.product-grid.list-view .product-info {
    flex-grow: 0;
}

.product-grid.list-view .product-description {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 0;
    height: auto;
}

.product-grid.list-view .product-price {
    margin: 0;
    text-align: center;
}

.product-grid.list-view .product-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 150px;
}

.product-grid.list-view .cta-button {
    width: 100%;
    text-align: center;
}

.product-grid.list-view .quick-action-btns {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-btn {
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

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

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* Infinite Scroll Loader */
.infinite-scroll-loader {
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    min-height: 100px;
    /* Observer'ın tetiklenmesi için minimum yükseklik */
}

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid var(--subtle);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-loader p {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-number.active,
.page-number:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Quick View Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.modal-body {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.modal-image {
    flex: 1;
}

.modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-info {
    flex: 1;
}

.modal-info h3 {
    font-size: 1.8em;
    color: #333;
    margin: 0 0 15px 0;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.modal-price {
    font-size: 1.5em;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 25px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-actions button,
.modal-actions a {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn {
    background: #007bff;
    color: #fff;
    flex: 1;
}

.add-to-cart-btn:hover {
    background: #0056b3;
}

.view-details-btn {
    background: var(--accent);
    color: #fff;
}

.view-details-btn:hover {
    background: #0056b3;
}

/* Cart Panel */
.cart-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: var(--secondary);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    padding: 24px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
}

.cart-panel.active {
    display: block;
    transform: translateX(0);
}

.cart-panel .close-cart {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.cart-panel .close-cart:hover {
    color: var(--accent);
}

.cart-panel h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--primary);
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
}

.cart-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-total {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.order-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.order-btn:hover {
    background: #0077ED;
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: var(--background-alt);
    color: var(--text);
    padding: 60px var(--spacing);
    margin-top: auto;
    font-size: 14px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .page-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        flex: none;
        position: static;
        width: 100%;
    }

    .products-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .search-container .search-input {
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 60px;
        /* Mobilde sadece site-top-bar yüksekliği */
    }

    .promo-banner {
        height: 50px;
    }

    .scrolling-text {
        font-size: 14px;
        animation: scroll-left 35s linear infinite;
    }

    .scrolling-text span {
        margin-right: 80px;
    }

    header {
        display: block;
        position: relative;
        height: 0;
        padding: 0;
        overflow: visible;
    }

    .main-nav {
        position: static;
        height: 0;
        overflow: visible;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 10000 !important;
        background-color: var(--secondary) !important;
        padding-top: 80px;
        align-items: center;
        overflow-y: auto;
        display: none !important;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        margin: 8px 0;
        font-size: 18px;
        padding: 12px 20px;
        width: auto;
        min-width: 200px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .site-top-bar {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        height: auto;
        /* Removed min-height: 60px to allow header shrinking on scroll */
    }

    /* Nav placeholder mobilde düzeni bozmadan overlay'e hizmet etsin */
    .site-top-bar .main-nav {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
    }

    .hamburger {
        order: 1;
        display: block;
        flex-shrink: 0;
        width: 40px;
    }

    .logo-link {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .header-actions {
        order: 3;
        display: flex;
        align-items: center;
        gap: 0;
        flex-shrink: 0;
        width: auto;
        justify-content: flex-end;
    }

    .mobile-filter-sort-bar {
        display: flex;
        gap: 12px;
        padding: 12px 20px;
        background: #fff;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 60px;
        z-index: 500;
    }

    /* Adjust filter bar position when header is scrolled/shrunk */
    .header-container.scrolled~main .mobile-filter-sort-bar,
    body.scrolled .mobile-filter-sort-bar {
        top: 46px;
        /* Matches scrolled header height */
    }

    .mobile-toggle-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        border: 1px solid #ddd;
        border-radius: 999px;
        background: #fff;
        font-size: 15px;
        font-weight: 500;
        color: var(--text);
        cursor: pointer;
    }

    .mobile-toggle-btn i {
        font-size: 16px;
    }

    .sidebar {
        display: none;
    }

    .sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        padding: 24px 20px 120px;
        z-index: 15000;
    }

    .sidebar.active h3 {
        margin-top: 32px;
    }

    .sidebar .mobile-panel-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 16px;
    }

    .sidebar .clear-filters-btn {
        position: sticky;
        bottom: 24px;
        width: 100%;
        border-radius: 999px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        background: linear-gradient(120deg, #00c6ff, #0072ff);
        color: #fff;
        border: none;
    }

    .products-controls {
        display: none;
    }

    .products-controls.active {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 24px 20px 40px;
        z-index: 15000;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    }

    .products-controls .mobile-panel-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 16px;
    }

    .products-controls.active .sorting-controls {
        margin-top: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .products-controls.active .view-controls {
        justify-content: center;
        margin-top: 16px;
        gap: 16px;
        width: 90%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .products-controls.active .sorting-controls select {
        width: 100%;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 18px;
        background: #f8f8fb;
        border: 1px solid #dcdce5;
    }

    .products-controls.active .sorting-controls label {
        font-size: 15px;
        color: #555;
    }

    .language-switcher {
        order: 1;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .region-switcher {
        order: 0;
        margin-right: 0 !important;
        padding-right: 8px !important;
        display: flex;
        align-items: center;
    }

    .region-trigger {
        border-right: 1px solid #ddd !important;
        padding-right: 8px !important;
        margin-right: 8px !important;
    }

    .language-button .language-name {
        display: none;
    }

    .language-button .flag {
        margin-right: 0;
    }

    /* Sepet butonunu mobilde en sağda ikon haline getir */
    #goToCartBtn {
        order: 99;
        padding: 8px 12px;
        min-width: auto;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-left: 8px;
    }

    #goToCartBtn span:not(.cart-item-count) {
        display: none;
    }

    #goToCartBtn::before {
        content: '\f07a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        display: block;
    }

    .cart-panel {
        width: 100%;
        right: -100%;
        transition: all 0.3s ease;
    }

    .cart-panel.active {
        right: 0;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 15px;
    }

    .search-container .search-input {
        max-width: 300px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-container .search-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

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

    .modal-body {
        flex-direction: column;
        padding: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-search-container {
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }

    .search-container .search-input {
        flex: 1;
        max-width: none;
        margin-left: 0;
    }

    .search-container .search-button {
        margin-left: 0;
        width: auto;
        align-self: stretch;
    }
}

@media (max-width: 576px) {
    .promo-banner {
        height: 45px;
    }

    .scrolling-text {
        font-size: 13px;
        animation: scroll-left 30s linear infinite;
    }

    .scrolling-text span {
        margin-right: 60px;
    }

    .sidebar {
        padding: 20px 15px;
    }

    .filter-section h4 {
        font-size: 1.1em;
    }

    .no-products-message,
    .error-message {
        min-height: 300px;
        padding: 30px 15px;
    }

    .no-products-message h3,
    .error-message h3 {
        font-size: 1.3em;
    }

    .no-products-message p,
    .error-message p {
        font-size: 0.9em;
        max-width: 100%;
    }

    .search-container .search-input {
        padding: 8px 12px;
        font-size: 14px;
    }

    .search-container .search-button {
        padding: 8px 16px;
        font-size: 14px;
        width: auto;
    }
}

/* Button Success State */
.button-success {
    background-color: #28a745 !important;
    /* Yeşil renk, important gerekebilir */
    color: white !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
}