/* Shop Page Specific Styles */

/* Shop Hero Section */
.shop-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/other/banner6.png') no-repeat center center/cover;
    color: var(--accent);
    padding: 150px 0;
    text-align: center;
    margin-top: 70px;
}

.shop-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.shop-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Shop Layout */
.shop-content {
    padding: 50px 0;
    background-color: var(--light);
}

.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Shop Sidebar */
.shop-sidebar {
    background-color: var(--accent);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--secondary);
}

.filter-section h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text);
}

.clear-filters-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--secondary);
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.filter-header h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.toggle-icon {
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.filter-group.active .toggle-icon {
    transform: rotate(180deg);
}

.filter-content {
    display: none;
}

.filter-group.active .filter-content {
    display: block;
}

/* Price Range Filter */
.price-range {
    margin-top: 15px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text);
}

.price-input input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--secondary);
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-slider {
    position: relative;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
}

.slider-track {
    position: absolute;
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
    left: 0%;
    right: 0%;
}

.range-min,
.range-max {
    position: absolute;
    top: -5px;
    height: 15px;
    width: 15px;
    background-color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.range-min::-webkit-slider-thumb,
.range-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    width: 15px;
    background-color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.range-min {
    left: 0%;
}

.range-max {
    left: 100%;
}

.apply-price-btn {
    width: 100%;
    padding: 8px 15px;
    background-color: var(--primary);
    color: var(--accent);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Checkbox Filter */
.checkbox-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--accent);
    border: 1px solid var(--secondary);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Search Filter */
.search-filter {
    margin-bottom: 15px;
}

.filter-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--secondary);
    border-radius: 4px;
    font-size: 0.9rem;
}

.brand-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.view-more-brands {
    width: 100%;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.view-more-brands:hover {
    background-color: var(--primary);
    color: var(--accent);
}

/* Color Filter */
.color-filter {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-option:hover,
.color-option.active {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Shop Main Area */
.shop-main {
    padding: 0 10px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-count p {
    margin: 0;
    color: var(--text);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 0.9rem;
    color: var(--text);
}

#sort-by {
    padding: 8px 15px;
    border: 1px solid var(--secondary);
    border-radius: 4px;
    background-color: var(--accent);
    color: var(--text);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.active-filter {
    display: flex;
    align-items: center;
    background-color: var(--primary);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.active-filter button {
    background: none;
    border: none;
    color: var(--accent);
    margin-left: 5px;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--accent);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: var(--primary);
    color: var(--accent);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.brand {
    color: var(--secondary);
    font-weight: 400;
    margin-bottom: 10px;
    display: block;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-left: 8px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 15px;
    background-color: var(--accent);
    border: 1px solid var(--secondary);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary);
    color: var(--accent);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-btn.active {
    background-color: var(--primary);
    color: var(--accent);
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .shop-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .color-filter {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .shop-hero {
        padding: 100px 0;
    }
    
    .shop-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .price-inputs {
        flex-direction: column;
    }
    
    .color-filter {
        grid-template-columns: repeat(3, 1fr);
    }
}