:root {
  --products-page-radius: 12px;
  --products-page-radius-sm: 8px;
  --products-page-gap: 18px;
  --products-page-surface: linear-gradient(
    180deg,
    var(--secondary-color-alt13) 0%,
    var(--primary-color-op-5) 100%
  );
  --products-page-soft-bg: var(--primary-color-op-5);
  --products-page-soft-bg-hover: var(--primary-color-opacity);
  --products-page-border: var(--secondary-color-alt13);
}

.products-container {
  min-width: 0;
  padding-top: 0;
  width: calc(100% - 10%);
  padding: 0;
  
  @media (max-width: 991px) {
    width: 100%;
  }
}

#products-list {
  width: 100%;
  margin-top: 0;
  align-items: stretch;
}

#products-list.vertical_prod,
#products-list.three_col,
#products-list.two_col {
  display: grid;
  gap: var(--products-page-gap);
}

#products-list.vertical_prod {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#products-list.three_col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#products-list.two_col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#products-list.single_col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--products-page-gap);
}

#products-list > .prod-col,
#products-list > .prod-col-tb,
#products-list > .prod-col-attr {
  display: flex;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

#products-list .cards,
#products-list .product-card {
  width: 100%;
  height: 100%;
  min-width: 0;
}

#products-list .product-card {
  overflow: hidden;
}

#products-list .product-title-text,
#products-list .content,
#products-list .product-crd-spec,
#products-list .product-card-note {
  min-width: 0;
}

#products-list.single_col > .prod-col,
#products-list.single_col > .prod-col-tb,
#products-list.single_col > .prod-col-attr {
  width: 100%;
  max-width: none;
}

#products-list.single_col .cards {
  display: flex;
}

#products-list.single_col .product-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  grid-template-areas:
    "image title"
    "image content"
    "image footer";
  gap: 10px 16px;
  max-height: 290px;
  padding: 14px;
}

#products-list.single_col .product-image-wrapper {
  grid-area: image;
  width: 100%;
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

#products-list.single_col .product-title {
  grid-area: title;
  align-self: start;
}

#products-list.single_col .content {
  grid-area: content;
  overflow: hidden;
}

#products-list.single_col .add-to-cart {
  grid-area: footer;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  margin: 0;
}

#products-list.single_col .add-to-cart .btn {
  width: 100%;
  min-height: 44px;
  white-space: normal;
}

#products-list.single_col .section-product-price,
#products-list.single_col .product-price,
#products-list.single_col .product-prev-price-wrapper {
  text-align: start;
}

.head_cate {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: var(--products-page-radius);
  background: var(--products-page-surface);
}

.products-toolbar {
  gap: 16px;
}

.products-toolbar-start {
  min-width: 0;
}

.products-toolbar-actions,
.icons {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  flex-wrap: wrap;
}

.products-view-btn,
.btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--products-page-border);
  border-radius: var(--products-page-radius-sm);
  background: var(--products-page-soft-bg);
  color: var(--secondary-color);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.products-view-btn i,
.btn-filter i {
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.products-view-btn:hover,
.btn-filter:hover,
.dropdown-item:hover {
  border-color: var(--primary-color);
  background: var(--products-page-soft-bg-hover);
  color: var(--white-color);
}

.products-view-btn:focus-visible,
.btn-filter:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.products-view-btn.active_icon,
.active_icon {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white-color);
}

.breadcrumb-item.active {
  color: var(--text-color-primary-bg);
}

.products-sort-dropdown,
.dropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

.filter-order {
  margin: 0;
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

#products-list-sort {
  width: auto;
  min-width: 150px;
  padding: 0 12px;
  justify-content: space-between;
}

.dropdown-menu.select-dropdown.show {
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--products-page-border);
  border-radius: var(--products-page-radius);
  background: var(--backGround-color);
  text-align: inherit;
}

.dropdown-item {
  padding: 10px 14px;
  border-radius: var(--products-page-radius-sm);
  color: var(--secondary-color);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.products-filter-modal {
  border: 1px solid var(--products-page-border);
  border-radius: var(--products-page-radius);
  background: var(--backGround-color);
  color: var(--white-color);
}

.products-filter-modal .modal-body {
  padding: 18px;
}

.form-products-filter,
.attribute {
  padding: 14px;
  border: 1px solid var(--products-page-border);
  border-radius: var(--products-page-radius);
  background: var(--products-page-surface);
}

.form-products-filter label,
.attribute-header {
  color: var(--secondary-color);
  font-weight: 700;
}

.attribute {
  margin-bottom: 12px;
  background-color: transparent !important;
}

.attribute:hover {
  border-color: var(--primary-color-opacity);
}

.attribute-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
  background: none;
  cursor: pointer;
  background-color : transparent !important;
}

