/* ═══════════════════════════════════════════════════════════════════════════
   EEnov Sliders — All values in px to avoid rem conflicts with 62.5% themes
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.eenov-slider-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.eenov-slider__heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
}

/* ── Viewport (masque l'overflow) ── */
.eenov-slider__viewport {
    overflow: hidden;
    width: 100%;
}

/* ── Track (bande défilante) ── */
.eenov-slider__track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Slide ── */
.eenov-slide {
    flex: 0 0 calc((100% - 48px) / 4); /* 4 colonnes par défaut */
    min-width: 0;
    box-sizing: border-box;
}

.eenov-slide__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.eenov-slide__link:hover {
    text-decoration: none;
    color: inherit;
}

.eenov-slide__img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
}

.eenov-slide__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.eenov-slide__link:hover .eenov-slide__img-wrap img {
    transform: scale(1.05);
}

.eenov-slide__title {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eenov-slide__price del {
    font-weight: 400;
    opacity: 0.5;
    font-size: 13px;
    margin-right: 6px;
}

.eenov-slide__price ins {
    text-decoration: none;
}

.eenov-slide__count {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* ── Price wrap (prefix + price + suffix) ── */
.eenov-slide__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.eenov-slide__price-prefix,
.eenov-slide__price-suffix {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.eenov-slide__price {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

/* ── Button ── */
.eenov-slide__button {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #333;
    border-radius: 6px;
    transition: background 0.2s;
    text-decoration: none;
}

.eenov-slide__link:hover .eenov-slide__button {
    background: #555;
}

/* ── Pagination bar (progress) ── */
.eenov-slider__pagination {
    position: relative;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
}

.eenov-slider__pagination-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #333;
    border-radius: 2px;
    transition: left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Arrows ── */
.eenov-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, box-shadow 0.2s;
    color: #333;
    padding: 0;
}

.eenov-slider__arrow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.eenov-slider__arrow--prev {
    left: -22px;
}

.eenov-slider__arrow--next {
    right: -22px;
}

.eenov-slider__arrow[disabled] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ── Dots ── */
.eenov-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.eenov-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.eenov-slider__dot.is-active {
    background: #333;
}

/* ── Responsive columns ── */
/* Entièrement géré par slider.js via data-columns / data-columns-md / data-columns-sm */
/* On garde uniquement le repositionnement des flèches */

@media (max-width: 1024px) {
    .eenov-slider__arrow--prev { left: 8px; }
    .eenov-slider__arrow--next { right: 8px; }
}

@media (max-width: 480px) {
    .eenov-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
/* ── Editor specifics ── */
.eenov-slider-editor-placeholder {
    border: 2px dashed #ccc;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    border-radius: 8px;
    font-size: 14px;
}

.eenov-slider-editor-placeholder svg {
    display: block;
    margin: 0 auto 10px;
}

/* ServerSideRender wrapper in editor */
.wp-block-eenov-product-slider,
.wp-block-eenov-category-slider {
    overflow: hidden;
}

.wp-block-eenov-product-slider .eenov-slider__viewport,
.wp-block-eenov-category-slider .eenov-slider__viewport {
    overflow: hidden;
}

.wp-block-eenov-product-slider .eenov-slider__track,
.wp-block-eenov-category-slider .eenov-slider__track {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.wp-block-eenov-product-slider .eenov-slide,
.wp-block-eenov-category-slider .eenov-slide {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
}

/* Hide arrows/dots in editor preview (non-interactive) */
.editor-styles-wrapper .eenov-slider__arrow,
.editor-styles-wrapper .eenov-slider__dots {
    display: none;
}

/* Disable links in editor so clicking doesn't navigate away */
.editor-styles-wrapper .eenov-slide__link {
    pointer-events: none;
    cursor: default;
}





/* ── Avis clients ── */
.eenov-avis-wrap {
    padding: 2rem 0;
}

.eenov-avis__heading {
    text-align: center;
    margin-bottom: 2rem;
}

.eenov-avis__grid {
    display: grid;
    gap: 1.5rem;
}

.eenov-avis__card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.eenov-avis__stars {
    display: flex;
    gap: 2px;
    font-size: 1.25rem;
}

.eenov-avis__star--full  { color: #f59e0b; }
.eenov-avis__star--empty { color: #d1d5db; }

.eenov-avis__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.eenov-avis__content {
    font-size: .9rem;
    color: #555;
    flex: 1;
}

.eenov-avis__client {
    font-size: .85rem;
    font-style: italic;
    color: #888;
    margin: 0;
}