/* ================= PRODUCTS ================= */
#products {
    padding: 40px 20px;
}
#products > h1 {
    color: var(--purple);
    font-size: 1.8rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
}
#products .container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🔥 4 chairs in a row */
    gap: 20px;
    justify-items: center;
}
#products .container .card {
    border-radius: 8px;
    border: 1px solid #d10e0e;
    width: 100%;
    max-width: 240px;
    text-align: center;
    padding: 15px;
    min-height: 300px;
    background: #fff;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}
#products .container .card .img {
    text-align: center;
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#products .container .card .img img {
    max-width: 190px;
    max-height: 100%;
}
#products .container .card .title {
    font-size: 1rem;
    text-align: center;
    margin: 8px 0;
    font-weight: 800;
}
#products .container .card button {
    width: 160px;
    height: 38px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: rgb(42, 170, 138);
    margin-top: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    transition: 0.3s ease;
}
#products .container .card button:hover {
    background-color: rgb(34, 148, 120);
    color: #fff;
}
#products .container .card .rating {
    margin-top: 10px;
    text-align: center;
}
#products .container .card .rating img {
    width: 60%;
    border: 2px solid var(--ccc);
    padding: 5px;
    border-radius: 3px;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 1024px) {
    #products .container {
        grid-template-columns: repeat(3, 1fr); /* Tablet pe 3 chairs */
    }
}
@media screen and (max-width: 768px) {
    #products .container {
        grid-template-columns: repeat(2, 1fr); /* Mobile landscape pe 2 chairs */
    }
}
@media screen and (max-width: 480px) {
    #products .container {
        grid-template-columns: 1fr; /* Small mobile pe 1 chair */
    }
    #products .container .card {
        max-width: 100%;
        padding: 12px;
    }
    #products .container .card button {
        width: 100%;
    }
}

/* ================= HOME SECTION ================= */
#home {
    margin-top: 91px;
    background-image: url('images/home-img/Contactsofa.jpg');
    background-repeat: no-repeat;
    background-size: cover;       
    background-position: center;  
    background-attachment: fixed; 
    height: 85vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* overlay for text readability */
#home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
#home .container {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 15px;
}

/* ================= HOME RESPONSIVE ================= */
@media screen and (max-width: 1024px) {
    #home {
        background-attachment: scroll; 
        background-position: center top; 
        height: 70vh;
    }
}
@media screen and (max-width: 768px) {
    #home {
        background-attachment: scroll; 
        background-size: cover;
        background-position: center center; 
        height: 60vh;
    }
    #home .content p {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}
@media screen and (max-width: 480px) {
    #home {
        background-attachment: scroll; 
        background-size: cover;
        background-position: center bottom; 
        height: 55vh;
    }
    #home .content p {
        font-size: 1rem;
    }
}