.attribute-header:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: var(--products-page-radius-sm);
}

.attribute-group {
  border: 0;
  margin: 25px 0;
  border-radius: var(--products-page-radius) !important;
}

.attribute-body,
.attribute-body.attribute-price-body {
  padding: 0;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
  padding: 4px 0;
  color: var(--secondary-color);
}

.filter-row:hover {
  color: var(--white-color);
}

.attribute-footer {
  display: flex;
  width: 100%;
  margin-top: 14px;
  border-radius: var(--products-page-radius-sm);
}

.attribute-footer .highlight-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--primary-color);
  border-radius: var(--products-page-radius);
  background: none;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.attribute-footer .highlight-button:hover,
.attribute-footer .highlight-button:focus-visible {
  background: var(--primary-color);
  color: var(--white-color);
}

.attribute .checkbox {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.attribute .checkbox:hover {
  box-shadow: 0 0 0 3px var(--primary-color-opacity);
}

.attribute .checkbox:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.attribute .checkbox:checked {
  background: var(--primary-color);
  box-shadow: inset 0 0 0 4px var(--backGround-color);
}

.attribute-header-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--products-page-border);
  border-radius: 50%;
  background: var(--products-page-soft-bg);
  color: var(--primary-color);
  transition: transform 0.25s ease;
}

.attribute-header-arrow i {
  color: currentColor;
  font-size: 13px;
  line-height: 1;
}

.attribute-header-arrow svg path {
  fill: var(--primary-color);
}

.attribute-header.collapsed .attribute-header-arrow,
.attribute-header-arrow.collapsed {
  transform: rotate(-90deg);
}

.filter-content {
  overflow: hidden;
  max-height: 520px;
  padding: 8px 0;
  opacity: 1;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
}

.filter-content.collapsed {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.product-attributes-light-box .filter-row input[type="checkbox"],
.product-attributes-light-box .filter-row input[type="radio"],
.product-attributes .filter-row input[type="checkbox"],
.product-attributes .filter-row input[type="radio"] {
  display: none;
}

.attribute-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  color: currentColor;
  background: none;
  cursor: pointer;
}

.attribute-label span {
  font-size: 16px;
}

.attribute-label::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--white-color);
  border-radius: 6px ;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="radio"] + .attribute-label::before {
  border-radius: 50%;
}

input[type="radio"]:checked + .attribute-label::before,
input[type="checkbox"]:checked + .attribute-label::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 4px var(--backGround-color);
}

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

a:not([href]):not([tabindex]):hover,
 a:not([href]):not([tabindex]):focus{
  color:  var(--white-color);
 }

.attribute-label-extra {
  display: flex;
  align-items: center;
}

.attribute-color {
  width: 20px;
  height: 20px;
  border: 2px solid var(--white-color);
  border-radius: 50%;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

input:checked + .attribute-label .attribute-color {
  box-shadow: none;
}

#priceRangeContainer {
  width: 100%;
  padding: 14px 12px 4px;
}

.price_range {
  width: 100%;
  margin: 0 0 20px;
  color: var(--white-color);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-align: start;
}

.price_cont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  color: var(--secondary-color);
}

.filter-count {
  display: none;
}

.price_cont .price_num {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--products-page-border);
  border-radius: var(--products-page-radius-sm);
  background: var(--products-page-soft-bg);
  color: var(--secondary-color);
}

.price_label {
  color: var(--secondary-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.price_value {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--white-color);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.noUi-target {
  border: 0;
  border-radius: 999px;
  background: var(--white-color);
  box-shadow: none;
}

.noUi-horizontal {
  height: 7px;
}

.noUi-connect {
  background: var(--primary-color);
}

.noUi-horizontal .noUi-handle {
  top: -9px;
  right: -12px;
  width: 25px;
  height: 25px;
  border: 3px solid var(--white-color);
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: none;
  cursor: grab;
}

.noUi-horizontal .noUi-handle:active {
  cursor: grabbing;
}

.noUi-handle::after,
.noUi-handle::before {
  content: none;
}

.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
  left: -12px;
  right: auto;
}

.filtration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid var(--products-page-border);
  position: relative !important;
  background-color : transparent !important;
}

.filtration-header span {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: 700;
}

.filter-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--products-page-border);
  border-radius: 50%;
  background: var(--products-page-soft-bg);
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-close-btn:hover,
.filter-close-btn:focus-visible {
  border-color: var(--primary-color);
  background: var(--products-page-soft-bg-hover);
  color: var(--white-color);
}

.product-attributes {
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 100% !important;
  padding-inline-end: 0 !important;
}


.product-attributes .product-attributes-light-box-top-section {
  height: 0;
}

