/*
 * Historial de navegación de Doofinder.
 * Replica el lenguaje visual del bloque "Nuestros destacados".
 */
body#index .hb-doofinder-history {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  margin: 0;
  padding-top: 26px;
  background: #fff;
}

body#index .hb-doofinder-history::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #fff;
  content: "";
}

body#index .hb-doofinder-history .dfwidget-host {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body#index .hb-doofinder-history .dfwidget-title {
  margin: 0 0 16px;
  padding: 0;
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-size: var(--font-2xl);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

body#index .hb-doofinder-history .dfwidget-carousel {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 0 44px;
}

body#index .hb-doofinder-history .carousel-content {
  display: grid;
  grid-auto-columns: calc((100% - 72px) / 7);
  grid-auto-flow: column;
  gap: 12px;
  width: 100%;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

body#index .hb-doofinder-history .carousel-content::-webkit-scrollbar {
  display: none;
}

body#index .hb-doofinder-history .dfwidget-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  scroll-snap-align: start;
}

body#index .hb-doofinder-history .card-media {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

body#index .hb-doofinder-history .card-media-thumbnail,
body#index .hb-doofinder-history .card-media-thumbnail img {
  width: 100%;
  height: 100%;
}

body#index .hb-doofinder-history .card-media-thumbnail img {
  display: block;
  object-fit: contain;
}

body#index .hb-doofinder-history .card-content {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 186px;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0 !important;
  padding: 10px;
  color: var(--color-text);
}

body#index .hb-doofinder-history .card-title {
  display: -webkit-box;
  min-height: 52.5px;
  max-height: 52.5px;
  margin: 0;
  overflow: hidden;
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body#index .hb-doofinder-history .card-description {
  display: none;
}

body#index .hb-doofinder-history .card-pricing {
  display: flex;
  min-height: 36px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 7px;
}

body#index .hb-doofinder-history .card-price {
  color: #888;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.15;
  text-decoration: line-through;
}

body#index .hb-doofinder-history .card-price--sale {
  order: -1;
  color: var(--color-primary);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

body#index .hb-doofinder-history .card-link {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  display: flex;
  width: 100% !important;
  max-width: none !important;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: auto 0 0 !important;
  padding: 7px 8px;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

body#index .hb-doofinder-history .hb-history-rating {
  display: flex;
  height: 14px;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  font-family: var(--font-primary);
  font-size: 12px;
  line-height: 14px;
}

body#index .hb-doofinder-history .hb-history-stars {
  color: var(--color-primary);
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 14px;
  white-space: nowrap;
}

body#index .hb-doofinder-history .hb-history-rating-count {
  color: var(--color-text);
}

body#index .hb-doofinder-history .hb-history-brand {
  display: flex;
  min-height: 18px;
  align-items: center;
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 10px;
  line-height: 18px;
  text-transform: uppercase;
}

body#index .hb-doofinder-history .hb-history-brand-logo {
  display: block;
  width: auto;
  max-width: 58px;
  height: auto;
  max-height: 18px;
  object-fit: contain;
  object-position: left center;
}

body#index .hb-doofinder-history .card-price.hb-history-current-price {
  color: var(--color-text);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

body#index .hb-doofinder-history .card-link::after {
  content: "Ver el producto";
}

body#index .hb-doofinder-history .card-link:hover,
body#index .hb-doofinder-history .card-link:focus-visible {
  border-color: #d93833;
  background: #d93833;
  color: #fff;
}

body#index .hb-doofinder-history .carousel-arrow {
  position: absolute;
  z-index: 3;
  top: auto;
  bottom: 0;
  left: auto;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
}

body#index .hb-doofinder-history .carousel-arrow-left {
  right: 40px;
}

body#index .hb-doofinder-history .carousel-arrow-right {
  right: 0;
}

body#index .hb-doofinder-history .carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 1599px) {
  body#index .hb-doofinder-history .carousel-content {
    grid-auto-columns: calc((100% - 60px) / 6);
  }
}

@media (max-width: 1279px) {
  body#index .hb-doofinder-history .carousel-content {
    grid-auto-columns: calc((100% - 48px) / 5);
  }
}

@media (max-width: 1099px) {
  body#index .hb-doofinder-history .carousel-content {
    grid-auto-columns: calc((100% - 36px) / 4);
  }
}

@media (max-width: 991px) {
  body#index .hb-doofinder-history {
    padding-top: 22px;
  }

  body#index .hb-doofinder-history .dfwidget-title {
    margin-bottom: 14px;
  }

  body#index .hb-doofinder-history .carousel-content {
    grid-auto-columns: calc((100% - 24px) / 3);
  }
}

@media (max-width: 767px) {
  body#index .hb-doofinder-history {
    padding-top: 18px;
  }

  body#index .hb-doofinder-history .dfwidget-title {
    margin-bottom: 12px;
  }

  body#index .hb-doofinder-history .carousel-content {
    grid-auto-columns: 45.455%;
  }

  body#index .hb-doofinder-history .dfwidget-host {
    padding-right: 16px;
    padding-left: 16px;
  }
}

body#index .hb-homecategories.hb-has-doofinder-history {
  padding-bottom: 0;
}

@media (max-width: 479px) {
  body#index .hb-doofinder-history .carousel-content {
    grid-auto-columns: 74.074%;
  }
}
