/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Filters css start - Desktop */

.parentfilters.clearfix {
  display: none !important;
}

.parent_filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  box-sizing: border-box; /* Include padding in width/height calculations */
  margin-bottom: 10px;
  margin-top: 10px;
}

.parent_filters .item {
  background: white;
  width: 100%;
  display: flex;
  border: 2px solid lightgrey;
  padding-left: 10px;
  box-sizing: border-box; /* Include padding in the item's width/height */
  align-items: center;
  height: 54px;
}

.parent_filters .item.border-now {
  border: 2px solid black;
}

.parent_filters .item span {
  padding: 5px;
  font-size: 18px;
  color: #333;
}

.parent_filters select.item {
  font-size: 18px;
  color: #333;
}

.close_filters .option {
  align-items: center; 
  margin: 0; 
  transition: all .2s ease-in-out; 
  display: inline-flex; 
  padding: 5px 20px; 
  border: 1px solid #707070; 
  border-radius: 20px; 
  font-size:22px;
} 

.close_filters .option .closeMe {
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px; /* Spacing between text and close icon */
  display: flex; /* Ensures the icon is aligned inside the span */
  align-items: center;
}

.et_divi_theme .close_filters .option .closeMe {
  margin-top: 5px;
}

.close_filters {
  margin: 40px 0;
}

.mobile_grand_kids, .reg_filters_mobile {
  display: none;
}

/* Filters end Desktop */

/* Swatches */
.viz-swatches-container {
  max-width: 95%;
  margin: 0 auto;
}

.swatches-inner-container {
  display: flex;
}

.swatch-filters-sidebar {
  width: 20%;
  background-color: white;
  padding: 20px;
  border: 1px solid black;
  margin-right: 25px;
  height: fit-content;
  z-index: 99;
  position: sticky;
  top: 15px;
}

.filter-dropdown-label {
  display: none;
  position: relative;
}

.filter-dropdown-label::after {
  font-family: "Font Awesome 6 Pro";
  position: absolute;
  right: 0;
}

.filter-block {
  display: flex;
  flex-direction: column;
}

.filter-block .filter-group {
  display: flex;
  flex-direction: column;
}

.filter-block .filter-group.closed div.chevron .fa-chevron-up {
  display: none;
}

.filter-block .filter-group.open div.chevron .fa-chevron-down {
  display: none;
}

.filter-block .filter-group.open div.chevron .fa-chevron-up {
  display: block;
}

.filter-block .filter-label-div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-block .filter-label-div:hover {
  cursor: pointer;
}

.filter-block .filter-label-div h3 {
  margin-bottom: 0px;
}

.filter-block label.disabled {
  opacity: 0.5;
}

.filter-block label input {
  margin-right: 5px;
}

.swatches-container-right {
  width: 80%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.swatches-search-container {
  margin-bottom: 25px;
}

.swatch-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

#swatch-search .swatch-input-container input {
  border: 1px solid black;
  width: 100%;
  padding: 7.5px;
}

.swatch-input-container i {
  position: absolute;
  color: black;
  right: 10px;
}

.swatches-compare-container {
  background-color: lightgray;
  padding: 25px;
  margin-bottom: 20px;
  min-height: 50px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.swatch-compare-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  row-gap: 15px;
}

.swatches-compare-container .viz-swatch {
  margin-right: 20px;
  position: relative;
  min-height: 180px;
  max-height: 180px;
}

.swatches-compare-container .viz-swatch .swatch-compare-close,
.swatches-popup-wrapper .viz-swatch .swatch-compare-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swatches-compare-container .viz-swatch p,
.swatches-popup-wrapper .viz-swatch p {
  display: none;
}

.enlarge-shrink-compare {
  position: absolute;
  right: 3px;
  bottom: 0;
  cursor: pointer;
}

.enlarge-shrink-compare p {
  margin-bottom: 0;
  font-size: 13px;
}

.swatches-popup-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 999;
}

