/* MarketKit 1.6.6 — scoped catalog and quick-view repairs.
 * Does not alter the homepage, header, hero or Elementor widget layouts. */

/* Five catalog cards per row on desktop; home widgets and product rails are unchanged. */
body.mk-shell .mk-catalog-page .mk-catalog-results .mk-catalog-grid.mk-products-grid {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch;
}
body.mk-shell .mk-catalog-grid .mk-product-card {
  min-width:0!important;
  border:1px solid #e6ebf2!important;
  border-radius:18px!important;
  overflow:hidden;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(19,36,62,.055)!important;
}
body.mk-shell .mk-catalog-grid .mk-product-card .mk-product-image {
  background:#fff!important;
  min-width:0;
}
body.mk-shell .mk-catalog-grid .mk-product-card .mk-product-copy {
  padding:13px 14px 14px!important;
  min-width:0!important;
  gap:8px!important;
}
body.mk-shell .mk-catalog-grid .mk-product-card .mk-product-copy h3 {
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.52!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  min-height:43px!important;
  overflow-wrap:anywhere;
}
/* Stock lives next to price in the markup, not as a giant box pinned to card bottom. */
body.mk-shell .mk-product-card .mk-card-price-wrap {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:8px!important;
  justify-content:flex-start!important;
  margin-block:6px 4px!important;
  padding:0!important;
  min-height:0!important;
}
body.mk-shell .mk-product-card .mk-card-price-wrap>.mk-price {
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:4px 9px!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  font-size:clamp(16px,1.5vw,21px)!important;
  line-height:1.4!important;
  color:#172c46!important;
}
body.mk-shell .mk-product-card .mk-card-price-wrap>.mk-price ins {
  background:none!important;
  text-decoration:none!important;
  font-weight:850!important;
  color:#172c46!important;
}
body.mk-shell .mk-product-card .mk-card-price-wrap>.mk-price del {
  order:1!important;
  font-size:11px!important;
  font-weight:500!important;
  color:#8b99aa!important;
  opacity:1!important;
}
body.mk-shell .mk-product-card .mk-card-price-wrap>.mk-price .woocommerce-Price-amount{
  white-space:nowrap!important;
  unicode-bidi:isolate!important;
  direction:ltr!important;
}
body.mk-shell .mk-product-card .mk165-card-stock{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  align-self:flex-start!important;
  width:auto!important;
  max-width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:3px 8px!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.5!important;
  white-space:normal;
  color:#167748!important;
  background:#effaf3!important;
  border:1px solid #e0f1e6!important;
  border-radius:7px!important;
  text-align:start;
}
body.mk-shell .mk-product-card .mk165-card-stock.is-unavailable{
  color:#b04436!important;
  background:#fff5f3!important;
  border-color:#f7e2df!important;
}
body.mk-shell .mk-product-card .mk165-card-stock i,
body.mk-shell .mk-quick-dialog .mk165-quick-stock i{
  display:block;
  width:6px;
  height:6px;
  min-width:6px;
  border-radius:50%;
  background:currentColor;
}
body.mk-shell .mk-product-card .mk-card-price-wrap + .mk-card-detail{margin-block-start:auto!important}
body.mk-shell .mk-product-card .mk-sale-badge{
  background:#e84e46!important;
  border-radius:8px!important;
  padding:5px 9px!important;
  color:#fff!important;
  box-shadow:0 2px 8px rgba(226,69,57,.16)!important;
}

/* Keep the current results readable instead of fading the whole archive to white
 * every time a customer checks a filter. */
body.mk-shell .mk-catalog-loading .mk-catalog-results,
body.mk-shell .mk-catalog-loading .mk-catalog-grid,
body.mk-shell .mk-catalog-loading .mk-product-card {
  opacity:1!important;
  filter:none!important;
  visibility:visible!important;
}
body.mk-shell .mk-catalog-loading .mk-catalog-toolbar{position:relative}
body.mk-shell .mk-catalog-loading .mk-catalog-toolbar::after{
  width:17px!important;
  height:17px!important;
  border-width:2px!important;
  inset-inline-start:12px!important;
}

