
/* Norton dark palette */
html[data-ea-theme="dark"] {
  --ea-night: #172943;
  --ea-night-panel: #222f45;
  --ea-night-gold: #e4c88d;
  --ea-night-text: #e5e8ed;
  --ea-night-muted: #aab5c5;
}
html[data-ea-theme="dark"][data-ea-theme="dark"] body:not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only) {
  background-color: var(--ea-night) !important;
  color: var(--ea-night-text) !important;
}
html[data-ea-theme="dark"][data-ea-theme="dark"] body:not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only) :is(.ea-description-under-image,.product-actions,.ea-product-service-card,.product-tabs,.cart-summary,.checkout-step,.product-miniature) {
  background-color: var(--ea-night-panel) !important;
  border-color: rgba(170,181,197,.22) !important;
  box-shadow: none !important;
}
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper :is(.ea-description-under-image,.product-actions,.ea-product-service-card,.product-tabs) {
  background: var(--ea-night-panel) !important;
}
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper :is(.ea-product-summary-text,#description,.ea-product-service-card) :is(p,li,td,span,em,strong),
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper :is(.ea-product-summary-text,#description,.ea-delivery-item),
html[data-ea-theme="dark"] body#category#category#category#category#category#category .ea-description-shell :is(.category-description,.rte-content,.ea-category-guide,p,li) {
  color: var(--ea-night-text) !important;
}
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper :is(.ea-product-service-card small,.product-reference,.tax-shipping-delivery-label) {
  color: var(--ea-night-muted) !important;
}
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper :is(h1,h2,h3,h4,.current-price .price,.ea-product-service-card > a) {
  color: var(--ea-night-gold) !important;
}
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper .ea-finance-logos,
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper .ea-finance-logos img {
  filter: none !important;
  background-image: none !important;
  box-shadow: none !important;
}
html[data-ea-theme="dark"] body#product#product#product#product#product#product #main-product-wrapper .ea-finance-logos img {
  background-color: #e5e8ed !important;
  padding: 5px 8px !important;
  border-radius: 5px;
}
@media (max-width:767px) {
  html[data-ea-theme="dark"] body#product #main-product-wrapper .ea-product-service-rail { padding-inline: 4px; }
  html[data-ea-theme="dark"] body#product #main-product-wrapper :is(.ea-product-service-card,.ea-description-under-image,.product-actions) {
    padding: 12px !important;
    margin-bottom: 8px !important;
  }
  html[data-ea-theme="dark"] body#product #main-product-wrapper .ea-product-service-card :is(h3,p,.ea-finance-logos) { margin-bottom: 8px; }
  html[data-ea-theme="dark"] body#product#product#product#product#product#product .ea-mobile-buy-bar {
    grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
    border-color: rgba(170,181,197,.26) !important;
    background: var(--ea-night) !important;
    box-shadow: none !important;
  }
  html[data-ea-theme="dark"] body#product#product#product#product#product#product .ea-mobile-buy-bar .ea-buy-add:not(:disabled) {
    background: var(--ea-night-gold) !important;
    color: var(--ea-night) !important;
    border-color: var(--ea-night-gold) !important;
    box-shadow: none !important;
  }
  html[data-ea-theme="dark"] body#product#product#product#product#product#product .ea-mobile-buy-bar .ea-buy-pay {
    background: var(--ea-night-panel) !important;
    color: var(--ea-night-text) !important;
    border-color: rgba(170,181,197,.48) !important;
    box-shadow: none !important;
  }
}

/* Preserve original logos, with optical fitting and a white-matte filter on dark cards. */
html[data-ea-theme="dark"] body .product-miniature .product-brand.ea-card-brand {
  width: 82px; height: 30px; padding: 0; background: transparent !important;
}
html[data-ea-theme="dark"] body .product-miniature .ea-card-brand .ea-logo-fit-window {
  display: block; position: relative !important; overflow: hidden; width: 82px !important; height: 30px !important;
  background: transparent !important;
}
html[data-ea-theme="dark"] body .product-miniature .ea-card-brand .ea-logo-fit-window img.ea-card-brand-logo {
  position: absolute !important; max-width: none !important; max-height: none !important;
  object-fit: fill !important; background: transparent !important; box-shadow: none !important;
}
html[data-ea-theme="dark"][data-ea-theme="dark"] body:not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only) .product-miniature .ea-card-brand img[data-ea-light-matte="1"]:not(.ea-card-brand-euroatletas) {
  filter: url('/themes/warehousechild/assets/css/ea-logo-filter.svg#light-matte') !important;
}
html[data-ea-theme="dark"] body .product-miniature .product-title a { font-size: 14px !important; line-height: 1.3; }
@media(max-width:575px){html[data-ea-theme="dark"] body .product-miniature .product-title a{font-size:13px!important}}


.product-miniature-grid .product-description :is(.product-price-and-shipping,.product-add-cart)[style*="--ea-aligned-margin"] {
  margin-top: var(--ea-aligned-margin) !important;
}
@media(max-width:767px) {
  html[data-ea-theme="dark"] body#product#product#product#product#product#product#product#product#product#product .ea-mobile-buy-bar .ea-buy-add:not(:disabled) {
    background: var(--ea-night-gold) !important; color: var(--ea-night) !important;
    border-color: var(--ea-night-gold) !important; box-shadow: none !important;
  }
  html[data-ea-theme="dark"] body#product#product#product#product#product#product#product#product#product#product .ea-mobile-buy-bar .ea-buy-pay {
    background: var(--ea-night-panel) !important; color: var(--ea-night-text) !important;
    border-color: rgba(170,181,197,.48) !important; box-shadow: none !important;
  }
  html[data-ea-theme="dark"] body#product#product#product#product#product#product #main #product-infos-accordion-mobile :is(.rte-content,.product-description) :is(p,span,li,td,strong,em) {
    color: var(--ea-night-text) !important;
  }
}

/* Compact cards and the complete EuroAtletas mark. */
html[data-ea-theme="dark"] body .product-miniature-grid .product-brand:not(:has(img)) { display: none !important; }
html[data-ea-theme="dark"] body .product-miniature-grid .product-description { padding-bottom: 4px !important; }
html[data-ea-theme="dark"] body .product-miniature-grid .product-title { margin-bottom: 3px !important; }
html[data-ea-theme="dark"] body .product-miniature-grid .product-reference:not(.ea-row-align-placeholder) { margin: 0 !important; }
html[data-ea-theme="dark"] body .product-miniature-grid .product-price-and-shipping:not([style*="--ea-aligned-margin"]) { margin-top: 6px !important; }
html[data-ea-theme="dark"] body .product-miniature-grid .product-add-cart:not([style*="--ea-aligned-margin"]) { margin-top: 5px !important; }
html[data-ea-theme="dark"] body .product-miniature-grid .ea-row-align-placeholder { display: none !important; }
html[data-ea-theme="dark"][data-ea-theme="dark"] body:not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only):not(#ea-light-only) .product-miniature .ea-card-brand img.ea-card-brand-euroatletas {
  content: url('/img/cms/Ea_invert.png') !important;
  inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain !important;
  filter: none !important; background: transparent !important;
}

html[data-ea-theme="dark"] body:not(#ea-light-only) .product-miniature-grid:has(.product-add-cart .btn-product-list) { padding-bottom: 8px !important; }
