/* ========================================
   PRODUCT DETAILS
   ======================================== */

.product-details {
  padding: 30px 0 70px;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.product-breadcrumb {
  margin-bottom: 25px;
}

.product-breadcrumb .uk-breadcrumb {
  margin: 0;
}

.product-breadcrumb .uk-breadcrumb > * > * {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
}

.product-breadcrumb .uk-breadcrumb > :last-child > span {
  color: #374151;
}

/* ========================================
   PRODUCT MAIN
   ======================================== */

.product-main {
  --product-image-height: 520px;
  margin-bottom: 60px;
}

/* ========================================
   PRODUCT GALLERY
   ======================================== */

.product-gallery {
  width: 100%;
}

/* Imagen principal */

.product-main-image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: var(--product-image-height);

  padding: 25px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 15px;

  box-sizing: border-box;
}

.product-main-image > div {
  width: 100%;
  height: 100%;
}

.product-main-image .uk-slideshow-items {
  height: 100%;
}

.product-main-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.product-main-image .uk-slideshow-items img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  z-index: 2;
}

.product-gallery-arrow-left {
  left: 15px;
}

.product-gallery-arrow-right {
  right: 15px;
}

/* ========================================
   MINIATURAS
   ======================================== */

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.product-thumbnails li {
  list-style: none;
}

.product-thumbnail {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  padding: 5px;

  flex-shrink: 0;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  cursor: pointer;

  transition: border-color 0.2s ease;
}

