/* Página de producto. La carga la cabecera guardada en Diseño > Editor de temas (common/header).
   Solo estilos: la plantilla de OpenCart queda igual. Colores de la paleta oficial de Handawer. */

#product-info {
  --hw-negro: #111111;
  --hw-rosa: #f5a0b8;
  --hw-rosa-claro: #fde6ec;
  --hw-rosa-intenso: #ff4f9a;
  --hw-rosa-profundo: #c2255c;
  --hw-azul: #0086c9;
  --hw-azul-accion: #0071ab;
  --hw-celeste: #00aeef;
  --hw-gris: #666666;
  --hw-linea: #e3e3e3;
  --hw-fondo: #f6f6f6;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--hw-negro);
}

/* Migas */
#product-info .breadcrumb {
  gap: 8px;
  border: 0;
}

#product-info .breadcrumb > li.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
}

#product-info .breadcrumb > li.breadcrumb-item::after {
  content: none;
}

#product-info .breadcrumb > li.breadcrumb-item + li::before {
  content: "/" !important;
  float: none;
  padding: 0;
  border: 0;
  font-weight: 700;
  color: var(--hw-rosa-profundo);
}

#product-info .breadcrumb a {
  display: inline;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hw-gris) !important;
}

#product-info .breadcrumb-item:last-child a {
  color: var(--hw-negro) !important;
}

/* Galería */
#product-info .image .img-thumbnail {
  padding: 0;
  background: var(--hw-fondo);
  border: 1px solid var(--hw-linea);
  border-radius: 0;
}

#product-info .image > a:first-child {
  display: block;
  margin: 0 14px 26px 0;
  box-shadow: 12px 12px 0 var(--hw-rosa);
}

#product-info .image > a:first-child .img-thumbnail {
  display: block;
  width: 100%;
  margin: 0 !important;
  border: 0;
}

#product-info .image > div a {
  display: inline-block;
  margin: 0 6px 6px 0;
}

#product-info .image > div .img-thumbnail {
  width: 84px;
  height: 84px;
  margin: 0 !important;
  object-fit: cover;
  transition: border-color 0.15s;
}

/* Datos y compra */
#product-info #content > .row.mb-3 > .col-sm:last-child {
  align-self: flex-start;
  margin-right: calc(var(--bs-gutter-x) * 0.5);
  margin-left: calc(var(--bs-gutter-x) * 0.5);
  padding: 24px;
  background: var(--hw-fondo);
  border-top: 6px solid var(--hw-rosa);
}

#product-info h1 {
  margin: 0 0 12px;
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hw-negro);
}

#product-info #content > .row.mb-3 > .col-sm:last-child > ul {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hw-gris);
}

#product-info #content > .row.mb-3 > .col-sm:last-child > ul h2 {
  margin: 0;
}

#product-info .price-new {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--hw-negro);
}

#product-info ul:has(.price-old) .price-new {
  color: var(--hw-rosa-profundo);
}

#product-info .price-old {
  font-size: 15px;
  font-weight: 500;
  text-decoration: line-through;
  color: var(--hw-gris);
}

#product-info .col-sm .badge {
  padding: 4px 7px;
  background: var(--hw-rosa) !important;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--hw-negro);
}

#product-info .col-sm .btn-group .btn,
#product-info .col-sm form > .btn-light {
  background: #ffffff;
  border: 1px solid var(--hw-linea);
  border-radius: 0;
  color: var(--hw-negro);
}

#product-info hr {
  border-color: var(--hw-linea);
  opacity: 1;
}

#product-info #product h3,
#product-info #product .form-label,
#product-info #product .col-form-label {
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hw-negro);
}

#product-info #product :is(.form-select, .form-control) {
  background-color: #ffffff;
  border: 2px solid var(--hw-negro);
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--hw-negro);
}

#product-info #product .input-group-text {
  background: var(--hw-negro);
  border: 2px solid var(--hw-negro);
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

#product-info #input-quantity {
  max-width: 90px;
  text-align: center;
}

#product-info #button-cart {
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  padding: 12px 24px;
  background: var(--hw-negro);
  border: 2px solid var(--hw-negro);
  border-radius: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

/* Pestañas */
#product-info .nav-tabs {
  gap: 24px;
  margin-top: 32px;
  border-bottom: 2px solid var(--hw-linea);
}

#product-info .nav-tabs .nav-link {
  margin-bottom: -2px;
  padding: 10px 0;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hw-gris);
}

#product-info .nav-tabs .nav-link.active {
  border-bottom-color: var(--hw-rosa-intenso);
  color: var(--hw-negro);
}

#product-info .tab-content {
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.7;
}

#product-info .tab-content a {
  font-weight: 600;
  color: var(--hw-azul-accion);
}

#product-info .tab-content .table {
  --bs-table-border-color: var(--hw-linea);
  font-size: 14px;
}

/* Productos relacionados */
#product-info .product-thumb {
  background: #ffffff;
  border: 1px solid var(--hw-linea);
}

#product-info .product-thumb .button button:first-child {
  background: var(--hw-negro);
  color: #ffffff;
}

#product-info a:focus-visible,
#product-info button:focus-visible,
#product-info #product :is(.form-select, .form-control):focus {
  outline: 2px solid var(--hw-celeste);
  outline-offset: 1px;
  box-shadow: none;
}

@media (hover: hover) {
  #product-info .image > div a:hover .img-thumbnail {
    border-color: var(--hw-azul);
  }

  #product-info #button-cart:hover {
    background: var(--hw-rosa);
    border-color: var(--hw-rosa);
    color: var(--hw-negro);
  }

  #product-info .col-sm .btn-group .btn:hover,
  #product-info .col-sm form > .btn-light:hover {
    background: var(--hw-rosa-claro);
    color: var(--hw-rosa-profundo);
  }

  #product-info .nav-tabs .nav-link:hover {
    color: var(--hw-negro);
  }
}

@media (max-width: 575.98px) {
  #product-info .image > a:first-child {
    margin-right: 8px;
    box-shadow: 8px 8px 0 var(--hw-rosa);
  }

  #product-info .image > div .img-thumbnail {
    width: 68px;
    height: 68px;
  }

  #product-info #content > .row.mb-3 > .col-sm:last-child {
    margin-top: 8px;
    padding: 18px 16px;
  }

  #product-info h1 {
    font-size: 30px;
  }

  #product-info .price-new {
    font-size: 28px;
  }
}
