/* Encima de redes/share: el contenedor del hook es flex y este bloque va primero */
.product-additional-info.js-product-additional-info {
  display: flex;
  flex-direction: column;
}

.product-additional-info .nw-product-info {
  order: -1;
}

.nw-product-info {
  margin: 0 0 0.85rem;
  padding: 0 0 0.75rem;
  border-top: none;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
}

.nw-product-info__row {
  margin: 0 0 0.2rem;
}

.nw-product-info__row:last-child {
  margin-bottom: 0;
}

.nw-product-info__label {
  font-weight: 600;
  margin-right: 0.25rem;
}

.nw-product-info__value {
  font-weight: 400;
}

/* Pastilla de stock: debajo de la descripción corta, antes de Añadir */
.nw-product-stock {
  margin: 0 0 1rem;
}

.nw-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem 0.38rem 0.7rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.nw-stock-badge__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.nw-stock-badge__cart {
  font-weight: 600;
  opacity: 0.85;
}

.nw-stock-badge__cart[hidden] {
  display: none !important;
}

.nw-stock-badge--ok {
  background: #eaf8ef;
  border-color: #8fdcab;
  color: #166534;
}

.nw-stock-badge--ok .nw-stock-badge__dot {
  background: #22c55e;
}

.nw-stock-badge--low {
  background: #fff8e4;
  border-color: #ffd173;
  color: #7f5a15;
}

.nw-stock-badge--low .nw-stock-badge__dot {
  background: #ffb92e;
}

.nw-stock-badge--out {
  background: #fef3f2;
  border-color: #fda29b;
  color: #b42318;
}

.nw-stock-badge--out .nw-stock-badge__dot {
  background: #f04438;
}

/* Stock en tarjetas de categoría (debajo de Añadir) */
.product-miniature .nw-product-stock-list,
.product-list .nw-product-stock-list,
.elementor-product-miniature .nw-product-stock-list {
  display: block;
  width: 100%;
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.nw-product-stock-list--ok {
  color: #16a34a;
}

.nw-product-stock-list--low {
  color: #ca8a04;
}

.nw-product-stock-list--out {
  color: #dc2626;
}


/* Brand name next to logo */
.product-manufacturer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  color: inherit;
}

.product-manufacturer-link:hover .manufacturer-name {
  color: #3457d5;
  text-decoration: underline;
}

.product-manufacturer .manufacturer-logo {
  max-height: 36px;
  width: auto;
  display: block;
}

.product-manufacturer .manufacturer-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: #12131c;
}

.product-manufacturer-next {
  max-width: 45%;
}

.product-manufacturer-next .product-manufacturer-link {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 768px) {
  .product-manufacturer-next {
    float: none !important;
    max-width: 100%;
    margin: 0 0 0.75rem;
  }

  .product-manufacturer-next .product-manufacturer-link {
    justify-content: flex-start;
    text-align: left;
  }

  #product .product-manufacturer-next .product-manufacturer-link {
    justify-content: center;
    text-align: center;
  }
}

/* Product thumbs under main image */
#product .images-container-bottom #product-images-thumbs {
  display: block;
  margin-top: 0.75rem;
  width: 100%;
}

#product .images-container-bottom .product-images .thumb-container {
  cursor: pointer;
}

#product .images-container-bottom .product-images .thumb {
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

#product .images-container-bottom .product-images .thumb.selected,
#product .images-container-bottom .product-images .thumb.js-thumb-selected {
  border-color: #3457d5;
}

#product .images-container-bottom .product-images .thumb:hover {
  opacity: 0.85;
}

@media (max-width: 767px) {
  #product .images-container-bottom #product-images-thumbs {
    margin-top: 0.5rem;
  }

  #product .images-container-bottom .product-images .thumb {
    border-radius: 4px;
  }
}
