/* ========================================
   PAGES STYLES (Select Model & Products)
   ======================================== */

/* ========================================
   SELECT MODEL PAGE
   ======================================== */

.select-model-section {
    background: #fff;
}

.section-title-wrapper {
    margin-bottom: 40px;
}

.section-title-wrapper .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

/* Vehicle Models Grid */
.vehicle-models-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.vehicle-model-card {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px 20px 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-model-card:hover {
    border-color: #C17A5C;
    background: #FFF7F3;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.vehicle-model-card .model-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-model-card .model-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.vehicle-model-card:hover .model-logo img {
    filter: grayscale(0%);
}

.vehicle-model-card h6 {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    text-align: center;
}

/* ========================================
   PRODUCTS PAGE
   ======================================== */

.products-section {
    background: #fff;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.products-header .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.products-header .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Box */
.search-box-wrapper {
    position: relative;
    width: 350px;
}

.search-box-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9CA3AF;
}

.search-box-wrapper input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 1px solid #E5E7EB;
    border-radius: 11px;
    font-size: 14px;
    color: #1F2937;
    transition: all 0.3s ease;
    height: 46px;
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: #C17A5C;
    box-shadow: 0 0 0 3px rgba(193, 122, 92, 0.1);
}

.search-box-wrapper input::placeholder {
    color: #9CA3AF;
}

/* Filter Button */
.filter-btn {
    padding: 12px 24px;
    background: #C17A5C;
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #A86B50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 122, 92, 0.3);
}

.filter-btn i {
    font-size: 16px;
}

/* Vehicle Brands Slider */
.vehicle-brands-slider-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.vehicle-brands-slider-wrapper .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.vehicle-brands-slider-wrapper .slider-arrow:hover {
    background: #C17A5C;
    border-color: #C17A5C;
    color: #fff;
}

.vehicle-brands-slider-wrapper .slider-arrow i {
    font-size: 20px;
    color: #6B7280;
    transition: all 0.3s ease;
}

.vehicle-brands-slider-wrapper .slider-arrow:hover i {
    color: #fff;
}

.vehicle-brands-slider-wrapper .prev-arrow {
    left: -20px;
}

.vehicle-brands-slider-wrapper .next-arrow {
    right: -20px;
}

.vehicle-brands-slider {
    padding: 10px 0;
}

