/* Collection List View Styles - Tüm Kategoriler İçin Ortak Tasarım */

/* Collection Page Base */
.collection-list-page {
    background: #f9fafb;
    min-height: 100vh;
    padding: 30px 0 60px;
}

.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
}

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

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #d1d5db;
}

.page-header {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.page-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.collection-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Fixed Filter Sidebar */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-sidebar h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

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

.filter-checkbox, .filter-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.filter-checkbox:hover, .filter-radio:hover {
    background: #f3f4f6;
}

.filter-checkbox input[type="checkbox"],
.filter-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #2563eb;
}

.filter-checkbox label,
.filter-radio label {
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    flex: 1;
}

.filter-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.filter-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
}

.filter-button:hover {
    background: #1d4ed8;
}

.clear-filters {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    text-align: center;
    text-decoration: none;
    display: block;
}

.clear-filters:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Filter Select Group (for tire size filters) */
.filter-select-group {
    margin-bottom: 12px;
}

.filter-select-group:last-child {
    margin-bottom: 0;
}

.filter-select-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.price-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.price-separator {
    color: #9ca3af;
    font-weight: 500;
}

.price-range-info {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* Filter Actions */
.filter-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.filter-actions .filter-button {
    margin-top: 0;
}

.filter-actions .clear-filters {
    margin-top: 8px;
}

/* Product List View */
.product-list-container {
    flex: 1;
    min-width: 0;
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-count {
    font-size: 14px;
    color: #6b7280;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Product Row */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-row {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 24px;
    transition: box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.product-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #d1d5db;
}

.product-image-container {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
    display: flex;
    flex-direction: column;
}

.product-image-container > a:first-of-type {
    display: block !important;
    width: 100% !important;
    height: 160px !important;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none;
    flex-shrink: 0;
}

.product-image-container img,
.product-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.view-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 0 0 8px 8px;
    transition: background 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.view-product-btn:hover {
    background: #1e40af;
}

.view-product-btn:active {
    transform: scale(0.98);
}

.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible !important;
    height: auto !important;
}

.product-name,
.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    height: auto !important;
    white-space: normal !important;
    word-break: break-word !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
}

.product-name a,
.product-title a {
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    width: 100%;
}

.product-name a:hover,
.product-title a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec-item strong {
    color: #374151;
    font-weight: 600;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 14px;
}

.star.empty {
    color: #d1d5db;
}

.rating-text {
    font-size: 13px;
    color: #6b7280;
}

.product-features {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.feature-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.feature-icon:hover {
    color: #2563eb;
}

.feature-icon i {
    color: #10b981;
    font-size: 16px;
}

.feature-icon.favorite i {
    color: #ef4444;
}

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.action-icon:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.action-icon.favorite.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 180px;
}

.product-price-section {
    text-align: right;
    margin-bottom: 16px;
}

.price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.price-currency {
    font-size: 20px;
    font-weight: 600;
}

.add-to-cart-btn {
    padding: 14px 32px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.add-to-cart-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f3f4f6;
    border-color: #2563eb;
    color: #2563eb;
}

.pagination .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

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

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.mobile-filter-toggle:hover {
    background: #1d4ed8;
}

.mobile-filter-toggle i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .collection-layout {
        flex-direction: column;
    }
    
    .mobile-filter-toggle {
        display: flex;
    }
    
    .filter-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .filter-sidebar.hidden-mobile {
        display: none;
    }
    
    .product-row {
        flex-direction: column;
    }
    
    .product-image-container {
        width: 100%;
        height: 300px;
    }
    
    .product-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .product-price-section {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .product-list-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .product-features {
        flex-direction: column;
        gap: 8px;
    }
}

