/* Tiny Slider Controls */
.cermep-products-wrapper .tns-controls {
    position: absolute;
    top: -56px;
    right: 0;
    display: flex;
    gap: 4px;
    z-index: 10;
}

/* Boutons */
.cermep-products-wrapper .tns-controls button {
			padding: 0 !important;
			background: #f0f0f0 !important;
			vertical-align: top;
			color: transparent;
			font-size: 0;
			text-indent: -9000em;
			width: 25px;
			height: 25px;
			border-radius: 50px;
			line-height: 25px;
			border:none !important;
			margin:0 !important;
			box-shadow: none !important;
}


/* Flèche gauche */
.cermep-products-wrapper .tns-controls button::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-mask: url('../images/arrow.svg') no-repeat center;
    -webkit-mask-size: 9px;
    mask: url('../images/arrow.svg') no-repeat center;
    mask-size: 9px;
    background-color: #184363;
    transition: all 0.3s ease;
}

/* NEXT = rotation flèche droite */
.cermep-products-wrapper .tns-controls button+button::before {
    transform: rotate(-180deg);
}

/* Hover */
.cermep-products-wrapper .tns-controls button:hover {
   border-color: #184363;
}

.cermep-products-wrapper .tns-controls button:hover
 {
    background-color: #184363;
    color: #ffffff;
}

/* Disabled */
.cermep-products-wrapper .tns-controls button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.cermep-products-wrapper .tns-controls button:disabled::before {
    border-color: #9aa3ad;
}

/*-- Lazyload on-fetcing & on-completed state stylig --*/

.post-image {
  position: relative;
  overflow: hidden;
  /*background: #f2f2f2;*/
}

/* Skeleton base */
.skeleton-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f2f2f2 25%,
    #e6e6e6 37%,
    #f2f2f2 63%
  );
  background-size: 400% 100%;
  animation: skeleton-wave 1.4s ease infinite;
  z-index: 1;
}

@keyframes skeleton-wave {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.post-image img {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* When loaded */
.post-image.loaded .skeleton-img {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.post-image.loaded img {
  opacity: 1;
}


/*-- Skeleton Shimmer Animation --*/

.skeleton-box,
.skeleton-line,
.skeleton-btn,
.skeleton-star {
  background: linear-gradient(
    90deg,
    #eeeeee 25%,
    #f5f5f5 37%,
    #eeeeee 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}



/*--  COMPONENT SIZING STYLE  --*/

.products-skeleton-grid {
    width: 100%;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr); /* Mobile default */
}

/* Tablet ≥ 768px → 3 columns */
@media (min-width: 768px) {
    .products-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop ≥ 1024px → 5 columns */
@media (min-width: 1024px) {
    .products-skeleton-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop ≥ 1440px → 5 columns */
@media (min-width: 1440px) {
    .products-skeleton-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Card */
.product-card.skeleton {
  list-style: none;
  width: 100%;
}

/* Image */
.skeleton-box {
  width: 100%;
  height: 220px;
  border-radius: 8px;
}

/* Lines */
.skeleton-line {
  height: 14px;
  margin: 10px 0;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-cat {
  width: 55%;
  height: 10px;
}

.skeleton-title {
  width: 100%;
  height: 16px;
  border-radius: 28px;
}

.skeleton-price {
  width: 40%;
  height: 18px;
  margin-top: 15px;
  border-radius: 28px;
}

/* Rating */
.skeleton-rating {
  display: flex;
  gap: 6px;
  margin: 15px 0;
}

/*.skeleton-star {
  width: 18px;
  height: 18px;
  background: linear-gradient(
    90deg,
    #eeeeee 25%,
    #f5f5f5 37%,
    #eeeeee 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}*/


/* Button */
.skeleton-btn {
  width: 100%;
  height: 50px;
  margin-top: 15px;
  border-radius: 28px;
}

