:root {
    --primary-color: #8B4513;
    --secondary-color: #A0522D;
    --accent-color: #D2691E;
    --light-color: #F5F5DC;
    --dark-color: #333;
}

.products-page {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.page-header {
    background-color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    flex: 1;
    min-width: 300px;
}

.page-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.breadcrumb {
    color: #777;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Arama Kutusu Stilleri */
.search-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    min-width: 200px;
}

.search-input:focus {
    border-color: var(--accent-color);
}

.search-btn {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

.search-results-info {
    margin-top: 10px;
    color: #777;
    font-size: 14px;
    text-align: right;
}

.search-keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.products-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Filtreler Bölümü */
.filters-sidebar {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

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

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

.category-list {
    list-style: none;
    padding-left: 0;
}

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

.category-list>li>a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 5px;
}

.category-list>li>a:hover {
    background-color: #f5f5f5;
    color: var(--accent-color);
}

.category-list>li>a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.subcategory-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    display: none;
}

.subcategory-list.show {
    display: block;
}

.subcategory-list li {
    margin-bottom: 5px;
}

.subcategory-list a {
    color: #777;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s;
}

.subcategory-list a:hover {
    background-color: #f9f9f9;
    color: var(--accent-color);
}

.subcategory-list a.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(139, 69, 19, 0.1);
}

.category-count {
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #777;
}

.category-list>li>a.active .category-count {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.category-toggle {
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-toggle.rotated {
    transform: rotate(180deg);
}

.price-filter {
    margin-top: 15px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.filter-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input {
    width: auto;
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Ürün Listesi Bölümü */
.products-main {
    display: flex;
    flex-direction: column;
}

.products-toolbar {
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: #555;
    font-size: 14px;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    color: #777;
    transition: all 0.3s;
}

.view-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.product-badge.discount {
    background-color: #ff5252;
}

.product-badge.featured {
    background-color: #ff9800;
}

.product-badge.new {
    background-color: #4CAF50;
}

.product-badge.bestseller {
    background-color: #2196F3;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
    line-height: 1.4;
}

.product-price {
    min-height: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.price-inquiry {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    font-style: italic;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.product-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Ürün kartında iki buton yan yana (İncele + Fiyat Sor) — eşit genişlik ve hiza */
.product-actions .btn-primary,
.product-actions .btn-inquiry {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 9px 8px;
    font-size: 14px;
    white-space: nowrap;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.btn-inquiry {
    background-color: #fff;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-products i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-products p {
    color: #777;
    margin-bottom: 20px;
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-item {
    display: inline-flex;
}

.page-link {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
}

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

    .filters-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .page-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .header-left {
        text-align: center;
    }

    .search-container {
        max-width: 100%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .view-options {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .search-input {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .price-inputs {
        flex-direction: column;
    }

    .search-results-info {
        text-align: center;
    }
}

/* Liste Görünümü */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    height: 200px;
}

.products-grid.list-view .product-image-container {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid.list-view .product-actions {
    border-top: none;
    padding-top: 0;
    margin-top: auto;
}