/**
 * EVOL Lazy Load Products — Styles
 * @version 1.6.0
 */

/* ======================================================================
   Hidden pagination (SEO preserved)
   ====================================================================== */
/* ======================================================================
   @font-face — Gotham + Utile Display
   ====================================================================== */


@font-face {
    font-family: 'Utile Display';
    src: url('../fonts/Utile-Medium-TRIAL.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.evol-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ======================================================================
   Load More UI
   ====================================================================== */

.evol-loadmore {
    width: 100%;
    padding: 30px 15px 20px;
    text-align: center;
    clear: both;
}

.evol-loadmore__progress {
    width: 100%;
    max-width: 300px;
    height: 3px;
    margin: 0 auto 12px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.evol-loadmore__progress-bar {
    height: 100%;
    background: #000;
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.evol-loadmore__counter {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.evol-loadmore__btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 14px;
    text-transform: uppercase;
    color: #000000;
    border: none;
    cursor: pointer;
     font-weight: 600;
    transition: all 0.25s ease;
    min-width: 240px;
    min-height: 50px;
    text-decoration: underline;
    position: relative;
    background:none;
    font-size: 16px;
	text-underline-offset: 12px;
}

.evol-loadmore__btn:hover {
  /*font-weight: 600;
     transition: all 0.25s ease;
     font-size: 15px;*/
}

/* Loading spinner */
.evol-loadmore__btn--loading {
    pointer-events: none;
    color: transparent !important;
}

.evol-loadmore__btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: evol-spin 0.7s linear infinite;
}

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

/* Error state */
.evol-loadmore__btn--error {
    border-color: #c00;
    color: #c00;
}

/* Done state */
.evol-loadmore__btn--done {
    border-color: #ccc;
    color: #999;
    cursor: default;
}

.evol-loadmore__btn--done:hover {
    background: transparent;
    color: #999;
}

/* ======================================================================
   Skeleton loading — inline inside .products grid
   ====================================================================== */

.evol-skeleton-col {
    opacity: 0;
    animation: evol-fadeIn 0.3s ease forwards;
}

.evol-skeleton-col:nth-child(1) { animation-delay: 0s; }
.evol-skeleton-col:nth-child(2) { animation-delay: 0.05s; }
.evol-skeleton-col:nth-child(3) { animation-delay: 0.1s; }
.evol-skeleton-col:nth-child(4) { animation-delay: 0.15s; }
.evol-skeleton-col:nth-child(5) { animation-delay: 0.2s; }
.evol-skeleton-col:nth-child(6) { animation-delay: 0.25s; }

@keyframes evol-fadeIn {
    to { opacity: 1; }
}

.evol-skeleton {
    padding: 10px;
}

.evol-skeleton__img {
    width: 100%;
    padding-bottom: 144%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: evol-shimmer 1.5s infinite;
    border-radius: 2px;
    margin-bottom: 12px;
}

.evol-skeleton__lines {
    padding: 0 5px;
}

.evol-skeleton__line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: evol-shimmer 1.5s infinite;
    margin-bottom: 8px;
}

.evol-skeleton__line--title {
    width: 75%;
}

.evol-skeleton__line--price {
    width: 40%;
}

.evol-skeleton__lines {
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.evol-skeleton__dots {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.evol-skeleton__dots span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eee;
}

@keyframes evol-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ======================================================================
   Fix center-products-wrapper category image (F5 + AJAX)
   The image column stretches via flex align-items:stretch.
   The img is positioned absolute so it fills regardless of load timing.
   ====================================================================== */

.center-products-wrapper .category__miniature_image {
    position: relative;
    overflow: hidden;
}

.center-products-wrapper .category__miniature_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ======================================================================
   Force 3-column grid (col-lg-4) everywhere
   pm_advancedsearch4 outputs col-lg-3 (4 per row) — we override to 3 per row.
   Also handles any col-lg-12 products that may slip through.
   ====================================================================== */

#js-product-list .products > .js-product.col-lg-3,
#PM_ASearchResults .products > .js-product.col-lg-3,
#PM_ASearchResultsInner .products > .js-product.col-lg-3 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

/* Mobile: always 2 columns */
@media (max-width: 991px) {
    #js-product-list .products > .js-product.col-lg-3,
    #PM_ASearchResults .products > .js-product.col-lg-3,
    #PM_ASearchResultsInner .products > .js-product.col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}


li.lslide{
    padding-left: 4px!important;
    padding-right: 4px!important;
}
.product-miniature .product-description {
 text-align:center;
 display: block !important;
}
.product-miniature .product-title {
    margin-top: 0px!important;
    text-align: center;
    max-width: 100%;
    margin: auto;
}


.product-miniature .variant-links {
   
    text-align: center !important;
    /* margin: auto; */
    max-width: 100%;
}
.product-miniature .product-title a {
     font-family: "Gotham"!important;
    font-size: 11pt!important;
    color:#000000!important;
     text-align: center!important;
}

.product-miniature .product-description p {
 margin-bottom: 0px!important;
}

.product-miniature .product-material{
    font-family: "Utile Display"!important;
    font-size: 11pt!important;
    color:#898989!important;
}

.product-price-and-shipping .categ-price{
  margin-top: 0px!important;   
    font-family: "Gotham"!important;
    font-size: 11pt!important;
    color:#000000!important;
    font-weight: 500!important;
}
.product-price-and-shipping{
  margin-top: 0px!important;   
   
}


.block-category.card.card-block{
    padding: 0px!important;
}
.categ-desc-wrapper {
    text-align: center;
}

#categ-desc-short,
#categ-desc-full {
    display: inline;
}

.categ-desc-toggle {
    display: inline;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Gotham", sans-serif;
    font-weight: 700;
    font-size: inherit;
    color: #000;
    padding: 0;
    margin: 0;
}

.categ-desc-toggle:hover {
    opacity: 0.5;
    text-decoration: none!important;
}

.categ-desc-toggle{
      text-decoration: none!important;
}
.categ-desc-wrapper {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 20px 40px!important;
}

/* ======================================================================
   PM Advanced Search — Color Swatches
   ====================================================================== */
.as4-color-wrapper {
    position: relative;
    z-index: 100;
}

.as4-color-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
}

.as4-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.as4-color-swatch:hover {
    transform: scale(1.15);
    border-color: #888;
}

.as4-color-swatch.is-light {
    border-color: #bbb;
}

.as4-color-swatch.is-active {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.as4-color-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-family: "Gotham", sans-serif;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.as4-color-more:hover {
    background: #000;
    color: #fff;
}

/* Dropdown fixe par-dessus le contenu */
.as4-color-dropdown {
    display: none;
    position: fixed;
    z-index: 99999;
    padding: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 320px;
}

.as4-color-dropdown.is-open {
    display: block;
}

.as4-color-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    justify-items: center;
}

.as4-color-grid .as4-color-swatch {
    width: 22px;
    height: 22px;
}

/* Navigation pagination */
.as4-color-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.as4-color-nav-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.as4-color-nav-btn:hover:not(:disabled) {
    border-color: #000;
}

.as4-color-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.as4-color-page-info {
    font-family: "Gotham", sans-serif;
    font-size: 11px;
    color: #666;
}
.PM_ASResetSearch{
        display: block;
    clear: both;
    width: 114px;
    float: left;
}

/* ── Variant color overlay on product thumbnail ── */

.thumbnail-top {
    position: relative;
}

.variant-overlay {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.thumbnail-top:hover .variant-overlay {
    opacity: 1;
}

.variant-overlay .variant-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.variant-overlay .variant-links .color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

.variant-overlay .variant-links .color:hover {
    transform: scale(1.15);
}

.variant-overlay .variant-links .js-count {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.product-miniature .variant-links {
  
     background: none!important;,
}

.variant-overlay {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    max-width: none!important;
    width: 100%!important
    margin: auto!important;
    background: #ffffff91!important;
}

.discount-percentage-badge {
    display: inline-block;
    background: none;
    color: #000000;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 15px;
    box-shadow: none;
    margin: 3px 2px;
}
/* ── Immersive category image ── */
.center-products-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
}

.center-products-wrapper .category__miniature_image {
    overflow: hidden;
}

.center-products-wrapper .category__miniature_image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
/* ── Fix image immersive centrée ── */
.center-products-wrapper .category__miniature_image {
    position: relative;
    overflow: hidden;
    height: auto;
}

.center-products-wrapper .category__miniature_image img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 1500px !important;
        object-fit: none !important;
    display: block;
}
