/* Reglas compartidas cargadas después de los estilos antiguos de cada página. */
#categoryBannerSlot { min-width: 0; width: 100%; }
.category-hero { width: 100%; min-width: 0; }
.product { min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.product .product-img { height: auto; aspect-ratio: 1; background: #f1f3f7; }
.product .product-img img { width: 100%; height: 100%; object-fit: contain; filter: none; opacity: 1; }
.product .product-info { flex: 1; display: flex; flex-direction: column; }
.product .product-info .price { margin-top: auto; }
.product-detail-link { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.product-detail-link:hover { text-decoration: underline; }
.product-detail-link:focus-visible, .qpd-card :focus-visible { outline: 3px solid #a51f28; outline-offset: 3px; }
.product .add-cart { min-height: 44px; font-size: 11px; }
.qpd-overlay { border: 0; padding: 0; margin: auto; width: min(860px, calc(100% - 32px)); max-width: none; max-height: 92vh; max-height: 92dvh; background: transparent; color: var(--navy); overflow: auto; border-radius: 14px; }
.qpd-overlay:not([open]) { display: none; }
.qpd-overlay[open] { display: block; }
.qpd-overlay::backdrop { background: #020f43b3; }
.qpd-card { width: 100%; max-width: none; max-height: none; overflow: visible; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.qpd-close { width: 44px; height: 44px; font-size: 28px; }
.qpd-img { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; border-radius: 14px 0 0 14px; }
.qpd-img img { height: auto; max-height: 65vh; object-fit: contain; }
.qpd-original { display: block; padding: 14px; text-align: center; color: var(--navy); font-size: 14px; min-height: 44px; }
.qpd-info { min-width: 0; padding: 64px 28px 24px; gap: 12px; overflow-wrap: anywhere; }
.qpd-cat { font-size: 12px; letter-spacing: normal; }
.qpd-info h3 { margin: 8px 0; font-size: 16px; }
.qpd-desc, .qpd-notes, .qpd-stock, .qpd-feedback { font-size: 15px; line-height: 1.6; white-space: pre-wrap; margin: 0; color: #4a5468; }
.qpd-add { min-height: 48px; font-size: 12px; }
.qpd-feedback:empty { display: none; }
.catalog-sync-status { padding: 12px 20px; background: #fff6d8; color: #684b00; font-size: 14px; }
@media(max-width:650px) {
  .products-head { flex-wrap: wrap; gap: 16px; }
  .products-head .sort { max-width: 100%; }
  .products-head .sort select { min-width: 0; max-width: 100%; }
  .qpd-card { grid-template-columns: minmax(0,1fr); max-height: none; }
  .qpd-img { border-radius: 14px 14px 0 0; padding-top: 54px; }
  .qpd-img img { max-height: 38dvh; }
  .qpd-info { padding: 18px 20px 24px; }
  .qpd-name { font-size: 22px; }
  .product .product-info h3 { font-size: 13px; }
  .product .product-info small { font-size: 10px; }
}
@media(max-width:360px) {
  .product .add-cart { font-size: 10px; }
}
