/* Moto Racing Performance Graphics Tarapoto — Light theme */
/* Paleta acotada al embed y a las portadas individuales para no pisar
   las variables del sistema principal (--black del shell es #000). */
#catalogo-embed,
body.cat-page{
  --accent:#ff1400!important;
  --red:#ff1400;
  --red-dark:#c00b00;
  --black:#111111;
  --white:#ffffff;
  --soft:#f6f6f7;
  --line-light:rgba(0,0,0,.10);
}

html body.cat-page{
  background:#fff!important;
  color:#111!important;
  color-scheme:light!important;
}
body.cat-page{--cat-selected-color:#111!important;}

/* Selector general /catalogos */
.catalogo-wrap,
#catalogo-embed{
  background:#fff!important;
  color:#111!important;
}
.cat-noscript{background:#fff!important;color:#111!important;border-color:rgba(0,0,0,.12)!important;}
.cat-noscript a{color:var(--red)!important;}

/* Contenido dinámico del selector */
#catalogo-embed [class*="catalog"],
#catalogo-embed [class*="grid"],
#catalogo-embed [class*="wrap"],
#catalogo-embed [class*="container"]{color:#111;}
#catalogo-embed [class*="card"],
#catalogo-embed [class*="item"]{
  border-color:rgba(0,0,0,.10)!important;
}
#catalogo-embed input,
#catalogo-embed select{
  background:#fff!important;
  color:#111!important;
  border-color:rgba(0,0,0,.16)!important;
}
#catalogo-embed button,
#catalogo-embed [role="button"]{border-color:rgba(0,0,0,.13);}

