/* V45 | Tienda pública del revendedor, mobile-first.
   Solo body.public-reseller-store: no altera el catálogo general ni el admin. */
html body.public-reseller-store {
  --orange:var(--store-theme,#2563eb)!important;
  --accent:var(--store-theme,#2563eb)!important;
  --primary:var(--store-theme,#2563eb)!important;
  --brand-color:var(--store-theme,#2563eb)!important;
  --store-line:color-mix(in srgb,var(--store-theme,#2563eb) 42%,white);
  --store-light:color-mix(in srgb,var(--store-theme,#2563eb) 8%,white);
  background:#f7f9fc!important;
}
/* Encabezado: nunca permitir que un tercer hijo estreche el texto. */
html body.public-reseller-store #storefrontBanner.storefront-banner {
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  align-items:center!important;
  gap:12px 14px!important;
  width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;
  margin:14px 0 18px!important;padding:18px!important;
  background:linear-gradient(135deg,#fff,var(--store-light))!important;
  border:1px solid var(--store-line)!important;
  border-top:4px solid var(--store-theme,#2563eb)!important;
  border-radius:20px!important;box-shadow:0 10px 32px #142a420a!important;
  overflow:hidden!important;
}
html body.public-reseller-store #storefrontBanner>.storefront-symbol{
  grid-column:1!important;grid-row:1!important;
  width:64px!important;height:64px!important;
  min-width:0!important;align-self:start!important;
  border:1px solid #e2e9f1!important;
  border-radius:15px!important;background:#fff!important;
}
html body.public-reseller-store #storefrontBanner>.storefront-symbol img{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
}
html body.public-reseller-store #storefrontBanner>div:not(.storefront-symbol){
  grid-column:2!important;grid-row:1!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
  word-break:normal!important;overflow-wrap:break-word!important;
}
html body.public-reseller-store #storefrontBanner .storefront-eyebrow{
  font-size:11px!important;line-height:1.3!important;
  font-weight:800!important;letter-spacing:.07em!important;
  color:var(--store-theme,#2563eb)!important;
}
html body.public-reseller-store #storefrontBanner strong{
  display:block!important;font-size:clamp(20px,5.2vw,28px)!important;
  line-height:1.22!important;word-break:normal!important;
  overflow-wrap:break-word!important;margin:5px 0 7px!important;
  color:#203449!important;
}
html body.public-reseller-store #storefrontBanner p{
  font-size:14px!important;line-height:1.5!important;margin:0!important;
  max-width:none!important;word-break:normal!important;
  color:#5e7185!important;
}
/* Vista del dueño: enlace a administrar en fila ENTERA, nunca en segunda columna. */
html body.public-reseller-store #storefrontBanner #v43OwnerPanel{
  display:flex!important;align-items:center!important;justify-content:center!important;
  grid-column:1/-1!important;grid-row:1!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  box-sizing:border-box!important;margin:0!important;padding:12px 14px!important;
  border-radius:12px!important;
  border:1px solid var(--store-line)!important;
  background:var(--store-light)!important;color:var(--store-theme,#2563eb)!important;
  font-size:14px!important;font-weight:800!important;line-height:1.4!important;
  text-decoration:none!important;text-align:center!important;
  white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
}
html body.public-reseller-store #storefrontBanner:has(#v43OwnerPanel)>.storefront-symbol{grid-row:2!important}
html body.public-reseller-store #storefrontBanner:has(#v43OwnerPanel)>div:not(.storefront-symbol){grid-row:2!important}
html body.public-reseller-store #storefrontBanner #storefrontOwnerOrders:not([hidden]){
  display:block!important;grid-column:1/-1!important;
  grid-row:3!important;justify-self:stretch!important;
  width:100%!important;min-width:0!important;margin:0!important;
  background:#fff!important;color:var(--store-theme,#2563eb)!important;
  border:1px solid var(--store-line)!important;border-radius:12px!important;
}
html body.public-reseller-store #storefrontBanner:not(:has(#v43OwnerPanel)) #storefrontOwnerOrders:not([hidden]){grid-row:2!important}
/* Los botones principales y controles del catálogo usan siempre el color de ESTA tienda. */
html body.public-reseller-store #searchForm{border:2px solid var(--store-theme,#2563eb)!important}
html body.public-reseller-store #searchForm button,
html body.public-reseller-store #searchButton,
html body.public-reseller-store .search-submit,
html body.public-reseller-store .primary:not(:disabled),
html body.public-reseller-store .carousel-more-action:not(:disabled),
html body.public-reseller-store #products .product .add-btn:not(:disabled),
html body.public-reseller-store #searchProducts .product .add-btn:not(:disabled),
html body.public-reseller-store .v43-combo-body a,
html body.public-reseller-store .bottom-nav button.active,
html body.public-reseller-store .bottom button.active {
  background:var(--store-theme,#2563eb)!important;
  border-color:var(--store-theme,#2563eb)!important;
  color:var(--store-on-theme,#fff)!important;
}
html body.public-reseller-store .price,
html body.public-reseller-store .catalog-eyebrow,
html body.public-reseller-store .v43-section-title>span,
html body.public-reseller-store #mainStoreSub,
html body.public-reseller-store .v43-combo-body strong{
  color:var(--store-theme,#2563eb)!important;
}
html body.public-reseller-store #products .product,
html body.public-reseller-store #searchProducts .product,
html body.public-reseller-store .category-chip.selected,
html body.public-reseller-store .v43-combo-card{
  border-color:var(--store-line)!important;
}
html body.public-reseller-store .payment-choice input[type=radio],
html body.public-reseller-store input[type=checkbox]{accent-color:var(--store-theme,#2563eb)!important}
html body.public-reseller-store .carousel-more-card{
  border-color:var(--store-line)!important;
  background:var(--store-light)!important;
}
html body.public-reseller-store .more-card-illustration{
  background:var(--store-light)!important;color:var(--store-theme,#2563eb)!important;
}
/* En vista previa del propietario NO insinuar que el botón está listo para cobrar. */
html body.public-reseller-store.v43-owner-preview .product .add-btn:disabled,
html body.public-reseller-store.v43-owner-preview #finishCartBtn:disabled{
  background:var(--store-light)!important;
  border:1px solid var(--store-line)!important;
  color:var(--store-theme,#2563eb)!important;
  opacity:1!important;cursor:not-allowed!important;
}
html body.public-reseller-store.v43-owner-preview .product .add-btn:disabled::after{
  color:var(--store-theme,#2563eb)!important;
}
html body.public-reseller-store .top{
  background:#fff!important;border-bottom:1px solid #e6ebf2!important;
}
@media(max-width:600px){
 html body.public-reseller-store #storefrontBanner.storefront-banner{
   grid-template-columns:54px minmax(0,1fr)!important;
   padding:14px!important;gap:10px 12px!important;
   margin:10px 0 15px!important;
 }
 html body.public-reseller-store #storefrontBanner>.storefront-symbol{
   width:54px!important;height:54px!important;
 }
 html body.public-reseller-store #storefrontBanner strong{
   font-size:clamp(19px,5.2vw,24px)!important;
 }
 html body.public-reseller-store #storefrontBanner p{font-size:13px!important}
 html body.public-reseller-store #storefrontBanner #v43OwnerPanel{font-size:14px!important;min-height:46px!important}
}
@media(max-width:340px){
 html body.public-reseller-store #storefrontBanner.storefront-banner{grid-template-columns:46px minmax(0,1fr)!important;padding:11px!important;gap:9px!important}
 html body.public-reseller-store #storefrontBanner>.storefront-symbol{width:46px!important;height:46px!important}
}
