/* SHUEVO — carrito (drawer + página) */

/* Ocultar spinners nativos del input number */
.cart-qty-input,
.cart-line-qty input,
.product-detial .product-form input[type="number"],
#qty {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button,
.cart-line-qty input::-webkit-outer-spin-button,
.cart-line-qty input::-webkit-inner-spin-button,
.product-detial .product-form input[type="number"]::-webkit-outer-spin-button,
.product-detial .product-form input[type="number"]::-webkit-inner-spin-button,
#qty::-webkit-outer-spin-button,
#qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}

/* Selector de cantidad — pill SHUEVO */
.sh-qty,
.cart-qty-row {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(76, 88, 47, 0.2);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.sh-qty .cart-qty-btn,
.cart-qty-row .cart-qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--sh-olive);
  font-size: 17px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.sh-qty .cart-qty-btn:hover,
.cart-qty-row .cart-qty-btn:hover {
  background: rgba(76, 88, 47, 0.08);
  color: var(--sh-olive-dark);
}

.sh-qty .cart-qty-input,
.cart-qty-row .cart-qty-input {
  width: 42px;
  height: 34px;
  border: 0;
  border-left: 1px solid rgba(76, 88, 47, 0.12);
  border-right: 1px solid rgba(76, 88, 47, 0.12);
  border-radius: 0;
  text-align: center;
  font-family: var(--sh-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--sh-ink);
  padding: 0;
  background: transparent;
  outline: none;
}

.sh-qty .cart-qty-input:focus,
.cart-qty-row .cart-qty-input:focus {
  background: rgba(76, 88, 47, 0.04);
}

/* Quitar — botón icono */
.sh-cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(76, 88, 47, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--sh-muted);
  font-family: var(--sh-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.sh-cart-remove-btn svg {
  flex-shrink: 0;
}

.sh-cart-remove-btn:hover {
  color: #7a3030;
  border-color: rgba(122, 48, 48, 0.25);
  background: rgba(122, 48, 48, 0.05);
}

.sh-cart-remove-btn.is-icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}

.cart-modal .sh-cart-remove-btn.is-icon-only,
.cart-modal .icon-close {
  position: absolute;
  right: 0;
  top: 0;
}

.cart-modal .cart-list .price small {
  display: inline-block;
  margin-left: 4px;
  color: var(--sh-muted);
  font-size: 12px;
  font-weight: 500;
}

.btn-primary.is-disabled,
.btn-primary.is-busy {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* Ficha producto */
.product-detial .product-form input[type="number"],
.product-detial .product-form #qty {
  width: 70px;
  height: 36px;
  border: 1px solid rgba(76, 88, 47, 0.2);
  border-radius: 999px;
  text-align: center;
  font-family: var(--sh-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--sh-ink);
  padding: 0 8px;
  outline: none;
  background: #fff;
}

.product-detial .product-form input[type="number"]:focus,
.product-detial .product-form #qty:focus {
  border-color: var(--sh-olive);
  box-shadow: 0 0 0 3px rgba(76, 88, 47, 0.1);
}

.cart-totals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sh-sans);
  font-size: 13px;
  color: var(--sh-muted);
}

.cart-total-line strong {
  color: var(--sh-ink);
  font-size: 14px;
}

.cart-total-line-grand {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(76, 88, 47, 0.12);
  font-weight: 700;
  color: var(--sh-ink);
}

.cart-total-line-grand strong {
  font-size: 18px;
  color: var(--sh-olive);
}

.cart-eta-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sh-muted);
  font-family: var(--sh-sans);
}

.product-trace-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(76, 88, 47, 0.08);
  color: var(--sh-olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.order-milestones {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-milestone {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.order-milestone-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(76, 88, 47, 0.2);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--sh-muted);
}

.order-milestone.is-done .order-milestone-dot,
.order-milestone.is-current .order-milestone-dot {
  border-color: var(--sh-olive);
  background: var(--sh-olive);
  color: #fff;
}

.order-milestone.is-current .order-milestone-dot {
  box-shadow: 0 0 0 3px rgba(76, 88, 47, 0.15);
}

.order-milestone-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.order-milestone-body span {
  font-size: 12px;
  color: var(--sh-muted);
}

.order-care-tips {
  background: rgba(248, 243, 234, 0.9);
  border: 1px solid rgba(76, 88, 47, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}

.order-care-tips h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.order-care-tips p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sh-muted);
}

/* Líneas de carrito — salida suave al eliminar */
.cart-modal .cart-list li.is-leaving,
.cart-page-line.is-leaving {
  will-change: opacity, transform, max-height;
}

.cart-page-line {
  transition:
    opacity .36s cubic-bezier(.22, 1, .36, 1),
    transform .36s cubic-bezier(.22, 1, .36, 1),
    max-height .42s cubic-bezier(.22, 1, .36, 1),
    margin .42s cubic-bezier(.22, 1, .36, 1),
    padding .42s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.cart-page-line.is-leaving {
  opacity: 0;
  transform: translateX(14px) scale(0.98);
  max-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .cart-modal .cart-list li,
  .cart-page-line,
  .cart-modal.is-empty .cart-empty {
    transition: none !important;
    animation: none !important;
  }
}

/* Rastreo con mapa */
.order-track-map {
  margin: 0 0 18px;
  border: 1px solid rgba(76, 88, 47, 0.14);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.order-track-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 0;
}
.order-track-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(76, 88, 47, 0.12);
  color: #4C582F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.order-track-meta {
  font-size: 12px;
  color: #7A7468;
}
.order-track-map-canvas {
  height: 220px;
  width: 100%;
  margin-top: 10px;
  background: #f3eadf;
}
.order-track-addr,
.order-track-fallback {
  margin: 0;
  padding: 10px 14px 14px;
  font-size: 13px;
  color: #7A7468;
  line-height: 1.4;
}
