/* A9: readable Meridia menu tile, sharp hero rollout and navy Meridia editorial/card contrast. */

/* The Meridia feature tile must not inherit the old white-on-light conflict. */
body:not(.is-meridia-theme) .product-mega .mega-category.is-meridia,
body.is-meridia-theme .product-mega .mega-category.is-meridia{
  position:relative!important;
  overflow:hidden!important;
  padding:16px!important;
  background:linear-gradient(145deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important;
  border:1px solid color-mix(in srgb,var(--theme-meridia-accent) 58%,transparent)!important;
  box-shadow:0 14px 32px rgba(7,30,61,.18)!important;
}
body:not(.is-meridia-theme) .product-mega .mega-category.is-meridia .mega-root,
body:not(.is-meridia-theme) .product-mega .mega-category.is-meridia a,
body.is-meridia-theme .product-mega .mega-category.is-meridia .mega-root,
body.is-meridia-theme .product-mega .mega-category.is-meridia a{
  position:relative!important;z-index:2!important;
  color:var(--theme-meridia-header-text)!important;
  border-color:color-mix(in srgb,var(--theme-meridia-header-text) 18%,transparent)!important;
  text-shadow:0 1px 1px rgba(3,20,44,.18)!important;
}
body:not(.is-meridia-theme) .product-mega .mega-category.is-meridia .mega-root small,
body:not(.is-meridia-theme) .product-mega .mega-category.is-meridia .vA2-mega-branch>a:after,
body.is-meridia-theme .product-mega .mega-category.is-meridia .mega-root small,
body.is-meridia-theme .product-mega .mega-category.is-meridia .vA2-mega-branch>a:after{
  color:color-mix(in srgb,var(--theme-meridia-accent) 72%,white)!important;
}
body:not(.is-meridia-theme) .product-mega .mega-category.is-meridia .vA2-mega-branch>a:hover,
body.is-meridia-theme .product-mega .mega-category.is-meridia .vA2-mega-branch>a:hover{
  color:#fff!important;text-decoration:underline!important;text-underline-offset:3px!important;
}
.product-mega .mega-category.is-meridia:after{
  color:color-mix(in srgb,var(--theme-meridia-accent) 20%,transparent)!important;
}

/* Mid-page Meridia editorial art belongs to the configurable navy palette. */
.is-meridia-theme .vA4-meridia-editorial-image{
  background:linear-gradient(145deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important;
  border:1px solid color-mix(in srgb,var(--theme-meridia-accent) 38%,transparent)!important;
  box-shadow:0 24px 55px rgba(6,30,64,.18)!important;
}
.is-meridia-theme .vA4-meridia-editorial-image:after{
  background:linear-gradient(0deg,rgba(5,26,55,.7),transparent 42%)!important;
}

/* Restore strong readable typography on the light Meridia product cards. */
.is-meridia-theme .v24-product-card{
  background:var(--theme-meridia-card-bg)!important;
  border-color:color-mix(in srgb,var(--theme-meridia-heading) 16%,transparent)!important;
  box-shadow:0 16px 36px rgba(7,36,74,.11)!important;
}
.is-meridia-theme .v24-product-media{
  background:linear-gradient(145deg,#f8fafc,#e5ebf1)!important;
}
.is-meridia-theme .v24-product-title,
.is-meridia-theme .v24-product-title a{
  color:var(--theme-meridia-heading)!important;
}
.is-meridia-theme .v24-product-category,
.is-meridia-theme .v24-product-model,
.is-meridia-theme .v24-product-model span{
  color:var(--theme-meridia-body)!important;
}
.is-meridia-theme .v24-details-link{
  color:var(--theme-meridia-heading)!important;
}
.is-meridia-theme .v24-product-price strong{
  color:var(--theme-meridia-heading)!important;
}
.is-meridia-theme .v24-card-actions{
  border-top-color:color-mix(in srgb,var(--theme-meridia-heading) 16%,transparent)!important;
}
.is-meridia-theme .v24-compare-button{
  color:var(--theme-meridia-heading)!important;
  background:#f7f9fc!important;
  border-color:color-mix(in srgb,var(--theme-meridia-heading) 24%,transparent)!important;
}

@media(max-width:900px){
  body:not(.is-meridia-theme) .product-mega .mega-category.is-meridia,
  body.is-meridia-theme .product-mega .mega-category.is-meridia{padding:13px!important}
}
