.im-category-slider {
  position: relative; /* FONDAMENTALE: le frecce si posizionano rispetto a questo box */
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* Mantiene le proporzioni 600x800 dell'originale */
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: scale ease-in-out .3s;
}

.image-wrapper img:hover{
  scale: 1.1;
}

.ast-single-post .entry-content a.im-category-card {
  text-decoration: none;
  display: block;
  color: var(--ast-global-color-2);
}

.im-category-card figcaption {
    margin-top: 0px;
    font-size: 1.1rem;
    text-align: center;
    border: solid 1px var(--ast-global-color-2);
}

/* Personalizzazione della barra di avanzamento (progressbar) */
.im-swiper-pagination.swiper-pagination-progressbar {
  position: relative;
  margin-top: 32px;
  height: 3px;
  background: var(--ast-global-color-5); /* Colore sfondo barra */
}

.im-swiper-pagination .swiper-pagination-progressbar-fill {
  background: var(--ast-global-color-1); /* Colore avanzamento */
}

/* Stile e Posizionamento delle Frecce Esterne */
.im-category-slider .swiper-button-next,
.im-category-slider .swiper-button-prev {
  position: absolute;
  top: 40%; /* Centrate rispetto alle immagini */
  z-index: 10;
  color: var(--ast-global-color-4);
  background: var(--ast-global-color-1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin-top: -20px; /* Offset per centratura perfetta */
}

.im-category-slider .swiper-button-prev {
  left: -60px;
}

.im-category-slider .swiper-button-next {
  right: -60px;
}

/* Ridimensionamento dell'icona della freccia interna */
.im-category-slider .swiper-button-next::after,
.im-category-slider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.im-category-slider .swiper-button-next:hover,
.im-category-slider .swiper-button-prev:hover {
  color: var(--ast-global-color-0);
  background: var(--ast-global-color-5);
}

.im-category-slider .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1200px){
  .im-category-slider {
    padding-left: 25px;
    padding-right: 25px;
  }
  .im-category-slider .swiper-button-prev {
    left: 0px;
  }
  .im-category-slider .swiper-button-next {
    right: 0px;
  }
}

@media (max-width: 921px){
  .im-category-slider {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .im-category-slider .swiper-button-next, 
  .im-category-slider .swiper-button-prev {
    display: none;
  }
}

/* ==========================================
   STILI PRODOTTI IN EVIDENZA
   ========================================== */
.im-product-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.im-product-card .image-wrapper{
  aspect-ratio: 1 / 1;
  border: solid 1px var(--ast-global-color-2);
}

.im-product-title {
  font-size: 1rem;
  color: var(--ast-global-color-0, #222);
}

.im-product-price {
  font-size: 0.95rem;
}

.im-product-price del {
  opacity: 0.6;
  font-weight: normal;
  margin-right: 6px;
}

.im-product-price ins {
  text-decoration: none;
}