@import url(/css/config.css);
/* product.css */
.product-page {
    padding: 2rem 0;
    padding-top: 7rem;
}

.product-page .container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.section-title h2{
    font-family: var(--heading);
    font-size: 30px;
}
.product-sidebar {
    flex: 0 0 250px;
    height: fit-content;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Filter Toggle Button */
.filter-toggle {
    display: none;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
    text-align: left;
}

.filter-toggle:hover {
    background: #d43a65;
}
/* Close Filter Button */
.filter-close {
    display: none;
    background: #fff;
    color: var(--dark);
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}

.filter-close:hover {
    background: #f5f5f5;
}
.sidebar-header{
    display: none;
}

/* Apply Filters Button */
.apply-filters {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.apply-filters:hover {
    background: #d43a65;
}
.sidebar-section h4{
    font-family: var(--p);
    margin-bottom: 10px;
}

.sidebar-section  li a, .price-filter h4 ,.price-values{
    font-family: var(--p);
}
/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: transparent;
    border-radius: 3px;
    margin: 10px 0;
    outline: none;
}

/* WebKit browsers (Chrome, Safari) */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background-color: var(--primary);
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: -7px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Firefox */
input[type="range"]::-moz-range-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

input[type="range"]::-moz-range-progress {
    height: 6px;
    background: var(--secondary);
    border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--tertiary);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Microsoft Edge */
input[type="range"]::-ms-track {
    height: 6px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"]::-ms-fill-lower {
    background: var(--secondary);
    border-radius: 3px;
}

input[type="range"]::-ms-fill-upper {
    background: #e0e0e0;
    border-radius: 3px;
}

input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    background: var(--tertiary);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-family: var(--heading);
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    font-size: 15px;
    line-height: 12px;
    padding: 0.5rem 0;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    color: var(--secondary);
    font-weight: 500;
}

.price-filter {
    margin-top: 1rem;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.price-values span{
    font-family: var(--p);
}

.sort-select {
    width: 100%;
    font-family: var(--p);
    font-size: 12px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.product-grid-container {
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
}

.product-title {
    font-size: 1rem;
    height: 45px;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
}

.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    height: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.rating-stars {
    color: #ffb100;
    font-size: 14px;
    margin-right: 0.2rem;
}

.rating-count {
    font-size: 12px;
    color: #666;
}

.add-to-cart {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #d43a65;
}
.apply-filters{
    font-family: var(--p);
}
.copyright{
    text-transform: uppercase;
}
/* Responsive styles */
@media (max-width: 992px) {
    .product-page .container {
        flex-direction: column;
    }
    
    .product-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        z-index: 1000;
        background: #fff;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .product-sidebar.active {
        display: block;
        transform: translateX(0);
        width: 280px;
    }
    
    .filter-toggle {
        display: block;
        padding: 8px 12px;
        width: auto;
        font-size: 12px;
        font-family: var(--p);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-meta{
        display: block;
    }
     .filter-close {
        display: block;
    }
    .section-title h2{
        font-size: 22px;
    }
    .section-title p{
        font-size: 10px;
        font-family: var(--p);
    }
}

@media (max-width: 576px) {
    .sidebar-section h3{
        font-size: 23px;
    }
    .sidebar-section {
        margin-bottom: 15px;
    }
    .sidebar-section  li a, .price-filter h4 ,.price-values{
        font-size: 12px;
    }
    .sidebar-section h4{
        font-size: 14px;
        margin-bottom: 5px;
    }
    .category-list li a{
        line-height: 8px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-list {
        line-height: 8px;
        font-size: 14px;
    }
    .product-badge{
        font-size: 8px;
    }
    
    .product-card {
        font-size: 0.8rem;
    }
    
    .product-img {
        height: 150px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-title {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 12px;
    }
    
    .old-price {
        font-size: 9px;
    }
    
    .product-description {
        font-size: 10px;
        -webkit-line-clamp: 1;
        margin: 10px;
    }
    .product-rating{
        margin-bottom: 6px;
        justify-content: center;
    }
    
    .add-to-cart {
        padding: 0.4rem 0.6rem;
        font-size: 9px;
    }
    .apply-filters{
        font-size: 10px;
    }
}