.swatches-popup-wrapper .swatches-pop-content-wrapper {
  background-color: white;
  box-shadow: 10px 10px 60px #555;
  display: inline-block;
  height: 92%;
  vertical-align: middle;
  width: 90%;
  position: relative;
  padding: 25px;
  cursor: default;
  top: 50px;
}

.swatches-popup-wrapper .swatches-pop-content {
  overflow-y: scroll;
  overflow-x: hidden;
  max-height: -webkit-fill-available;
  max-height: fill-available;
}

.swatch-pop-close {
  background-color: white;
  border: 2px solid black;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 20px;
  line-height: 25px;
  width: 30px;
  height: 30px;
  text-align: center;
}

.swatches-popup-wrapper .swatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.swatches-popup-wrapper .swatch-grid .viz-swatch {
  position: relative;
  max-height: 700px;
}

.swatches-no-results {
  width: 100%;
  text-align: center;
}

.swatches-list,
.swatches-search-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 25px;
  grid-row-gap: 25px;
}

.swatch-loading-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.swatch-loader {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#000 0 0);
  background: 
    var(--c) 0%   50%,
    var(--c) 50%  50%,
    var(--c) 100% 50%;
  background-size: 20% 100%;
  animation: l1 1s infinite linear;
}

@keyframes l1 {
  0%  {background-size: 20% 100%,20% 100%,20% 100%}
  33% {background-size: 20% 10% ,20% 100%,20% 100%}
  50% {background-size: 20% 100%,20% 10% ,20% 100%}
  66% {background-size: 20% 100%,20% 100%,20% 10% }
  100%{background-size: 20% 100%,20% 100%,20% 100%}
}

.swatches-list .swatch-img-container,
.swatches-search-list .swatch-img-container {
  cursor: pointer;
}

.viz-swatch {
  text-align: center;
}

.swatches-list .viz-swatch,
.swatches-search-list .viz-swatch {
  max-height: 320px;
}

.viz-swatch .swatch-img-container {
  position: relative;
  height: 100%;
}

.swatches-list .viz-swatch .swatch-img-container,
.swatches-search-list .viz-swatch .swatch-img-container {
  height: 84%;
}

.viz-swatch .swatch-img-container img {
  height: 100%;
  width: 100%;
}

.viz-swatch .swatch-img-container p {
  display: none;
  position: absolute;
  bottom: 0;
  margin-bottom: 0px;
  width: 100%;
  padding: 0px 7px;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
}

.swatches-list .viz-swatch .swatch-compare-close,
.swatches-search-list .viz-swatch .swatch-compare-close {
  display: none;
}

.add-to-compare {
  cursor: pointer;
}

.add-to-compare:hover, .add-to-compare:focus {
  text-decoration: underline;
}

.swatch-lightbox {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 999999999;
}

.swatch-lightbox-content-wrapper {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: 50px;
}

.swatch-lightbox-close {
  background-color: white;
  color: black;
  border: 2px solid black;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: -15px;
  right: -10px;
  font-size: 20px;
  line-height: 25px;
  width: 30px;
  height: 30px;
  text-align: center;
}

.swatch-lightbox-box img {
  width: 100%;
  max-height: 700px;
  min-width: 800px;
  max-width: 800px;
}

/* Styles for Child Category Links Widget */
.child-category-links.two-column {
  columns: auto;
  column-count: 2;
}

.child-category-links .category-link a {
  display: block;
  padding: 2.5px 0;
  text-transform: uppercase;
  color: #707070;
  font-weight: normal;
}

.child-category-links .category-link a:hover, .child-category-links .category-link a:active {
  text-decoration: underline;
}

/* MEDIA QUERIES */

