/* 
Theme Name: VLRAPHARMA Child Theme
Theme URI: https://vlrapharma.com
Description: A custom child theme for Hello Elementor — built for VLRAPHARMA.
Author: VLRAPHARMA
Author URI: https://vlrapharma.com
Template: generatepress
Version: 1.0.1
Text Domain: vlrapharma-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* ====== vlrapharma.com custom styling ====== */
.vlrapharma-category-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin: 40px 0;
}

.vlrapharma-category-item {
    width: calc(16.66% - 20px);
    /* 6 items per row */
    text-align: center;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.vlrapharma-category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.vlrapharma-category-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.vlrapharma-category-item h3 {
    font-size: 15px;
    color: #333;
    margin: 0;
    text-transform: capitalize;
}

/* Product Card */
.vlrapharma-product-rating {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vlrapharma-product-rating .star-rating {
    font-size: 14px;
    color: #f5b301;
}

.vlrapharma-product-rating .star-rating span::before {
    color: #f5b301;
}

.vlrapharma-product-rating .star-rating::before {
    color: #ddd;
}

.vlrapharma-product-rating .rating-count {
    font-size: 14px;
    color: var(--e-global-color-text);
    font-weight: 500;
    margin-left: 2px;
    font-size: 12px;
}

.woocommerce ul.products li.product.vlrapharma-product .woocommerce-loop-product__title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

/* 🔥 Modern On Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9;
    animation: bounce-sale 2s ease-in-out infinite;
}

@keyframes bounce-sale {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* Contact Form */
.contactFrom input[type="submit"] {
    border: 1px solid var(--e-global-color-primary);
    color: var(--e-global-color-primary);
}

.page-content a {
    text-decoration: none;
}

.contactFrom nf-fields-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 0px -10px;
}

.contactFrom nf-fields-wrap nf-field {
    width: 50%;
    padding: 0px 10px;
}

.contactFrom nf-fields-wrap nf-field:nth-child(3),
.contactFrom nf-fields-wrap nf-field:nth-child(4),
.contactFrom nf-fields-wrap nf-field:nth-child(5),
.contactFrom nf-fields-wrap nf-field:nth-child(6) {
    width: 100%;
    flex-wrap: wrap;
}

.contactFrom .nf-field-container {
    margin-bottom: 5px;
}

.vlrapharma-shop-page #right-sidebar {
    display: none;
}

.vlrapharma-shop-page .site-content .content-area {
    width: 100%;
}

.vlrapharma-shop-page .vlrapharma-shop-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 40px;
}

.vlrapharma-shop-page .vlrapharma-shop-banner img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.vlrapharma-shop-page .vlrapharma-shop-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 30px 60px;
    border-radius: 8px;
}

.vlrapharma-shop-page .vlrapharma-shop-banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--e-global-color-primary);
}

.vlrapharma-shop-page .vlrapharma-shop-banner-content p {
    font-size: 1.1rem;
}

.vlrapharma-shop-page .grid-container {
    max-width: 100%;
}

.vlrapharma-shop-page .site-content {
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vlrapharma-category-item {
        width: calc(25% - 20px);
    }

    /* 4 per row */
}

@media (max-width: 768px) {
    .vlrapharma-category-item {
        width: calc(33.33% - 20px);
    }

    /* 3 per row */
}

@media (max-width: 480px) {
    .vlrapharma-category-item {
        width: calc(50% - 20px);
    }

    /* 2 per row */
}