/**
 * Avenile Elementor Compatibility Styles
 * 
 * Custom styles to ensure Avenile theme works perfectly with Elementor
 */

/* ===================================
   Elementor Page Styles
=================================== */
.elementor-page,
.elementor-canvas {
    --primary: #E94788;
    --secondary: #00b4d8;
    --gradient-primary: linear-gradient(135deg, #E94788 0%, #C9184A 100%);
    --gradient-secondary: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
}

.elementor-page .site-main,
.elementor-canvas-page {
    min-height: 100vh;
}

/* ===================================
   Elementor Section Overrides
=================================== */
.elementor-section.elementor-section-full_width>.elementor-container {
    max-width: 100%;
}

.elementor-section-boxed>.elementor-container {
    max-width: 1280px;
}

/* ===================================
   Elementor Button Styles (Avenile Brand)
=================================== */
.elementor-button.elementor-button-avenile-primary {
    background: var(--gradient-primary) !important;
    border-radius: 50px;
    padding: 16px 36px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(233, 71, 136, 0.4);
    transition: all 0.3s ease;
}

.elementor-button.elementor-button-avenile-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 71, 136, 0.5);
}

.elementor-button.elementor-button-avenile-secondary {
    background: var(--gradient-secondary) !important;
    border-radius: 50px;
    padding: 16px 36px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
    transition: all 0.3s ease;
}

.elementor-button.elementor-button-avenile-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.5);
}

/* ===================================
   Elementor Heading Styles
=================================== */
.elementor-heading-title .gradient-text,
.elementor-heading-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Elementor WooCommerce Products Grid
=================================== */
.elementor-widget-woocommerce-products .products,
.elementor-widget-shortcode .woocommerce .products,
.elementor-widget-shortcode .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-widget-woocommerce-products .products .product,
.elementor-widget-shortcode .woocommerce .product {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

.elementor-widget-woocommerce-products .products .product:hover,
.elementor-widget-shortcode .woocommerce .product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.elementor-widget-woocommerce-products .products .product img,
.elementor-widget-shortcode .woocommerce .product img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.elementor-widget-woocommerce-products .products .product .woocommerce-loop-product__title,
.elementor-widget-shortcode .woocommerce .product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    padding: 24px 24px 8px;
    margin: 0;
}

.elementor-widget-woocommerce-products .products .product .price,
.elementor-widget-shortcode .woocommerce .product .price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    padding: 0 24px;
    margin: 0;
}

.elementor-widget-woocommerce-products .products .product .add_to_cart_button,
.elementor-widget-shortcode .woocommerce .product .add_to_cart_button,
.elementor-widget-woocommerce-products .products .product .product_type_simple,
.elementor-widget-shortcode .woocommerce .product .product_type_simple {
    margin: 16px 24px 24px;
    width: calc(100% - 48px);
    padding: 14px;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
}

.elementor-widget-woocommerce-products .products .product .add_to_cart_button:hover,
.elementor-widget-shortcode .woocommerce .product .add_to_cart_button:hover,
.elementor-widget-woocommerce-products .products .product .product_type_simple:hover,
.elementor-widget-shortcode .woocommerce .product .product_type_simple:hover {
    background: var(--primary);
}

/* ===================================
   Elementor Badge / Label Style
=================================== */
.avenile-badge,
.elementor-widget-text-editor .avenile-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #E94788;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* ===================================
   Elementor Feature Card Style
=================================== */
.avenile-feature-card {
    background: #f9fafb;
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.avenile-feature-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.avenile-feature-card .feature-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #ffffff;
}

/* ===================================
   Elementor Testimonial Card Style
=================================== */
.avenile-testimonial-card {
    padding: 40px;
    background: linear-gradient(145deg, #fafafa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.avenile-testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.avenile-testimonial-card .stars {
    color: #FFC107;
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.avenile-testimonial-card .testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    font-style: italic;
    margin-bottom: 24px;
}

/* ===================================
   Elementor CTA Section Style
=================================== */
.avenile-cta-section {
    background: #111827;
    position: relative;
    overflow: hidden;
}

.avenile-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(233, 71, 136, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* ===================================
   Elementor Product Cards (Custom)
=================================== */
.avenile-product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.avenile-product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.avenile-product-card.collagen {
    border-top: 4px solid var(--primary);
}

.avenile-product-card.fiber {
    border-top: 4px solid var(--secondary);
}

.avenile-product-card .product-image-wrapper {
    padding: 32px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avenile-product-card .product-image-wrapper img {
    max-width: 280px;
    transition: transform 0.4s ease;
}

.avenile-product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.avenile-product-card .product-details {
    padding: 32px;
}

.avenile-product-card .product-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.avenile-product-card.collagen .product-tag {
    background: #fce7f3;
    color: var(--primary);
}

.avenile-product-card.fiber .product-tag {
    background: #e0f2fe;
    color: var(--secondary);
}

/* ===================================
   Hero Floating Cards
=================================== */
.avenile-float-card {
    position: absolute;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

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

.avenile-float-card .float-icon {
    width: 48px;
    height: 48px;
    background: #fce7f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.avenile-float-card .float-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.avenile-float-card .float-text p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* ===================================
   Responsive Styles for Elementor
=================================== */
@media (max-width: 1024px) {

    .elementor-widget-woocommerce-products .products,
    .elementor-widget-shortcode .woocommerce .products,
    .elementor-widget-shortcode .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {

    .elementor-widget-woocommerce-products .products,
    .elementor-widget-shortcode .woocommerce .products,
    .elementor-widget-shortcode .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .elementor-section-boxed>.elementor-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 640px) {

    .elementor-widget-woocommerce-products .products,
    .elementor-widget-shortcode .woocommerce .products,
    .elementor-widget-shortcode .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}