:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --accent: #10b981;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

.main-header {
    background: white;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    all: unset;
    
}
a:hover{
    cursor: pointer;
    color: var(--primary);

}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo span {
    color: var(--primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    margin: 0 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.Search {
    padding: 40px 5%;
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 700px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--card-shadow);
}

#search-input {
    flex: 1;
    border: none;
    padding: 0 25px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.product {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    position: relative;
    cursor: pointer;
}

.product-img {
    height: 250px;
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 15px;
    border-radius: 12px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product:hover .product-img {
    transform: scale(1.1);
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-top-info {
    padding: 0 20px;
}

.product-Title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
}

.product-bottom-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-div {
    background: #f1f5f9;
    padding: 6px 15px;
    border-radius: 8px;
}

.price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

.product-review {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.review-rating {
    font-weight: bold;
    color: var(--dark);
}

.reviews-number {
    color: #94a3b8;
}

.heart {
    background: white;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #cbd5e1;
    transition: all 0.3s;
}

.heart:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding-bottom: 50px;
}

.filter-sidebar {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}



.filter-group summary {
    list-style: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filter-group summary::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.filter-group[open] summary::after {
    transform: rotate(180deg);
}

.filter-content label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #475569;
    transition: color 0.2s;
    cursor: pointer;
}

.filter-content label:hover {
    color: var(--primary);
}

.filter-content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background-color: #fff;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-content input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-content input[type="checkbox"]:checked {
    border-color: var(--primary);
}

.filter-content input[type="checkbox"]:checked::before {
    transform: scale(1);
}



.current-price {
    font-weight: 800;
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.categories {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    all: unset;
    padding: 10px 24px;
    border-radius: 50px;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.main-footer {
    background: var(--dark);
    color: white;
    padding: 60px 5% 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
}

.newsletter-box {
    display: flex;
    margin-top: 15px;
}

.newsletter-box input {
    padding: 10px;
    border-radius: 4px 0 0 4px;
    border: none;
    flex: 1;
}

.newsletter-box button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
}

#add-to-cart-btn {
    all: unset;
   
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: white;
    margin: 0 20px 20px 20px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#add-to-cart-btn i {
    font-size: 0.9rem;
}

#add-to-cart-btn:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 41, 59, 0.2);
}

#add-to-cart-btn:active {
    transform: translateY(0);
    background-color: #1e40af;
}


.product-bottom-info {
    margin-bottom: auto;
}

.brand-item:has(input:checked) {
    background-color: #eff6ff;
    color: var(--primary);
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}