/* PGP UNIFORM PUBLIC COLOR LOCK #141414
   This file is loaded LAST to remove remaining red/purple/gradient page areas.
   It affects the public site only. */
:root{
  --pgp-uniform-bg:#141414;
  --pgp-uniform-surface:#141414;
  --pgp-uniform-text:#ffffff;
  --pgp-uniform-muted:#b8bbc2;
  --pgp-uniform-border:rgba(255,255,255,.12);
  --pgp-uniform-red:#ee154e;
  --pgp-uniform-yellow:#dffc40;
  --pgp-uniform-dark-text:#111315;
}
html,body{background:#141414!important;background-image:none!important;color:#fff!important;}
body::before,body::after{background:#141414!important;background-image:none!important;opacity:1!important;}
main,#app,.app,.page,.site-page,.pgp-page,.pgp-home,.pgp-homepage,.pgp-wrapper,.site-wrapper,.content,.wrapper,.tc-shell,.tc-page,
#home,#products,#terms,.iq-garages-page,.product-detail-page,.product-page,.garage-page,.garage-store-page,.cart-page,.account-page{
  background:#141414!important;background-image:none!important;color:#fff!important;
}
/* Every main page block uses the same base color */
section,.section,.home-section,.section-block,.featured-section,.market-panel,.hero,.hero-card,.iq-hero,.iq-card,
.pgp-home-managed-section,.pgp-managed-section,.pgp-most-viewed-card,.pgp-most-section,.pgp-most-scroll-wrap,
.card,.pgp-card,.panel,.box,.new-panel,.product-detail-panel,.pgp-product-info,.pgp-product-options,.related-products,
.garage-card,.garage-panel,.cart-panel,.account-card,.sign-panel,.rounded-\[2rem\],.rounded-\[1\.75rem\],.overflow-hidden.rounded-\[2rem\]{
  background:#141414!important;background-image:none!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important;
}
/* Homepage special old gradients */
#home > .grid > .space-y-6 > .relative.overflow-visible,
#home > .grid > .space-y-6 > .relative.overflow-visible > .pointer-events-none,
#home .relative.grid.gap-8.lg\:grid-cols-\[1\.15fr_0\.85fr\],
#home .mt-8.grid > div,
#home .rounded-\[1\.75rem\],
#home .rounded-\[2rem\].overflow-hidden,
#products,
#terms .rounded-\[2rem\]{
  background:#141414!important;background-image:none!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important;
}
#home > .grid > .space-y-6 > .relative.overflow-visible::after,
#home h1::after{background:#ee154e!important;background-image:none!important;}
/* Product and garage cards: same dark base, images remain normal */
.product-card,.pgp-product-card,.pgp-most-product,.pgp-most-garage,.garage-product-card,.garage-card,.iq-card,#products article{
  background:#141414!important;background-image:none!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important;
}
.pgp-most-media,.product-card .media,.pgp-product-card .media{background:#141414!important;background-image:none!important;}
.pgp-most-media:after{background:linear-gradient(180deg,transparent,rgba(0,0,0,.72))!important;}
/* Header: full header stays dark #141414, tabs stay readable */
.pgp-app-header,.pgp-public-header,.pgp-header,.site-header,header{
  background:#141414!important;background-image:none!important;color:#fff!important;border-color:rgba(255,255,255,.08)!important;box-shadow:none!important;
}
.pgp-app-header *,.pgp-public-header *,.pgp-header *,.site-header *{text-shadow:none!important;}
.pgp-header-tab,.pgp-app-tab,.pgp-app-header .pgp-app-tab,.pgp-header-tabs .pgp-header-tab{
  color:#111315!important;background:transparent!important;opacity:1!important;
}
.pgp-header-tab::before,.pgp-app-tab::before,.pgp-header-tabs .pgp-header-tab::before{background:#fff!important;background-image:none!important;border-color:transparent!important;}
.pgp-header-tab span,.pgp-app-tab span,.pgp-header-tab svg,.pgp-app-tab svg{color:currentColor!important;stroke:currentColor!important;opacity:1!important;visibility:visible!important;}
.pgp-header-tab.is-active,.pgp-header-tab.active,.pgp-app-tab.is-active,.pgp-app-tab.active,.pgp-header-tab[aria-current="page"]{color:#fff!important;}
.pgp-header-tab.is-active::before,.pgp-header-tab.active::before,.pgp-app-tab.is-active::before,.pgp-app-tab.active::before,.pgp-header-tab[aria-current="page"]::before{background:#ee154e!important;}
.pgp-header-lang-btn,.pgp-header-lang-btn span,.pgp-header-lang-btn svg,.pgp-lang-toggle,.pgp-lang-toggle span,.pgp-lang-toggle svg{color:#fff!important;stroke:#fff!important;background:transparent!important;}
.pgp-parts-menu-button,.pgp-menu-trigger{background:transparent!important;background-image:none!important;}
.pgp-parts-menu-button span,.pgp-menu-trigger span{background:#fff!important;}
/* Search remains white and readable */
.pgp-header-search-form,.pgp-search,.pgp-app-search,.page-search,.search-box,.search-wrap,input[type="search"],.search-input,
.pgp-header-search-input,.iq-hero input{
  background:#fff!important;background-image:none!important;color:#111315!important;border-color:transparent!important;box-shadow:none!important;
}
.pgp-header-search-input::placeholder,input[type="search"]::placeholder,.search-input::placeholder{color:rgba(17,19,21,.72)!important;}
.pgp-header-search-icon,.search-icon{color:#111315!important;stroke:#111315!important;background:transparent!important;}
/* Normal form fields stay readable */
input,select,textarea{background:#fff!important;background-image:none!important;color:#111315!important;border-color:rgba(255,255,255,.14)!important;}
/* Keep badges/buttons intentionally colored */
.price-tag,.pgp-most-price,.pgp-most-views,.sale-badge,.discount-tag,.cart-badge,.tc-cart-count{background:#ee154e!important;color:#fff!important;}
.price,.product-price,.pgp-price,.pgp-most-price-text{color:#dffc40!important;}
.pgp-btn-primary,.pgp-add-cart,.add-to-cart,.product-actions button:first-child,.pgp-product-sticky-buy button,.pgp-mobile-sticky-buy button{background:#dffc40!important;color:#111315!important;}
/* Text contrast */
h1,h2,h3,h4,h5,h6,.section-title,.page-title,.pgp-section-title,.pgp-most-head h2,.pgp-most-info strong,.garage-name,.garage-title{color:#fff!important;}
p,.subtitle,.page-subtitle,.muted,.pgp-muted,.garage-meta,.garage-desc,.pgp-most-head span,.pgp-most-info span{color:#b8bbc2!important;}
/* Bottom nav stays light/readable as requested before */
.pgp-bottom-nav,.tc-bottom-bar{background:rgba(245,245,245,.92)!important;background-image:none!important;color:#111315!important;border-color:rgba(255,255,255,.35)!important;}
.pgp-bottom-nav *,.tc-bottom-bar *{color:#111315!important;stroke:#111315!important;}
@media(max-width:768px){
  html,body,main,#home,.pgp-home,.pgp-page,.iq-garages-page,.product-detail-page,.garage-page{background:#141414!important;background-image:none!important;}
  .pgp-app-header,.pgp-public-header,.pgp-header,header{background:#141414!important;background-image:none!important;}
  section,.section,.home-section,.section-block,.pgp-home-managed-section,.pgp-most-viewed-card,.pgp-most-section,.pgp-most-scroll-wrap,.card,.pgp-card,.panel,.box{background:#141414!important;background-image:none!important;}
}

/* PGP HEADER RESTORE - keep #141414 on site body only, do NOT recolor headers */
:root{
  --pgp-site-header-bg: transparent !important;
  --pgp-site-header-text: #f5f7fb !important;
  --pgp-site-header-tab-bg: #ffffff !important;
  --pgp-site-header-tab-text: #111315 !important;
  --pgp-site-header-hover-bg: #e73660 !important;
  --pgp-site-header-active-bg: #f3144e !important;
  --pgp-site-header-active-text: #ffffff !important;
  --pgp-site-header-icon: #ffffff !important;
  --pgp-site-search-bg: #ffffff !important;
  --pgp-site-search-text: #111315 !important;
}
.pgp-app-header,.pgp-public-header,.pgp-header,.site-header,header{
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
/* restore header buttons/search to the original clear style */
.pgp-header-tab,.pgp-header-tabs .pgp-header-tab,.pgp-app-header .pgp-header-tab{
  background:transparent!important;
  color:#111315!important;
}
.pgp-header-tab::before,.pgp-header-tabs .pgp-header-tab::before,.pgp-app-header .pgp-header-tab::before{
  background:#ffffff!important;
  background-image:none!important;
}
.pgp-header-tab.is-active,.pgp-header-tab.active,.pgp-header-tab[aria-current="page"]{color:#ffffff!important;}
.pgp-header-tab.is-active::before,.pgp-header-tab.active::before,.pgp-header-tab[aria-current="page"]::before{background:#f3144e!important;}
.pgp-header-lang-btn,.pgp-header-lang-btn span,.pgp-header-lang-btn svg{color:#ffffff!important;stroke:#ffffff!important;background:transparent!important;}
.pgp-parts-menu-button,.pgp-menu-trigger{background:transparent!important;background-image:none!important;}
.pgp-parts-menu-button span,.pgp-menu-trigger span{background:#ffffff!important;}
.pgp-header-search-form,.pgp-app-header .pgp-header-search-form{
  background:#ffffff!important;
  background-image:none!important;
  color:#111315!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.pgp-header-search-input,.pgp-header-search-input::placeholder,.pgp-header-search-icon{
  color:#111315!important;
  stroke:#111315!important;
  background:transparent!important;
}
