/* Softiyex catalog and product-category experience v1.4.0 */

body.softiyex-catalog-page {
  overflow-x: hidden;
}

/* Give the catalogue room to breathe on large screens. */
body.softiyex-catalog-page #content > .col-full,
body.softiyex-catalog-page .site-content > .col-full {
  width: min(1460px, calc(100% - 48px)) !important;
  max-width: 1460px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.softiyex-catalog-page #primary,
body.softiyex-catalog-page #secondary {
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body.softiyex-catalog-page.mixxcazt-sidebar-left #primary {
    width: calc(100% - 282px) !important;
    float: right !important;
  }

  body.softiyex-catalog-page.mixxcazt-sidebar-left #secondary {
    width: 252px !important;
    float: left !important;
  }

  body.softiyex-catalog-page #secondary .widget {
    padding: 0 20px 22px !important;
    margin-bottom: 18px !important;
    border-color: #e3e9f2 !important;
    border-radius: 14px !important;
    background: #fff !important;
  }

  body.softiyex-catalog-page #secondary .widget-title,
  body.softiyex-catalog-page #secondary .widgettitle {
    padding: 15px 0 12px !important;
    margin-bottom: 14px !important;
    font-size: 16px !important;
  }
}

/* Product grid: consistent cards, images, titles and prices. */
body.softiyex-catalog-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px 20px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.softiyex-catalog-page ul.products::before,
body.softiyex-catalog-page ul.products::after {
  display: none !important;
}

body.softiyex-catalog-page ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.softiyex-catalog-page ul.products li.product .product-block {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 1px solid #e3e9f2 !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(13, 43, 92, .055) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

body.softiyex-catalog-page ul.products li.product .product-block:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(13, 43, 92, .11) !important;
}

body.softiyex-catalog-page ul.products li.product .product-transition,
body.softiyex-catalog-page ul.products li.product .product-image,
body.softiyex-catalog-page ul.products li.product .content-product-imagin {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 220px !important;
  padding: 16px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #f2f6ff, #e7efff) !important;
}

body.softiyex-catalog-page ul.products li.product .product-transition img,
body.softiyex-catalog-page ul.products li.product .product-image img,
body.softiyex-catalog-page ul.products li.product .content-product-imagin img,
body.softiyex-catalog-page ul.products li.product img.attachment-woocommerce_thumbnail {
  display: block !important;
  width: 100% !important;
  height: 188px !important;
  max-width: 100% !important;
  max-height: 188px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

body.softiyex-catalog-page ul.products li.product .product-caption {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 17px 16px 16px !important;
}

body.softiyex-catalog-page ul.products li.product .woocommerce-loop-product__title,
body.softiyex-catalog-page ul.products li.product h2,
body.softiyex-catalog-page ul.products li.product h3 {
  display: -webkit-box !important;
  min-height: 3.9em !important;
  margin: 7px 0 12px !important;
  overflow: hidden !important;
  color: #0b234d !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

body.softiyex-catalog-page ul.products li.product .star-rating {
  flex: 0 0 auto !important;
  margin: 0 0 5px !important;
}

body.softiyex-catalog-page ul.products li.product .price {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  color: #0b234d !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

body.softiyex-catalog-page ul.products li.product .group-action,
body.softiyex-catalog-page ul.products li.product .shop-action {
  margin-top: 10px !important;
}

@media (min-width: 1400px) {
  body.softiyex-catalog-page ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Sorting bar. */
body.softiyex-catalog-page .mixxcazt-sorting {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 22px !important;
  padding: 12px 14px !important;
  border: 1px solid #e3e9f2 !important;
  border-radius: 13px !important;
  background: #fff !important;
}

body.softiyex-catalog-page .mixxcazt-sorting .woocommerce-result-count {
  margin-right: auto !important;
}

body.softiyex-catalog-page .mixxcazt-sorting .woocommerce-ordering {
  margin-left: auto !important;
}

body.softiyex-catalog-page .mixxcazt-sorting select {
  min-height: 40px !important;
  padding: 7px 38px 7px 12px !important;
  border: 1px solid #dfe6f0 !important;
  border-radius: 9px !important;
  background-color: #fff !important;
}

/* Custom mobile filter drawer. */
.syx-catalog-filter-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: #1769ff;
  color: #fff;
  font: 800 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.syx-catalog-filter-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.syx-catalog-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 100005;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.syx-catalog-filter-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 38, .58);
}

.syx-catalog-filter-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(360px, 88vw);
  padding: 18px 16px 28px;
  overflow-y: auto;
  background: #f8faff;
  box-shadow: 18px 0 50px rgba(5, 24, 57, .22);
  transform: translateX(-102%);
  transition: transform .25s ease;
}

.syx-catalog-filter-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.syx-catalog-filter-drawer.is-open .syx-catalog-filter-panel {
  transform: translateX(0);
}

.syx-catalog-filter-head {
  position: sticky;
  top: -18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -18px -16px 16px;
  padding: 17px 16px 14px;
  border-bottom: 1px solid #e2e8f2;
  background: #fff;
}

.syx-catalog-filter-head strong {
  color: #0b234d;
  font-size: 20px;
}

.syx-catalog-filter-close {
  width: 40px;
  height: 40px;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  background: #fff;
  color: #0b234d;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

body.syx-catalog-filters-open {
  overflow: hidden !important;
}

@media (max-width: 1023px) {
  body.softiyex-catalog-page #content > .col-full,
  body.softiyex-catalog-page .site-content > .col-full {
    width: calc(100% - 28px) !important;
    max-width: none !important;
  }

  body.softiyex-catalog-page #primary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.softiyex-catalog-page #secondary {
    display: none !important;
  }

  body.softiyex-catalog-page .syx-catalog-filter-panel #secondary {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.softiyex-catalog-page .syx-catalog-filter-panel #secondary .widget {
    padding: 0 16px 19px !important;
    margin-bottom: 13px !important;
    border-color: #e0e7f1 !important;
    border-radius: 13px !important;
    background: #fff !important;
  }

  body.softiyex-catalog-page .filter-toggle,
  body.softiyex-catalog-page .filter-toggle-dropdown {
    display: none !important;
  }

  .syx-catalog-filter-button {
    display: inline-flex;
  }

  body.softiyex-catalog-page .mixxcazt-sorting {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  body.softiyex-catalog-page .mixxcazt-sorting .woocommerce-result-count {
    display: block !important;
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 13px !important;
  }

  body.softiyex-catalog-page .mixxcazt-sorting .woocommerce-ordering {
    width: 100% !important;
    margin: 0 !important;
  }

  body.softiyex-catalog-page .mixxcazt-sorting .woocommerce-ordering select {
    width: 100% !important;
  }

  body.softiyex-catalog-page .gridlist-toggle {
    display: none !important;
  }

  body.softiyex-catalog-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px 12px !important;
  }

  body.softiyex-catalog-page ul.products li.product .product-transition,
  body.softiyex-catalog-page ul.products li.product .product-image,
  body.softiyex-catalog-page ul.products li.product .content-product-imagin {
    min-height: 178px !important;
    padding: 12px !important;
  }

  body.softiyex-catalog-page ul.products li.product .product-transition img,
  body.softiyex-catalog-page ul.products li.product .product-image img,
  body.softiyex-catalog-page ul.products li.product .content-product-imagin img,
  body.softiyex-catalog-page ul.products li.product img.attachment-woocommerce_thumbnail {
    height: 154px !important;
    max-height: 154px !important;
  }

  body.softiyex-catalog-page ul.products li.product .product-caption {
    padding: 14px 13px !important;
  }

  body.softiyex-catalog-page ul.products li.product .woocommerce-loop-product__title,
  body.softiyex-catalog-page ul.products li.product h2,
  body.softiyex-catalog-page ul.products li.product h3 {
    min-height: 3.8em !important;
    font-size: 14px !important;
  }
}