/* Completely independent markup for the price and availability in quick view;
 * avoid the conflicting legacy width and margin rules on .mk-price/.mk-quick-stock. */
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-info .mk165-quick-price-row {
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px 18px!important;
  width:100%!important;
  min-width:0!important;
  margin:2px 0 14px!important;
  padding:14px 0!important;
  border-block:1px solid #e9eef5!important;
  background:transparent!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-price-row>.mk165-price {
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:baseline!important;
  gap:6px 11px!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  color:#173150!important;
  font-size:clamp(22px,2vw,28px)!important;
  font-weight:900!important;
  line-height:1.35!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-price :is(ins,.mk162-price-current) {
  display:inline-flex!important;
  padding:0!important;
  margin:0!important;
  order:0!important;
  background:transparent!important;
  border:0!important;
  color:#1d4fc3!important;
  text-decoration:none!important;
  font:inherit!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-price del {
  display:inline-flex!important;
  order:1!important;
  margin:0!important;
  font-size:13px!important;
  font-weight:500!important;
  color:#8795aa!important;
  line-height:1.4!important;
  opacity:1!important;
  text-decoration:line-through!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-price .woocommerce-Price-amount{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
  font-size:inherit!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-price .screen-reader-text{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-price-row>.mk165-quick-stock{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  gap:7px!important;
  width:max-content!important;
  max-width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:6px 10px!important;
  border:1px solid #d9efdf!important;
  border-radius:9px!important;
  background:#f0faf2!important;
  color:#197647!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:800!important;
  white-space:normal!important;
  text-align:start!important;
  box-shadow:none!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-price-row>.mk165-quick-stock.is-unavailable{
  color:#ac3d34!important;
  border-color:#f4e0de!important;
  background:#fff5f3!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details{
  display:block;
  margin:10px 0 15px;
  padding:15px;
  border:1px solid #e8edf5;
  border-radius:14px;
  background:#f9fbfd;
  text-align:start;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details h3{
  margin:0 0 10px!important;
  font-size:14px!important;
  font-weight:850!important;
  color:#1c324d!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details .mk16-quick-specs {
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details .mk16-quick-specs>div{
  display:flex!important;
  justify-content:space-between!important;
  align-items:start!important;
  gap:14px!important;
  padding:6px 0!important;
  margin:0!important;
  border-bottom:1px solid #edf1f6!important;
  color:#465a72!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details .mk16-quick-specs>div:last-child{border-bottom:0!important}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details dt{
  flex:0 0 auto!important;
  font-weight:800!important;
  font-size:12px!important;
  color:#576d85!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details dd{
  margin:0!important;
  min-width:0!important;
  text-align:end!important;
  font-size:12px!important;
  overflow-wrap:anywhere;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-gallery .mk-gallery-thumbs{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:center!important;
  gap:9px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:10px!important;
  scrollbar-width:thin!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-gallery-thumbs .mk-gallery-thumb{
  flex:0 0 64px!important;
  width:64px!important;
  height:64px!important;
  min-width:0!important;
  border-radius:10px!important;
  border:1px solid #e4eaf3!important;
}
body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk-quick-info .mk-buybox{
  margin-top:12px!important;
}
/* Never clip the actual description when a redundant Show more control is absent. */
body.mk-shell .mk-pdp-details .mk-detail-panel .mk159-description-content{
  max-height:none!important;
  overflow:visible!important;
  mask-image:none!important;
}
body.mk-shell .mk-pdp-details .mk161-more-access,
body.mk-shell .mk-pdp-details .mk159-read-more{display:none!important}
@media (min-width:1025px) and (max-width:1370px){
  body.mk-shell .mk-catalog-page .mk-catalog-results .mk-catalog-grid.mk-products-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:10px!important;
  }
}
@media (min-width:701px) and (max-width:1024px){
  body.mk-shell .mk-catalog-page .mk-catalog-results .mk-catalog-grid.mk-products-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:13px!important;
  }
}
@media (max-width:700px){
  body.mk-shell .mk-catalog-page .mk-catalog-results .mk-catalog-grid.mk-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.mk-shell .mk-catalog-grid .mk-product-card .mk-product-copy{padding:10px!important}
  body.mk-shell .mk-catalog-grid .mk-product-card .mk-product-copy h3{font-size:12px!important;min-height:38px!important}
  body.mk-shell .mk-product-card .mk-card-price-wrap>.mk-price{font-size:16px!important}
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-price-row{
    align-items:flex-start!important;
    gap:9px!important;
  }
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-price-row>.mk165-price{font-size:22px!important}
  body.mk-shell .mk-quick-dialog.mk16-quick-dialog .mk165-quick-details{padding:12px!important}
}
