/* ==========================================================================
   Hero Banner Premium Custom
   ========================================================================== */
.wstm-hero-banner {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-result;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.wstm-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.wstm-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.wstm-hero-content h1.page-title {
    color: #fff !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wstm-hero-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #f1f1f1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Pills Filters (Footkorner Style)
   ========================================================================== */
.wstm-pills-container {
    position: sticky;
    top: 0; /* Ajuster si vous avez un header fixed */
    z-index: 99;
    background-color: #fff; /* À adapter avec votre thème ou utiliser var(--bg-color) */
    padding: 15px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    max-width: 100%;
    width: 100%;
    overflow: hidden; /* Empêcher le débordement sur la page entière */
}

.wstm-pills-list {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0 10px; /* Un peu de padding pour ne pas coller aux bords sur mobile */
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Momentum scroll iOS */
    scrollbar-width: none; /* Firefox */
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.wstm-pills-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.wstm-pill {
    margin: 0;
}

.wstm-pill a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.wstm-pill:hover a {
    background-color: #eaeaea;
}

.wstm-pill.active a {
    background-color: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Transitions pour AJAX */
ul.products {
    transition: opacity 0.3s ease;
}
ul.products.wstm-loading {
    pointer-events: none;
}
