/* Dorado owner update · 2026-10-01
   Stock UX, legal footer and fluid right-to-left brand wave. */

.product-stock[hidden],
.dynamic-product-stock[hidden],
.dynamic-qty-help[hidden]{
  display:none!important;
}

/* "Ver todas las marcas": one centered set, no duplicate marquee copy. */
#marcas.brands-expanded .brand-marquee-shell{
  overflow:hidden!important;
}
#marcas.brands-expanded .brand-marquee-track{
  display:block!important;
  width:100%!important;
  transform:none!important;
  animation:none!important;
}
#marcas.brands-expanded .brand-marquee-set:first-child{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:stretch!important;
  width:100%!important;
  gap:10px!important;
  padding:10px!important;
}
#marcas.brands-expanded .brand-marquee-set[aria-hidden="true"]{
  display:none!important;
}

/* Card entry/exit motion is owned by site.js (WAAPI). */

/* Legal area inspired by the clear, compact footer patterns in major stores. */
.footer-legal-panel{
  width:min(1240px,calc(100% - 32px));
  margin:0 auto;
  padding:6px 0 28px;
}
.footer-legal-details{
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-legal-details summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:62px;
  color:#f4f5f6;
  font:750 15px/1.2 "Manrope",system-ui,sans-serif;
  letter-spacing:.01em;
  user-select:none;
}
.footer-legal-details summary::-webkit-details-marker{display:none}
.footer-legal-details summary::after{
  content:"+";
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  font-size:20px;
  font-weight:400;
  transition:transform 220ms cubic-bezier(.32,.72,0,1);
}
.footer-legal-details[open] summary::after{transform:rotate(45deg)}
.footer-legal-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px 18px;
  padding:0 0 24px;
}
.footer-legal-links a{
  color:rgba(235,239,241,.76);
  font:500 13px/1.45 "Manrope",system-ui,sans-serif;
  text-decoration:none;
  transition:color 160ms ease,transform 160ms ease;
}
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible{
  color:#fff;
  transform:translate3d(2px,0,0);
  outline:none;
}

@media(max-width:760px){
  .footer-legal-panel{width:calc(100% - 28px);padding-bottom:20px}
  .footer-legal-links{grid-template-columns:1fr;gap:13px;padding-bottom:22px}
  .footer-legal-details summary{min-height:58px;font-size:14px}
}

@media(prefers-reduced-motion:reduce){
  .footer-legal-details summary::after,
  .footer-legal-links a{transition:none!important}
}



/* Legal is a normal footer column, aligned with Tienda / Ayuda / Contacto. */
.site-footer .footer-main{
  grid-template-columns:minmax(250px,1.45fr) repeat(4,minmax(0,1fr))!important;
  gap:32px!important;
}
.site-footer .footer-legal-column{min-width:0}
.site-footer .footer-legal-column a{
  white-space:normal!important;
  line-height:1.45!important;
}
.footer-legal-panel{display:none!important}
@media(max-width:1120px){
  .site-footer .footer-main{
    grid-template-columns:minmax(250px,1.2fr) repeat(2,minmax(0,1fr))!important;
    gap:34px 28px!important;
  }
  .site-footer .footer-contact{grid-column:auto!important}
}
@media(max-width:760px){
  .site-footer .footer-main{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:28px 20px!important;
  }
  .site-footer .footer-brand-box{grid-column:1/-1}
}
@media(max-width:520px){
  .site-footer .footer-main{grid-template-columns:1fr!important;gap:24px!important}
  .site-footer .footer-brand-box{grid-column:auto}
}


/* Progressive catalog reveal: only the next batch appears, never the full catalog at once. */
#products-grid .product.catalog-batch-enter{
  animation:catalogBatchIn 380ms cubic-bezier(.22,.61,.36,1) both;
  animation-delay:calc(var(--catalog-batch-order,0) * 28ms);
  will-change:transform,opacity;
}
@keyframes catalogBatchIn{
  from{opacity:0;transform:translate3d(0,14px,0) scale(.992)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  #products-grid .product.catalog-batch-enter{
    animation:none!important;
    will-change:auto!important;
  }
}


/* =========================================================
   FINAL INTERACTION PASS · 2026-10-01
   Catalog CTA: one clean contour.
   Brand grid: WAAPI owns transform/opacity so CSS cannot fight the motion.
   ========================================================= */
.catalog-more-button{
  outline:none!important;
  box-shadow:none!important;
}
.catalog-more-button:hover,
.catalog-more-button:active{
  box-shadow:none!important;
}
@media (hover:hover) and (pointer:fine){
  html[data-store-theme="light"] .catalog-more-button:hover{
    background:rgba(202,145,33,.075)!important;
    border-color:rgba(202,145,33,.62)!important;
    box-shadow:none!important;
    transform:translate3d(0,-1px,0)!important;
  }
}
.catalog-more-button:focus{
  outline:none!important;
}
.catalog-more-button:focus-visible{
  outline:2px solid rgba(202,145,33,.72)!important;
  outline-offset:3px!important;
  box-shadow:none!important;
}
.catalog-more-button:not(.expanded) .ui-icon{
  transform:none!important;
}

/* Programmatic brand motion. WAAPI handles only transform + opacity. */
#marcas.brands-expanded .brand-marquee-card{
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease!important;
  will-change:auto!important;
}
#marcas.brands-expanded.brands-motion-running .brand-marquee-card{
  will-change:transform,opacity!important;
}


@media(prefers-reduced-motion:reduce){
  #marcas.brands-expanded.brands-motion-running .brand-marquee-card{
    will-change:opacity!important;
  }
}
