/* TuMundoSmartphone – Ficha de producto: colores, formas y entrega simplificada */

/* ── Precio ── */
#product .precios span,
#product .precios .precio-no-descuento,
.page-product .product-price,
.page-product .precio-no-descuento,
.precios .precio-no-descuento {
  color: #2A5F46 !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
}

#product .product-prices .precios,
.product-prices .precios {
  background: #fff !important;
  border: 1px solid #E5E9EF !important;
  border-left: 4px solid #2A5F46 !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  display: inline-block !important;
  box-shadow: none !important;
  margin: 10px 0 14px !important;
}

/* ── Cantidad ── */
#product .product-add-to-cart .qty input,
#product #quantity_wanted {
  border-radius: 12px !important;
  border: 1px solid #E5E9EF !important;
  height: 48px !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* ── Botón Añadir al carrito ── */
#product .boton-añadir-al-carrito .add-to-cart,
#product button.btn-primary.btn-lg.add-to-cart,
.page-product button.btn.add-to-cart {
  background: #F4C2A0 !important;
  color: #2A5F46 !important;
  border: none !important;
  border-radius: 40px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 32px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  box-shadow: 0 3px 12px rgba(244, 194, 160, 0.4) !important;
  transition: all 0.2s ease !important;
}

#product .boton-añadir-al-carrito .add-to-cart:hover,
#product button.btn-primary.btn-lg.add-to-cart:hover,
.page-product button.btn.add-to-cart:hover {
  background: #E8A87C !important;
  color: #1E4433 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(244, 194, 160, 0.5) !important;
}

/* Botón comprar ahora (CE) */
#product a.boton-comprar-ahora {
  background: #F4C2A0 !important;
  color: #2A5F46 !important;
  border: none !important;
  border-radius: 40px !important;
}

/* ── Contenedor producto ── */
.page-product .product-container {
  background: #fff !important;
  border: 1px solid #E5E9EF !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 16px rgba(42, 95, 70, 0.06) !important;
  padding: 24px !important;
}

/* ── Título ── */
.page-product h1.h1.page-title span,
h1.h1.page-title span {
  color: #1E4433 !important;
  -webkit-text-fill-color: #1E4433 !important;
  background: none !important;
}

/* ── Referencia ── */
.page-product p.referencia {
  color: #6B7280 !important;
  font-size: 13px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* ── Entrega estimada – compacta ── */
div#estimateddelivery,
.estimateddelivery.estimateddelivery-product {
  background: #F4F8F5 !important;
  border: 1px solid #B8D4C3 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-top: 16px !important;
  max-width: 100% !important;
  color: #2A5F46 !important;
}

div#estimateddelivery .ed_item,
.estimateddelivery .ed_item {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

div#estimateddelivery h4,
.estimateddelivery h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #2A5F46 !important;
  margin: 0 0 8px !important;
  line-height: 1.4 !important;
}

div#estimateddelivery h4:before,
.estimateddelivery h4:before {
  font-size: 15px !important;
  margin-right: 6px !important;
  color: #3D8A66 !important;
}

/* Ocultar transportistas extra (máx. 2 visibles) */
div#estimateddelivery .ed_item > p:nth-of-type(n+3),
.estimateddelivery .ed_item > p:nth-of-type(n+3) {
  display: none !important;
}

div#estimateddelivery p,
.estimateddelivery p {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #2A5F46 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}

div#estimateddelivery p:last-child,
.estimateddelivery p:last-child {
  margin-bottom: 0 !important;
}

div#estimateddelivery .ed_between,
.estimateddelivery .ed_between {
  font-weight: 400 !important;
  color: #6B7280 !important;
}

div#estimateddelivery strong,
.estimateddelivery strong {
  color: #1E4433 !important;
  font-weight: 700 !important;
}

div#estimateddelivery .with,
.estimateddelivery .with {
  color: #6B7280 !important;
  font-weight: 400 !important;
}

/* Fila cantidad + botón */
.page-product .product-add-to-cart .row {
  align-items: center !important;
  gap: 10px !important;
}

@media (max-width: 767px) {
  #product .product-prices .precios { max-width: 100% !important; }
  #product button.btn-primary.btn-lg.add-to-cart { width: 100% !important; }
  .page-product .product-container { padding: 16px !important; border-radius: 12px !important; }
}
