/* -------------------------
   Home desktop + tablet
------------------------- */

body {
  padding-top: 96px;
}

.cpt-categories-section {
  display: none;
}

.cpt-categories-scroll {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  gap: 12px 14px;
  flex-wrap: wrap;
  overflow-x: visible;
  justify-content: flex-start;
}

.ofertas {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 40px;
}

.ofertas-carousel {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  overflow: hidden;
  height: 260px;
}

.ofertas-header {
  margin-bottom: 18px;
}

.ofertas-header h2 {
  font-size: 20px;
}

.ofertas-track {
  gap: 0;
  align-items: stretch;
}

.oferta-link {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.oferta-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 36px;
  gap: 20px;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  width: 100%;
  border: 1px solid #e9e9e9;
  justify-content: flex-start;
  align-items: center;
}

.oferta-img-wrapper {
  width: 140px;
  height: 140px;
  background-color: #f6f6f6;
  border: 1px solid #ededed;
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
}

.oferta-card img.oferta-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.oferta-info {
  flex: 1;
  max-width: 600px;
  text-align: left;
  margin-left: 30px;
}

.oferta-info h3 {
  font-size: 24px;
  letter-spacing: -0.2px;
}

.oferta-info .descripcion {
  font-size: 14px;
  color: #6b6b6b;
  margin-bottom: 14px;
}

.precio-new {
  font-size: 22px;
}

.precios {
  gap: 12px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: fit-content;
}

.precio-old {
  font-size: 14px;
}

.oferta-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-primario);
  color: var(--color-primario);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  letter-spacing: 0.2px;
}

.productos-populares {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 40px;
}

.productos-header h2 {
  font-size: 20px;
}

.productos-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.productos-scroll-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e2e2e2;
  background: #ffffff;
  color: #3a3a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.scroll-btn:hover {
  background-color: #f5f5f5;
  border-color: #d3d3d3;
}

.scroll-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.productos-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.productos-scroll::-webkit-scrollbar {
  display: none;
}

.producto-card {
  width: 240px;
  min-height: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.producto-img-wrapper {
  width: calc(100% - 24px);
  height: 180px;
  margin: 12px auto 10px;
  overflow: hidden;
}

.producto-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.producto-info {
  padding: 0 18px 16px;
  margin-top: 0.6em;
}

.producto-info h3 {
  font-size: 14px;
}

.producto-info .categoria {
  font-size: 12px;
}

@media (min-width: 900px) {
  .cpt-categories-scroll {
    max-width: 1280px;
    padding: 0 56px;
  }
  body {
    padding-top: 104px;
  }

  .ofertas {
    max-width: 1280px;
    padding: 0 56px;
  }

  .productos-populares {
    max-width: 1280px;
    padding: 0 56px;
  }

  .productos-scroll {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (min-width: 1200px) {
  .cpt-categories-scroll {
    max-width: 1360px;
  }
  .ofertas {
    max-width: 1360px;
  }

  .productos-populares {
    max-width: 1360px;
  }
}
