/* Absolut 360 — polish v3: tienda + admin más limpios y profesionales */

/* —— Chips de pago en carrito —— */
.cart-pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.pay-chip.yape { background: #f3e8ff; color: #6b21a8; border-color: #e9d5ff; }
.pay-chip.plin { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.pay-chip.bank { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pay-chip.card { background: #fef3c7; color: #b45309; border-color: #fde68a; }
body.dark-mode .pay-chip.yape { background: rgba(109,40,217,0.2); color: #e9d5ff; }
body.dark-mode .pay-chip.plin { background: rgba(14,165,233,0.15); color: #bae6fd; }
body.dark-mode .pay-chip.bank { background: rgba(16,185,129,0.15); color: #a7f3d0; }
body.dark-mode .pay-chip.card { background: rgba(245,158,11,0.15); color: #fde68a; }

/* —— Tarjetas de producto más premium —— */
.product-card {
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease, border-color 0.2s ease;
  border: 1px solid rgba(148,163,184,0.18);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
  border-color: rgba(109,40,217,0.28);
}
.product-card .product-image,
.product-card img.product-img {
  transition: transform 0.4s ease;
}
.product-card:hover .product-image,
.product-card:hover img.product-img {
  transform: scale(1.04);
}
.product-badge-new,
.badge-new {
  background: linear-gradient(135deg, #6d28d9, #a855f7) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 3px 8px;
}
.product-badge-offer,
.badge-offer {
  background: linear-gradient(135deg, #e11d48, #f43f5e) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 10px;
  border-radius: 8px;
  padding: 3px 8px;
}

/* —— Botones de acción en card —— */
.btn-card-secondary,
.product-actions .btn-secondary {
  border-radius: 10px;
  font-weight: 650;
  transition: background 0.2s, transform 0.15s;
}
.btn-card-secondary:hover {
  transform: translateY(-1px);
}

/* —— Quote modal más limpio —— */
#quoteRequestModal .quote-modal-box {
  max-width: min(520px, 96vw) !important;
  border-radius: 20px !important;
  padding: 22px 22px 18px !important;
  box-shadow: 0 24px 64px rgba(15,23,42,0.22) !important;
}
#quoteRequestModal h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
#quoteRequestModal .quote-extras {
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(109,40,217,0.05), rgba(225,29,72,0.04));
  border: 1px solid rgba(109,40,217,0.12);
  margin: 10px 0 14px;
}
#quoteRequestModal .form-group label {
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
  margin-bottom: 4px;
}
#quoteRequestModal input,
#quoteRequestModal select,
#quoteRequestModal textarea {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#quoteRequestModal input:focus,
#quoteRequestModal select:focus,
#quoteRequestModal textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
}
#quoteRequestModal button[type="submit"] {
  border-radius: 12px !important;
  padding: 13px 16px !important;
  font-weight: 750 !important;
  background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
  box-shadow: 0 8px 22px rgba(109,40,217,0.3);
}

/* —— Trust strip / confianza —— */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
@media (min-width: 700px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}
body.dark-mode .trust-strip {
  background: #1e293b;
  border-color: #334155;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
body.dark-mode .trust-item { color: #cbd5e1; }
.trust-item span.icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  font-size: 15px;
  flex-shrink: 0;
}
body.dark-mode .trust-item span.icon { background: #0f172a; }

/* —— Footer tienda —— */
.store-footer-pro {
  margin-top: 40px;
  padding: 28px 16px 40px;
  border-top: 1px solid rgba(148,163,184,0.2);
  background: linear-gradient(180deg, transparent, rgba(109,40,217,0.03));
}
.store-footer-pro .sf-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .store-footer-pro .sf-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.store-footer-pro h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 10px;
}
.store-footer-pro p, .store-footer-pro a {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  text-decoration: none;
}
.store-footer-pro a:hover { color: #6d28d9; }
body.dark-mode .store-footer-pro p,
body.dark-mode .store-footer-pro a { color: #94a3b8; }
.sf-pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* —— Admin: tabla productos más legible —— */
.admin-table tbody tr {
  transition: background 0.15s ease;
}
.admin-table tbody tr:hover {
  background: rgba(109,40,217,0.04);
}
body.dark-mode .admin-table tbody tr:hover {
  background: rgba(167,139,250,0.08);
}

/* —— Modal producto admin con preview sticky —— */
@media (min-width: 800px) {
  #productModal .product-live-preview {
    position: sticky;
    top: 0;
    align-self: start;
  }
}

/* —— Empty states —— */
.empty-state, .admin-empty, .empty-box {
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  background: rgba(148,163,184,0.06);
  border: 1px dashed rgba(148,163,184,0.35);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 8px; }

/* —— Scroll suave en PDP info —— */
.pdp-v2 .product-detail-info.pdp-info {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* —— Header logo más nítido —— */
.logo-img, img[data-store-logo] {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* —— Botón flotante WA un poco más limpio —— */
.floating-whatsapp {
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4) !important;
}
.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

/* —— Inputs globales más táctiles en móvil —— */
@media (max-width: 640px) {
  input, select, textarea, button {
    min-height: 42px;
  }
  .product-card { border-radius: 14px; }
  .cart-pay-badges { justify-content: flex-start; }
}


/* Stagger entrance without inline style (CSP-safe) */
.product-card.anim-stagger-0 { animation-delay: 0s; }
.product-card.anim-stagger-1 { animation-delay: 0.04s; }
.product-card.anim-stagger-2 { animation-delay: 0.08s; }
.product-card.anim-stagger-3 { animation-delay: 0.12s; }
.product-card.anim-stagger-4 { animation-delay: 0.16s; }
.product-card.anim-stagger-5 { animation-delay: 0.20s; }
.product-card.anim-stagger-6 { animation-delay: 0.24s; }
.product-card.anim-stagger-7 { animation-delay: 0.28s; }
.product-card.anim-stagger-8 { animation-delay: 0.32s; }
.product-card.anim-stagger-9 { animation-delay: 0.36s; }
.product-card.anim-stagger-10 { animation-delay: 0.40s; }
.product-card.anim-stagger-11 { animation-delay: 0.44s; }
.product-card.anim-stagger-12 { animation-delay: 0.48s; }

.quote-type-pill { margin-right: 6px; }
.quote-doc-meta { font-size: 12px; opacity: 0.8; margin-right: 8px; }
.quote-internal-note { font-size: 12px; color: #64748b; margin-top: 4px; }

.u-hidden { display: none !important; }
.u-flex-col { display: flex; flex-direction: column; gap: 10px; }
.u-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.u-mt-12 { margin-top: 12px; }
.u-text-center { text-align: center; }
.u-link-btn { text-align: center; text-decoration: none; }
.u-muted { color: var(--color-text-secondary); font-size: 14px; }
.sf-note-soles { margin-top: 10px; font-size: 12px; opacity: 0.8; }
.hr-soft { border: none; border-top: 1px solid var(--color-border); margin: 16px 0; }

.empty-cart-icon { font-size: 48px; margin-bottom: 12px; }

/* ===== CSP-safe utilities (sin style= inline) ===== */
.u-hidden { display: none !important; }
.u-block { display: block !important; }
.u-flex { display: flex !important; }
.u-inline-flex { display: inline-flex !important; }
body.modal-open { overflow: hidden; }

/* Color swatches PDP */
.pdp-swatch.swatch-oliva { background: #3f6212; }
.pdp-swatch.swatch-negro { background: #111827; }
.pdp-swatch.swatch-rojo { background: #b91c1c; }
.pdp-swatch.swatch-blanco { background: #f8fafc; box-shadow: inset 0 0 0 1px #cbd5e1; }
.pdp-swatch.swatch-azul { background: #2563eb; }

/* Progress widths 0–100 step 5 */
.pct-0 { width: 0% !important; }
.pct-5 { width: 5% !important; }
.pct-10 { width: 10% !important; }
.pct-15 { width: 15% !important; }
.pct-20 { width: 20% !important; }
.pct-25 { width: 25% !important; }
.pct-30 { width: 30% !important; }
.pct-35 { width: 35% !important; }
.pct-40 { width: 40% !important; }
.pct-45 { width: 45% !important; }
.pct-50 { width: 50% !important; }
.pct-55 { width: 55% !important; }
.pct-60 { width: 60% !important; }
.pct-65 { width: 65% !important; }
.pct-70 { width: 70% !important; }
.pct-75 { width: 75% !important; }
.pct-80 { width: 80% !important; }
.pct-85 { width: 85% !important; }
.pct-90 { width: 90% !important; }
.pct-95 { width: 95% !important; }
.pct-100 { width: 100% !important; }

.loyalty-progress-fill,
.chart-bar {
  transition: width 0.35s ease;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}
.loyalty-progress-bar { overflow: hidden; }

/* Loyalty level colors */
.loyalty-badge.lvl-bronce,
.loyicard-wallet.lvl-bronce,
.loyalty-level-card.lvl-bronce { --lvl-color: #cd7f32; }
.loyalty-badge.lvl-plata,
.loyicard-wallet.lvl-plata,
.loyalty-level-card.lvl-plata { --lvl-color: #94a3b8; }
.loyalty-badge.lvl-oro,
.loyicard-wallet.lvl-oro,
.loyalty-level-card.lvl-oro { --lvl-color: #eab308; }
.loyalty-badge.lvl-platino,
.loyicard-wallet.lvl-platino,
.loyalty-level-card.lvl-platino { --lvl-color: #67e8f9; }
.loyalty-badge.lvl-diamante,
.loyicard-wallet.lvl-diamante,
.loyalty-level-card.lvl-diamante { --lvl-color: #a78bfa; }

.loyalty-progress-fill.lvl-bronce { background: #cd7f32; }
.loyalty-progress-fill.lvl-plata { background: #94a3b8; }
.loyalty-progress-fill.lvl-oro { background: #eab308; }
.loyalty-progress-fill.lvl-platino { background: #67e8f9; }
.loyalty-progress-fill.lvl-diamante { background: #a78bfa; }

.chart-bar.chart-c0 { background: #667eea; }
.chart-bar.chart-c1 { background: #a855f7; }
.chart-bar.chart-c2 { background: #22d3ee; }
.chart-bar.chart-c3 { background: #f59e0b; }
.chart-bar.chart-c4 { background: #10b981; }
.chart-bar.chart-c5 { background: #f43f5e; }
.chart-bar.chart-c6 { background: #8b5cf6; }
.chart-bar.chart-c7 { background: #06b6d4; }
