/* Herramienta del panel: el canvas conserva la identidad propia de la tienda. */
.flyer-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.flyer-heading h2 { margin:0 0 .5rem; font-size:1.5rem; }
.flyer-heading p { margin:0; max-width:42rem; color:#475467; line-height:1.6; }
.flyer-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,360px); gap:2rem; margin-top:1.5rem; align-items:start; }
.flyer-step { margin:0 0 1rem; font-size:1.1rem; }
.flyer-editor input[type=search], #flyerHeadingInput { width:100%; padding:.8rem 1rem; border:1px solid #cdd5df; border-radius:10px; font:inherit; margin-bottom:.8rem; }
.admin-card.flyer-entry { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; border-left:4px solid #0a6fd1; background:linear-gradient(100deg,#eef6ff,#fff 70%); }
.flyer-entry .admin-card__title { font-size:1.2rem; }
.flyer-entry .btn-primary { flex-shrink:0; }
#sectionFlyer { scroll-margin-top:190px; }
@media(max-width:720px) { .admin-card.flyer-entry { align-items:stretch; flex-direction:column; } #sectionFlyer { scroll-margin-top:240px; } }
.flyer-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; max-height:410px; overflow:auto; padding:2px; }
.flyer-pick { display:flex; align-items:center; gap:.65rem; padding:.7rem; border:1px solid #e1e6ef; border-radius:12px; cursor:pointer; min-width:0; background:#fff; }
.flyer-pick:has(input:checked) { border-color:#0a6fd1; background:#eef6ff; }
.flyer-pick:has(input:disabled) { opacity:.55; cursor:default; }
.flyer-pick input { width:22px; height:22px; flex:none; accent-color:#0a6fd1; }
.flyer-pick img, .flyer-no-photo { width:52px; height:58px; object-fit:contain; border-radius:6px; flex:none; background:#f5f6f8; }
.flyer-no-photo { display:grid; place-content:center; font-size:.75rem; color:#667085; }
.flyer-pick strong, .flyer-selected strong { display:block; overflow-wrap:anywhere; font-size:1rem; line-height:1.35; }
.flyer-pick small, .flyer-selected small { display:block; color:#475467; font-size:.9rem; margin-top:.25rem; }
.flyer-order-head { display:flex; justify-content:space-between; gap:1rem; margin-top:1.7rem; }
.flyer-selected { padding-left:1.8rem; margin:.5rem 0 1rem; }
.flyer-selected li { padding:.7rem 0 .8rem .35rem; border-bottom:1px solid #e1e6ef; }
.flyer-order { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.6rem; }
.flyer-order button { min-height:40px; padding:.4rem .65rem; border:1px solid #cdd5df; border-radius:8px; background:white; color:#344054; font:inherit; cursor:pointer; }
.flyer-order button:disabled { opacity:.4; cursor:default; }
.flyer-preview-column { position:sticky; top:90px; min-width:0; }
.flyer-actions { display:flex; gap:.6rem; flex-wrap:wrap; margin-bottom:.8rem; }
.flyer-actions button { min-height:46px; flex:1; justify-content:center; }
.flyer-preview { width:100%; aspect-ratio:9/16; position:relative; border:1px solid #d0d5dd; border-radius:14px; overflow:hidden; box-shadow:0 8px 28px #10182814; background:#f8fafc; }
.flyer-preview canvas { width:100%; height:100%; display:block; }
.flyer-preview canvas[hidden] { display:none; }
.flyer-placeholder { position:absolute; inset:0; display:grid; place-content:center; padding:2rem; text-align:center; gap:1rem; color:#667085; }
.flyer-placeholder[hidden] { display:none; }
.flyer-placeholder strong { font-size:1.5rem; color:#344054; }
.flyer-note, .flyer-status { font-size:.95rem; line-height:1.6; color:#475467; margin:.9rem 0; }
.flyer-status { min-height:3rem; }
.flyer-error { color:#b42318; }
#flyerLinkFallback { width:100%; padding:.7rem; font:inherit; }
@media(max-width:1100px) { .flyer-catalog { grid-template-columns:1fr; } }
@media(max-width:720px) { .flyer-layout { grid-template-columns:1fr; gap:1.5rem; } .flyer-preview-column { position:static; width:100%; max-width:400px; margin:auto; } .flyer-catalog { max-height:330px; } .flyer-actions { position:sticky; top:65px; background:white; padding:.5rem 0; z-index:2; } }

/* Sólo las URLs de selección usan esta vista; el catálogo habitual no cambia. */
.flyer-public #storeBanner, .flyer-public #storeInfo, .flyer-public #categoriesBar,
.flyer-public #featuredProductsSection, .flyer-public #featuredContactSection,
.flyer-public .header__search, .flyer-public #favoriteStoreBtn,
.flyer-public #demoTour { display:none !important; }
.flyer-public .flyer-showcase { display:block; }
.flyer-showcase { display:none; max-width:1200px; padding:2rem 1rem .5rem; margin:auto; color:var(--color-text); }
.flyer-showcase h1 { font-size:clamp(1.8rem,5vw,2.5rem); margin:0 0 .5rem; }
.flyer-showcase p { color:var(--color-muted); line-height:1.6; }
.flyer-showcase a, .flyer-detail-shop { color:var(--color-accent); text-decoration:underline; font-weight:600; display:inline-block; padding:.6rem 0; }
.flyer-public .product-card__flyer-link { display:block; margin-bottom:.75rem; color:var(--color-accent); font-size:1rem; font-weight:650; text-decoration:underline; }
.flyer-public .catalog__grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.flyer-public #productGrid { max-width:1200px; }
.flyer-public .header__logo { min-width:0; overflow-wrap:anywhere; }
.flyer-public .store-logo-img { width:auto; height:auto; max-width:110px; max-height:42px; }
.flyer-public .product-detail-modal__close { width:44px; height:44px; background:var(--color-surface); color:var(--color-text); border:1px solid var(--color-border); }
.flyer-public .product-detail-card__body .flyer-detail-shop { margin-top:1rem; }
