/* Allow slider to break out of Elementor containers */
.e-con:has(.products-slider-wrapper),
.e-con-inner:has(.products-slider-wrapper),
.elementor-widget-shortcode:has(.products-slider-wrapper),
.elementor-widget-shortcode:has(.products-slider-wrapper) .elementor-widget-container,
.elementor-shortcode:has(> .products-slider-wrapper) {
    overflow: visible !important;
}

.products-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: max(20px, calc((100vw - 1400px) / 2));
    padding-right: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.products-slider__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    padding-right: 20px;
}

.products-slider__btn {
    width: 64px;
    height: 64px;
    border: 1px solid #0B3954;
    background: #0B3954;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
}

.products-slider__btn:hover {
    background: #ffffff;
    border-color: #0B3954;
    color: #0B3954;
}

.products-slider__btn svg {
    width: 24px;
    height: 24px;
}

.products-slider__container {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.products-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
}

.products-slider__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

.products-slider__track a,
.products-slider__track img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: auto;
}

.products-slider__track.is-dragging a {
    pointer-events: none;
}

.products-slider__slide {
    flex: 0 0 380px;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .products-slider__slide {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .products-slider-wrapper {
        flex-direction: row;
        gap: 10px;
        padding: 20px 10px;
        overflow: hidden;
        align-items: center;
    }

    .products-slider__nav {
        flex-direction: row;
        gap: 0;
        padding-right: 0;
    }

    .products-slider__btn {
        width: 40px;
        height: 40px;
    }

    .products-slider__btn svg {
        width: 18px;
        height: 18px;
    }

    .products-slider__container {
        width: calc(100% - 100px);
        max-width: none;
        box-sizing: border-box;
        overflow: hidden;
        order: 0;
    }

    .products-slider__nav {
        display: contents;
    }

    .products-slider__btn--prev {
        order: -1;
    }

    .products-slider__btn--next {
        order: 1;
    }

    .products-slider__container::before {
        display: none;
    }

    .products-slider__slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .products-slider-wrapper {
        gap: 8px;
        padding: 20px 8px;
    }

    .products-slider__btn {
        width: 34px;
        height: 34px;
    }

    .products-slider__btn svg {
        width: 16px;
        height: 16px;
    }

    .products-slider__container {
        width: calc(100% - 84px);
    }

    .products-slider__slide {
        flex: 0 0 100%;
    }
}

.products-slider__slide .product-card {
    animation: none;
}

.catalog-card {
    background: linear-gradient(135deg, #0B3954 0%, #072536 100%);
    border-radius: 8px;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 420px;
    padding: 40px 30px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 180px auto;
    opacity: 0.15;
    pointer-events: none;
}

.catalog-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.catalog-card__icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card__icon {
    transform: scale(1.1);
}

.catalog-card__icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.catalog-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.catalog-card__subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.catalog-card__arrow {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.catalog-card:hover .catalog-card__arrow {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.catalog-card__arrow svg {
    width: 24px;
    height: 24px;
    color: #0B3954;
    transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-card__arrow svg {
    transform: translateX(3px);
}

.catalog-card__decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.catalog-card__decoration::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #0B3954;
}

.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.product-card__image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    background: #fbfbfb
}

.product-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 42px;
}

.product-card__title a {
    color: #333333 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.product-card__title a:hover {
    color: #0B3954;
}

.product-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 3px 0;
}

.product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #e3001a;
}

.product-card__price .woocommerce-Price-amount {
    color: #e3001a;
}

.product-card__reseller-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: none;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__reseller-badge {
    gap: 6px;
}

.product-card__reseller-badge span {
    font-size: 13px;
    opacity: 0;
    overflow: hidden;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.product-card:hover .product-card__reseller-badge span {
    opacity: 1;
}

.product-card__reseller-badge .et-icon {
    font-size: 30px;
    color: #333;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .product-card__reseller-badge {
        gap: 6px;
    }

    .product-card__reseller-badge span {
        opacity: 1;
    }
}

.product-card__price-prefix {
    font-size: 13px;
    font-weight: 400;
    color: #e3001a;
    margin-right: 4px;
}

/* Prix TTC - affiché sous le HT */
.product-card__price-ttc {
    display: block;
    font-size: 16px;       /* 18px - 2px */
    font-weight: 500;
    color: #666666;
    margin-top: 2px;
    line-height: 1.2;
}

.product-card__price-ttc .woocommerce-Price-amount,
.product-card__price-ttc .woocommerce-Price-currencySymbol {
    color: #666666;
}

/* Prix TTC dans sidebar produits */
.sidebar-products__more-price-ttc {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    margin-top: 1px;
    line-height: 1.2;
}

.product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.product-card__stars {
    display: flex;
    gap: 2px;
}

.product-card__star {
    font-size: 16px;
    color: #ddd;
    line-height: 1;
}

.product-card__star--filled {
    color: #FFB800;
}

.product-card__review-count {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.product-card__price del {
    opacity: 0.6;
    font-size: 14px;
    margin-right: 6px;
}

.product-card__price ins {
    text-decoration: none;
}

.product-card__description {
    font-size: 13px;
    line-height: 1.4;
    color: #666666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 34px;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.product-card__sku {
    font-size: 13px;
    color: #999999;
    flex-shrink: 0;
}

.product-card__sku span {
    font-weight: 600;
    color: #666666;
}

.product-card__button {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #e3001a;
    color: #ffffff !important;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 5;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.product-card__button span {
    transition: all 0.3s ease;
}

.product-card__button-icon {
    width: 0;
    height: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-card__button:hover {
    background: #a61f1e;
    color: #ffffff;
    gap: 5px;
}

.product-card__button:hover .product-card__button-icon {
    opacity: 1;
    width: 14px;
}