.shop-header {
    padding-top: 150px;
    text-align: center;
}
.shop-header h1 {
    font-size: 3rem;
    margin-bottom: 30px;
}
#searchInput {
    width: 350px;
    max-width: 90%;
    padding: 15px;
    margin-bottom: 20px;
}
#filterCategory {
    padding: 15px;
    margin-left: 10px;
}

/* Product Grid */
#productsContainer {
    padding: 60px 6%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Product Card */
.shop-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
}

/* Product Image */
.shop-card img {
    width: auto;
    max-width: 92%;
    height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity 0.5s ease;
}
.shop-image {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-image img {
    position: absolute;
    width: auto;
    max-width: 92%;
    height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.shop-image .main-image {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.shop-image .hover-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.shop-card:hover .main-image {
    opacity: 0;
}

.shop-card:hover .hover-image {
    opacity: 1;
}

/* Product Name */
.shop-card h3 {
    padding: 10px 12px;
    font-size: 1rem;
    margin: 0;
}

/* Product Information */
.shop-card p {
    padding: 0 12px 10px;
    font-size: 0.9rem;
    margin: 0;
}

/* Push buttons to the bottom */
.shop-actions {
    margin-top: auto;
    padding: 0 12px 12px;
}

/* Button */
.shop-card button {
    margin: 12px;
}

/* Tablet */
@media (max-width: 1100px) {
    #productsContainer {
        grid-template-columns: repeat(3, 1fr);
        padding: 50px 5%;
    }
}

/* Small tablet */
@media (max-width: 800px) {
    #productsContainer {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 5%;
    }
}

/* Mobile */
@media (max-width: 550px) {
    #productsContainer {
        grid-template-columns: 1fr;
        padding: 30px 6%;
    }
    .shop-card img {
        height: 220px;
    }
}