:root {
  --side-width: 285px;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1500px;
}
.container > div {
  width: 100%;
  display: flex;
}
.left-side {
  width: var(--side-width);
  flex-shrink: 0;
  height: calc(100% - 102px);
  border-right: 1px solid rgba(30, 30, 30, 0.1);
  background-color: transparent;
  position: fixed;
  margin-right: 15px;
  left: 0;
  top: 102px;
  z-index: 2;
  color: var(--black);
  display: flex;
  justify-content: center;
  overflow: clip;
}
.left-side > span {
  background-color: #1e1e1e80;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.left-side > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  max-height: 100%;
  max-width: var(--side-width);
  padding: 0.5rem 1rem;
  padding-bottom: 20px;
  z-index: 2;
  background-color: var(--white);
  overflow: clip auto;
}
.left-side > div::-webkit-scrollbar {
  width: 5px;
}
.left-side > div::-webkit-scrollbar-thumb {
  background-color: var(--white);
}
.left-side > div > div:first-of-type {
  color: var(--black);
  height: 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Dm Sans, serif;
}
.left-side > div > div:first-of-type > * {
  display: none;
}
.left-side > div > div:first-of-type > button {
  background-color: transparent;
  color: var(--black);
  border: none;
  font-size: 1.5rem;
}
.left-side > div > div:nth-of-type(2) {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
  align-items: center;
}
.left-side > div > div.product-option {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.left-side > div > div.product-option > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  border: none;
  color: var(--black);
  font-size: 0.7rem;
  padding: 0.5rem 0;
}
.left-side > div > div.product-option > button > span:not(:first-of-type) {
  font-size: 1.2rem;
}
.left-side > div > div.product-option > button > span:nth-of-type(3) {
  display: none;
}
.left-side > div > div.product-option.active > button > span:nth-of-type(2) {
  display: none;
}
.left-side > div > div.product-option.active > button > span:nth-of-type(3) {
  display: inline-block;
}
.left-side > div > div.product-option > div {
  height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.size-option.active > div {
  height: 160px !important;
}
.size-option > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.size-option > div > label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.size-option > div > label > span:first-of-type {
  border: 1px solid var(--border-1);
  display: flex;
  width: 20px;
  height: 20px;
}
.size-option > div > label.active > span:first-of-type {
  background-color: var(--blue) !important;
  border-color: var(--blue) !important;
}
.size-option > div > label:hover > span:first-of-type {
  background-color: var(--border-1);
  border-color: var(--border-1);
}
.size-option > div > label > span:nth-of-type(2) {
  font-family: DM Sans, serif;
  font-weight: 500;
  font-size: 0.7rem;
}
.size-option > div > button {
  background-color: transparent;
  color: var(--black);
  border: none;
  text-decoration: underline;
  padding: 0;
  text-align: left;
}
.price-option.active > div {
  height: 40px !important;
}
.price-option > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.price-option > div > label {
  display: flex;
}
.price-option > div > label > input {
  border: 1px solid var(--border-1);
  background-color: transparent;
  color: var(--black);
  width: 100%;
  padding: 0.2rem 0.5rem;
}
.color-option.active > div {
  height: 250px !important;
}
.color-option > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.color-option > div > label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--black);
  padding: 0.3rem;
  border: 1px solid white;
  background-color: transparent;
  border-radius: 0.2rem;
  cursor: pointer;
}
.color-option > div > label.active {
  background-color: var(--border-1);
  border-color: var(--border-1);
}
.color-option > div > label:hover {
  background-color: var(--border-1);
  border-color: var(--border-1);
}
.color-option > div > label > span:first-of-type {
  display: flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.color-option > div > label[data-id="white"] > span:first-of-type {
  border: 1px solid var(--border-1);
  width: 20px;
  height: 20px;
}
.color-option > div > label > span:nth-of-type(2) {
  font-size: 0.7rem;
  font-family: "Dm Sans", Serif;
}
.clear-filter-btn {
  background-color: var(--white);
  border: 1px solid var(--black);
  color: var(--black);
  padding: 0.5rem 0;
  border-radius: 0.3rem;
  transition: all 0.3s;
  margin-top: 1rem;
}
.clear-filter-btn:hover {
  background-color: var(--black);
  color: var(--white);
}
.main-side {
  position: relative;
  width: calc(100% - var(--side-width) - 15px);
  max-width: calc(100% - var(--side-width) -15px);
  height: calc(100% - 97px);
  overflow: clip auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3% 0.5rem;
  margin-left: auto;
  position: fixed;
  right: 0;
  top: 123px;
  gap: 0.3rem;
}
.main-side::-webkit-scrollbar {
  width: 5px;
}
.main-side::-webkit-scrollbar-thumb {
  background-color: var(--black);
}
.main-side > div:first-of-type {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--white);
  padding-top: 0.6rem;
  z-index: 2;
}
.main-side > div:first-of-type > p {
  font-size: 2rem;
  color: var(--black);
}
.main-side > div:first-of-type > button {
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: none;
  display: none;
}
.main-side > div:nth-of-type(2) {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 0.6rem;
  gap: 0.5rem;
  position: sticky;
  background-color: var(--white);
  top: 55px;
  padding: 0.3rem 0;
  z-index: 2;
}
.main-side > div:nth-of-type(2) > div {
  margin-left: auto;
}
.main-side > div:nth-of-type(2) > div.column-number {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.main-side > div:nth-of-type(2) > div.column-number > button {
  display: flex;
  height: 20px;
  gap: 0.1rem;
  background-color: transparent;
  border: none;
  align-items: center;
}
.main-side > div:nth-of-type(2) > div.column-number > button > span {
  display: flex;
  width: 0.25rem;
  height: 0.5rem;
  background-color: #1e1e1e1a;
}
.main-side > div:nth-of-type(2) > div.column-number > button.active > span,
.main-side > div:nth-of-type(2) > div.column-number > button:hover > span {
  background-color: var(--black);
}
.main-side > div:nth-of-type(2) > a {
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.product-div {
  display: none;
  gap: 0.6rem;
  width: 100%;
  flex-wrap: wrap;
}
.product-div.active {
  display: flex;
}
.empty-div {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  color: var(--gray);
}
.empty-div.active {
  display: flex;
}
.product-div > .product-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border: 1px solid rgba(30, 30, 30, 0.05);
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  transform-origin: 0 0;
  height: fit-content;
}
.product-div.col-4 > .product-card {
  max-width: calc(25% - 9px);
}
.product-div.col-3 > .product-card {
  max-width: calc((100% / 3) - ((12px * 2) / 3));
}
.product-div.col-5 > .product-card {
  max-width: calc((100% / 5) - ((12px * 4) / 5));
}
.product-div > .product-card > div:first-of-type {
  display: grid;
  grid-template-columns: 1fr;
  height: fit-content;
  justify-content: center;
  align-content: center;
  overflow: hidden;
}
.product-div > .product-card > div:first-of-type > img {
  object-position: center center;
  object-fit: cover;
  aspect-ratio: 2/3;
  width: 100%;
  height: 100%;
}
.product-div > .product-card > div:nth-of-type(2),
.product-div > .product-card > a {
  padding: 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-div > .product-card > div:nth-of-type(2) > p,
.product-div > .product-card > a > p {
  overflow: hidden;
  color: var(--black);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: nowrap;
}
.product-div > .product-card > div:nth-of-type(2) > div,
.product-div > .product-card > a > div {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  color: var(--black);
  font-size: 0.6rem;
}
.product-div > .product-card > div:nth-of-type(2) > div > div:last-of-type,
.product-div > .product-card > a > div > div:last-of-type {
  font-size: 0.8rem;
  margin-left: auto;
}
.product-div
  > .product-card
  > div:nth-of-type(2)
  > div
  > div:last-of-type.out-of-stock,
.product-div > .product-card > a > div > div:last-of-type.out-of-stock {
  color: #bf6a02;
  font-size: 0.7rem;
  height: 27px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
}
.product-div > .product-card > div:nth-of-type(2) > div > div:first-of-type,
.product-div > .product-card > a > div > div:first-of-type {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  font-style: italic;
  font-size: 0.7rem;
}
.product-div
  > .product-card
  > div:nth-of-type(2)
  > div
  > div:first-of-type.in-stock,
.product-div > .product-card > a > div > div:first-of-type.in-stock {
  color: #02542d;
  background: #00ff371a;
  padding: 0.1rem 0.5rem;
}
.product-div
  > .product-card
  > div:nth-of-type(2)
  > div
  > div:first-of-type.in-stock,
.product-div > .product-card > a > div > div:first-of-type.out-of-stock {
  color: #cd4d02;
  background: #ff5e001a;
}
.product-div
  > .product-card
  > div:nth-of-type(2)
  > div
  > div:first-of-type.in-stock
  > span,
.product-div > .product-card > a > div > div:first-of-type.in-stock > span {
  font-size: 0.8rem;
  color: var(--black);
}
.product-div
  > .product-card
  > div:nth-of-type(2)
  > div
  > div:first-of-type
  > span,
.product-div > .product-card > a > div > div:first-of-type > span {
  display: inline-block;
  margin-right: 0.2rem;
}
.pre-load-div {
  width: 100%;
  flex-shrink: 0;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 50px;
  color: var(--gray);
  font-size: 0.7rem;
}
.pre-load-div.active {
  display: flex;
}
.pre-load-div > * {
  display: none;
}
.pre-load-div > *.active {
  display: inline-block !important;
}
.load-product-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--black);
  color: var(--black);
  border-radius: 0.3rem;
  background-color: transparent;
}
.load-product-btn.active {
  display: inline-block !important;
}
@media screen and (width <= 1600px) {
  .product-div
    > .product-card
    > div:nth-of-type(2)
    > div
    > div:last-of-type.out-of-stock,
  .product-div > .product-card > a > div > div:last-of-type.out-of-stock {
    color: #bf6a02;
    font-size: 0.5rem;
    height: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
  }
  .product-div > .product-card > div:nth-of-type(2) > div > div:first-of-type,
  .product-div > .product-card > a > div > div:first-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-style: italic;
    font-size: 0.6rem;
    line-height: 1;
  }
  .product-div
    > .product-card
    > div:nth-of-type(2)
    > div
    > div:first-of-type.in-stock,
  .product-div > .product-card > a > div > div:first-of-type.in-stock {
    color: #02542d;
    background: #00ff371a;
    padding: 0.1rem 0.5rem;
  }
  .product-div
    > .product-card
    > div:nth-of-type(2)
    > div
    > div:first-of-type.in-stock,
  .product-div > .product-card > a > div > div:first-of-type.out-of-stock {
    color: #cd4d02;
    background: #ff5e001a;
  }
  .product-div
    > .product-card
    > div:nth-of-type(2)
    > div
    > div:first-of-type.in-stock
    > span,
  .product-div > .product-card > a > div > div:first-of-type.in-stock > span {
    font-size: 0.7rem;
    color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media screen and (width <= 899px) {
  .left-side {
    position: fixed;
    display: none;
    margin-right: 0 !important;
  }
  .left-side.active {
    display: flex;
    width: 100%;
    left: 0;
    top: 0;
    height: calc(100% - 46px);
    z-index: 4;
  }
  .left-side > div {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
  }
  .left-side > div > div:first-of-type {
    margin-bottom: 1rem;
  }
  .left-side > div > div:first-of-type > * {
    display: inline-block;
  }
  .main-side {
    width: 100%;
    height: calc(100% - 145px);
    max-width: unset;
    padding: 0.5rem 0.8rem;
    padding-bottom: 50px;
    top: 137px;
  }
  .main-side > div:first-of-type {
    top: -10px;
    padding-top: 0.8rem;
  }
  .main-side > div:first-of-type > button {
    display: flex;
  }
  .main-side > div:first-of-type > p {
    font-size: 1.6rem;
  }
  .main-side > div:nth-of-type(2) {
    top: 43px;
    padding: 0.3rem 0;
  }
  .product-div.col-4 > .product-card {
    max-width: calc((100% / 3) - ((12px * 2) / 3));
  }
  .product-div.col-3 > .product-card {
    max-width: calc((100% / 3) - ((12px * 2) / 3));
  }
  .product-div.col-5 > .product-card {
    max-width: calc((100% / 3) - ((12px * 2) / 3));
  }
}
@media screen and (width <= 600px) {
  .main-side > div:nth-of-type(2) {
    padding-bottom: 0.3rem;
  }
  .main-side > div:nth-of-type(2) > div.column-number {
    display: none;
  }
  .product-div.col-4 > .product-card {
    max-width: calc(50% - 6px);
  }
  .product-div.col-3 > .product-card {
    max-width: calc(50% - 6px);
  }
  .product-div.col-5 > .product-card {
    max-width: calc(50% - 6px);
  }
}
