/* Estetik Klima shared page widths — NewStore, v1.2.47.
   Match the homepage .ek-container; keep this on the outer page wrapper only. */
@media (min-width: 768px) {
  body.ek-site-chrome-enabled > .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Keep the About service-area section on the same white background as its neighbours. */
body.ek-site-chrome-enabled #ek-about .ek-area {
  background: transparent;
}

@media (min-width: 1200px) {
  /* 256px including 8px side padding gives the filter a 240px visible box. */
  body[class*="product-category"].ek-site-chrome-enabled > .container > .row > #column-left,
  body[class*="product-category"].ek-site-chrome-enabled > .container > .row > #column-right,
  body[class*="product-manufacturer-info"].ek-site-chrome-enabled > .container > .row > #column-left,
  body[class*="product-manufacturer-info"].ek-site-chrome-enabled > .container > .row > #column-right,
  body.product-special.ek-site-chrome-enabled > .container > .row > #column-left,
  body.product-special.ek-site-chrome-enabled > .container > .row > #column-right,
  body.product-search.ek-site-chrome-enabled > .container > .row > #column-left,
  body.product-search.ek-site-chrome-enabled > .container > .row > #column-right {
    width: 256px;
    padding-right: 8px;
    padding-left: 8px;
  }

  body[class*="product-category"].ek-site-chrome-enabled > .container > .row > #content.col-md-9,
  body[class*="product-manufacturer-info"].ek-site-chrome-enabled > .container > .row > #content.col-md-9,
  body.product-special.ek-site-chrome-enabled > .container > .row > #content.col-md-9,
  body.product-search.ek-site-chrome-enabled > .container > .row > #content.col-md-9 {
    width: calc(100% - 256px);
    padding-right: 8px;
    padding-left: 8px;
  }

  body[class*="product-category"].ek-site-chrome-enabled > .container > .row > #content.col-md-6,
  body[class*="product-manufacturer-info"].ek-site-chrome-enabled > .container > .row > #content.col-md-6,
  body.product-special.ek-site-chrome-enabled > .container > .row > #content.col-md-6,
  body.product-search.ek-site-chrome-enabled > .container > .row > #content.col-md-6 {
    width: calc(100% - 512px);
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* v1.2.15: clearer category controls and a labelled Mega Filter drawer on phones. */
.ek-mobile-filter-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  body.ek-mobile-filter-open {
    overflow: hidden;
  }

  body[class*="product-category"].ek-site-chrome-enabled .category-page-header,
  body[class*="product-manufacturer"].ek-site-chrome-enabled .category-page-header {
    margin-bottom: 12px;
  }

  body[class*="product-category"].ek-site-chrome-enabled .category-header-image,
  body[class*="product-manufacturer"].ek-site-chrome-enabled .category-header-image {
    display: none !important;
  }

  body[class*="product-category"].ek-site-chrome-enabled .category-page-title,
  body[class*="product-manufacturer"].ek-site-chrome-enabled .category-page-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 29px;
    line-height: 1.12;
  }

  body[class*="product-category"].ek-site-chrome-enabled .category-intro-top,
  body[class*="product-manufacturer"].ek-site-chrome-enabled .category-intro-top {
    display: -webkit-box;
    max-height: 4.35em;
    margin-bottom: 10px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ek-site-chrome-enabled .ek-catalog-controls {
    display: block;
    margin-right: -7px;
    margin-bottom: 10px;
    margin-left: -7px;
  }

  .ek-site-chrome-enabled .ek-catalog-sort-control {
    width: 100% !important;
    margin-left: 0 !important;
    padding-right: 7px;
    padding-left: 7px;
    float: none;
  }

  .ek-site-chrome-enabled .ek-catalog-sort-control .input-group {
    width: 100%;
    margin-bottom: 0;
  }

  .ek-site-chrome-enabled .ek-catalog-sort-control #input-sort {
    width: 100%;
    min-height: 42px;
    font-size: 13px;
  }

  .ek-site-chrome-enabled .ek-catalog-sort-control .input-group-addon {
    min-width: 42px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .ek-site-chrome-enabled .ek-catalog-limit-control {
    display: none !important;
  }

  .ek-mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(4, 30, 47, .38);
  }

  .mfilter-free-container {
    top: 70px;
    width: 280px;
    max-height: calc(100vh - 70px);
    margin-left: -280px;
    padding-left: 8px;
    box-sizing: border-box !important;
    border-color: #cbd9e0;
    box-shadow: 5px 8px 24px rgba(4, 38, 61, .18);
  }

  .mfilter-free-container .mfilter-iscroll {
    max-height: calc(100vh - 76px);
  }

  .mfilter-free-container .mfilter-free-button.ek-filter-toggle {
    display: inline-flex;
    width: 102px;
    height: 44px;
    min-height: 44px;
    margin: 8px 0 0 270px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: #067c8c;
    background-image: none;
    box-shadow: 3px 4px 12px rgba(4, 38, 61, .18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    gap: 7px;
  }

  .mfilter-free-container .mfilter-free-button.ek-filter-toggle:hover,
  .mfilter-free-container .mfilter-free-button.ek-filter-toggle:focus {
    background: #056f7e;
    outline: 2px solid rgba(7, 143, 161, .28);
    outline-offset: 2px;
  }

  .mfilter-free-container .mfilter-free-button.ek-filter-toggle .fa {
    font-size: 15px;
  }
}
/* A normal empty cart uses its own view; genuine missing pages retain their 404 view. */
.ek-empty-cart {
  max-width: 760px;
  margin: 40px auto 64px;
  padding: 24px 16px;
  text-align: center;
}
.ek-empty-cart h1 { margin: 0 0 20px; }
.ek-empty-cart p { margin: 0 0 24px; font-size: 16px; line-height: 1.5; }
.ek-empty-cart .btn { padding: 11px 24px; }


/* rc5: filters occupy their own row, leaving breadcrumbs and headings readable. */
.ek-filter-inline-toolbar { display:none; }
@media (max-width:991px) {
 .ek-filter-inline-toolbar { display:block; margin:12px 0; clear:both; }
 .ek-filter-inline-button { display:inline-flex; gap:8px; align-items:center; min-height:44px; padding:10px 18px; border:0; border-radius:6px; color:#fff; background:#008895; font-weight:700; }
 .ek-filter-inline-button:focus-visible { outline:3px solid #07364c; outline-offset:3px; }
 .mfilter-free-container.ek-has-inline-filter:not(.mfilter-free-container-opened) .mfilter-free-button.ek-filter-toggle { visibility:hidden; pointer-events:none; }
}
