/* ============================================================
   REGALOS 365 · MEJORAS UX (auditoría 07-10-2026)
   Se carga al final para ganar sobre main / theme / producto.
   Para deshacer: quitar el <link> a este archivo.
   ============================================================ */

/* ---------- 01 · Flotantes ordenados ---------- */
/* Aviso de compras: no tapa el carro ni WhatsApp */
@media (max-width: 768px) {
  .sales-toast-overlay { left: 12px !important; right: auto !important; bottom: 84px !important; max-width: calc(100% - 96px) !important; }
}
/* Ficha en móvil: la barra inferior ya trae WhatsApp y carro → se ocultan los flotantes */
@media (max-width: 768px) {
  body:has(.mobile-sticky-buy-bar) .wa-float,
  body:has(.mobile-sticky-buy-bar) .r365c-fab,
  body:has(.mobile-sticky-buy-bar) .scroll-top { display: none !important; }
}

/* ---------- 02 · 14 · 11 · Tarjeta de producto compacta ---------- */
html body .product-card { cursor: pointer; }
html body.r365t .product-card .product-badge .badge ~ .badge,
html body.r365t .product-card .product-top-actions .product-share-btn,
html body.r365t .product-card .stock-indicator,
html body.r365t .product-card .product-card-buttons .btn-flow-sm,
html body.r365t .product-card .product-card-buttons .btn-detalles-sm { display: none !important; }
html body.r365t .product-card .product-card-buttons { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 8px !important; grid-template-columns: none !important; }
html body.r365t .product-card .product-card-buttons .r365-buy-row { display: flex !important; flex: 1 1 0% !important; min-width: 0 !important; width: auto !important; grid-template-columns: none !important; }
html body.r365t .product-card .product-card-buttons .r365-buy-row .btn-cart-sm { flex: 1 1 auto !important; width: 100% !important; }
html body.r365t .product-card .product-card-buttons .product-card-sub-buttons { display: flex !important; flex: 0 0 auto !important; width: auto !important; grid-template-columns: none !important; }
html body.r365t .product-card .product-card-buttons .btn-whatsapp-sm { width: 44px !important; min-width: 44px !important; flex: 0 0 44px !important; padding: 0 !important; justify-content: center !important; }
html body.r365t .product-card .product-card-buttons .btn-whatsapp-sm .btn-txt { display: none !important; }
@media (max-width: 640px) {
  html body.r365t #mainProductsGrid .product-card.is-featured { grid-column: auto !important; }
  html body.r365t .product-card.is-featured .product-name { font-size: inherit !important; }
  html body.r365t .product-card.is-featured .product-price { font-size: inherit !important; }
  html body.r365t .product-card .product-category { display: none !important; }
  html body.r365t .product-card .product-card-buttons .btn-whatsapp-sm { width: 38px !important; min-width: 38px !important; flex-basis: 38px !important; }
}

html body.r365t .product-card.is-featured .product-card-buttons .btn-whatsapp-sm { display: flex !important; }
@media (max-width: 640px) {
  html body.r365t .product-card.is-featured .product-card-buttons .btn-cart-sm .btn-txt { display: none !important; }
}

/* ---------- 07 · Ficha: caja de compra arriba ---------- */
@media (min-width: 769px) {
  .product-info-section { display: flex !important; flex-direction: column !important; }
  .product-info-section > .back-to-store,
  .product-info-section > .product-category-page,
  .product-info-section > .btn-share-page { align-self: flex-start; }
  .product-info-section > .back-to-store { order: 1; }
  .product-info-section > .product-category-page { order: 2; }
  .product-info-section > .product-title-page { order: 3; }
  .product-info-section > .product-rating-page { order: 4; }
  .product-info-section > .product-price-section { order: 5; }
  .product-info-section > .cyber-note-page { order: 6; }
  .product-info-section > .stock-indicator-page { order: 7; }
  .product-info-section > .qty-selector-page { order: 8; }
  .product-info-section > .product-action-buttons-page { order: 9; }
  .product-info-section > .features-page { order: 10; }
  .product-info-section > .guarantees-grid { order: 11; }
  .product-info-section > .product-description-section { order: 12; }
  .product-info-section > .btn-share-page { order: 13; }
}

/* ---------- 15 · Etiquetas legibles ---------- */
html body .rx-hero .rx-topline, html body .rx-hero .rx-topline * { font-size: 12px !important; }
html body .rx-hero .rx-count, html body .rx-hero .rx-count * { font-size: 12px !important; }

/* ---------- 09 · 13 · Inicio más corto: una sola franja de anuncios ---------- */
html body .red-info-band { display: none !important; }
html body .logo-banner { display: none !important; }

/* ---------- 16 · Nota de envío en el carro ---------- */
.r365c-note b { font-weight: 700; }
.r365c-note-alert { background: #fff7e6; color: #8a5a00 !important; border-radius: 8px; padding: 8px 10px; }
