/* DIROX shell/home 1.0.0: fit existing navigation and category cards. */
header .logo-bar.row.container {
  box-sizing: border-box;
  max-width: 100%;
}
@media (min-width: 768px) {
  .shop_index #box_slider_157 .slides > li[data-rwdbg] > img {
    display: none;
  }
  .menu.row {
    top: var(--dirox-shell-header-height, 106px);
  }
  .menu.row .dx-nav-bar {
    box-sizing: border-box;
    flex-wrap: wrap;
    max-width: 100%;
    height: auto;
    overflow: visible;
  }
  .menu.row .dx-nav-top {
    min-width: 0;
    max-width: 100%;
  }
  .menu.row:not(.dx-menu-ready) > .innermenu {
    height: auto;
  }
  .menu.row:not(.dx-menu-ready) > .innermenu .menu-list {
    flex-wrap: wrap;
    height: auto !important;
    overflow: visible;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .menu.row .dx-nav-bar,
  .menu.row:not(.dx-menu-ready) > .innermenu,
  .menu.row:not(.dx-menu-ready) > .innermenu .menu-list {
    min-height: 48px;
  }
  .menu.row .dx-nav-top-link,
  .menu.row:not(.dx-menu-ready) > .innermenu .menu-list > li > h3 > a {
    min-height: 45px;
  }
}
@media (max-width: 767.98px) {
  /* The only banner has a native portrait RWD image. Let that image set the
     height, instead of clipping it to the desktop banner's 3:1 viewport. */
  .shop_index #box_slider_157 .pageslider .slides {
    overflow: hidden;
  }
  .shop_index #box_slider_157 .pageslider .slides > li {
    min-height: 0;
    height: 100% !important;
  }
  .shop_index #box_slider_157 .pageslider .slides:has(> li:only-child[data-rwdbg] > img) {
    height: auto !important;
  }
  .shop_index #box_slider_157 .pageslider .slides > li:only-child[data-rwdbg]:has(> img) {
    float: none;
    height: auto !important;
    background-image: none !important;
  }
  .shop_index #box_slider_157 .pageslider .slides > li:only-child[data-rwdbg] > img {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto 941 / 1672;
    max-height: none;
    margin: 0;
  }
  body header .logo-bar[data-dirox-header-tools] > .menuburger::before {
    content: "" !important;
    display: block !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172c3d' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  body header[data-dirox-mobile-compact="1"] .logo-bar[data-dirox-header-tools] {
    grid-template-columns: 36px minmax(0, 1fr) 50px 50px !important;
    grid-template-rows: auto !important;
    column-gap: 4px !important;
  }
  body header[data-dirox-mobile-compact="1"] .logo-bar[data-dirox-header-tools] > .menuburger {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 44px !important;
  }
  body header[data-dirox-mobile-compact="1"] .logo-bar[data-dirox-header-tools] > .menuburger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body header[data-dirox-mobile-compact="1"] .logo-bar[data-dirox-header-tools] > .link-logo {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  body header[data-dirox-mobile-compact="1"] .logo-bar[data-dirox-header-tools] > dirox-quote-header#dirox-quote-header-v1 {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 50px !important;
    max-width: 50px !important;
  }
  body header[data-dirox-mobile-compact="1"] .logo-bar[data-dirox-header-tools] > .basket {
    grid-column: 4 !important;
    grid-row: 1 !important;
    width: 50px !important;
    min-width: 50px !important;
  }
}
.shop_index #section1 > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
}
.shop_index #section1 > ul > li {
  min-width: 0;
  margin: 0;
}
.shop_index #section1 > ul > li > a {
  box-sizing: border-box;
  display: block;
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}
.shop_index #section1 > ul > li > a:hover {
  transform: none;
}
.shop_index #section1 > ul > li > a > em {
  box-sizing: border-box;
  left: 0;
  right: 0 !important;
  bottom: 0;
  width: 100% !important;
  height: auto;
  min-height: 122px;
  padding: 14px 48px 44px 18px;
  border-radius: 0 0 8px 8px;
  border-bottom-width: 8px;
  font-size: 18px !important;
  line-height: 1.25 !important;
}
.shop_index #section1 > ul > li > a > em > strong {
  font-size: 23px !important;
  line-height: 1.25 !important;
  overflow-wrap: normal;
}
.shop_index #section1 > ul > li > a::before {
  left: 18px;
  right: 48px;
  bottom: 18px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 20px;
}
.shop_index #section1 > ul > li > a::after {
  display: block !important;
  right: 15px;
  bottom: 18px;
  z-index: 11;
}
@media (max-width: 1199.98px) {
  .shop_index #section1 > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479.98px) {
  .shop_index #section1 > ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .shop_index #section1 > ul > li > a {
    min-height: 300px;
  }
}