/* max-width: 1024px */
@media(max-width: 1024px) {
  .swatches-list,
  .swatches-search-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* max-width: 981px */
@media (max-width: 981px) {
  .child-category-links.two-column {
    columns: auto;
    column-count: 1;
    background: #f1f1f1;
    padding-left: 10px;
  }

  /* Filters mobile start */

  .parent_filters.desktop, .mobile_grand_kids .item img, .mobile_grand_kids .grand_content, .parent_filters.desktop.cols-0  {
    display: none;
}

  .mobile_grand_kids {
      border: 1px solid #707070;
      margin-bottom: 20px;
      background-color: white;
  }

  .mobile_grand_kids span.toggle {
      text-align: left;
      color: #707070;;
      font-size: 20px;
      text-transform: uppercase;
      font-weight: normal;
      margin: 7.5px 0;
      padding: 0 10px;
      display: inline-block;
      width: 100%;
  }

  .mobile_grand_kids span.toggle:after {
      font-family: 'Font Awesome 6 Pro';
      content: "\f078";
      font-weight: 600;
      float: right;
      padding: 0;
      position: relative;
      font-size: 22px;
  }

  .mobile_grand_kids.grand_toggle_open span.toggle:after {
    content: "\f077";
  }

  .mobile_grand_kids .grand_content {
      padding: 0 10px;
  }

  .mobile_grand_kids, .reg_filters_mobile {
      display: block;
  }

  .mobile_grand_kids .item {
      width: 100%;
      display: block;
      color: #707070;
      border-bottom: .5px solid lightgrey;
      padding: 5px 0;
      margin-bottom: 0;
  }

  .mobile_grand_kids .item:last-child {
      border-bottom: none;
  }

  .mobile_grand_kids .item:active {
    background: rgba(0,0,0,0.1);
  }

  .reg_filters_mobile select {
      width: 100%;
      font-size: 20px;
      padding: 10px;
      color: #333;
  }

  .parent_filters .item.border-now {
    border: none;
  }

  /* Filters mobile end */

}

/* max-width: 768px */
@media(max-width: 768px) {
  .swatches-inner-container {
    flex-direction: column;
  }

  .swatch-filters-sidebar {
    width: 100%;
    top: 0;
  }

  .filter-dropdown-label {
    display: block;
    cursor: pointer;
  }
  .filter-dropdown-label.closed {
    margin-bottom: 0;
  }
  .filter-dropdown-label.closed::after {
    content: '\f0d7';
  }
  .filter-dropdown-label.open::after {
    content: '\f0d8';
  }
  .filter-dropdown-label.closed + .filter-dropdown-content {
    display: none;
  }

  .swatches-container-right {
    width: 100%;
  }

  .swatches-search-container {
    margin-top: 25px;
  }

  .swatches-compare-container .viz-swatch {
    min-height: 100px;
    max-height: 100px;
  }

  .swatches-popup-wrapper .swatch-grid {
    grid-template-columns: 1fr;
  }

  .swatches-popup-wrapper .swatch-grid .viz-swatch {
    max-height: 400px;
  }

  .swatches-list .viz-swatch,
  .swatches-search-list .viz-swatch {
    max-height: 290px;
  }
}

/* max-width: 600px */
@media(max-width: 600px ) {
  .swatch-compare-inner {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    row-gap: 15px;
  }
}

/* max-width: 425px */
@media(max-width: 425px) {
  .swatches-compare-container .viz-swatch {
    min-height: 70px;
    max-height: 70px;
  }

  .swatches-list,
  .swatches-search-list {
    grid-template-columns: 1fr 1fr;
  }

  .swatches-list .viz-swatch,
  .swatches-search-list .viz-swatch {
    max-height: 220px;
  }
}

/* max-width: 625px */
@media(max-width: 625px) {
  .swatch-lightbox-box img {
    min-width: 500px;
    max-width: 500px;
  }
}

/* max-width: 520px */
@media(max-width: 520px) {
  .swatch-lightbox-box img {
    min-width: 320px;
    max-width: 320px;
  }
}

/* max-width: 340px */
@media(max-width: 340px) {
  .swatch-lightbox-box img {
    min-width: 300px;
    max-width: 300px;
  }
}
