/**
 * Product Showcase - Galerie Horizontale Scrollable
 * Widget DIX pour Elementor
 */

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.wd-showcase-gallery {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.wd-showcase-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ============================================
   CONTAINER DES ITEMS
   ============================================ */
.wd-showcase-items {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 10px 0;
}

/* ============================================
   ITEM INDIVIDUEL
   ============================================ */
.wd-showcase-item {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

/* ============================================
   GRADIENT DE FONDU (bas de l'image)
   ============================================ */
.wd-showcase-item.has-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--gradient-height, 40%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--gradient-color, transparent) 100%
    );
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

/* ============================================
   LIEN ET IMAGE
   ============================================ */
.wd-showcase-link {
    display: block;
    position: relative;
    text-decoration: none;
    height: 100%;
}

.wd-showcase-item img {
    display: block;
    height: auto;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.wd-showcase-link:hover img {
    transform: scale(1.02);
}

/* ============================================
   CONTENU (Titre + Bouton) - Bas Gauche
   ============================================ */
.wd-showcase-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 3;
}

/* ============================================
   TITRE
   ============================================ */
.wd-showcase-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-transform: uppercase;
}

/* ============================================
   BOUTON
   ============================================ */
.wd-showcase-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000000;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wd-showcase-button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .wd-showcase-items {
        gap: 10px;
    }

    .wd-showcase-content {
        bottom: 15px;
        left: 15px;
        gap: 8px;
    }

    .wd-showcase-title {
        font-size: 1.1em;
    }

    .wd-showcase-button {
        padding: 8px 16px;
        font-size: 0.85em;
    }
}

/* ============================================
   FOCUS STATES (Accessibilité)
   ============================================ */
.wd-showcase-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wd-showcase-link:focus .wd-showcase-button {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ============================================
   MODE ÉDITEUR ELEMENTOR
   ============================================ */
.elementor-editor-active .wd-showcase-gallery {
    min-height: 200px;
}
