/* ============================================
   Ehveniser - Ürün Listeleme Sayfa Stilleri
   ============================================ */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--secondary-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item {
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.breadcrumb-item.active {
    color: var(--text-white);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--text-gray);
}

/* Products Page Layout */
.products-page {
    padding: 30px 0 60px;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.filter-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}

.filter-card h3 i {
    color: var(--accent-orange);
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.category-list li a i {
    width: 20px;
    text-align: center;
}

.category-list li a .count {
    margin-left: auto;
    background: var(--search-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.category-list li a:hover,
.category-list li a.active {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.price-range input {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 4px);
    padding: 10px 10px;
    background: var(--search-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 13px;
    box-sizing: border-box;
}

.price-range input:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.price-range span {
    color: var(--text-gray);
    flex-shrink: 0;
    font-size: 12px;
}

.btn-filter {
    width: 100%;
    padding: 10px;
    background: var(--accent-orange);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: var(--accent-orange-hover);
}

.clear-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    color: var(--text-gray);
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    color: #e53935;
    background: rgba(229, 57, 53, 0.1);
}

/* Products Content */
.products-content {
    min-height: 500px;
}

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

.results-count {
    font-size: 14px;
    color: var(--text-gray);
}

.results-count strong {
    color: var(--accent-orange);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 13px;
    color: var(--text-gray);
}

.sort-options select {
    padding: 10px 15px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 13px;
    cursor: pointer;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--accent-orange);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* Product Card */
.product-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-orange);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.featured {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}

.product-badge.sale {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
}

.product-image {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--search-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-content {
    padding: 18px;
}

.product-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent-orange);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-content h4 a {
    color: var(--text-white);
}

.product-content h4 a:hover {
    color: var(--accent-orange);
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-seller img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.product-seller span {
    font-size: 12px;
    color: var(--text-gray);
}

.product-seller .verified {
    color: var(--accent-green);
    font-size: 12px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-rating i {
    font-size: 11px;
    color: var(--border-color);
}

.product-rating i.active {
    color: #ffc107;
}

.product-rating span {
    font-size: 11px;
    color: var(--text-gray);
    margin-left: 5px;
}

.product-stock {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-stock.in-stock {
    background: rgba(0, 200, 83, 0.15);
    color: var(--accent-green);
}

.product-stock.out-stock {
    background: rgba(229, 57, 53, 0.15);
    color: #e53935;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price del {
    font-size: 12px;
    color: var(--text-gray);
}

.product-price span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-orange);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-products i {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-orange);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination li a:hover,
.pagination li.active a {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-layout {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .filter-card {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .filter-card h3 {
        grid-column: 1 / -1;
    }
    
    .filter-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .clear-filters {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
}
