

/* Diseño principal para mobile */
#sellCategories .category-card {
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: #fff1d6;
  border-radius: 6px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 12%);
  margin: 15px; /* Espacio entre las cards */
}

#sellCategories .category-card h2 {
  margin: 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.7em; /* Tamaño de fuente optimizado para móvil */
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(45deg, #ff416c, #ff4b2b); /* Gradiente vibrante */
  padding: 8px 15px;
  border-radius: 10px;
  border: 5px solid #fff;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5); /* Efecto de brillo */
  animation: bounce 1s ease infinite;
}

#sellCategories .category-card img {
  width: 100%;
  max-width: 100%;
}

#sellCategories .category-card .category-image {
  position: relative;
  overflow: hidden;
}

#sellCategories .category-card .category-image img {
  transition: transform 0.3s ease;
}

#sellCategories .category-card .category-image:hover img {
  transform: scale(1.1);
  cursor: pointer;
}

#sellCategories .category-card .product-image {
  border-radius: 5px;
  border: 1px solid #87cefa;
  background-color: #fff;
}

#sellCategories .category-card .product-image:hover {
  border: 1px solid #2794b3;
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.autoplay-progress {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--swiper-theme-color);
}

.autoplay-progress svg {
  --progress: 0;
  position: absolute;
  left: 0;
  top: 0px;
  z-index: 10;
  width: 100%;
  height: 100%;
  stroke-width: 4px;
  stroke: var(--swiper-theme-color);
  fill: none;
  stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
  stroke-dasharray: 125.6;
  transform: rotate(-90deg);
}

/*################################################*/
/*#####   RESPONSIVE DESIGN -MOBILE FIRST   ######*/
/*################################################*/

/* Para Teléfonos Móviles Pequeños en Vista Vertical u Horizontal */
@media screen and (max-width: 320px) {
  #sellCategories .swiper-wrapper {
    margin-bottom: 0.5rem;
  }
}

/* Para Teléfonos Móviles en Vista Vertical u Horizontal */
@media screen and (max-width: 360px) {
  #sellCategories .swiper-wrapper {
    margin-bottom: 0.5rem;
  }
}

/* Para Vista Móvil en Orientación Vertical */
@media screen and (max-width: 480px) {
  #sellCategories .swiper-wrapper {
    margin-bottom: 0.5rem;
  }
}

/* Para Vista Móvil en Orientación Horizontal */
@media screen and (max-width: 640px) and (orientation: landscape) {
  #sellCategories .swiper-wrapper {
    margin-bottom: 0.5rem;
  }
}

/* Para Vista de Tableta */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #sellCategories .category-card {
    padding: 15px;
  }

  #sellCategories .swiper-wrapper {
    margin-bottom: 1rem;
  }

  #sellCategories .category-card h2 {
    margin: 0 15px;
    font-size: 0.9em;
    padding: 10px 20px;
  }
  #sellCategories .images div {
    padding: 0.2rem;
  }

}

/* Para Notebooks (resoluciones típicas entre 1024px y 1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  #sellCategories .category-card {
    flex-direction: column;
  }

  #sellCategories .category-card h2 {
    margin: 0 20px;
    font-size: 0.9em;
    padding: 12px 25px;
  }
}

/* Para Vista de Escritorio */
@media screen and (min-width: 1400px) {
  #sellCategories .category-card {
    flex-direction: column;
  }

  #sellCategories .category-card h2 {
    margin: 0 20px;
    font-size: 1em;
    padding: 12px 25px;
  }
}