.product-thumbnail:hover,
.product-thumbnail.is-active,
.product-thumbnails li.uk-active .product-thumbnail {
  border-color: #f97316;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* ========================================
   PRODUCT INFORMATION
   ======================================== */

.product-info {
  padding-top: 5px;
}

.product-title {
  margin: 0 0 20px;

  color: #1f2937;

  font-size: 38px;
  line-height: 1.15;

  font-weight: 500;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 4px;

  margin-bottom: 25px;
}

.product-price-old {
  font-size: 16px;
  color: #f97316;
  text-decoration: line-through;
}

.product-price-current {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
}

/* ========================================
   FEATURES
   ======================================== */

.product-features {
  margin: 0 0 25px;

  padding-left: 22px;

  color: #374151;
}

.product-features li {
  margin-bottom: 8px;

  font-size: 16px;

  line-height: 1.4;
}

/* ========================================
   COLOR
   ======================================== */

.product-color {
  display: flex;
  gap: 5px;

  margin-bottom: 20px;

  color: #374151;

  font-size: 16px;
}

/* ========================================
   WHATSAPP BUTTON
   ======================================== */

.product-whatsapp-button {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  width: 100%;

  min-height: 55px;

  padding: 0 20px;

  background: #f97316;

  border-radius: 10px;

  color: #ffffff;

  font-size: 16px;
  font-weight: 600;

  text-decoration: none;

  box-sizing: border-box;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.product-whatsapp-button:hover {
  background: #ea650d;

  color: #ffffff;

  text-decoration: none;

  transform: translateY(-1px);
}

.product-whatsapp-button img {
  width: 28px;
  height: 28px;

  object-fit: contain;
}

.product-description {
  margin-top: 20px;
  margin-bottom: 28px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.product-description > :last-child {
  margin-bottom: 0;
}

.product-description p {
  margin: 0 0 12px;
}

.product-description ul,
.product-description ol {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 20px;
}

.product-description li {
  margin-bottom: 6px;
}

.product-description strong {
  color: #222;
}

/* ========================================
   DESKTOP / TABLET HORIZONTAL (UIkit @m)
   ======================================== */

@media (min-width: 960px) {
  .product-info {
    display: flex;
    flex-direction: column;
    min-height: var(--product-image-height);
    box-sizing: border-box;
  }

  .product-whatsapp-button {
    margin-top: auto;
  }
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {
  .product-details {
    padding: 20px 0 40px;
  }

  /* Breadcrumb */

  .product-breadcrumb {
    margin-bottom: 20px;
  }

  .product-breadcrumb .uk-breadcrumb > * > * {
    font-size: 12px;
  }

  /* Imagen principal */

  .product-main-image {
    height: 380px;

    padding: 15px;

    border-radius: 12px;
  }

  /* Miniaturas */

  .product-thumbnail {
    width: 60px;
    height: 60px;
  }

  /* Información */

  .product-info {
    padding-top: 25px;
  }

  .product-title {
    font-size: 28px;

    line-height: 1.2;

    margin-bottom: 15px;
  }

  .product-price {
    font-size: 24px;

    margin-bottom: 20px;
  }

  .product-features li {
    font-size: 15px;
  }

  .product-description {
    margin-top: 15px;
    margin-bottom: 24px;
  }

  .product-whatsapp-button {
    min-height: 52px;

    border-radius: 10px;
  }

  /* OCULTAR FLECHAS EN MOBILE */

  .product-gallery-arrow {
    display: none;
  }
}

/* ========================================
   PRODUCT DETAILS - ESPECIFICACIONES
   ======================================== */

.product-specifications {
  margin-top: 45px;
}

/* Acordeón */

.product-specifications-accordion {
  margin: 0;
}

/* Tarjeta principal */

.product-specifications-accordion > li {
  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 15px;

  overflow: hidden;
}

/* ========================================
   ENCABEZADO
   ======================================== */

.product-specifications-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 20px 25px;

  color: #1f2937;

  text-decoration: none;
}

/* Quitar icono automático de UIkit */

.product-specifications-header::before {
  display: none !important;
}

/* Grupo icono + título */

.product-specifications-heading {
  display: flex;

  align-items: center;

  gap: 12px;
}

/* Icono */

.product-specifications-icon {
  color: #f97316;
}

/* Título */

.product-specifications-heading h2 {
  margin: 0;

  color: #1f2937;

  font-size: 20px;
  font-weight: 600;
}

/* ========================================
   ICONO ABRIR / CERRAR
   ======================================== */

.product-specifications-toggle {
  position: relative;

  width: 20px;
  height: 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

/* Línea horizontal */

.product-specifications-toggle::before {
  content: "";

  position: absolute;

  width: 16px;
  height: 2px;

  background-color: #1f2937;

  border-radius: 2px;
}

/* Línea vertical */

.product-specifications-toggle::after {
  content: "";

  position: absolute;

  width: 2px;
  height: 16px;

  background-color: #1f2937;

  border-radius: 2px;

  transition: transform 0.2s ease;
}

/* Cuando el acordeón está abierto */

.product-specifications-accordion
  > .uk-open
  .product-specifications-toggle::after {
  transform: rotate(90deg);
}

/* ========================================
   CONTENIDO
   ======================================== */

.product-specifications .uk-accordion-content {
  margin-top: 0;

  padding: 0 25px 25px;
}

/* ========================================
   TABLA
   ======================================== */

.product-specifications-table {
  width: 100%;

  border: 1px solid #eeeeee;

  border-radius: 8px;

  overflow: hidden;
}

/* Cada fila */

.product-specification-row {
  display: grid;

  grid-template-columns: 40% 60%;

  border-bottom: 1px solid #eeeeee;
}

/* Última fila */

.product-specification-row:last-child {
  border-bottom: none;
}

/* Columnas */

.product-specification-row > div {
  padding: 12px 15px;

  color: #4b5563;

  font-size: 14px;
}

/* Primera columna */

.product-specification-row > div:first-child {
  font-weight: 500;

  color: #374151;
}

/* ========================================
   ENCABEZADO DE LA TABLA
   ======================================== */

.product-specification-table-header {
  background-color: #fafafa;
}

.product-specification-table-header > div {
  font-weight: 600;

  color: #374151;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 767px) {
  .product-specifications {
    margin-top: 30px;
  }

  .product-specifications-header {
    padding: 18px;
  }

  .product-specifications-heading {
    gap: 10px;
  }

  .product-specifications-heading h2 {
    font-size: 17px;
  }

  .product-specifications .uk-accordion-content {
    padding: 0 15px 15px;
  }

  .product-specification-row {
    grid-template-columns: 1fr;
  }

  .product-specification-row > div {
    padding: 10px 12px;
  }

  .product-specification-row > div:first-child {
    padding-bottom: 4px;

    font-weight: 600;
  }

  .product-specification-row > div:last-child {
    padding-top: 4px;
  }
}

/* ========================================
   PRODUCTOS DESTACADOS
   ======================================== */

.products {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* ========================================
   ENCABEZADO
   ======================================== */

#products-title {
  margin: 0;

  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}

/* Ver todos los productos */

.products-view-all {
  color: #f97316;

  font-size: 16px;
  font-weight: 600;

  text-decoration: none;
}

.products-view-all:hover {
  color: #ea580c;
  text-decoration: none;
}

/* ========================================
   CARD
   ======================================== */

.product-card {
  height: 100%;
  box-sizing: border-box;

  border: 1px solid #e5e5e5;
  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* ========================================
   GRID DE PRODUCTOS
   ======================================== */

.products .uk-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;

  margin: 0;
}

/* ========================================
   CARD DENTRO DEL GRID
   ======================================== */

.products .uk-grid > * {
  width: auto;
  padding-left: 0;
}

/* Hover */

.product-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   IMAGEN
   ======================================== */

.product-card .uk-card-media-top {
  height: 190px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px 20px;

  box-sizing: border-box;
}

.product-card .uk-card-media-top img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

/* ========================================
   CONTENIDO
   ======================================== */

.product-card .uk-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 15px 14px 18px;
}

/* ========================================
   NOMBRE
   ======================================== */

.product-card .uk-card-title {
  margin: 0 0 8px;

  color: #222222;

  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}

/* ========================================
   DESCRIPCIÓN
   ======================================== */

.product-card .uk-card-body > p:not(.product-price) {
  margin: 0 0 8px;

  color: #666666;

  font-size: 14px;
  line-height: 1.3;
}

/* ========================================
   PRECIO
   ======================================== */

.product-card .product-price {
  margin: 0 0 14px;

  color: #222222;

  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

/* ========================================
   BOTÓN WHATSAPP
   ======================================== */

.product-card .product-whatsapp {
  width: 100%;

  min-height: 36px;

  padding: 0 10px;

  border: 1px solid #f97316;
  border-radius: 8px;

  background-color: #ffffff;

  color: #222222;

  font-size: 13px;
  font-weight: 500;

  text-transform: none;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* CONTENEDOR DEL BOTÓN */

.product-card-whatsapp {
  padding: 0 14px 18px;
  box-sizing: border-box;
}

/* Icono WhatsApp */

.product-card .product-whatsapp img {
  width: 18px;
  height: 18px;

  object-fit: contain;

  display: block;

  flex-shrink: 0;
}

/* Hover */

.product-card .product-whatsapp:hover {
  background-color: #fff7ed;

  border-color: #f97316;

  color: #222222;

  text-decoration: none;
}

/* Texto mobile oculto por defecto */

.product-card .text-mobile {
  display: none;
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {
  .products {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .product-card .text-desktop {
    display: none;
  }

  .product-card .text-mobile {
    display: block;
  }

  /* ========================================
       ENCABEZADO
       ======================================== */

  .products .uk-flex {
    flex-wrap: nowrap;
    gap: 10px;

    margin-bottom: 25px !important;
  }

  #products-title {
    font-size: 22px;
    line-height: 1.2;

    white-space: nowrap;
  }

  .products-view-all {
    font-size: 12px;
    line-height: 1.2;

    white-space: nowrap;

    flex-shrink: 0;
  }

  /* ========================================
       IMAGEN
       ======================================== */

  .product-card .uk-card-media-top {
    height: 160px;

    padding: 12px 15px;
  }

  /* ========================================
       CONTENIDO
       ======================================== */

  .product-card .uk-card-body {
    padding: 12px 15px 15px;
  }

  /* ========================================
       NOMBRE
       ======================================== */

  .product-card .uk-card-title {
    font-size: 14px;
  }

  /* ========================================
       DESCRIPCIÓN
       ======================================== */

  .product-card .uk-card-body > p:not(.product-price) {
    font-size: 13px;
  }

  /* ========================================
       PRECIO
       ======================================== */

  .product-card .product-price {
    font-size: 16px;
  }

  /* ========================================
       GRID MOBILE
       ======================================== */

  .products .uk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* ========================================
       BOTÓN WHATSAPP - MOBILE
       ======================================== */

  .product-card .product-whatsapp {
    width: auto;

    min-height: 32px;

    padding: 0 12px;

    font-size: 12px;

    gap: 6px;

    white-space: nowrap;
  }

  /* Icono */

  .product-card .product-whatsapp img {
    width: 17px;
    height: 17px;
  }
}

/* ========================================
   CÓMO COMPRAR
   ======================================== */

.how-to-buy {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ========================================
   TÍTULO
   ======================================== */

#how-to-buy-title {
  margin: 0;

  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}

#how-to-buy-title span {
  color: #f97316;
}

/* ========================================
   CONTENEDOR DE PASOS
   ======================================== */

.how-to-buy .uk-flex {
  width: 100%;
}

/* ========================================
   TARJETAS
   ======================================== */

.how-to-buy-step {
  width: 230px;
  min-height: 155px;

  padding: 15px 15px;

  box-sizing: border-box;

  border: 1px solid #e5e5e5;
  border-radius: 12px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  background-color: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ========================================
   ICONOS
   ======================================== */

.how-to-buy-step > img {
  width: 65px;
  height: 65px;

  object-fit: contain;

  display: block;

  margin-bottom: 5px;
}

/* ========================================
   NÚMERO
   ======================================== */

.how-to-buy-step h3 {
  margin: 0 0 3px;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;

  color: #222222;
}

/* ========================================
   TÍTULO DEL PASO
   ======================================== */

.how-to-buy-step h4 {
  margin: 0 0 5px;

  color: #222222;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

/* ========================================
   DESCRIPCIÓN
   ======================================== */

.how-to-buy-step p {
  margin: 0;

  color: #666666;

  font-size: 12px;
  line-height: 1.35;
}

/* ========================================
   FLECHAS
   ======================================== */

.how-to-buy-arrow {
  width: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.how-to-buy-arrow img {
  width: 45px;
  height: auto;

  display: block;
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {
  .how-to-buy {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #how-to-buy-title {
    font-size: 24px;
  }

  .how-to-buy .uk-flex {
    flex-direction: column;
    gap: 15px;
  }

  .how-to-buy-step {
    width: 100%;
    max-width: 320px;
    min-height: 150px;
  }

  .how-to-buy-arrow {
    transform: rotate(90deg);

    width: 40px;
    height: 30px;
  }
}
