/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin-bottom: 15px;
}

.load-more-button-holder {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.load-more-button-holder .mat-button {
    display: inline-block;
    position: relative;
    cursor: pointer;
    line-height: 35px;
    padding: 0.5rem 1.5rem;
    color: #424242;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.8px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    outline: none;
    border: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: 2px;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.225);
}

.mat-button.btn-lightBlue {
    color: #fff;
    background-color: #03a9f4;
}

.loader img {
    width: 70px;
}

/* --- Loader « chargement » moderne et sobre (scroll infini) --------------- */
.isdw-loader {
    gap: 0.75rem;
    padding: 1.75rem 0;
}

.isdw-loader__spinner {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: conic-gradient(from 90deg, transparent 0%, var(--bs-primary, #333));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: isdw-spin 0.8s linear infinite;
}

.isdw-loader__text {
    /* Police native du thème (aucun override). */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bs-secondary-color, #6c757d);
    animation: isdw-fade 1.2s ease-in-out infinite;
}

@keyframes isdw-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes isdw-fade {
    0%, 100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .isdw-loader__spinner {
        animation-duration: 2s;
    }

    .isdw-loader__text {
        animation: none;
    }
}

/* --- Séparateur « Page N » entre les lots (sens de position) -------------- */
.isdw-page-sep {
    grid-column: 1 / -1;
    flex-basis: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.isdw-page-sep::before,
.isdw-page-sep::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--bs-border-color, #e5e5e5);
}

/* --- Bouton « Voir plus » -------------------------------------------------- */
.isdw-more {
    display: block;
    margin: 1.75rem auto 0.5rem;
    padding: 0.75rem 2rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--bs-primary, #333);
    border: 0;
    border-radius: var(--bs-border-radius-pill, 999px);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.isdw-more:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.isdw-more:active {
    transform: translateY(0);
}

.isdw-more--loading {
    opacity: 0.6;
    cursor: wait;
}

/* Bouton « Voir les produits précédents » (haut de liste) : variante discrète. */
.isdw-prev {
    margin: 0.5rem auto 1.5rem;
    color: var(--bs-primary, #333);
    background: transparent;
    border: 1px solid var(--bs-border-color, #ccc);
}

.isdw-prev:hover {
    color: var(--bs-primary, #333);
    border-color: var(--bs-primary, #333);
    opacity: 1;
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.03));
}

.fix-scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.fix-scroll-top .mat-button {
    display: inline-block;
    position: relative;
    cursor: pointer;
    line-height: 35px;
    width: 50px;
    height: 50px;
    color: #424242;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.8px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    outline: none;
    border: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: 2px;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.225);
}