/* Main section background */
.products-main-bg {
    position: relative;
    background-repeat: no-repeat !important;
    background-position: right top !important;
}

.products-main-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../patterns/images/background-overlay.png');
    background-repeat: no-repeat;
    background-position: left calc(100% - 30px);
    pointer-events: none;
    z-index: 1;
}

.products-main-bg .wp-block-cover__image-background {
    object-fit: none !important;
    object-position: right top !important;
    width: auto !important;
    height: auto !important;
    right: 0 !important;
    top: 0 !important;
    left: auto !important;
    position: absolute !important;
    max-width: none !important;
    opacity: 1 !important;
}

.products-main-bg .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* Product Card Base Styles */
.product-card {
    position: relative;
    min-height: 340px !important;
    height: 340px !important;
    border: 3px solid var(--wp--preset--color--primary) !important;
    border-radius: 16px 16px 50% 50% !important;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

/* Product Card Image */
.product-card .wp-block-cover__image-background {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    object-position: center !important;
    transition: transform 0.4s ease;
}

/* Hide default overlay */
.product-card .wp-block-cover__background {
    opacity: 0 !important;
}

/* Product Card Inner Container */
.product-card .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

/* Product Number Styling with Outline Effect */
.product-card .product-number {
    font-size: 48px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    margin: 0 !important;
    color: var(--wp--preset--color--primary) !important;
    text-shadow: 
        -2px -2px 0 #fff,  
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        -3px 0 0 #fff,
        3px 0 0 #fff,
        0 -3px 0 #fff,
        0 3px 0 #fff;
    position: relative;
}

/* Hover Effects */
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 119, 34, 0.3);
    border-color: var(--wp--preset--color--primary);
}

.product-card:hover .wp-block-cover__image-background {
    transform: scale(1.05);
}

.product-card:hover .product-number {
    text-shadow: 
        -2px -2px 0 var(--wp--preset--color--primary),  
        2px -2px 0 var(--wp--preset--color--primary),
        -2px 2px 0 var(--wp--preset--color--primary),
        2px 2px 0 var(--wp--preset--color--primary),
        -3px 0 0 var(--wp--preset--color--primary),
        3px 0 0 var(--wp--preset--color--primary),
        0 -3px 0 var(--wp--preset--color--primary),
        0 3px 0 var(--wp--preset--color--primary);
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-card {
        min-height: 300px !important;
        height: 300px !important;
    }
    
    .product-card .product-number {
        font-size: 40px !important;
    }
}

@media (max-width: 781px) {
    .product-card {
        min-height: 280px !important;
        height: 280px !important;
        margin-bottom: var(--wp--preset--spacing--medium);
    }
    
    .product-card .product-number {
        font-size: 36px !important;
    }
}

@media (max-width: 480px) {
    .product-card {
        min-height: 260px !important;
        height: 260px !important;
        border-radius: 16px 16px 50% 50% !important;
    }
    
    .product-card .product-number {
        font-size: 32px !important;
    }
}

/* Section Heading Styles */
.products-main-bg h2.has-xx-large-font-size {
    font-size: 48px !important;
}

@media (max-width: 781px) {
    .products-main-bg h2.has-xx-large-font-size {
        font-size: 36px !important;
    }
}