/* ===================================
   TRENDY PRODUCT CARD STYLES
   Modern, Clean & Contemporary Design
   =================================== */

.section-products {
    padding: 4rem 5%;
    background: #fafafa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    width: 100%;
    /* Force full width in grid cell */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image Section */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

/* Wishlist Button */
.btn-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-wishlist i {
    font-size: 1.1rem;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    transform: scale(1.1);
    background: #e74c3c;
}

.btn-wishlist:hover i {
    color: white;
}

/* Maternity Badge */
.maternity-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Card Overlay (Cart Icon) */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.product-card:hover .card-overlay {
    transform: translateY(0);
}

.btn-cart-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-cart-icon i {
    font-size: 1.2rem;
    color: #2c3e50;
}

.btn-cart-icon:hover {
    transform: scale(1.1);
    background: #2c3e50;
}

.btn-cart-icon:hover i {
    color: white;
}

/* Product Info Section */
.product-info-wrapper {
    padding: 1.5rem;
}

.product-info-top {
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e74c3c;
    display: block;
}

/* Buy Now Button */
.btn-buy-now {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.btn-buy-now:active {
    transform: translateY(0);
}

/* Maternity Highlight Text */
.maternity-highlight-text {
    margin-top: 0.75rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-products {
        padding: 3rem 4%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-image-wrapper {
        height: 240px;
    }

    .product-info-wrapper {
        padding: 1rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .btn-buy-now {
        padding: 12px;
        font-size: 0.85rem;
    }

    .btn-wishlist {
        width: 36px;
        height: 36px;
    }

    .btn-wishlist i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation on Load */
.product-card {
    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:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}