@media (max-width: 540px) {
  body.softiyex-catalog-page ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.softiyex-catalog-page ul.products li.product .product-block {
    display: grid !important;
    grid-template-columns: 124px minmax(0, 1fr) !important;
    min-height: 184px !important;
  }

  body.softiyex-catalog-page ul.products li.product .product-transition,
  body.softiyex-catalog-page ul.products li.product .product-image,
  body.softiyex-catalog-page ul.products li.product .content-product-imagin {
    min-height: 184px !important;
    height: 100% !important;
    padding: 10px !important;
  }

  body.softiyex-catalog-page ul.products li.product .product-transition img,
  body.softiyex-catalog-page ul.products li.product .product-image img,
  body.softiyex-catalog-page ul.products li.product .content-product-imagin img,
  body.softiyex-catalog-page ul.products li.product img.attachment-woocommerce_thumbnail {
    height: 140px !important;
    max-height: 140px !important;
  }

  body.softiyex-catalog-page ul.products li.product .product-caption {
    justify-content: center !important;
    padding: 14px 13px !important;
  }

  body.softiyex-catalog-page ul.products li.product .woocommerce-loop-product__title,
  body.softiyex-catalog-page ul.products li.product h2,
  body.softiyex-catalog-page ul.products li.product h3 {
    min-height: 0 !important;
    margin: 5px 0 10px !important;
    font-size: 13px !important;
  }
}

/* v1.4.1: use the theme's native WooCommerce filter drawer. */
.syx-catalog-filter-button,
.syx-catalog-filter-drawer {
  display: none !important;
}

@media (max-width: 1023px) {
  body.softiyex-catalog-page {
    overflow-x: hidden !important;
  }

  body.softiyex-catalog-page .mixxcazt-sorting .filter-toggle,
  body.softiyex-catalog-page .mixxcazt-sorting .syx-native-filter-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 104px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #1769ff !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }

  body.softiyex-catalog-page .mixxcazt-sorting .filter-toggle::after {
    display: none !important;
    content: none !important;
  }

  body.softiyex-catalog-page .mixxcazt-sorting .filter-toggle i {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 15px !important;
  }

  body.softiyex-catalog-page .mixxcazt-sorting .syx-filter-label {
    display: inline !important;
    color: inherit !important;
    font: inherit !important;
  }

  .mixxcazt-canvas-filter {
    z-index: 100050 !important;
    width: min(360px, 90vw) !important;
    padding: 0 16px 28px !important;
    background: #f7f9fd !important;
    box-shadow: 20px 0 55px rgba(4, 20, 48, .22) !important;
  }

  .mixxcazt-overlay-filter {
    z-index: 100040 !important;
  }

  .mixxcazt-canvas-filter .filter-close {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    height: auto !important;
    min-height: 58px !important;
    margin: 0 -16px 16px !important;
    padding: 18px 16px 14px !important;
    border-bottom: 1px solid #dfe6f0 !important;
    background: #fff !important;
    color: #0b234d !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .mixxcazt-canvas-filter-wrap .widget,
  .mixxcazt-canvas-filter .widget {
    margin: 0 0 14px !important;
    padding: 17px 16px !important;
    border: 1px solid #dfe6f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
  }

  html.off-canvas-active,
  html.off-canvas-active body {
    overflow: hidden !important;
  }
}
