/* i-Light.lv category layout, compact filters and responsive grid — SAFE v1.0.6 */

/* The head script adds this class before the body is parsed. Keep the raw SO
   Filter invisible until its items are reordered, then reveal it atomically. */
html.ilight-category-filter-booting body.product-category .module.so_filter_wrap:not(.ilight-filter-module-ready) {
  visibility: hidden !important;
}

body.product-category .module.so_filter_wrap {
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 39, 53, 0.06);
  overflow: hidden;
}

body.product-category .module.so_filter_wrap.ilight-filter-module-ready {
  margin-right: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.product-category .module.so_filter_wrap .modtitle {
  margin: 0 !important;
  padding: 12px 14px !important;
  min-height: 42px;
  border-bottom: 1px solid #e2e8ef;
  font-size: 15px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

body.product-category .module.so_filter_wrap .modcontent > ul {
  margin: 0 !important;
  padding: 4px 10px 10px !important;
}

body.product-category .module.so_filter_wrap .modcontent > ul > li.so-filter-options {
  margin: 0 !important;
  border-bottom: 1px solid #edf1f5;
  list-style: none;
}

body.product-category .module.so_filter_wrap .so-filter-heading {
  display: flex !important;
  min-height: 35px !important;
  padding: 8px 6px !important;
  align-items: center;
  cursor: pointer;
}

body.product-category .module.so_filter_wrap .so-filter-heading-text {
  min-width: 0;
  font-size: 12.5px !important;
  line-height: 18px !important;
  font-weight: 500;
  text-transform: none !important;
}

body.product-category .module.so_filter_wrap .so-filter-heading > i {
  margin-left: auto;
  font-size: 11px;
  color: #718096;
}

body.product-category .module.so_filter_wrap .so-filter-content-opts {
  padding: 6px 6px 10px !important;
}

body.product-category .module.so_filter_wrap .so-filter-content-opts-container,
body.product-category .module.so_filter_wrap .so-filter-iscroll {
  max-height: 238px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #b9c3cf transparent;
}

body.product-category .module.so_filter_wrap .so-filter-option {
  margin: 0 !important;
  padding: 0 !important;
}

body.product-category .module.so_filter_wrap .so-option-container {
  min-height: 26px;
  font-size: 12px !important;
  line-height: 17px !important;
}

/* SO Filter normally mixes floats, absolute positioning and fixed label
   widths. At a compact sidebar width that makes long values start below the
   checkbox and pushes the result count onto a separate line. JavaScript marks
   genuine checkbox/radio rows with this class so search and price controls are
   not affected. */
body.product-category .module.so_filter_wrap .ilight-filter-option-row {
  display: grid !important;
  grid-template-columns: 15px minmax(0, 1fr) max-content !important;
  column-gap: 7px !important;
  align-items: start !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 5px 0 !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-option-row > .option-input {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  grid-column: 1 !important;
  align-self: start !important;
  box-sizing: border-box !important;
  width: 15px !important;
  min-width: 15px !important;
  height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  line-height: 18px !important;
  text-align: center !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-option-row > .option-input > .fa {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 18px !important;
  vertical-align: top !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-option-row > label {
  position: static !important;
  float: none !important;
  grid-column: 2 !important;
  align-self: start !important;
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  text-align: left !important;
  text-indent: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-option-row > .option-count {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  float: none !important;
  grid-column: 3 !important;
  align-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 22px !important;
  max-width: 42px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 18px !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-option-row > .option-count > span {
  box-sizing: border-box !important;
  min-width: 22px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  line-height: 18px !important;
  text-align: center !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-search > .so-filter-heading {
  display: none !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-search > .so-filter-content-opts {
  display: block !important;
  padding: 8px 4px !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-search input.form-control {
  height: 34px !important;
  font-size: 12.5px !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-search .btn {
  height: 34px !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-secondary {
  display: none !important;
}

body.product-category .module.so_filter_wrap.ilight-show-more .ilight-filter-secondary {
  display: list-item !important;
}

body.product-category .module.so_filter_wrap .ilight-filter-excluded {
  display: none !important;
}

/* Responsive default product count. This class is added in <head> before the
   body is painted. It is removed as soon as the visitor makes a manual choice. */
html.ilight-category-grid-auto body.product-category .products-list.row.nopadding-xs {
  display: flex !important;
  flex-wrap: wrap !important;
}

@media (min-width: 1440px) {
  html.ilight-category-grid-auto body.product-category .products-category .product-layout[class*="product-grid"] {
    float: none !important;
    clear: none !important;
    width: 20% !important;
    max-width: 20% !important;
    flex: 0 0 20% !important;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  html.ilight-category-grid-auto body.product-category .products-category .product-layout[class*="product-grid"] {
    float: none !important;
    clear: none !important;
    width: 25% !important;
    max-width: 25% !important;
    flex: 0 0 25% !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  html.ilight-category-grid-auto body.product-category .products-category .product-layout[class*="product-grid"] {
    float: none !important;
    clear: none !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
  }
}

body.product-category .ilight-more-filters-row {
  margin: 8px 0 2px !important;
  border: 0 !important;
  list-style: none;
}

body.product-category .ilight-more-filters {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dbe3eb;
  border-radius: 6px;
  background: #f6f8fa;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.product-category .ilight-more-filters:hover,
body.product-category .ilight-more-filters:focus {
  border-color: #ff7a1a;
  background: #fff7f0;
  outline: none;
}

body.product-category .ilight-more-filters-icon {
  float: right;
  font-size: 14px;
  line-height: 18px;
}

body.product-category .ilight-subcategory-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
}

body.product-category .ilight-subcategory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: #fff;
  color: #26384a;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(27, 39, 53, 0.04);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.product-category .ilight-subcategory-link:hover,
body.product-category .ilight-subcategory-link:focus {
  border-color: #ff7a1a;
  color: #d95f00;
  box-shadow: 0 3px 12px rgba(255, 122, 26, 0.12);
  outline: none;
}

body.product-category .ilight-subcategory-arrow {
  margin-left: 10px;
  color: #ff7a1a;
  font-size: 18px;
  font-weight: 400;
}

/* The ceiling landing page uses SO eMarket's native category cards. Keep all
   six main sections visible instead of hiding the sixth behind the theme's
   automatic "More" control. */
body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav > .refine-search__subitem {
  display: flex !important;
  float: none !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav > .refine-loadmore {
  display: none !important;
}

body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav .thumbnail {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 180px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto 8px !important;
  padding: 8px !important;
  border: 1px solid #dfe5eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(27, 39, 53, 0.04) !important;
}

body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav .thumbnail img {
  display: block !important;
  width: 100% !important;
  max-width: 164px !important;
  height: 100% !important;
  max-height: 164px !important;
  object-fit: contain !important;
}

body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav > .refine-search__subitem > a.text-center {
  display: block !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 0 4px !important;
  color: #26384a !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  text-align: center !important;
  text-decoration: none !important;
}

body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav > .refine-search__subitem:hover .thumbnail,
body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav > .refine-search__subitem:focus-within .thumbnail {
  border-color: #ff7a1a !important;
  box-shadow: 0 3px 12px rgba(255, 122, 26, 0.12) !important;
}

body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav > .refine-search__subitem:hover > a.text-center,
body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav > .refine-search__subitem:focus-within > a.text-center {
  color: #d95f00 !important;
}

@media (min-width: 1200px) {
  body.product-category #wrapper > .breadcrumbs > .container,
  body.product-category #wrapper > .container {
    width: auto !important;
    max-width: none !important;
    margin-right: 64px !important;
    margin-left: 20px !important;
  }

  body.product-category .container.product-listing.content-main > .row {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    margin: 0 !important;
    align-items: start;
  }

  body.product-category.ilight-ceiling-root-category .container.product-listing.content-main > .row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.product-category .container.product-listing.content-main > .row::before,
  body.product-category .container.product-listing.content-main > .row::after {
    display: none !important;
    content: none !important;
  }

  body.product-category .container.product-listing.content-main > .row > aside.left_column,
  body.product-category .container.product-listing.content-main > .row > #content {
    float: none !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.product-category .container.product-listing.content-main > .row > aside.left_column {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.product-category.ilight-ceiling-root-category .container.product-listing.content-main > .row > #content {
    grid-column: 1 !important;
  }

  body.product-category .container.product-listing.content-main > .row > aside.left_column:not(.is_stuck) {
    width: auto !important;
  }

  body.product-category .container.product-listing.content-main > .row > aside.left_column.is_stuck {
    width: 240px !important;
  }

  body.product-category .container.product-listing.content-main > .row > #content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative !important;
    width: auto !important;
  }

  body.product-category .container.product-listing.content-main > .row > .div_sticky {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  body.product-category .module.so_filter_wrap {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  body.product-category .module.so_filter_wrap .modtitle {
    flex: 0 0 auto !important;
  }

  body.product-category .module.so_filter_wrap .modcontent {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 66px) !important;
    max-height: calc(100dvh - 66px) !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #9aa8b7 #f5f7f9;
  }

  body.product-category .module.so_filter_wrap .modcontent::-webkit-scrollbar {
    width: 9px;
  }

  body.product-category .module.so_filter_wrap .modcontent::-webkit-scrollbar-track {
    background: #f5f7f9;
    border-radius: 8px;
  }

  body.product-category .module.so_filter_wrap .modcontent::-webkit-scrollbar-thumb {
    min-height: 36px;
    border: 2px solid #f5f7f9;
    border-radius: 8px;
    background: #9aa8b7;
  }

  body.product-category .module.so_filter_wrap .modcontent::-webkit-scrollbar-thumb:hover {
    background: #738295;
  }
}

@media (min-width: 1440px) {
  body.product-category .container.product-listing.content-main > .row {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  body.product-category .container.product-listing.content-main > .row > aside.left_column.is_stuck {
    width: 260px !important;
  }
}

@media (min-width: 1600px) {
  body.product-category #wrapper > .breadcrumbs > .container,
  body.product-category #wrapper > .container {
    margin-right: 80px !important;
    margin-left: 32px !important;
  }
}

@media (max-width: 1199px) {
  body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.product-category .module.so_filter_wrap {
    border-radius: 8px;
  }
}

@media (max-width: 767px) {
  body.product-category.ilight-ceiling-root-category .refine-search__content.ilight-native-subcategory-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.product-category .ilight-subcategory-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  body.product-category .ilight-subcategory-link {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
  }

  body.product-category .module.so_filter_wrap .modtitle {
    padding: 10px 12px !important;
  }

  body.product-category .module.so_filter_wrap .modcontent > ul {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
}
