/* ATIIE visual finishing — 2026-11-18.
 * Homepage only. No structural change to WooCommerce cards, add-to-cart,
 * image links, real prices, sliders, Elementor settings or merchant photos.
 */
body.mk-shell #mk-main .mk-home {
  --atiie-finish-teal: var(--mk46-teal, #087f85);
  --atiie-finish-ink: #17444a;
  --atiie-home-rhythm: clamp(16px, 1.65vw, 24px);
  row-gap: var(--atiie-home-rhythm) !important;
}
/* Wrappers are layout groups: don't accumulate their own 20-30px margins
 * on top of the main page's gap. Keep one predictable section rhythm. */
body.mk-shell #mk-main .mk-home > :is(.mk154-home-widgets,.mk47-home-shelves,.mk-hx-wrap,.mk167-home-widgets,.mk168-home-widgets) {
  margin-block:0 !important;
  padding-block:0 !important;
  row-gap:var(--atiie-home-rhythm) !important;
}
body.mk-shell #mk-main .mk-home :is(.mk154-home-widgets,.mk47-home-shelves) > :is(.mk-section,.mk47-shelf) {
  margin-block:0 !important;
}
body.mk-shell #mk-main .mk-home > .atiie-002-promo-row {
  margin-block:0 !important;
}
body.mk-shell #mk-main .mk-home .mk154-trending .mk154-products-rail {
  display:grid !important;
  grid-template-columns:none !important;
  grid-auto-flow:column !important;
  grid-auto-columns:clamp(182px,18.6vw,252px) !important;
  gap:clamp(10px,1.2vw,16px) !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  min-width:0 !important;
  min-height:245px;
  padding:3px 2px 14px !important;
  scroll-snap-type:x proximity;
}
body.mk-shell #mk-main .mk-home .mk154-trending .mk154-products-rail > .mk-product-card {
  display:flex !important;
  min-width:0 !important;
  height:auto;
  visibility:visible !important;
  opacity:1 !important;
}
@media(max-width:640px){
  body.mk-shell #mk-main .mk-home .mk154-trending .mk154-products-rail {grid-auto-columns:clamp(154px,48vw,208px) !important;min-height:220px;}
}
/* Preserve the soft per-product palette, but let it continue through the entire
 * card, including title and price, rather than stopping at the photo rectangle.
 * The same custom variables remain available for Elementor's saved overrides. */