.product-attributes .attribute-body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.product-attributes .products-filters-container {
  overflow-y: auto;
  max-height: 100%;
  background: var(--backGround-color);
  opacity: 1;
  transition: height 0.3s ease, opacity 0.3s ease;
  margin: 0 !important;
}

.product-attributes .attribute-body.attribute-price-body {
  flex-direction: column;
  align-items: center;
}

.product-attributes .attribute-body.attribute-price-body .form-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    height: 100%;
}

.product-attributes .attribute-body.attribute-price-body .form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 10px;
    padding: 0;
    width: calc( 100% /2);
    max-width: unset;
    flex: unset;
    height: 100%;
}

.form-group label span,
.form-group label h6 {
  font-size: 16px;
  color: var(--secondary-color);
}

.form-control {
  font-size: 14px;
}

.side-banners {
  display: flex;
  flex: 0 0 225px;
  flex-direction: column;
  gap: 15px;
  width: 225px;
  max-width: 225px;
  padding-top: 5px;
}

.side-banners .banner-item {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 16px;
  background: var(--products-page-soft-bg);
  transition: transform 0.25s ease;
}

.side-banners .banner-item:hover {
  transform: translateY(-2px);
}

.side-banners .banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.side-banners .banner-item:hover img {
  transform: scale(1.04);
}

.side-banners .banner-item .containt {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.side-banners .banner-item .containt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--black-color);
  opacity: 0.42;
}

.side-banners .banner-item:hover .containt {
  opacity: 1;
}

.side-banners .banner-item h3 {
  margin: 0;
  color: var(--white-color);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.side-banners .banner-item p {
  margin: 12px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 999px;
  color: var(--white-color);
  font-size: 15px;
  font-weight: 700;
}

.form-group label {
    width: 100%;
    justify-content: flex-start;
    display: flex;
    margin: 0;
    height: 24px;
    /* height: 100%; */
    align-items: center;
}

.form-group label h6{
  margin-bottom: 0;
}

.attribute-body input.form-control {
    padding: 5px;
    background: transparent;
    border-radius: var(--products-page-radius);
}

.attribute-group:last-child {
  margin-bottom: 0;
}

.attribute-footer{
  margin: 0;
}

@media (max-width: 1199px) {
  #products-list.vertical_prod {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .attribute-label {
    font-size: 1rem;

    padding-top: 1rem !important;
    padding-bottom: 1rem !important;

    background-color: transparent !important;
    color: var(--secondary-color) !important;

    border-radius: 10px;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    border: 1px solid var(--secondary-color) !important;

    justify-content: flex-start !important;

  }

  .products-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-sort-dropdown,
  .dropdown {
    justify-content: space-between;
    width: 100%;
  }

  #products-list.vertical_prod,
  #products-list.three_col,
  #products-list.two_col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #products-list.single_col .product-card {
    grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
    grid-template-areas:
      "image title"
      "image content"
      "footer footer";
    min-height: 0;
  }

  #products-list.single_col .product-image-wrapper {
    min-height: 160px;
  }

  .product-attributes {
    position: fixed;
    inset: 0;
    z-index: 1050;
    pointer-events: none;
    opacity: 0;
  }

  .product-attributes .product-attributes-light-box-top-section {
    position: fixed;
    inset: 0;
    height: auto;
    background: var(--black-color);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .product-attributes .products-filters-container {
    position: fixed;
    /* top: 0; */
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    max-height: none;
    border-inline-end: 1px solid var(--products-page-border);
    transform: translateX(-100%);
    /* z-index: 999999 !important; */
  }

  [dir="rtl"] .product-attributes .products-filters-container,
  .rtl .product-attributes .products-filters-container {
    transform: translateX(100%);
  }

  .product-attributes .products-filters-container  .attribute {
    background-color: transparent;
    background-clip: border-box;
    border: none;
    height: 100%;
  }

  .product-attributes.product-attributes-show-mobile {
    pointer-events: auto;
    opacity: 1;
    z-index: 999;
  }

  .product-attributes.product-attributes-show-mobile
    .product-attributes-light-box-top-section {
    opacity: 0.5;
  }

  .product-attributes.product-attributes-show-mobile .products-filters-container {
    transform: translateX(0);
  }

  .products-filter-drawer-open {
    overflow: hidden;
  }

  .side-banners {
    display: none;
  }

  .filter-close-btn {
    display: inline-flex;
  }
}

@media (max-width: 575px) {
  .head_cate {
    padding: 12px;
  }

  .products-view-btn,
  .btn-filter {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  #products-list.vertical_prod,
  #products-list.three_col,
  #products-list.two_col {
    gap: 8px;
  }

  #products-list.single_col .product-card {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  #products-list.single_col .product-image-wrapper {
    min-height: 140px;
  }
}
