/* Products Grid */
.products-section {}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.product-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
} */

.product-image {
    width: fit-content;
    height: 200px;
    margin: auto;
    /*  overflow: hidden; */
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* .product-card:hover .product-image img {
    transform: scale(1.1);
}
 */
.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.product-info p {
    color: #666;
    /*  margin-bottom: 1rem; */
    font-size: 0.9rem;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-grid,
    .value-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom banner */
/* Product Cards */
.b-products {
    max-width: 1420px;
}

.b-products-grid {
    gap: 2rem;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    overflow-x: scroll;
    padding: .5rem;

    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    cursor: grab;
    user-select: none;

}

.b-products-grid::-webkit-scrollbar {
    display: none;
}

.b-product-card {
    position: relative;
    border-radius: .5rem;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: calc(80% - 1.5rem);

    height: max-content;
    /* 
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.08); */
}

.b-product-card.active {
    cursor: grabbing;
}

.b-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 51%,
            transparent 60%,
            transparent 100%);
    background-size: 200% 200%;
    background-position: 100% 100%;
    opacity: 0;
    transition: opacity 0.3s ease, background-position 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.b-product-card:hover::before {
    opacity: 1;
    background-position: 0% 0%;
}

.card-pink {
    background: #fce7f3;
    background: radial-gradient(#f7e6f0, #e9d2df);
}

.card-gray {
    background: #f3f4f6;
    background: radial-gradient(#f3f4f6, #d1d4da);
}

.card-stone {
    background: #e6e6e2;
    background: radial-gradient(#e6e6e2, #cfcfc9);
}

.card-slate {
    background: #e2e8f0;
    background: radial-gradient(#e2e8f0, #d0d7e0);
}

.p-content {
    padding: 1.8rem;
    padding-bottom: 1rem;
}

.badge {
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-bottom: .2rem;
    display: inline-block;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
    margin-bottom: .2rem;
}

.card-subtitle {
    margin: 0px;
    padding: 0;
    color: #4c4d4f;
}

.card-image {
    /*  background: white; */

    /*     height: 100%; */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
}

.card-image img {

    object-fit: cover;
    background: transparent;
    height: 230px;
}

/* Responsive Design */
@media (min-width: 640px) {

    .b-products-grid {
        padding-left: 1rem;
    }

    .b-product-card {
        width: calc(50% - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 5rem 1rem;
    }

    .hero-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }

    .b-products-grid {
        padding-left: 0rem;
    }

    .b-product-card {
        width: calc(25% - 1.5rem);
    }
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .banner {
        padding: 40px 20px;
    }

    .sale-text {
        font-size: 3.5rem;
    }

    .collection-text {
        font-size: 1rem;
    }

    .shop-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sale-text {
        font-size: 2.8rem;
    }

    .collection-text {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
}