/* ATIIE MarketKit 4.6.0 — one final opt-in visual layer.
 * Native WooCommerce behavior, widget markup and controls stay intact.
 * Merchants may restore previous card/category/product/archive visual modes in Design Studio.
 * Elementor CSS variables have priority without destructive global layout overrides. */

:is(body.mk-shell.mk35-identity, body.elementor-page) {
  --mk46-teal: #087e85;
  --mk46-deep: #123f49;
  --mk46-gold: #f4be55;
  --mk46-ink: #153a43;
  --mk46-line: #dce9e9;
  --mk46-soft: #f4f9f9;
}

/* CATEGORY WIDGETS: clearer hierarchy, genuine category photos and calmer card framing. */
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-tile,
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk16-panel-categories .mk15-category-tile {
  box-sizing: border-box !important;
  min-height: 175px !important;
  padding: 11px 9px 12px !important;
  border: 1px solid #e5edee !important;
  border-radius: var(--mk46-cat-radius, 17px) !important;
  background: var(--mk46-cat-surface, linear-gradient(160deg,#fff 20%, #f4f9f9 100%)) !important;
  box-shadow: 0 5px 18px rgba(13, 60, 67, .035) !important;
  text-decoration: none !important;
  gap: 5px !important;
  justify-content: flex-start !important;
  transform: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-tile:hover,
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-tile:focus-visible {
  border-color: #9dcbca !important;
  box-shadow: 0 10px 25px rgba(15, 81, 85, .09) !important;
  background: var(--mk46-cat-surface, #fff) !important;
}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-media,
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk16-panel-categories .mk15-category-media {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: min(100%,var(--mk46-cat-image-size, 96px)) !important;
  height: var(--mk46-cat-image-size, 96px) !important;
  aspect-ratio: 1 !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 auto 3px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  background: #e6f3f0 !important;
  overflow: hidden !important;
}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-category-tile:nth-child(6n+2) .mk15-category-media {background:#fff0e0 !important}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-category-tile:nth-child(6n+3) .mk15-category-media {background:#e9efff !important}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-category-tile:nth-child(6n+4) .mk15-category-media {background:#f2e9fa !important}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-category-tile:nth-child(6n+5) .mk15-category-media {background:#fbeaed !important}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-category-tile:nth-child(6n+6) .mk15-category-media {background:#e5f0e2 !important}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: none !important;
}
:is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-tile strong {
  color: var(--mk46-cat-ink, #153c45) !important;
  font-weight: 850 !important;
  font-size: clamp(11px, 1.08vw, 14px) !important;
  line-height: 1.45 !important;
  min-height: auto !important;
  max-height: 2.9em !important;
  text-wrap: pretty;
  overflow: hidden !important;
}
.mk46-cat-count {
  display: block;
  color: #617f83;
  font-weight: 650;
  line-height: 1.25;
  font-size: 11px;
  text-align: center;
  margin-top: auto;
}
/* Optional: category cards with no large imagery, suitable for dense catalogs. */
.mk-module.mk46-cat-compact .mk15-categories .mk15-category-tile,
body.mk46-cat-compact .mk15-categories .mk15-category-tile {
  min-height: 128px !important;
  padding: 10px 6px !important;
  border-radius: var(--mk46-cat-radius, 13px) !important;
  gap: 6px !important;
  border: 1px solid #e4eeee !important;
  background: var(--mk46-cat-surface, #fff) !important;
}
.mk-module.mk46-cat-compact .mk15-categories .mk15-category-media,
body.mk46-cat-compact .mk15-categories .mk15-category-media {
  width: min(100%,var(--mk46-cat-image-size,70px)) !important;
  height: var(--mk46-cat-image-size,70px) !important;
  border-radius: 12px !important;
}
/* Other category experiences should share ATIIE styling, without altering widths of carousels. */
body.mk-shell.mk35-identity :is(.mk156-featured-tile.mk46-featured-category, .mk37-category-browser .mk37-category-tile) {
  border: 1px solid #dfebeb !important;
  border-radius: var(--mk46-cat-radius, 15px) !important;
  box-shadow: 0 4px 14px rgba(14, 61, 66, .035) !important;
  color: var(--mk46-cat-ink, #173f48) !important;
}
body.mk-shell.mk35-identity .mk156-featured-tile.mk46-featured-category {
  background: var(--mk46-cat-surface, #f0f7f7) !important;
  min-height: 170px;
  padding: 13px 8px;
  gap: 5px;
}
body.mk-shell.mk35-identity .mk156-featured-tile.mk46-featured-category:nth-child(6n+2) {background:var(--mk46-cat-surface,#fff3e5) !important}
body.mk-shell.mk35-identity .mk156-featured-tile.mk46-featured-category:nth-child(6n+3) {background:var(--mk46-cat-surface,#eef0ff) !important}
body.mk-shell.mk35-identity .mk156-featured-tile.mk46-featured-category:nth-child(6n+4) {background:var(--mk46-cat-surface,#fcebf1) !important}
body.mk-shell.mk35-identity .mk156-featured-tile.mk46-featured-category .mk156-featured-image img {object-fit:contain !important}
body.mk-shell.mk35-identity .mk156-featured-tile.mk46-featured-category strong {color:var(--mk46-cat-ink,#173f48) !important}
body.mk-shell.mk35-identity .mk37-category-browser .mk37-category-tile {
  min-block-size: 105px !important;
  grid-template-rows: 48px minmax(27px,auto) auto !important;
  padding: 8px 6px !important;
  background: var(--mk46-cat-surface, #fbfdfd) !important;
  gap: 3px !important;
}
body.mk-shell.mk35-identity .mk37-category-browser .mk37-category-tile:is(:hover,:focus-visible,[data-mk-category-selected]) {
  border-color: #85bdbd !important;
  background: #eaf7f5 !important;
}
body.mk-shell.mk35-identity .mk37-category-browser .mk46-cat-count {font-size: 10px;}
body.mk-shell.mk35-identity .mk37-category-browser .mk37-category-icon {background:#eff7f6 !important; border-radius:11px}
body.mk-shell.mk35-identity .mk-category-mosaic>a {border:1px solid #e2ecec !important;border-radius:18px!important; box-shadow:0 5px 18px rgba(13,60,67,.04)!important;}

/* PRODUCT CARDS: calm details, stable overlay actions, intact image containment. */
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 {
  border: 1px solid #e1ebec !important;
  border-radius: var(--mk46-product-radius, 17px) !important;
  background: var(--mk46-product-surface, #fff) !important;
  box-shadow: 0 5px 18px rgba(14, 59, 66, .045) !important;
  overflow: hidden !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6:is(:hover,:focus-within) {
  border-color: #b1d6d5 !important;
  box-shadow: 0 11px 30px rgba(15, 70, 74, .10) !important;
}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-product-image {
  background: var(--mk46-photo-surface,var(--mk46-soft,#f6f9f8)) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-product-photo-link img {
  object-fit: contain !important;
  object-position: center !important;
  max-width: 100% !important;
  max-height: 100% !important;
}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-product-copy {
  padding: 14px 13px 15px !important;
  gap: 5px;
}
.mk46-card-category {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mk46-teal,#087e85) !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none !important;
  line-height: 1.45;
  margin-bottom: 2px;
}
.mk46-card-category:hover {text-decoration: underline !important;}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-product-copy h3,
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-product-copy h3 a {color:#183d45 !important;line-height:1.55 !important;}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-price {color:var(--mk46-teal,#087e85) !important; font-variant-numeric:tabular-nums;}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-card-detail {color:var(--mk46-teal,#087e85) !important; font-weight:800 !important;}
:is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-sale-badge {background:#fff0da !important;color:#805314 !important;border-radius:8px !important;}

/* PRODUCT DETAIL: keep real photos complete, with distinct info & purchase panels. */
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-gallery-stage {
  background: var(--mk46-gallery-surface, #f7faf9) !important;
  border: 1px solid #dce9e9 !important;
  border-radius: 20px !important;
  padding: clamp(18px, 2.2vw, 30px) !important;
  box-shadow: inset 0 0 0 1px #ffffff,0 7px 22px rgba(13,59,65,.045) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-gallery-stage>img.mk-gallery-main {
  object-fit: contain !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  position: static !important;
  margin: auto !important;
}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-gallery-thumb {
  background:#f8fbfa !important;
  border:1px solid #e1eded !important;
  border-radius:12px !important;
}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-gallery-thumb:is(.is-active,:focus-visible) {border-color:#0b8990 !important;box-shadow:0 0 0 2px rgba(11,137,144,.12) !important;}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-pdp-title {color:#143c45 !important;line-height:1.35 !important;letter-spacing:-.025em;}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-pdp-price {color:var(--mk46-teal,#087e85) !important;font-variant-numeric:tabular-nums;}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp :is(.mk-pdp-purchase,.mk-reference-overview,.mk-pdp-quick-specs,.mk-pdp-details) {
  border:1px solid #e0ebeb !important;
  border-radius:18px !important;
  background:var(--mk46-buy-surface,#fff) !important;
  box-shadow:0 6px 23px rgba(14,59,66,.04) !important;
}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-buybox {border:1px solid #d8e9e9 !important;border-radius:15px !important;background:#f2f9f8 !important;}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .single_add_to_cart_button {background:var(--mk46-teal,#087e85) !important;color:#fff !important;border-radius:12px !important;}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .single_add_to_cart_button:is(:hover,:focus-visible) {background:#075e65 !important;}
body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-detail-tablist button[aria-selected="true"] {color:var(--mk46-teal,#087e85) !important;border-color:var(--mk46-teal,#087e85) !important;}

/* SHOP/ARCHIVE: consistent category and product discovery presentation. */
body.mk46-shop-refined:is(.post-type-archive-product,.tax-product_cat) :is(.mk-catalog-toolbar,.mk-catalog-hero,.mk-filters,.mk23-commerce-bar) {
  border-color:#dfebeb !important;
  border-radius:17px !important;
  background:#fff !important;
}
body.mk46-shop-refined:is(.post-type-archive-product,.tax-product_cat) :is(.mk-catalog-page h1,.mk-catalog-page .mk-page-title) {color:#113e48 !important;letter-spacing:-.02em;}
body.mk46-shop-refined:is(.post-type-archive-product,.tax-product_cat) :is(.mk-catalog-toolbar button,.mk-filter-pill,.mk-sort-select) {border-radius:11px !important;}

/* Elementor widget overrides have separate, higher-priority scoped variables. */
body.elementor-page .mk-module .mk46-card-category {font-size:10px}
body.elementor-page .mk-module .mk-product-card.mk-card-v6 {background:var(--mk46-product-surface,#fff) !important;border-radius:var(--mk46-product-radius,17px) !important;}
body.elementor-page .mk-module .mk-product-card.mk-card-v6 .mk-product-image {background:var(--mk46-photo-surface,#f6f9f8) !important;}
body.elementor-page .mk-module .mk15-category-tile {border-radius:var(--mk46-cat-radius,17px) !important;}
body.elementor-page .mk-module .mk15-category-tile strong {color:var(--mk46-cat-ink,#173f48) !important;}
body.elementor-page .mk-module .mk-pdp.mk-reference-pdp .mk-gallery-stage {background:var(--mk46-gallery-surface,#f7faf9) !important;}
body.elementor-page .mk-module .mk-pdp.mk-reference-pdp .mk-pdp-purchase {background:var(--mk46-buy-surface,#fff) !important;}

@media (max-width: 767px) {
  :is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-tile,
  :is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk16-panel-categories .mk15-category-tile {
    min-height: 142px !important;
    padding: 8px 5px !important;
    border-radius: var(--mk46-cat-radius, 13px) !important;
    gap: 3px !important;
  }
  :is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-media {
    width: min(100%,var(--mk46-cat-image-size, 76px)) !important;
    height: min(76px,var(--mk46-cat-image-size,76px)) !important;
    padding:5px !important;
    border-radius:11px !important;
  }
  :is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-tile strong {font-size:11px !important;line-height:1.35 !important;}
  .mk46-cat-count {font-size:9px}
  :is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6 .mk-product-copy {padding:10px 9px 11px !important;}
  .mk46-card-category {font-size:9px;}
  body.single-product.mk46-pdp-refined .mk-pdp.mk-reference-pdp .mk-gallery-stage {padding:13px !important;border-radius:14px !important;}
}
@media (prefers-reduced-motion: reduce) {
  :is(body.mk46-card-refined, .elementor-page) .mk-product-card.mk-card-v6,
  :is(body.mk46-cat-editorial, .mk-module.mk46-cat-editorial) .mk15-categories .mk15-category-tile {transition:none!important;}
}

/* Explicit Elementor minimal option wins over the default theme editorial skin. */
.mk-module.mk46-cat-minimal .mk15-categories .mk15-category-tile {
  min-height: 140px !important;
  padding: 9px 5px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 14px !important;
}
.mk-module.mk46-cat-minimal .mk15-categories .mk15-category-media {
  width: min(100%,94px) !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background:#ebf3f3 !important;
}
@media(max-width:767px){
  .mk-module.mk46-cat-minimal .mk15-categories .mk15-category-tile {min-height:116px !important;padding:7px 2px !important;}
  .mk-module.mk46-cat-minimal .mk15-categories .mk15-category-media {width:min(100%,69px) !important;}
}
/* A restrained golden accent connects category, product and PDP surfaces with ATIIE's header. */
body.mk-shell.mk35-identity .mk15-category-heading h2,
body.mk-shell.mk35-identity .mk37-category-heading h2 {
  border-inline-start: 3px solid var(--mk46-gold, #f4be55);
  padding-inline-start: 10px;
}
.mk46-card-category::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-inline-end: 5px;
  background: var(--mk46-gold, #f4be55);
}
