/* EK catalogue 1.2.42: one responsive view; existing filtering and URLs stay native. */
body.ek-catalog-unified #list-view,
body.ek-catalog-unified #grid-view,
body.ek-catalog-unified #grid-view4,
body.ek-catalog-unified #price-view,
body.ek-catalog-unified .ek-catalog-view-control {
  display: none !important;
}
body.ek-catalog-unified #content .ek-catalog-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 8px 0;
  border-top: 1px solid #e0e9ee;
  border-bottom: 1px solid #e0e9ee;
}
body.ek-catalog-unified #content .ek-catalog-controls:before,
body.ek-catalog-unified #content .ek-catalog-controls:after { display: none; }
body.ek-catalog-unified #content .ek-catalog-sort-control,
body.ek-catalog-unified #content .ek-catalog-limit-control {
  display: block !important;
  float: none;
  width: auto !important;
  margin: 0 !important;
  padding: 0;
}
body.ek-catalog-unified #content .ek-catalog-sort-control,
body.ek-catalog-unified #content .ek-catalog-limit-control { flex: 0 0 auto; }
body.ek-catalog-unified #content .ek-catalog-controls .input-group {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: auto;
  margin: 0;
}
body.ek-catalog-unified #content .ek-catalog-controls label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #cbdce5;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #f3f7fa;
  color: #28495e;
  font: 400 12px/1.4 Arial, Helvetica, sans-serif;
  text-align: left;
  white-space: nowrap;
}
body.ek-catalog-unified #content .ek-catalog-controls select {
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #cbdce5;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: #123550;
  box-shadow: none;
  font: 400 13px/1.4 Arial, Helvetica, sans-serif;
}
body.ek-catalog-unified #content #input-sort { width: 146px; }
body.ek-catalog-unified #content #input-limit { width: 64px; }
body.ek-catalog-unified #content select:focus-visible,
body.ek-catalog-unified #content .subcategory a:focus-visible {
  outline: 2px solid #008b9b;
  outline-offset: 2px;
}
body.ek-catalog-unified #content .row-price { margin-right: -8px; margin-left: -8px; }
body.ek-catalog-unified #content .row-price > .clearfix { display: none; }
/* Modest reduction of empty picture space, with full images and names retained. */
@media (min-width: 768px) {
  body.ek-catalog-unified #content .row-price .product-grid .image { height: 190px !important; padding-top: 20px; }
  body.ek-catalog-unified #content .row-price .product-grid .image > a,
  body.ek-catalog-unified #content .row-price .product-grid .image-carousel-category,
  body.ek-catalog-unified #content .row-price .product-grid .image img { height: 170px !important; }
}
/* Short category links use the same icon family as the navigation. */
body.ek-catalog-unified #content .text_refine {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #28495e;
  font: 700 15px/1.4 Arial, Helvetica, sans-serif;
}
body.ek-catalog-unified #content .ek-category-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
body.ek-catalog-unified #content .ek-category-shortcuts:before,
body.ek-catalog-unified #content .ek-category-shortcuts:after { display: none; }
body.ek-catalog-unified #content .ek-category-shortcut-column { width: auto; min-width: 0; padding: 0; float: none; }
body.ek-catalog-unified #content .subcategory {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #d7e5ed;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}
body.ek-catalog-unified #content .subcategory a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  height: 100%;
  padding: 10px 12px;
  color: #123550;
  text-align: left;
  text-decoration: none;
}
body.ek-catalog-unified #content .subcategory a:hover { background: #eff8fa; }
body.ek-catalog-unified #content .subcategory a > div:first-child { flex: 0 0 36px; }
body.ek-catalog-unified #content .subcategory img { display: block; width: 36px; height: 32px; object-fit: contain; margin: 0; }
body.ek-catalog-unified #content .subcategory .name-wrapper,
body.ek-catalog-unified #content .subcategory .display-table,
body.ek-catalog-unified #content .subcategory .display-table-cell { display: block; width: auto; min-height: 0; height: auto; margin: 0; padding: 0; }
body.ek-catalog-unified #content .subcategory .name-wrapper { min-width: 0; }
body.ek-catalog-unified #content .subcategory h5 { margin: 0; color: inherit; font: 400 14px/1.4 Arial, Helvetica, sans-serif; }
/* The native MegaFilter inputs, counts, values and event handlers remain intact. */
body.ek-catalog-unified .mfilter-box { font-family: Arial, Helvetica, sans-serif; }
body.ek-catalog-unified .mfilter-price-inputs { white-space: nowrap; }
body.ek-catalog-unified .mfilter-price-inputs input { width: calc((100% - 52px) / 2); min-width: 0; padding-right: 6px; padding-left: 6px; }
body.ek-catalog-unified .mfilter-heading { background: #edf5f9; border-color: #d7e5ed; }
body.ek-catalog-unified .mfilter-heading-content { padding: 10px 9px; }
body.ek-catalog-unified .mfilter-heading-text { color: #123550; font: 700 14px/1.4 Arial, Helvetica, sans-serif; }
body.ek-catalog-unified .mfilter-tb-as-td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
body.ek-catalog-unified .mfilter-options label { color: #28495e; font: 400 14px/1.4 Arial, Helvetica, sans-serif; cursor: pointer; }
body.ek-catalog-unified .mfilter-col-input { width: 24px; padding-right: 7px; }
body.ek-catalog-unified .mfilter-col-input input { width: 15px; height: 15px; margin: 0; accent-color: #008594; }
body.ek-catalog-unified .mfilter-counter { color: #637785; font: 400 12px/1.4 Arial, Helvetica, sans-serif; }
body.ek-catalog-unified .mfilter-options input:focus-visible { outline: 2px solid #008b9b; outline-offset: 2px; }
@media (max-width: 1199px) {
  body.ek-catalog-unified #content .ek-category-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.ek-catalog-unified #content .ek-category-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  body.ek-catalog-unified #content .subcategory a { gap: 7px; padding: 8px; min-height: 66px; }
  body.ek-catalog-unified #content .subcategory a > div:first-child { flex-basis: 28px; }
  body.ek-catalog-unified #content .subcategory img { width: 28px; height: 28px; }
  body.ek-catalog-unified #content .subcategory h5 { font-size: 13px; overflow-wrap: anywhere; }
  body.ek-catalog-unified #content .ek-catalog-controls { gap: 8px; }
  body.ek-catalog-unified #content .ek-catalog-controls label { min-width: 0; padding: 0 6px; }
  body.ek-catalog-unified #content .ek-catalog-controls select { height: 44px; min-height: 44px; }
  body.ek-catalog-unified #content #input-sort { width: 125px; }
  body.ek-catalog-unified #content #input-limit { width: 55px; }
  body.ek-catalog-unified #content .row-price { margin-left: 0; margin-right: 0; }
}

@media (max-width: 360px) {
  body.ek-catalog-unified #content .ek-catalog-controls { gap: 6px; }
  body.ek-catalog-unified #content .ek-catalog-controls label { font-size: 11px; padding: 0 4px; }
  body.ek-catalog-unified #content .ek-catalog-controls select { padding-left: 5px; padding-right: 5px; }
  body.ek-catalog-unified #content #input-sort { width: 112px; }
  body.ek-catalog-unified #content #input-limit { width: 55px; }
}
