/* Dorado storefront — modal + brands final correction · 2026-09-29
   Loaded after all previous theme layers. */

/* 1) Product detail: both themes must be scrollable on desktop without
   changing the mobile full-page behavior. */
#producto-dinamico.product-detail{
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}

@media(min-width:901px){
  #producto-dinamico .product-detail-inner{
    height:min(760px,calc(100dvh - 48px))!important;
    min-height:0!important;
    max-height:calc(100dvh - 48px)!important;
    overflow:hidden!important;
  }

  #producto-dinamico .product-detail-gallery{
    min-height:0!important;
    overflow:hidden!important;
  }

  #producto-dinamico .product-detail-image{
    min-height:0!important;
    height:100%!important;
  }

  #producto-dinamico .product-detail-info{
    min-height:0!important;
    height:100%!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
}

@media(max-width:900px){
  #producto-dinamico.product-detail{
    overflow-y:auto!important;
  }

  #producto-dinamico .product-detail-inner{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  #producto-dinamico .product-detail-info{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
}

/* 2) Dark product quantity selector: remove the stark white number cell. */
html[data-store-theme="dark"] #producto-dinamico .quantity-selector{
  background:#19313f!important;
  border-color:rgba(241,236,227,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}

html[data-store-theme="dark"] #producto-dinamico .quantity-selector .qty-btn,
html[data-store-theme="dark"] #producto-dinamico .quantity-selector .qty-input{
  background:transparent!important;
  color:#eef2f3!important;
  border-color:rgba(241,236,227,.16)!important;
}

html[data-store-theme="dark"] #producto-dinamico .quantity-selector .qty-input{
  background:#142a37!important;
  -webkit-text-fill-color:#eef2f3!important;
}

@media(hover:hover) and (pointer:fine){
  html[data-store-theme="dark"] #producto-dinamico .quantity-selector .qty-btn:hover:not(:disabled){
    background:rgba(240,180,58,.10)!important;
    color:#ffd777!important;
  }
}

/* 3) "Ver todas" brands: layout stays stable; motion is owned by site.js WAAPI. */
#marcas.brands-expanded .brand-marquee-track,
#marcas.brands-expanded .brand-marquee-set{
  animation:none!important;
}

/* Keep the expanded shell stable while the stream is running. */
#marcas.brands-expanded .brand-marquee-track,
#marcas.brands-expanded .brand-marquee-set{
  animation:none!important;
}

/* Light-theme controls inside the product modal remain coherent. */
html[data-store-theme="light"] #producto-dinamico .quantity-selector{
  background:#f4f0e7!important;
  border-color:#d9d1c5!important;
}

html[data-store-theme="light"] #producto-dinamico .quantity-selector .qty-input{
  background:#f9f7f2!important;
  color:#17242d!important;
  -webkit-text-fill-color:#17242d!important;
  border-color:#d9d1c5!important;
}

@media(prefers-reduced-motion:reduce){
  #marcas.brands-expanded .brand-marquee-card,
  #marcas.brands-expanded.brands-opening .brand-marquee-card,
  #marcas.brands-expanded.brands-closing .brand-marquee-card{
    transform:none!important;
    transition:opacity 140ms ease!important;
    will-change:auto!important;
  }
}
