/* ATIIE 2026-11-19 FIX-VISIBLE-6 | Exact live markup: header-default, product-reference, image raster hero.
 * Applied as final inline style on shell pages and limited to these components.
 */

/* The original images have white edge pixels. Keep their labels/CTA intact while removing panel-letterboxing. */
body.mk-shell #mk-main .mk-home .atiie-hs--raster :is(.atiie-hs__slide,.atiie-hs__side-card) {
  background:transparent!important;
  border:1px solid rgba(19,85,90,.075)!important;
  overflow:hidden!important;
}
body.mk-shell #mk-main .mk-home .atiie-hs--raster .atiie-hs__banner-image {
  display:block!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;padding:0!important;object-fit:cover!important;object-position:center!important;
  transform:scale(1.01)!important;
  border:0!important;background:transparent!important;
}
body.home.mk-shell #mk-main > .mk-home {padding-top:6px!important;}
body.home.mk-shell #mk-main > .mk-home > .atiie-hs--raster {padding-top:0!important;margin-top:0!important;}

/* Rebalance actual, native reference PDP: right gallery / generously sized middle / narrow left purchase.
 * Minima are deliberately below the available width, so all 3 stay on the same row on desktop.
 */
@media(min-width:1024px) {
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top,
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp.mk-reference-pdp > .mk-pdp-top {
   display:grid!important;direction:rtl!important;
   grid-template-columns:minmax(215px,.90fr) minmax(340px,1.62fr) minmax(215px,.72fr)!important;
   grid-template-rows:minmax(0,auto)!important;grid-auto-flow:row!important;
   gap:clamp(10px,1vw,16px)!important;
   padding:clamp(11px,1.15vw,18px)!important;
   align-items:start!important;justify-items:stretch!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-gallery {grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important;position:relative!important;top:0!important;inset-block-start:0!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-info {grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-purchase {grid-column:3!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;position:sticky!important;top:24px!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info :is(.mk-reference-delivery,.mk-reference-overview,.mk-pdp-quick-specs,.mk-pdp-price-line) {max-width:100%!important;min-width:0!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase :is(.mk-reference-seller,.mk-reference-policies,.mk-buybox){max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
}
@media(min-width:1024px) and (max-width:1130px) {
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top {
  grid-template-columns:minmax(190px,.92fr) minmax(320px,1.45fr) minmax(210px,.72fr)!important;
 }
}
@media(min-width:768px) and (max-width:1023px) {
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top {
   grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;
   grid-template-rows:auto auto!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-gallery {grid-column:1!important;grid-row:1/3!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-info {grid-column:2!important;grid-row:1!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-purchase {grid-column:2!important;grid-row:2!important;position:static!important;}
}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info :is(h1,h2,h3,p,li,dt,dd,td,th){direction:rtl!important;text-align:right!important;line-height:1.75!important;overflow-wrap:break-word!important;}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-detail-panel {direction:rtl!important;text-align:right!important;}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-detail-tablist > button[data-mk-tab] {
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  min-height:42px!important;opacity:1!important;visibility:visible!important;
  text-indent:0!important;font-size:14px!important;font-weight:800!important;
  white-space:normal!important;
}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-detail-tablist > button[data-mk-tab] > .mk-tab-label {
  display:inline!important;opacity:1!important;visibility:visible!important;
  text-indent:0!important;font-size:inherit!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;
}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-detail-tablist > button[data-mk-tab][aria-selected="true"] {
  background:#087f85!important;border-color:#087f85!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-detail-tablist > button[data-mk-tab][aria-selected="true"] > .mk-tab-label {
  color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
}

/* Desktop cart geometry. Mobile header is owned by the mobile component CSS. */
@media (min-width:769px) {
/* Exact cart/counter selectors also set in original layered source: no orange tile. */
body.mk-shell .mk-header .mk-header-actions > a.mk-header-cart-action:not(:hover):not(:focus-visible):not([aria-expanded="true"]) {background:transparent!important;border-color:transparent!important;box-shadow:none!important;}
body.mk-shell .mk-header .mk-header-actions > a:is(.mk-wishlist-action,.mk-header-cart-action) > .mk-header-action-icon {position:relative!important;overflow:visible!important;}
body.mk-shell .mk-header .mk-header-actions > a.mk-header-cart-action .mk-cart-visual > .mk-cart-count,
body.mk-shell .mk-header .mk-header-actions > a.mk-wishlist-action .mk-header-action-icon > .mk-local-count {
 position:absolute!important;display:grid!important;place-items:center!important;
 top:-9px!important;inset-inline-end:-10px!important;bottom:auto!important;
 min-width:20px!important;height:20px!important;padding:0 4px!important;
 background:#e83d58!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border:2px solid #fff!important;border-radius:999px!important;font:800 10px/1 sans-serif!important;
 opacity:1!important;visibility:visible!important;z-index:10!important;
}

/* High priority in the same named layer, to win over historic layered !important declarations. */
@layer marketkit-storefront {
 body.mk-shell.mk35-identity .mk-header .mk-header-actions > a.mk-header-action.mk-header-cart-action {
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border-color:transparent!important;box-shadow:none!important;color:#075e65!important;
 }
 body.mk-shell.mk35-identity .mk-header .mk-header-actions > a.mk-header-action.mk-header-cart-action:is(:hover,:focus-visible,[aria-expanded="true"]) {
  background:var(--atiie-teal-soft,#e6f5f3)!important;
  background-color:var(--atiie-teal-soft,#e6f5f3)!important;
  background-image:none!important;
  border-color:transparent!important;box-shadow:none!important;
  color:var(--atiie-teal-deep,#065d63)!important;
 }
 body.mk-shell.mk35-identity .mk-header .mk-header-actions > a:is(.mk-wishlist-action,.mk-header-cart-action) > .mk-header-action-icon {position:relative!important;overflow:visible!important;}
 body.mk-shell.mk35-identity .mk-header .mk-header-actions > a.mk-header-cart-action .mk-cart-visual > .mk-cart-count,
 body.mk-shell.mk35-identity .mk-header .mk-header-actions > a.mk-wishlist-action .mk-header-action-icon > .mk-local-count {
  position:absolute!important;display:grid!important;place-items:center!important;
  top:-9px!important;inset-inline-end:-10px!important;bottom:auto!important;
  min-width:20px!important;height:20px!important;padding:0 4px!important;
  border:2px solid white!important;border-radius:999px!important;
  background:#e83d58!important;color:white!important;-webkit-text-fill-color:white!important;
  opacity:1!important;visibility:visible!important;z-index:10!important;
 }
}


}

/* ATIIE v0.0.6 surgical corrections. No product image or widget colors change. */
/* The raster campaign already contains all the words and CTA: fill its image surface
 * just enough to remove baked-in pale border pixels without stretching the subject. */
body.home.mk-shell #mk-main .mk-home section.atiie-hs.atiie-hs--raster .atiie-hs__slide > img.atiie-hs__banner-image {
  width:100%!important;height:100%!important;object-fit:cover!important;
  object-position:center!important;transform:scaleX(1.035)!important;
  transform-origin:center!important;
}
body.home.mk-shell #mk-main .mk-home section.atiie-hs.atiie-hs--raster .atiie-hs__side-card > img.atiie-hs__banner-image {
  width:100%!important;height:100%!important;object-fit:cover!important;
  object-position:center!important;transform:scaleX(1.008)!important;
  transform-origin:center!important;
}

/* The native reference-product markup has three direct siblings; narrow right gallery
 * and left seller card while giving the full remainder to the central description. */
@media(min-width:980px){
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top {
    display:grid!important;direction:rtl!important;
    grid-template-columns:minmax(205px,.72fr) minmax(0,2fr) minmax(220px,.70fr)!important;
    grid-template-rows:auto!important;grid-auto-flow:row!important;
    gap:clamp(10px,1vw,14px)!important;
    align-items:start!important;justify-items:stretch!important;
    padding:clamp(12px,1.1vw,17px)!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-gallery {
    grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important;position:relative!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-info {
    grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-purchase {
    grid-column:3!important;grid-row:1!important;min-width:0!important;width:100%!important;
    max-width:100%!important;position:sticky!important;top:24px!important;
    padding:12px!important;box-sizing:border-box!important;
    border-radius:16px!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp .mk-pdp-purchase .mk-buybox {
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;padding:16px 14px!important;
    margin:12px 0 0!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp .mk-pdp-purchase .mk-buybox :is(form.cart,.mk-buybox-form) {
    min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp .mk-pdp-purchase .mk-buybox button.single_add_to_cart_button {
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important;
    min-width:0!important;margin:8px auto 0!important;box-sizing:border-box!important;
    padding-inline:7px!important;white-space:normal!important;line-height:1.45!important;
  }
}
@media(min-width:980px) and (max-width:1120px){
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top {
    grid-template-columns:minmax(195px,.70fr) minmax(0,2fr) minmax(208px,.72fr)!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-purchase {
    padding:10px!important;
  }
}

/* Header: badge is anchored to its 28px SVG icon, never to the whole 62px action tile.
 * On RTL inline-end is the left side of the icon; exactly touches the icon corner. */
body.mk-shell.mk-premium-20 .mk-header .mk-header-actions > a.mk-header-action:is(.mk-wishlist-action,.mk-header-cart-action) > span.mk-header-action-icon {
  position:relative!important;overflow:visible!important;isolation:isolate!important;
}
body.mk-shell.mk-premium-20 .mk-header .mk-header-actions > a.mk-header-action:is(.mk-wishlist-action,.mk-header-cart-action) > span.mk-header-action-icon > :is(.mk-cart-count,.mk-local-count) {
  position:absolute!important;top:-3px!important;
  inset-inline-end:-3px!important;inset-inline-start:auto!important;
  right:auto!important;bottom:auto!important;
  min-width:17px!important;width:auto!important;height:17px!important;min-height:17px!important;
  padding:0 3px!important;box-sizing:border-box!important;
  border:2px solid #fff!important;border-radius:999px!important;
  display:grid!important;place-items:center!important;
  font:800 9px/1 Arial,sans-serif!important;
  background:#e83d58!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  z-index:30!important;transform:none!important;
}

/* Categories dropdown is a dark teal button with legible white label and icons. */
body.mk-shell header.mk-header nav.mk-nav button.mk-categories-button {
  background:#075d65!important;background-color:#075d65!important;
  border:1px solid #075d65!important;border-radius:11px!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  min-height:39px!important;padding:8px 14px!important;
  box-shadow:none!important;
}
body.mk-shell header.mk-header nav.mk-nav button.mk-categories-button :is(strong,span,svg,.mk-icon) {
  color:#fff!important;stroke:currentColor!important;fill:none!important;
  -webkit-text-fill-color:#fff!important;
}
body.mk-shell header.mk-header nav.mk-nav button.mk-categories-button:is(:hover,:focus-visible,[aria-expanded="true"]) {
  background:#054950!important;background-color:#054950!important;color:#fff!important;
}

/* Match the existing named layer used by original important header declarations. */
@layer marketkit-storefront {
  body.mk-shell.mk35-identity .mk-header .mk-header-actions > a.mk-header-action:is(.mk-wishlist-action,.mk-header-cart-action) > span.mk-header-action-icon > :is(.mk-local-count,.mk-cart-count) {
    top:-3px!important;inset-inline-end:-3px!important;inset-inline-start:auto!important;
    min-width:17px!important;height:17px!important;min-height:17px!important;
    padding:0 3px!important;font-size:9px!important;background:#e83d58!important;
  }
  body.mk-shell.mk35-identity .mk-header nav.mk-nav button.mk-categories-button {
    background:#075d65!important;background-color:#075d65!important;
    color:#fff!important;border-color:#075d65!important;
  }
  body.mk-shell.mk35-identity .mk-header nav.mk-nav button.mk-categories-button :is(strong,svg,.mk-icon) {
    color:#fff!important;stroke:currentColor!important;
  }
}


/* Superseded 1024+ grid removed; canonical final desktop proportions below. */

/* ========== ATIIE v0.0.7 : Noon-like product structure + automatic banners ========== */
/* Keep the user's 3 columns on desktop: gallery right, information middle, buy box left.
   One high-specificity final rule supersedes the older conflicting media queries. */
@media (min-width:980px) {
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top {
  display:grid!important;
  direction:rtl!important;
  grid-template-columns:minmax(205px,.91fr) minmax(0,2.15fr) minmax(218px,.84fr)!important;
  grid-template-rows:auto!important;
  grid-auto-flow:row!important;
  align-items:start!important;
  justify-content:stretch!important;
  gap:clamp(12px,1.3vw,20px)!important;
  padding:clamp(16px,1.6vw,24px)!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-gallery{
  grid-column:1!important;grid-row:1!important;position:relative!important;
  top:auto!important;align-self:start!important;padding:0!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-info{
  grid-column:2!important;grid-row:1!important;align-self:start!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
  padding:4px 4px 12px!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-purchase{
  grid-column:3!important;grid-row:1!important;align-self:start!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
  margin:0!important;padding:14px!important;box-sizing:border-box!important;
  position:sticky!important;top:calc(var(--mk-admin-offset,0px) + 18px)!important;
  overflow:visible!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase :is(.mk-reference-seller,.mk-reference-policies,.mk-buybox){
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:clamp(14px,1.4vw,19px)!important;
  margin-inline:0!important;
  overflow-wrap:break-word!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase .mk-buybox :is(.mk-buybox-form,form.cart){
  width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;padding-inline:4px!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase .mk-buybox .single_add_to_cart_button{
  display:flex!important;justify-content:center!important;align-items:center!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:12px auto 0!important;padding-inline:10px!important;
  box-sizing:border-box!important;white-space:normal!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-gallery-stage{
  min-width:0!important;width:100%!important;
  height:clamp(310px,32vw,450px)!important;
 }
}
/* Never pinch the middle column with fixed nested widths. */
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info,
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info > *,
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info .mk-reference-delivery,
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info .mk-reference-overview,
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info .mk-pdp-quick-specs{
 min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info :is(.mk-reference-delivery,.mk-reference-overview,.mk-pdp-quick-specs){
 padding:clamp(16px,1.7vw,22px)!important;
 margin-block:12px!important;
 border-radius:16px!important;
}
body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-info :is(p,strong,small,dd,dt,h1,h2,h3){
 line-height:1.65!important;overflow-wrap:break-word!important;
}
@media(min-width:740px) and (max-width:979px){
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top{
  grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr)!important;
  grid-template-rows:auto auto!important;
  gap:16px!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-gallery{grid-column:1!important;grid-row:1 / 3!important;position:static!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-info{grid-column:2!important;grid-row:1!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-purchase{grid-column:2!important;grid-row:2!important;position:static!important;}
}
@media(max-width:739px){
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
 body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > :is(.mk-pdp-gallery,.mk-pdp-info,.mk-pdp-purchase){grid-column:1!important;grid-row:auto!important;position:static!important;}
}

/* Any custom image fills the entire banner with the same image in the backdrop;
   the foreground is always fully visible (smart mode, prevents distorted type).
   For full-bleed cropping, use data-atiie-fit=cover on an individual banner. */
body.home.mk-shell #mk-main .mk-home .atiie-hs--raster :is(.atiie-hs__slide,.atiie-hs__side-card) {
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 border-radius:18px!important;background:#eef6f4!important;
}
body.home.mk-shell #mk-main .mk-home .atiie-hs--raster :is(.atiie-hs__slide,.atiie-hs__side-card)[data-atiie-fit="smart"]::before {
 content:"";position:absolute;inset:-18px;z-index:0;pointer-events:none;
 background-image:var(--atiie-campaign-bg);background-size:cover;background-position:center;
 filter:blur(14px);transform:scale(1.04);
}
body.home.mk-shell #mk-main .mk-home .atiie-hs--raster :is(.atiie-hs__slide,.atiie-hs__side-card) > img.atiie-hs__banner-image {
 position:relative!important;z-index:1!important;display:block!important;
 width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
 margin:0!important;padding:0!important;border:0!important;
 object-fit:contain!important;object-position:center!important;
 transform:none!important;filter:none!important;
}
@media (max-width:768px) {
 body.home.mk-shell #mk-main .mk-home .atiie-hs--raster [data-atiie-fit="smart"]::before {display:none!important;}
}
body.home.mk-shell #mk-main .mk-home .atiie-hs--raster [data-atiie-fit="cover"] > img.atiie-hs__banner-image {object-fit:cover!important;}
body.home.mk-shell #mk-main .mk-home .atiie-hs--raster [data-atiie-fit="contain"] > img.atiie-hs__banner-image {object-fit:contain!important;}
@layer marketkit-storefront {
 body.home.mk-shell #mk-main .mk-home section.atiie-hs.atiie-hs--raster :is(.atiie-hs__slide,.atiie-hs__side-card) > img.atiie-hs__banner-image{
  width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;
 }
 /* Superseded 980+ grid removed; 0.0.8 layout follows. */
}


/* ===== ATIIE v0.0.8 : SINGLE PRODUCT PAGE ONLY =====
 * Layout proportions based on the user's Noon desktop reference:
 * gallery ~37%, details ~40%, purchase ~23%, with restrained gaps.
 * The actual gallery and WooCommerce form are preserved, not recreated.
 */
@layer marketkit-storefront {
 @media (min-width:980px) {
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top {
   display:grid!important;
   direction:rtl!important;
   grid-template-columns:minmax(0,1.05fr) minmax(0,1.14fr) minmax(232px,.64fr)!important;
   grid-template-rows:auto!important;
   grid-auto-flow:row!important;
   column-gap:clamp(11px,1.2vw,19px)!important;
   row-gap:14px!important;
   align-items:start!important;
   justify-items:stretch!important;
   padding:clamp(12px,1.25vw,20px)!important;
   overflow:visible!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-gallery {
   grid-column:1!important;grid-row:1!important;
   min-width:0!important;max-width:100%!important;width:100%!important;
   padding:0!important;margin:0!important;
   position:relative!important;top:auto!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-info {
   grid-column:2!important;grid-row:1!important;
   min-width:0!important;max-width:100%!important;width:100%!important;
   padding:2px 5px 12px!important;margin:0!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top > .mk-pdp-purchase {
   grid-column:3!important;grid-row:1!important;
   min-width:0!important;max-width:100%!important;width:100%!important;
   padding:0 3px 3px!important;margin:0!important;
   position:sticky!important;
   top:calc(var(--mk-toolbar-offset,0px) + 16px)!important;
   align-self:start!important;
   overflow:visible!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-gallery .mk-gallery {
   display:grid!important;
   grid-template-columns:clamp(52px,5.1vw,67px) minmax(0,1fr)!important;
   gap:clamp(8px,.9vw,13px)!important;
   width:100%!important;
   min-width:0!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page .mk-gallery-stage {
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   height:clamp(405px,41vw,565px)!important;
   margin:0!important;
   padding:12px!important;
   box-sizing:border-box!important;
   overflow:hidden!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page .mk-gallery-stage .mk-gallery-main {
   width:100%!important;height:100%!important;
   max-width:100%!important;max-height:100%!important;
   object-fit:contain!important;
  }
 }
 @media (min-width:980px) and (max-width:1100px) {
  body.single-product.mk-shell #mk-main .mk-reference-page article.mk-reference-pdp > .mk-pdp-top {
   grid-template-columns:minmax(0,1.02fr) minmax(0,1.15fr) minmax(216px,.64fr)!important;
   gap:10px!important;padding:11px!important;
  }
  body.single-product.mk-shell #mk-main .mk-reference-page .mk-gallery-stage {
   height:clamp(360px,40vw,460px)!important;
  }
 }

 /* Inside the left buy column: keep controls comfortably inset, never edge-to-edge. */
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase > :is(.mk-reference-seller,.mk-reference-policies,.mk-buybox),
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase .mk-buybox {
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  padding:clamp(13px,1.05vw,17px)!important;
  margin-inline:0!important;
  overflow:visible!important;
  border-radius:13px!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase .mk-buybox-form,
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-pdp-purchase .mk-buybox-form form.cart {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;
  padding:0!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart .woocommerce-variation-add-to-cart {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart :is(.quantity,.input-text.qty) {
  box-sizing:border-box!important;
  max-width:100%!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart button.single_add_to_cart_button,
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart button.atiie-pdp-buy-now {
  box-sizing:border-box!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  position:relative!important;
  width:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important;
  min-width:0!important;min-height:45px!important;max-height:none!important;height:auto!important;
  flex:0 0 auto!important;align-self:center!important;
  padding:10px 12px!important;
  margin:0 4px!important;
  border-radius:10px!important;
  font-size:clamp(13px,1vw,16px)!important;
  font-weight:850!important;line-height:1.5!important;
  text-align:center!important;
  overflow:visible!important;
  text-indent:0!important;
  white-space:normal!important;
  cursor:pointer!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart button.single_add_to_cart_button {
  background:#07828a!important;border:1px solid #07828a!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart button.atiie-pdp-buy-now {
  background:#fff!important;background-image:none!important;
  border:1.5px solid #0b7c84!important;
  color:#08646b!important;-webkit-text-fill-color:#08646b!important;
  box-shadow:none!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart button.atiie-pdp-buy-now:is(:hover,:focus-visible) {
  background:#eaf8f6!important;color:#07585f!important;-webkit-text-fill-color:#07585f!important;
 }
 body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form form.cart button.atiie-pdp-buy-now:disabled {
  opacity:.5!important;cursor:not-allowed!important;
 }
}
/* Ensure theme styles outside the named layer cannot hide the second action. */
body.single-product.mk-shell #mk-main .mk-reference-page .mk-buybox-form .atiie-pdp-buy-now {
 visibility:visible!important;opacity:1!important;text-decoration:none!important;
}


/* ATIIE 2026-11-20: homepage shelves and carousel navigation only.
 * The white cards already have their own padding. Never add parent margins
 * on top of the main layout gap; do not touch PDP/checkout or hero banners. */
body.mk-shell #mk-main .mk-container.mk-home {
  --atiie-shelf-gap: clamp(13px,1.3vw,19px);
  gap: var(--atiie-shelf-gap) !important;
  row-gap: var(--atiie-shelf-gap) !important;
}
body.mk-shell #mk-main .mk-home > :is(
 .mk168-home-additions,.mk169-home-additions,.mk170-home-additions,
 .mk170-recent-additions,.mk167-home-highlights,.mk47-home-shelves,
 .mk154-home-widgets,.mk-hx-wrap,.mk168-home-widgets,
 .mk167-home-widgets,.atiie-002-promo-row
) {
  margin-block: 0 !important;
  padding-block: 0 !important;
  row-gap: var(--atiie-shelf-gap) !important;
}
/* A wrapper with no actual product shelves must not occupy a blank row. */
body.mk-shell #mk-main .mk-home > :is(
 .mk170-home-additions,.mk170-recent-additions,.mk168-home-additions,
 .mk167-home-highlights,.mk47-home-shelves,.mk-hx-wrap
)[hidden],
body.mk-shell #mk-main .mk-home > :is(
 .mk170-home-additions,.mk170-recent-additions,.mk168-home-additions,
 .mk167-home-highlights,.mk47-home-shelves,.mk-hx-wrap
):empty {display:none !important;}
body.mk-shell #mk-main .mk-home :is(
 .mk168-shelf,.mk167-home-shelf,.mk47-shelf,.mk170-recent-additions .mk170-shelf,
 .mk154-section,.mk154-trending
) {margin-block:0 !important; min-width:0;}
/* Every real product rail is one compact widget: heading, cards, then no
 * extra arrow strip and no oversized minimum height for a sparse data set. */
body.mk-shell #mk-main .mk-home .mk-rail-viewport--product {
  position:relative !important;
  overflow:visible !important;
  width:100% !important;
  min-width:0 !important;
  isolation:isolate;
}
body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > [data-mk-track] {
  min-width:0 !important;
  max-width:100% !important;
  margin-block:0 !important;
}
body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > .mk-carousel-arrows {
  position:absolute !important;
  inset-block:0 !important;
  top:0 !important;
  bottom:0 !important;
  inset-inline-start:-13px !important;
  inset-inline-end:-13px !important;
  width:auto !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:0 !important;
  z-index:12 !important;
  pointer-events:none !important;
}
body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > .mk-carousel-arrows[hidden] {
  display:none !important;
}
body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > .mk-carousel-arrows > button {
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
  transform:none !important;
  display:grid !important;
  place-items:center !important;
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  padding:0 !important;
  border:1px solid #c8deda !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.97) !important;
  color:#087a7e !important;
  box-shadow:0 4px 15px rgba(12,66,71,.14) !important;
  pointer-events:auto !important;
  cursor:pointer;
}
body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > .mk-carousel-arrows > button:disabled {
  opacity:.3 !important;
  cursor:default !important;
}
body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > .mk-carousel-arrows > button:focus-visible {
  outline:2px solid #087f85 !important;outline-offset:2px !important;
}
/* Some widget sources output only two/three real products. Center that short
 * row rather than making a half-empty white panel, without stretching photos. */
@media (min-width:701px) {
 body.mk-shell #mk-main .mk-home .mk-rail-viewport--few > .mk-products-rail,
 body.mk-shell #mk-main .mk-home .mk-rail-viewport--few > .mk154-products-rail {
   display:flex !important;
   flex-wrap:nowrap !important;
   align-items:stretch !important;
   justify-content:center !important;
   gap:clamp(12px,1.4vw,18px) !important;
   overflow-x:hidden !important;
 }
 body.mk-shell #mk-main .mk-home .mk-rail-viewport--few > :is(.mk-products-rail,.mk154-products-rail) > .mk-product-card {
   flex:0 1 clamp(195px,22vw,255px) !important;
   width:clamp(195px,22vw,255px) !important;
   max-width:255px !important;
   min-width:0 !important;
 }
}
/* Fallback if a third-party builder prevents JS from moving its original
 * controls into a rail viewport. The usual JS path always takes precedence. */
body.mk-shell #mk-main .mk-home :is(.mk168-shelf,.mk167-home-shelf,.mk154-section,.mk-products-section) > .mk-carousel-arrows {
  position:absolute !important;
  inset-inline:7px !important;
  top:55% !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
  height:0 !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  pointer-events:none !important;
}
body.mk-shell #mk-main .mk-home :is(.mk168-shelf,.mk167-home-shelf,.mk154-section,.mk-products-section) > .mk-carousel-arrows > button {pointer-events:auto !important;}
body.mk-shell #mk-main .mk-home :is(.mk168-shelf,.mk167-home-shelf,.mk154-section,.mk-products-section) {position:relative;}
@media(max-width:700px) {
 body.mk-shell #mk-main .mk-container.mk-home {--atiie-shelf-gap:12px;}
 body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > .mk-carousel-arrows {
   inset-inline-start:-7px !important;inset-inline-end:-7px !important;
 }
 body.mk-shell #mk-main .mk-home .mk-rail-viewport--product > .mk-carousel-arrows > button {
   width:32px !important;height:32px !important;min-width:32px !important;min-height:32px !important;
 }
}
