/* MarketKit 1.6.7: narrowly scoped catalog introduction, fixed-size quick view,
   and two optional original product shelves. Do not change cards, header or hero. */

/* Archive intro: short, balanced heading instead of an oversized empty billboard. */
body.mk-shell .mk-catalog-page > .mk-catalog-hero {
  min-height:0!important;height:auto!important;
  padding:15px clamp(18px,2.4vw,32px)!important;
  margin:12px auto 16px!important;
  background:linear-gradient(115deg,#fff 60%,#f5f9fd 100%)!important;
  border:1px solid #e6edf4!important;
  border-radius:18px!important;
  box-shadow:none!important;
}
body.mk-shell .mk-catalog-page > .mk-catalog-hero > .mk-container {
  min-height:0!important;height:auto!important;max-width:1480px!important;
  padding:0!important;display:block!important;
}
body.mk-shell .mk-catalog-page .mk-catalog-hero-copy {
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important;column-gap:20px!important;
  row-gap:4px!important;align-items:center!important;min-width:0!important;
}
body.mk-shell .mk-catalog-page .mk-catalog-hero .mk-breadcrumbs {
  grid-column:1/-1;grid-row:1;min-height:0!important;
  padding:0 0 3px!important;margin:0!important;font-size:11px!important;
}
body.mk-shell .mk-catalog-page .mk-catalog-hero h1 {
  grid-column:1;grid-row:2;margin:0!important;
  font-size:clamp(23px,2vw,30px)!important;
  line-height:1.35!important;letter-spacing:0!important;
  max-width:100%!important;
}
body.mk-shell .mk-catalog-page .mk-catalog-hero :is(.mk-catalog-intro,.mk-catalog-intro p) {
  grid-column:1;grid-row:3;margin:0!important;
  font-size:12px!important;line-height:1.6!important;
  color:#6b7d92!important;
}
body.mk-shell .mk-catalog-page .mk-catalog-hero .mk-catalog-total {
  grid-column:2;grid-row:2 / 4;align-self:center!important;
  margin:0!important;white-space:nowrap!important;
  background:#f3f7fe!important;border:1px solid #e2eafb!important;
  color:#38567d!important;padding:7px 11px!important;
  border-radius:999px!important;font-size:11px!important;
}
body.mk-shell .mk-catalog-page .mk-catalog-hero-art {display:none!important;}

/* Keep the modal shell identical before and after WooCommerce responds. */
body.mk-shell .mk-quick-dialog.mk16-quick-dialog[open] {
  height:min(760px,calc(100dvh - 40px))!important;
  min-height:0!important;
  max-height:calc(100dvh - 40px)!important;
  overflow:hidden!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog [data-mk-quick-content] {
  height:100%!important;max-height:100%!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-layout {
  min-height:100%!important;align-items:start!important;
  box-sizing:border-box!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-gallery .mk-gallery-stage {
  height:clamp(270px,30vw,385px)!important;
  min-height:0!important;box-sizing:border-box!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-gallery .mk-gallery-thumbs {
  min-height:80px!important;height:80px!important;
  margin:0!important;padding:7px!important;
  box-sizing:border-box!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-info .mk165-quick-details {
  height:174px!important;min-height:174px!important;max-height:174px!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  box-sizing:border-box!important;
  scrollbar-width:thin;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-info .mk167-spec-placeholder {
  display:grid!important;grid-template-columns:1fr 1fr!important;
  grid-template-rows:repeat(2,1fr)!important;
  gap:9px!important;align-content:center!important;
  padding:15px!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk167-spec-skeleton {
  display:block;width:100%;height:48px;
  border-radius:8px;background:linear-gradient(90deg,#f0f4fa,#e7edf5,#f0f4fa);
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk167-pending-buybox {
  border:1px solid #e4ebf5;border-radius:13px;
  min-height:136px;margin:8px 0;padding:15px;box-sizing:border-box;
  display:grid;gap:11px;align-content:start;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk167-pending-buybox .mk167-spec-skeleton {
  height:42px;
}

/* Two optional native WooCommerce shelves: clean headings, separate visual identity,
   existing MarketKit card component and working native carousel arrows. */
body.mk-shell .mk167-home-highlights{display:grid;gap:22px;margin-block:26px 35px;}
body.mk-shell .mk167-home-shelf{
  position:relative;min-width:0;padding:20px clamp(16px,2vw,28px) 28px;
  border:1px solid #e7edf4;border-radius:22px;background:#fff;
  box-shadow:0 7px 23px rgba(24,49,83,.035);
}
body.mk-shell .mk167-shelf-offers{background:linear-gradient(180deg,#fffaf3 0,#fff 35%)}
body.mk-shell .mk167-shelf-rated{background:linear-gradient(180deg,#f2f8ff 0,#fff 35%)}
body.mk-shell .mk167-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;}
body.mk-shell .mk167-shelf-title{border-inline-start:5px solid #f6a126;padding-inline-start:14px;min-width:0;}
body.mk-shell .mk167-shelf-title h2{font-size:clamp(20px,2.1vw,28px);line-height:1.35;margin:0;color:#192e4a;font-weight:850;}
body.mk-shell .mk167-shelf-title p{margin:5px 0 0;font-size:12px;line-height:1.55;color:#71849a;}
body.mk-shell .mk167-shelf-all{font-size:12px;font-weight:750;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;color:#1a509a;text-decoration:none;}
body.mk-shell .mk167-shelf-all .mk-icon{width:17px;height:17px;}
body.mk-shell .mk167-shelf-track{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x mandatory;}
body.mk-shell .mk167-shelf-track::-webkit-scrollbar{display:none}
body.mk-shell .mk167-shelf-track>.mk-product-card{scroll-snap-align:start;}
body.mk-shell .mk167-home-shelf .mk-carousel-arrows{margin-top:12px;}

@media(max-width:700px){
  body.mk-shell .mk-catalog-page > .mk-catalog-hero{padding:13px 14px!important;margin:7px 12px 12px!important;border-radius:14px!important;}
  body.mk-shell .mk-catalog-page .mk-catalog-hero-copy{grid-template-columns:minmax(0,1fr)!important;row-gap:4px!important;}
  body.mk-shell .mk-catalog-page .mk-catalog-hero .mk-catalog-total{grid-column:1!important;grid-row:4!important;justify-self:start!important;margin-top:6px!important;}
  body.mk-shell .mk-catalog-page .mk-catalog-hero h1{font-size:23px!important;}
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog[open]{height:calc(100dvh - 30px)!important;max-height:calc(100dvh - 30px)!important;}
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-layout{grid-template-columns:1fr!important;}
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-gallery .mk-gallery-stage{height:230px!important;}
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-gallery .mk-gallery-thumbs{height:64px!important;min-height:64px!important;}
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-info .mk165-quick-details{height:160px!important;min-height:160px!important;max-height:160px!important;}
  body.mk-shell .mk167-home-highlights{gap:15px;}
  body.mk-shell .mk167-home-shelf{padding:15px 13px 18px;border-radius:16px;}
  body.mk-shell .mk167-shelf-heading{align-items:flex-start;}
  body.mk-shell .mk167-shelf-title h2{font-size:19px;}
  body.mk-shell .mk167-shelf-all{font-size:10px;}
}
