/* ============================================
   ÜRÜNLER SAYFASI - ASOS BENZERİ TASARIM
   ============================================ */

.products-page {
    padding: 2rem 0 2rem;
    background: #ffffff;
    min-height: 80vh;
}

.products-page .container {
    padding: 0 5px;
}

.products-layout {
    display: block;
    width: 100%;
}

/* Ana İçerik Alanı */
.products-main {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(74, 85, 104, 0.2);
    background: rgba(74, 85, 104, 0.02);
    padding: 1rem;
    border-radius: 4px;
}

.products-count {
    font-size: 0.95rem;
    color: #4a5568;
}

.products-count span {
    font-weight: 700;
    color: #2c3e50;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 1px dashed rgba(74, 85, 104, 0.4);
    border-radius: 4px;
    font-size: 0.95rem;
    color: #4a5568;
    background: rgba(74, 85, 104, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.sort-select:hover {
    border-color: rgba(74, 85, 104, 0.7);
    background: rgba(74, 85, 104, 0.08);
    color: #2c3e50;
}

.sort-select:focus {
    outline: none;
    border-color: rgba(74, 85, 104, 0.8);
    background: rgba(74, 85, 104, 0.1);
    color: #2c3e50;
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.25rem;
    margin-bottom: 3rem;
}

.product-card-wrapper {
    display: flex;
    flex-direction: column;
}

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 0;
}

/* Hover efekti sadece resim kartına uygulanır, bilgiler etkilenmez */
.product-card-wrapper:hover > .product-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 1:1.25 oranı */
    overflow: hidden;
    background: #ffffff;
}

.product-image-wrapper picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image-wrapper img,
.product-image-wrapper picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    will-change: transform;
}

/* Hover efekti için wrapper */
.product-image-wrapper {
    cursor: crosshair;
}

.product-discount-badge,
.product-featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.product-featured-badge {
    background: #28a745;
    top: auto;
    bottom: 0.75rem;
}

.product-favorite {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    color: #666;
}

.product-favorite:hover {
    background: #ffffff;
    color: #dc3545;
    transform: scale(1.1);
}

.product-favorite.active {
    color: #dc3545;
}

.product-info {
    padding: 0;
    margin-top: 0;
    /* Bilgiler hover efektinden tamamen bağımsız */
    transition: none;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    display: inline;
    text-transform: uppercase;
}

.product-description {
    font-size: 0.95rem;
    font-weight: 400;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: inline;
    text-transform: lowercase;
}

.product-description::before {
    content: ' ';
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-current,
.price-new {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.price-old {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Kategori Başlığı */
.category-title {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.category-title:first-of-type {
    margin-top: 2rem;
}

.category-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-transform: capitalize;
    letter-spacing: 0.05em;
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-products i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Sayfalama */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.pagination-link.active {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem 0.25rem;
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 1rem 0 2rem;
    }
    
    .products-main {
        padding: 0;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .products-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0.25rem;
    }
    
    .product-name {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .price-current,
    .price-new {
        font-size: 1rem;
    }
    
    .products-pagination {
        flex-wrap: wrap;
    }
    
    .pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar ve filtreleme menüsünü tamamen gizle */
.products-sidebar,
aside.products-sidebar,
.mobile-filter-toggle,
[class*="sidebar"],
[class*="filter-group"],
[class*="filter-toggle"],
[class*="filter-content"],
[class*="filter-checkbox"],
[class*="price-range"],
[class*="filter-actions"],
[class*="btn-filter"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Banner'lar - Kategori Şeridinin Altında */

/* Metin Banner 1 - Kategori şeridiyle aynı kalınlıkta */
.text-banner-1 {
    background: transparent;
    margin-top: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    border-top: none;
    min-height: calc(0.75rem * 1.2 * 2 + 1rem); /* 2 satır minimum yükseklik + padding */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    overflow: visible;
}

.text-banner-1 .container {
    padding: 0;
    min-height: 100%;
    max-width: 100%;
    margin: 0;
}

.text-banner-1-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: calc(0.75rem * 1.2 * 2 + 1rem); /* 2 satır minimum yükseklik + padding */
    position: relative;
}

.text-banner-1-left,
.text-banner-1-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    min-height: calc(0.75rem * 1.2 * 2); /* 2 satır minimum yükseklik */
}

.text-banner-1-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.text-banner-1-divider {
    width: 1px;
    min-height: 100%;
    height: 100%;
    background: #ffffff;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    align-self: stretch;
}

/* Metin Banner 2 - 4 katı kalınlıkta */
.text-banner-2 {
    background: #c9fb00;
    margin-top: 0;
    margin-left: -5px;
    margin-right: -5px;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
    min-height: calc(1.5rem * 1.4 * 5); /* 5 satır minimum yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-banner-2 .container {
    padding: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-banner-2-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    padding: 1rem 0;
    margin: 0;
}

.text-banner-2-text {
    color: #000000;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Resim Banner - İkinci metin banner ile aynı boyutta */
.image-banner {
    background: #f0f0f0;
    margin-top: 2rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

.image-banner .container {
    padding: 0;
    height: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.image-banner-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-banner-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: 2px dashed #ccc;
    min-height: 192px;
}

.image-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