.brand-item {
    min-width: 100px !important;
    height: 70px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 15px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.brand-item:hover,
.brand-item.active {
    border-color: #C17A5C;
    background: #FFF7F3;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #C17A5C;
    border-radius: 10px;
}

.category-tab {
    padding: 12px 24px;
    background: #F9FAFB;
    color: #6B7280;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: #C17A5C;
    color: #C17A5C;
}

.category-tab.active {
    background: #1F2937;
    color: #fff;
    border-color: #1F2937;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Product Card - Same as Home Page */
.products-grid .product-card-wrapper {
    padding: 0;
}

.products-grid .product-card {
    /* Styles are inherited from custom-style.css */
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1400px) {
    .vehicle-models-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .vehicle-models-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .vehicle-models-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-header .header-actions {
        width: 100%;
    }
    
    .search-box-wrapper {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .vehicle-models-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .vehicle-model-card {
        padding: 20px 15px;
    }
    
    .vehicle-model-card .model-logo {
        width: 60px;
        height: 60px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-header .header-actions {
        flex-direction: column;
    }
    
    .search-box-wrapper {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .vehicle-models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   STORES LISTING PAGE
   ======================================== */

.stores-filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn-dropdown {
    padding: 12px 20px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn-dropdown:hover,
.filter-btn-dropdown.active {
    border-color: #C17A5C;
    background: #FFF7F3;
    color: #C17A5C;
}

.filter-btn-dropdown i {
    font-size: 16px;
}

.stores-section .stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.store-card {
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.store-card:hover {
    border-color: #C17A5C;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.store-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stores-section .store-placeholder {
    width: 100%;
    height: 100%;
    background: #E8F5FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stores-section .store-placeholder i {
    font-size: 48px;
    color: #6B9BD1;
}

.store-info {
    flex: 1;
}

.store-name {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 10px 0;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.store-rating i {
    color: #FFA500;
    font-size: 16px;
}

.store-rating span {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
}

.store-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #6B7280;
    font-size: 13px;
}

.store-location i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.store-link-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #C17A5C;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.store-link-btn:hover {
    background: #A86B50;
    transform: scale(1.1);
}

/* ========================================
   PRODUCT DETAILS PAGE
   ======================================== */

.product-images-wrapper {
    position: sticky;
    top: 100px;
}

.main-product-image {
    width: 100%;
    height: 500px;
    background: #F9FAFB;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 40px;
}

.main-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.thumbnail-item {
    width: 100px;
    height: 100px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #C17A5C;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-details-info {
    padding-left: 30px;
}

.product-store-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B9BD1;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-store-location i {
    font-size: 18px;
}

.product-details-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.product-price-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.product-price-large {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price-large .currency {
    font-size: 16px;
    color: #9CA3AF;
    font-weight: 500;
}

.product-price-large .price {
    font-size: 36px;
    font-weight: 700;
    color: #C17A5C;
}

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

.product-rating-badge i {
    color: #FFA500;
    font-size: 18px;
}

.product-rating-badge span {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.product-sold {
    color: #6B7280;
    font-size: 14px;
}

.product-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F9FAFB;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.badge-label {
    font-size: 13px;
    font-weight: 600;
    color: #C17A5C;
}

.brand-logo-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.8;
    margin: 0;
}

.product-actions {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.quantity-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 10px;
}

.quantity-control-large {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    padding: 8px 20px;
}

.quantity-control-large input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.quantity-control-large .qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #C17A5C;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-control-large .qty-btn:hover {
    background: #A86B50;
}

.add-to-cart-large {
    flex: 1;
    padding: 18px 30px;
    background: #C17A5C;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-large:hover {
    background: #A86B50;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 122, 92, 0.3);
}

.add-to-cart-large i {
    font-size: 20px;
}

.cart-price {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
}

/* Added to Cart Toast */
.added-to-cart-toast {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: #E8F5FF;
    border: 2px solid #6B9BD1;
    border-radius: 12px;
    padding: 15px 20px;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-image {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
}

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

.toast-info h6 {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 5px 0;
}

.toast-info p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.toast-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B9BD1;
    font-size: 12px;
    margin-left: auto;
}

/* ========================================
   STORE PRODUCTS PAGE
   ======================================== */

.store-header-banner {
    position: relative;
    height: 180px;
    background: url('/store-banner.jpg') center/cover;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.store-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.store-header-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcrumb-white {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.breadcrumb-white a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.breadcrumb-white span {
    color: #fff;
}

.store-header-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
}

.store-header-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.store-location-white,
.store-rating-white {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.store-rating-white i {
    color: #FFA500;
}

.reviews-count {
    opacity: 0.8;
}

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

.results-header h6 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.sort-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    border-color: #C17A5C;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 25px;
    position: sticky;
    top: 100px;
}

.mobile-filter-toggle {
    display: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E5E7EB;
}

.filter-header h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.reset-filter {
    color: #C17A5C;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E5E7EB;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 15px 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox,
.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #6B7280;
}

.filter-checkbox input,
.filter-radio input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox.checked,
.filter-radio.checked {
    color: #1F2937;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars i {
    font-size: 14px;
    color: #FFA500;
}

.price-range-slider {
    margin-bottom: 15px;
}

.price-slider {
    width: 100%;
    margin-bottom: 10px;
}

.price-range-values {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 15px;
}

.apply-price-btn {
    width: 100%;
    padding: 10px;
    background: #C17A5C;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-price-btn:hover {
    background: #A86B50;
}

/* Category Tabs Horizontal */
.category-tabs-horizontal {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-tab-h {
    padding: 10px 20px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab-h:hover,
.category-tab-h.active {
    border-color: #C17A5C;
    background: #FFF7F3;
    color: #C17A5C;
}

.category-tab-h i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 991px) {
    .stores-section .stores-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: #C17A5C;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .store-card {
        flex-direction: column;
        text-align: center;
    }
    
    .store-image {
        width: 100%;
        height: 200px;
    }
    
    .product-details-info {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .store-header-content h1 {
        font-size: 32px;
    }
}