@layer marketkit-storefront {
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 {
    /* If an Elementor widget has a chosen photo or card background, honor it.
       Otherwise use stable pastel variation shared by photo AND lower details. */
    --atiie-finish-card:var(--mk46-photo-surface,var(--mk46-product-surface,var(--atiie-finish-card-default,#eaf6f4)));
    background:var(--atiie-finish-card) !important;
    border-color:#dfeaea !important;
    border-radius:17px !important;
    overflow:hidden !important;
  }
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6:nth-child(5n+1) {--atiie-finish-card-default:#eaf7f1}
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6:nth-child(5n+2) {--atiie-finish-card-default:#fff1e5}
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6:nth-child(5n+3) {--atiie-finish-card-default:#eef0fc}
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6:nth-child(5n+4) {--atiie-finish-card-default:#f9edf4}
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6:nth-child(5n) {--atiie-finish-card-default:#eaf5fa}
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 .mk-product-image,
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 .mk-product-copy {
    background:var(--atiie-finish-card, #eaf6f4) !important;
  }
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 .mk-product-image {
    border-block-end-color:transparent !important;
  }
  /* Never recolor the action pills, actual product image or stock labels. */
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 .mk-product-photo-link img {
    object-fit:contain !important;
  }
  /* Top campaigns: a coordinated teal / cream / gold family without replacing
   * merchant-managed artwork or moving interactive carousel controls. */
  body.mk-shell #mk-main .mk-home .mk34-campaigns :is(.mk-art-poster,.mk-art-side-slider,.mk-art-side-bottom),
  body.mk-shell #mk-main .mk-home .mk-art-hero :is(.mk-art-poster,.mk-art-side-slider,.mk-art-side-bottom) {
    border-radius:18px !important;
    background:#e8f5f2 !important;
    border:1px solid #dbeae7 !important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk-art-side-slide.mk37-photo {
    background:#e8f5f2 !important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk-art-side-slide.mk36-tone-yellow {background:#fff0dd !important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk-art-side-slide.mk36-tone-berry {background:#eeeaf9 !important;}
  /* Uniform translucent backdrop stops typography from disappearing against
     a dark product photograph. Keep the text nodes separately editable. */
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign.mk37-photo > .mk37-campaign-content {
    color:#13454b !important;
    --mk37-ink:#13454b;
    --mk37-button:var(--atiie-finish-teal,#087f85);
    --mk37-button-ink:#fff;
    border-radius:12px;
    background:linear-gradient(110deg,rgba(255,255,255,.85),rgba(255,255,255,.58) 77%,transparent) !important;
    padding:clamp(9px,1.2vw,18px) !important;
    text-shadow:none !important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk-art-poster:nth-child(3n+2),
  body.mk-shell #mk-main .mk-home .mk-art-hero .mk-art-poster:nth-child(3n+2) {background:#fff0dd !important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk-art-poster:nth-child(3n+3),
  body.mk-shell #mk-main .mk-home .mk-art-hero .mk-art-poster:nth-child(3n+3) {background:#efebf9 !important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk-art-side-bottom,
  body.mk-shell #mk-main .mk-home .mk-art-hero .mk-art-side-bottom {background:#e7f0f8 !important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns :is(.mk-art-poster,.mk-art-side-slide,.mk-art-side-bottom) img,
  body.mk-shell #mk-main .mk-home .mk-art-hero :is(.mk-art-poster,.mk-art-side-slide,.mk-art-side-bottom) img {
    object-fit:contain !important;
    object-position:center !important;
    filter:saturate(.89) contrast(.99) !important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk37-campaign-content > strong,
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk37-campaign-label {
    color:#13454b !important;
    text-shadow:0 1px 6px rgba(255,255,255,.45) !important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk37-campaign-action {
    color:#fff !important;
    background:var(--atiie-finish-teal,#087f85) !important;
    border-color:transparent !important;
  }
}
/* Pastel banner rows; complete product artwork stays visible and text/CTA centered.
 * These selectors out-prioritize the previous unlayered white, cropped version. */
body.mk-shell #mk-main .mk-home .atiie-002-promo-card {
  --atiie-promo-bg:#e9f7f4;
  display:flex !important;
  flex-direction:column !important;
  aspect-ratio:auto !important;
  min-height:0 !important;
  background:var(--atiie-promo-bg) !important;
  border:1px solid #dce9e7 !important;
  border-radius:17px !important;
  box-shadow:0 5px 17px rgba(11,70,75,.055) !important;
  overflow:hidden !important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-tone-gold {--atiie-promo-bg:#fff0df}
body.mk-shell #mk-main .mk-home .atiie-002-promo-tone-rose {--atiie-promo-bg:#fcebf0}
body.mk-shell #mk-main .mk-home .atiie-002-promo-tone-lilac {--atiie-promo-bg:#f0ebfb}
body.mk-shell #mk-main .mk-home .atiie-002-promo-tone-navy {--atiie-promo-bg:#e8eff8}
body.mk-shell #mk-main .mk-home .atiie-002-promo-tone-teal {--atiie-promo-bg:#e5f5f1}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo {
  display:grid !important;
  place-items:center !important;
  position:relative !important;
  inset:auto !important;
  z-index:0 !important;
  flex:none !important;
  height:clamp(140px,13vw,195px) !important;
  width:100% !important;
  padding:8px 12px 0 !important;
  box-sizing:border-box !important;
  background:var(--atiie-promo-bg) !important;
  overflow:hidden !important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo img {
  display:block !important;
  height:100% !important;
  width:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-copy {
  position:relative !important;
  inset:auto !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  width:100% !important;
  max-width:100% !important;
  min-height:103px !important;
  flex:1 1 auto !important;
  padding:9px 12px 13px !important;
  box-sizing:border-box !important;
  color:#134a50 !important;
  background:var(--atiie-promo-bg) !important;
  text-align:center !important;
  text-shadow:none !important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-copy :is(small,strong) {
  color:#17474c !important;
  text-align:center !important;
  max-width:100% !important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-copy strong {
  font-size:clamp(14px,1.19vw,17px) !important;
  line-height:1.55 !important;
  min-height:0;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:center !important;
  margin:5px auto 0 !important;
  background:var(--atiie-finish-teal,#087f85) !important;
  color:#fff !important;
  border-radius:9px !important;
  min-height:31px !important;
  padding:7px 13px !important;
  text-align:center !important;
  font-size:11px !important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card:focus-visible {outline:3px solid var(--atiie-finish-teal,#087f85);outline-offset:3px;}
@media(max-width:900px){
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo {height:clamp(145px,24vw,195px) !important;}
}
@media(max-width:600px){
  body.mk-shell #mk-main .mk-home {--atiie-home-rhythm:15px;}
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo {height:clamp(106px,26vw,145px) !important;padding:5px 6px 0 !important;}
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-copy {min-height:105px !important;padding:8px 6px 10px !important;gap:4px !important;}
  body.mk-shell #mk-main .mk-home .atiie-002-promo-copy strong {font-size:12px !important;}
  body.mk-shell #mk-main .mk-home .atiie-002-promo-button {font-size:10px !important;min-height:29px !important;padding:6px 9px !important;}
}
@media(prefers-reduced-motion:reduce){
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card img {transition:none !important;}
}


/* 2026-11-19 follow-up: retain complete pictures, avoid inset photo squares.
   Scoped to native homepage cards and the two MarketKit editorial rows. */
@layer marketkit-storefront {
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 {
    background:var(--atiie-finish-card, #edf7f3) !important;
    background-clip:padding-box !important;
    isolation:isolate;
  }
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 :is(.mk-product-image,.mk-product-photo-link,.mk-product-copy) {
    background:transparent !important;
    background-color:transparent !important;
  }
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 .mk-product-image {
    background:var(--atiie-finish-card,#edf7f3) !important;
    border-bottom:0 !important;
  }
  /* White/light photo backdrops blend into the card tint instead of looking
     like a hard rectangular sticker. Never crop the product itself. */
  body.mk-shell #mk-main .mk-home .mk-product-card.mk-card-v6 .mk-product-photo-link img {
    object-fit:contain !important;
    mix-blend-mode:multiply !important;
    background:transparent !important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns :is(.mk-art-poster.mk36-campaign,.mk-art-side-slide.mk36-campaign,.mk-art-side-bottom.mk36-campaign) {
    --mk37-ink:#164a50;
    --mk37-button:#078388;
    --mk37-button-ink:#fff;
    border-color:#deebe7 !important;
    border-radius:18px !important;
    box-shadow:0 6px 18px rgba(8,70,72,.055) !important;
    background:#e7f5f1 !important;
    background-image:none !important;
    overflow:hidden !important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign:is(.mk36-tone-yellow,.mk36-tone-orange) {background:#fff0de!important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign:is(.mk36-tone-red,.mk36-tone-berry,.mk36-tone-lilac) {background:#f4eaf5!important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign:is(.mk36-tone-navy,.mk36-tone-blue) {background:#e8f0fa!important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign:is(.mk36-tone-green,.mk36-tone-teal) {background:#e6f5ed!important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign .mk36-campaign-media {inset:4% 4% 5%!important; width:auto!important; height:auto!important;overflow:hidden!important;border-radius:12px!important;}
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign .mk36-campaign-media :is(picture,img) {
    display:block!important;width:100%!important;height:100%!important;
    object-fit:contain!important;object-position:center!important;
    filter:saturate(.94)!important;transform:none!important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign .mk37-campaign-content {
    color:#164a50!important;
    text-shadow:none!important;
    background:linear-gradient(105deg,rgba(255,255,255,.93),rgba(255,255,255,.72))!important;
    border-radius:12px!important;
    padding:clamp(9px,1.2vw,15px)!important;
    max-width:95%!important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign .mk37-campaign-content :is(strong,small,.mk37-campaign-label) {
    color:#164a50!important;text-shadow:none!important;
  }
  body.mk-shell #mk-main .mk-home .mk34-campaigns .mk36-campaign .mk37-campaign-action {
    background:#078388!important;color:#fff!important;border:0!important;
    box-shadow:none!important;border-radius:9px!important;
  }
}
/* The source images are transparent 1:1 WebPs, not wide hero photographs.
   Size each as an object inside the pastel banner, not a full-bleed crop. */
body.mk-shell #mk-main .mk-home .atiie-002-promo-card {
  border:1px solid #dcebe7!important;
  border-radius:18px!important;
  background:var(--atiie-promo-bg,#e8f6f2)!important;
  background-clip:padding-box!important;
  overflow:hidden!important;
  min-height:0!important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card::before {display:none!important;}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo {
  position:relative!important;display:flex!important;justify-content:center!important;align-items:center!important;
  overflow:hidden!important;height:clamp(180px,17vw,225px)!important;
  padding:11px!important;min-width:0!important;box-sizing:border-box!important;
  background:var(--atiie-promo-bg,#e8f6f2)!important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo img {
  display:block!important;flex:none!important;object-fit:contain!important;object-position:center!important;
  width:auto!important;height:auto!important;max-width:min(88%,190px)!important;
  max-height:100%!important;aspect-ratio:1 / 1!important;
  transform:none!important;filter:none!important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-copy {
  min-height:98px!important;padding:8px 12px 15px!important;background:var(--atiie-promo-bg,#e8f6f2)!important;
  border:0!important;align-items:center!important;text-align:center!important;gap:5px!important;
}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-copy :is(small,strong) {text-align:center!important;color:#15464b!important;}
body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-button {margin:5px auto 0!important;align-self:center!important;}
/* Tidy one-pixel irregularities at rounded white widget panels. Never clip
   a carousel's horizontal scrolling surface or its real controls. */
body.mk-shell #mk-main .mk-home :is(.atiie-002-promo-row,.mk154-section,.mk47-shelf,.mk16-panel) {
  border-radius:19px!important;background-clip:padding-box!important;
  box-shadow:0 7px 22px rgba(13,65,68,.045)!important;
}
body.mk-shell #mk-main .mk-home .mk154-products-rail {
  box-sizing:border-box!important;scroll-padding-inline:12px!important;
  padding-inline:12px!important;
  min-width:0!important;
}
body.mk-shell #mk-main .mk-home .mk154-products-rail > .mk-product-card {scroll-snap-align:start!important;}
@media(max-width:600px){
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo {height:clamp(145px,42vw,200px)!important;padding:6px!important;}
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-photo img {max-width:min(88%,165px)!important;max-height:94%!important;}
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-copy {min-height:93px!important;padding:8px 7px 12px!important;}
  body.mk-shell #mk-main .mk-home .atiie-002-promo-card .atiie-002-promo-copy strong {font-size:12px!important;}
}