/* Cabecera y pie de los catálogos individuales */
html body.cat-page .hg-header{
  background:#fff!important;
  border-bottom:2px solid var(--red)!important;
  box-shadow:0 6px 24px rgba(0,0,0,.05)!important;
}
html body.cat-page .hg-brand{color:#111!important;}
html body.cat-page .hg-catalog-btn{
  background:var(--red)!important;
  border-color:var(--red)!important;
  color:#fff!important;
}
html body.cat-page .hg-catalog-btn:hover{background:#111!important;border-color:#111!important;color:#fff!important;}
html body.cat-page .hg-footer{
  background:#111!important;
  border-top:2px solid var(--red)!important;
  color:#fff!important;
}
#cat-footer-spacer{background:#fff!important;}

/* Shell */
.cat-main,.cat-shell,.cat-content,.embedshop-section,#catalogo,.catalogo{
  background:#fff!important;
  color:#111!important;
}
.cat-banner,
.cat-side-banner{
  background:#111!important;
  color:#fff!important;
  border-color:#111!important;
}
.titulo-moto-xl,.titulo-con-linea,.catalogo-desc-general{color:#111!important;}
.linea-animada,.cat-banner-line{background:var(--red)!important;}
.catalogo-disclaimer{color:#68686f!important;}

/* Sidebar */
.cat-sidebar,
.cat-sidebar-scroll,
.cat-side-head,
.cat-mega,
.mega-panel{
  background:#fff!important;
  color:#111!important;
  border-color:rgba(0,0,0,.10)!important;
}
.cat-sidebar{
  box-shadow:14px 0 42px rgba(0,0,0,.08)!important;
}
.cat-sidebar-close,.cat-sidebar-pin{
  background:#111!important;
  color:#fff!important;
  border-color:#111!important;
}
.mega-group,.mega-trigger,.mega-text-item,.mega-text-link{
  color:#111!important;
  border-color:rgba(0,0,0,.08)!important;
}
.mega-trigger:hover,.mega-text-link:hover,.mega-text-item:hover,.mega-title:hover{color:var(--red)!important;}
.mega-count{
  background:#f2f2f3!important;
  color:#111!important;
  border-color:rgba(0,0,0,.08)!important;
}
.cat-sidebar input,.cat-sidebar select,.cat-sidebar button:not(.cat-sidebar-close):not(.cat-sidebar-pin){
  background:#fff!important;
  color:#111!important;
  border-color:rgba(0,0,0,.14)!important;
}
.cat-sidebar input::placeholder{color:#8a8a90!important;}

/* Tarjetas de producto */
.product-card{
  background:#fff!important;
  color:#111!important;
  border-color:rgba(0,0,0,.10)!important;
  box-shadow:0 7px 24px rgba(0,0,0,.045)!important;
}
.product-card:hover{border-color:rgba(255,20,0,.40)!important;box-shadow:0 12px 28px rgba(0,0,0,.08)!important;}
.product-thumb{background:#f5f5f6!important;}
.product-cod,.card-price{color:#111!important;}

/* Barra móvil */
@media(max-width:980px){
  .cat-mobile-toggle{
    background:rgba(255,255,255,.97)!important;
    border-top:1px solid rgba(0,0,0,.11)!important;
    color:#111!important;
    box-shadow:0 -8px 30px rgba(0,0,0,.08)!important;
  }
  .cat-mobile-current,.cat-mobile-color,.cat-mobile-newest{
    background:#fff!important;
    border:1px solid rgba(0,0,0,.12)!important;
    color:#111!important;
  }
  html body .cat-mobile-current,
  html body .cat-mobile-current *,
  html body .cat-mobile-label,
  .cat-mobile-color-left span,
  .cat-mobile-color-current,
  .cat-mobile-newest,
  .cat-mobile-newest small{
    color:#111!important;
    -webkit-text-fill-color:#111!important;
  }
  .cat-mobile-sub{color:#777!important;-webkit-text-fill-color:#777!important;}
  .cat-mobile-chev,.cat-mobile-icon{stroke:#111!important;color:#111!important;}
  .cat-mobile-icon circle{fill:#111!important;}
  .cat-mobile-newest{border-color:var(--red)!important;color:var(--red)!important;}
  .cat-mobile-newest small{background:#f2f2f3!important;}
  .cat-mobile-color-popup{
    background:#fff!important;
    color:#111!important;
    border-color:rgba(0,0,0,.12)!important;
    box-shadow:0 16px 44px rgba(0,0,0,.15)!important;
  }
}

/* Lightbox */
#lightbox.lightbox{background:rgba(0,0,0,.72)!important;}
#lightbox .lb-shell,
#lightbox .lb-info-col,
#lightbox .lb-topbar,
#lightbox .lb-mat-section,
#lightbox .lb-dd-wrap,
#lightbox .lb-dd-trigger,
#lightbox .lb-dd-menu{
  background:#fff!important;
  color:#111!important;
  border-color:rgba(0,0,0,.11)!important;
}
#lightbox .lb-title-big,
#lightbox .lb-subtitle,
#lightbox .lb-topbar-code,
#lightbox .lb-dd-name,
#lightbox .lb-price{color:#111!important;}
#lightbox .lb-buy{
  background:var(--red)!important;
  border-color:var(--red)!important;
  color:#fff!important;
}
#lightbox .lb-buy:hover{background:#111!important;border-color:#111!important;}
#lightbox .lb-btn{
  background:#fff!important;
  color:#111!important;
  border-color:rgba(0,0,0,.14)!important;
}
#lightbox .lb-thumb{background:#fff!important;border-color:rgba(0,0,0,.12)!important;}
#lightbox .lb-thumb.active,#lightbox .lb-thumb[aria-current="true"]{border-color:var(--red)!important;}

/* Protección / toast */
#rdx-protect-toast{background:#111!important;color:#fff!important;border-color:#111!important;}

/* Acciones clave siempre rojas */
.cat-wa-buy,.cat-mobile-wa-buy,
[class*="whatsapp"],[class*="buy"]{
  --accent:var(--red);
}


/* Corrección: texto escrito en el buscador siempre legible sobre fondo blanco */
#catalogo-embed input,
#catalogo-embed input[type="search"],
#catalogo-embed input[type="text"]{
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  caret-color:var(--red)!important;
  opacity:1!important;
  text-shadow:none!important;
}
#catalogo-embed input::placeholder,
#catalogo-embed input[type="search"]::placeholder,
#catalogo-embed input[type="text"]::placeholder{
  color:#777!important;
  -webkit-text-fill-color:#777!important;
  opacity:1!important;
}