/* Native checkout header deliberately has no quote control or tools marker.
   Keep that behaviour; fit only its existing logo, search and cart. */
body.shop_basket .main.row {
  box-sizing: border-box;
}
body.shop_basket .main.row > .innermain.container {
  min-width: 0;
  max-width: min(100%, 1280px);
}
@media (max-width: 1100px) {
  body.shop_basket header .logo-bar {
    flex-wrap: wrap;
    height: auto;
  }
  body.shop_basket header .logo-bar > .link-logo {
    flex: 0 0 auto;
    margin-right: 20px;
  }
  body.shop_basket header .logo-bar > .search__container {
    box-sizing: border-box;
    order: 6;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    margin: 10px 0 0;
  }
  body.shop_basket header .search__input-area-item_grow {
    min-width: 0;
  }
}
@media (max-width: 767.98px) {
  body.shop_basket .main.row {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.shop_basket header .logo-bar > .link-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 44px;
  }
  body.shop_basket header #header-contact a {
    font-size: 0;
  }
  body.shop_basket header .logo-bar > .menuburger {
    flex: 0 0 42px;
    width: 42px;
  }
  body.shop_basket header .logo-bar > .search__container {
    order: 7;
    flex: 1 1 0;
    width: auto;
    max-width: none;
    margin: 0;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  body.shop_basket header .logo-bar > #header-contact {
    margin: 0 0 0 auto;
    min-width: 0;
  }
  body.shop_basket header #header-contact ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
  }
  body.shop_basket header #header-contact ul li {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }
}


/* Native catalogue cards respond to their actual column, including sidebars.
   Keep the native products, order, pagination and view links unchanged. */
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox {
  container-type: inline-size;
  container-name: dirox-catalogue;
}
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products {
  width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products > .product {
  width: auto;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > :is(.products.viewfull, .products.viewdesc) {
  grid-template-columns: minmax(0, 1fr);
}
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot > .product .buttons {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  text-align: center !important;
}
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot > .product .buttons form.basket {
  float: none !important;
  width: 100% !important;
  max-width: 260px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
:is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot > .product .buttons :is(button.addtobasket, .dirox-list-quote-btn) {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 260px !important;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
}
@container dirox-catalogue (max-width: 1059.98px) {
  :is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@container dirox-catalogue (max-width: 789.98px) {
  :is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container dirox-catalogue (max-width: 519.98px) {
  :is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Conservative fallback for engines without container queries. */
@supports not (container-type: inline-size) {
  @media (max-width: 1439.98px) {
    :is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 1279.98px) {
    :is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 767.98px) {
    :is(.shop_product_list, .shop_collection) #box_mainproducts > .innerbox > .products.viewphot {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}
/* The category quote form is a grid item: its native min-content width must
   not widen the single mobile track beyond the catalogue container. */
:is(.shop_product_list, .shop_collection) .dxpg .dxpg-quote > :is(.dxpg-quote-intro, form[data-dxpg-form]) {
  min-width: 0;
}
@media (max-width: 700px) {
  :is(.shop_product_list, .shop_collection) .dxpg .dxpg-quote {
    grid-template-columns: minmax(0, 1fr);
  }
}

