/*
Theme Name: Euroweb Digital
Theme URI: https://euroweb-digital.com
Author: Euroweb Digital
Author URI: https://euroweb-digital.com
Description: Thème personnalisé Euroweb Digital basé sur Hello Elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: euroweb-digital
Tags: custom, elementor, euroweb-digital
*/

/* Style for custom car card template */
.nova-car-card {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    color: #fff;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.nova-car-card * {
    box-sizing: border-box;
}

.nova-car-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.6s ease;
    border-radius: 12px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 30px !important;
}

.nova-car-card:hover .nova-car-card-bg {
    transform: scale(1.05);
}

.nova-car-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.nova-car-card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

.nova-car-card-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nova-car-price {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    font-weight: 300;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nova-car-price span {
    font-size: 22px;
    font-weight: 500;
}

.nova-car-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.1;
    text-transform: capitalize;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nova-car-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 20px 0;
    width: 100%;
    opacity: 0;
    transition: none;
    /* GSAP handles transitions */
}

.nova-car-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
}

.nova-car-details-grid {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.nova-car-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

[data-filter-group="car_brand"] .nova-gallery-filter-image {
    width: auto !important;
    object-fit: contain !important;
    max-width: 90% !important;
    height: max-content !important;
    display: flex;
    max-height: 75px !important;
}

[data-filter-group="car_brand"] button.nova-gallery-filter-item.has-image {
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border: none !important;
    background-color: #fff !important;
    max-height: 88px;
    min-height: 88px;
    min-width: 120px;
    max-width: 120px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #222222 !important;
}

[data-filter-group="car_brand"] button.nova-gallery-filter-item:not(.has-image) {
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border: none !important;
    background-color: transparent !important;
    color: #fff !important;
    max-height: 88px;
    min-height: 88px;
    min-width: 120px;
    max-width: 120px;
    font-size: 18px;
}

.nova-car-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-car-icon svg,
.nova-car-icon img {
    width: auto !important;
    height: 22px !important;
    opacity: 1;
}

.nova-car-value {
    font-size: 12px;
    font-weight: 300;
    text-align: center;
    line-height: 12px;
    color: #fff;
}

.nova-car-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nova-car-details-btn:hover {
    color: #f0f0f0;
    opacity: 0.8;
}

.nova-car-details-btn svg {
    transition: transform 0.3s ease;
}

.nova-car-details-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .nova-car-card {
        height: 380px;
    }

    .nova-car-card-content {
        padding: 20px;
    }

    .nova-car-card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nova-car-details-grid {
        flex-wrap: wrap;
        column-gap: 15px;
        row-gap: 15px;
    }

    .nova-car-title {
        font-size: 28px;
    }
}