/* HERO */
.cv-hero {
  min-height: 540px;

  display: flex;
  align-items: center;

  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;

  position: relative;
}

.cv-hero:before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    #050912 0%,
    #050912 40%,
    rgba(5, 9, 18, 0.4) 65%,
    transparent 80%
  );
}

.cv-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.cv-hero h1,
.cv-hero p {
  color: var(--color-white);
}
@media (max-width: 768px) {
  .cv-hero {
    padding: 60px 0;
    background-position: center;
  }

  .cv-hero:before {
    background: rgba(0, 0, 0, 0.5);
  }

  .cv-hero-text h1 {
    font-size: 36px;
  }
}

.cv-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv-hero-text h1 {
  font-family: Montserrat;
  font-size: 48px;
  margin: 0;
}

.cv-hero-text p {
  opacity: 0.7;
  margin: 15px 0 30px;
}

.cv-hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cv-hero-art img {
  max-width: 500px;
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .cv-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .cv-hero-art img {
    margin-top: 40px;
    max-width: 350px;
  }
}
/* HERO END */
.cv-shop {
  padding: 80px 0;
}
.cv-shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

#cv-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cv-filter-group {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 25px;
}

.cv-filter-group label {
  position: relative;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.cv-filter-group input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}
.cv-filter-group:has(input[type="checkbox"]) label {
  position: relative;
}

.cv-filter-group label:has(input[type="checkbox"])::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid var(--color-white);
}
.cv-filter-group label:has(input[type="checkbox"]:checked)::after {
  content: "X";
  position: absolute;
  font: 700 11px/1 var(--font-primary);
  left: 4px;
  top: 8px;
  color: var(--color-white);
}

.cv-filter-group input[type="text"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #242832;
  background: transparent;
  color: var(--color-white);
}
.cv-filter-group select:focus,
.cv-filter-group input[type="text"],
:focus {
  outline: none;
}

.cv-filter-group:has(input[type="number"]) {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 20px;
  justify-content: flex-start;
}
.cv-filter-group:has(input[type="number"]) input[type="number"] {
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  border: 0;
  border-bottom: 1px solid #242832;
  background: transparent;
  color: var(--color-white);
}

.cv-filter-group h4 {
  width: 100%;
  margin-bottom: 10px;
}

.cv-filter-group select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px soild #fff;
  color: #fff;
}
.cv-filters {
  position: relative;
}

.cv-filters__title {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #fff;
  margin-bottom: 10px;
}

.cv-filters__title h2 {
  font-size: 20px;
}

.cv-filters__title svg {
  max-width: 24px;
  height: auto;
}

.cv-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cv-filter-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c1f26;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 13px;
}

.cv-filter-remove {
  cursor: pointer;
  font-weight: 700;
  opacity: 0.7;
}

.filter-form__submit {
  width: 100%;
  height: 44px;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  background-color: #2c6dd2;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 8px;
}

.cv-filter-remove:hover {
  opacity: 1;
}
#cv-card-preview {
  position: fixed;
  z-index: 9999;

  width: 320px;

  pointer-events: none;

  display: none;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

#cv-card-preview img {
  width: 100%;

  border-radius: 10px;
}

#cv-filter-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  height: 100vh;
  background-color: #0f1115;
  padding: 32px;
  z-index: 999;
}

.cv-mobile-filter__close {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
}

.cv-mobile-filter__close .line {
  width: 22px;
  height: 2px;
  background: white;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
}

.cv-mobile-filter__close .line:first-of-type {
  transform: translateX(-50%) rotate(45deg);
}
.cv-mobile-filter__close .line:last-of-type {
  transform: translateX(-50%) rotate(-45deg);
}
@media only screen and (min-width: 991px) {
  .cv-mobile-filter__close,
  .filter-form__submit,
  .cv-filters__title svg {
    display: none;
  }
  .cv-filters__title h2 {
    font-size: 32px;
  }
  .cv-filters {
    position: sticky;
    top: 140px;

    height: max-content;
  }
  #cv-filter-form {
    position: relative;
    top: unset;
    left: unset;
    right: unset;
    bottom: unset;
    padding: 0;
  }
  #cv-filter-form {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
}
@media (max-width: 1024px) {
  #cv-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .cv-shop-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cv-filters {
    position: relative;
    top: unset;
  }

  #cv-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  #cv-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

#cv-load-more-trigger {
  height: 1px;
}
