/* Tire Search Page Styles */

.tire-search-page {
    background-color: #1a1a1a;
    min-height: 100vh;
    padding: 60px 0;
}

.search-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 50px;
}

.search-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.search-header p {
    font-size: 18px;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Bar Container */
.search-bar-container {
    margin-bottom: 40px;
}

.main-search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.main-search-input {
    flex: 1;
    padding: 15px 20px;
    background-color: #333;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    width: 100%;
}

.main-search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: #FFDD03;
    color: #000;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #FFC700;
}

/* Quick Filters */
.quick-filters {
    margin-bottom: 30px;
}

.quick-filters-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.quick-filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-filter-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
    background-color: #FFDD03;
    color: #000;
}

/* Advanced Filters */
.advanced-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    color: #FFDD03;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

.filter-select {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.filter-select option {
    background-color: #333;
    color: #fff;
}

.filter-select option:checked {
    background-color: #FFDD03;
    color: #000;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.reset-btn {
    background-color: #333;
    color: #fff;
}

.reset-btn:hover {
    background-color: #444;
}

.filter-apply-btn {
    background-color: #FFDD03;
    color: #000;
}

.filter-apply-btn:hover {
    background-color: #FFC700;
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-count {
    color: #FFDD03;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.active-filters {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background-color: #2a2a2a;
}

.filters-label {
    color: #ccc;
    font-size: 14px;
}

.filter-tag {
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.filter-tag .remove-filter:hover {
    background-color: #ff4444;
    color: #fff;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-label {
    color: #fff;
    font-size: 14px;
}

.sort-select {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.sort-select option {
    background-color: #333;
    color: #fff;
}

.sort-select option:checked {
    background-color: #FFDD03;
    color: #000;
}

.view-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-btn.active {
    background-color: #FFDD03;
    color: #000;
}

/* Tires Grid */
.tires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tire-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tire-card:hover {
    transform: translateY(-5px);
    border-color: #FFDD03;
    box-shadow: 0 10px 30px rgba(255, 221, 3, 0.2);
}

.tire-image {
    height: 200px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tire-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tire-image .no-image {
    color: #666;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.view-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.tire-card:hover .view-details-overlay {
    opacity: 1;
}

.overlay-btn {
    background-color: #FFDD03;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.overlay-btn:hover {
    background-color: #FFC700;
}

.tire-info {
    padding: 20px;
}

.brand-logo {
    margin-bottom: 10px;
}

.brand-name {
    color: #FFDD03;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.tire-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.tire-name a {
    color: inherit;
    text-decoration: none;
}

.tire-name a:hover {
    color: #FFDD03;
}

.tire-specs {
    margin-bottom: 15px;
}

.tire-spec {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-icon {
    color: #FFDD03;
}

.tire-price {
    color: #FFDD03;
    background-color: #2a2a2a !important;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.stock-status {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.tire-action {
    background-color: #FFDD03;
    color: #000;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    justify-content: center;
}

.tire-action:hover {
    background-color: #FFC700;
}

/* Pagination */
.pagination {
    display: inline-flex;
    gap: 10px;
    margin-top: 40px;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a {
    background-color: #333;
    color: #fff;
}

.pagination a:hover {
    background-color: #FFDD03;
    color: #000;
}

.pagination .current-page {
    background-color: #FFDD03;
    color: #000;
    font-weight: 600;
}

.pagination .dots {
    color: #999;
    padding: 10px 5px;
}

.prev-page,
.next-page {
    font-weight: 600;
}

/* Grid View Variations */
.tires-grid.list-view {
    grid-template-columns: 1fr;
}

.tires-grid.list-view .tire-card {
    display: flex;
    height: 200px;
}

.tires-grid.list-view .tire-image {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
}

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

.tires-grid.compact-view {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.tires-grid.compact-view .tire-card {
    height: auto;
}

.tires-grid.compact-view .tire-image {
    height: 120px;
}

.tires-grid.compact-view .tire-info {
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .tires-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-search-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}
