.product-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 208px 0 64px;
}
.product-top .h1 {
  text-align: center;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs-list {
  list-style-type: none;
}
.breadcrumbs-list li a {
  color: rgba(29, 29, 29, 0.5);
  transition: ease 0.3s;
}
.breadcrumbs-list li a:visited {
  color: rgba(29, 29, 29, 0.5);
}
.breadcrumbs-list li a:hover {
  color: #1D1D1D;
}

.bredcrumb-icon {
  fill: rgba(29, 29, 29, 0.5);
  width: 7px;
  height: 12px;
}

.filters-row {
  max-width: 1384px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 48px;
}

.filters-btns {
  display: flex;
  gap: 24px;
}

.filter-btn {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-transform: uppercase;
  background-color: #F4F4F4;
  transition: ease 0.3s;
  border-radius: 50px;
  color: #1D1D1D;
  line-height: 1;
}
.filter-btn span {
  color: rgba(0, 0, 0, 0.5);
  transition: ease 0.3s;
}
.filter-btn svg {
  fill: #1D1D1D;
  transition: ease 0.3s;
}
.filter-btn:hover {
  background-color: #1D1D1D;
  color: white;
}
.filter-btn:hover span {
  color: white;
}
.filter-btn:hover svg {
  fill: white;
}

.modal-content {
  height: 100vh;
  overflow: visible;
  overflow-y: visible;
}

.modal-top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 56px 16px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-main {
  padding: 32px 52px 156px 64px;
  overflow-y: auto;
  height: calc(100vh - 135px);
  scrollbar-width: none;
  ms-overflow-style: -ms-autohiding-scrollbar;
}
.modal-main::-webkit-scrollbar {
  display: none;
}

.modal-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 56px 16px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: white;
}
.modal-bottom .btn-black {
  font-size: 14px;
  padding: 12px 24px;
}

.sorting {
  height: 44px;
  border: 1px solid rgba(29, 29, 29, 0.5);
  border-radius: 8px;
  background: white;
  font-size: 16px;
  color: #1D1D1D;
  cursor: pointer;
  outline: none;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  color: #1D1D1D;
  font-size: 18px;
  transition: color 0.12s;
}

.custom-checkbox:hover {
  color: #000;
}

.custom-checkbox input[type=checkbox] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.custom-checkbox .checkmark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  transition: all 0.18s ease;
}

.custom-checkbox input:checked + .checkmark {
  background: #000000;
  border-color: #000000;
}

.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark::after {
  display: block;
}

.custom-checkbox input:focus-visible + .checkmark {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.custom-checkbox:active .checkmark {
  transform: scale(0.92);
}

@media (max-width: 768px) {
  .product-top {
    gap: 24px;
    margin: 108px 0 56px;
  }
  .filters-row {
    padding: 0 16px;
    margin-bottom: 12px;
    gap: 16px;
  }
  .filters-btns {
    gap: 16px;
  }
  .modal-top {
    padding: 16px;
  }
  .modal-main {
    padding: 24px 16px;
    height: calc(100vh - 135px);
  }
  .modal-bottom {
    padding: 16px;
  }
  .modal-content {
    max-width: 90%;
  }
  .custom-checkbox {
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .filters-btns {
    width: 100%;
  }
  .filter-btn {
    width: 100%;
  }
  .sorting {
    width: 100%;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 20px;
  width: 100%;
  max-width: 1384px;
  margin: 0 auto;
  padding: 0 32px;
}

.card {
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-6x {
  grid-column: span 6;
  aspect-ratio: 1300/500;
}

.card-4x {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: 1;
}

.card-3x {
  grid-column: span 3;
  aspect-ratio: 1;
}

.card-2x {
  grid-column: span 2;
  aspect-ratio: 1;
}

.card-img {
  height: 100%;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  position: absolute;
  bottom: 0;
  background-color: white;
  width: 100%;
  height: fit-content;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  transition: ease 0.3s;
  margin-bottom: -40px;
  z-index: 1;
}

.card-description {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-4x .card-info {
  padding-top: 19px;
}

.rating-wrap {
  display: flex;
  gap: 4px;
}

.rating {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  direction: rtl;
  unicode-bidi: bidi-override;
}
.rating input {
  display: none;
}
.rating label {
  cursor: pointer;
  transition: color 0.1s;
}

.rating label:hover, .rating label:hover ~ label {
  color: rgba(29, 29, 29, 0.5);
}

.rating input:checked ~ label {
  color: rgba(29, 29, 29, 0.5);
}

.rating:hover input:checked ~ label {
  color: rgba(29, 29, 29, 0.5);
}

.rating-num {
  font-size: 12px;
  line-height: 2;
}

.product-info {
  position: relative;
}
.product-info button {
  padding: 8px 0;
  background-color: transparent;
}

.product-info-block {
  position: absolute;
  bottom: 28px;
  right: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 16px 32px;
  width: fit-content;
  min-width: min(380px, 30vw);
  display: none;
}

.product-info:hover .product-info-block {
  display: block;
}

.card:hover .card-info {
  margin-bottom: 0;
}
.card:hover .product-nav {
  opacity: 1;
}
.card:hover .favourites {
  opacity: 1;
}
.card:hover .labels {
  opacity: 1;
}
.card:hover .rating-label {
  opacity: 1;
  bottom: 108px;
}

.product-slide {
  height: unset;
}

.product-nav {
  position: absolute;
  top: 45%;
  width: 36px;
  height: 36px;
  background-color: white;
  border: 1px solid rgba(29, 29, 29, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: ease 0.6s;
  opacity: 0;
}
.product-nav svg {
  width: 20px;
  height: 20px;
  transition: ease 0.6s;
}
.product-nav:hover {
  cursor: pointer;
  background-color: #1D1D1D;
}
.product-nav:hover svg {
  fill: white;
}

.card .product-nav.swiper-button-disabled {
  opacity: 0;
  cursor: default;
}

.product-nav-prev {
  left: 16px;
}
.product-nav-prev svg {
  transform: rotate(180deg);
}

.product-nav-next {
  right: 16px;
}

.favourites {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: ease 0.3s;
}
.favourites svg {
  fill: transparent;
  cursor: pointer;
  transition: ease 0.3s;
  width: 60px;
  height: 60px;
}
.favourites:hover svg {
  fill: white;
}

.labels {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transition: ease 0.3s;
  opacity: 0;
}

.product-label {
  padding: 7px 12px;
  background-color: white;
  border-radius: 50px;
  color: #1D1D1D;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: ease 0.3s;
}
.product-label.dark {
  background-color: #1D1D1D;
  color: white;
}

.rating-label {
  position: absolute;
  bottom: 72px;
  left: 16px;
  z-index: 2;
  opacity: 0;
}

.filter-item {
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.filter-item.active .filter-title svg {
  transform: rotate(90deg);
}
.filter-item.active .filter-body {
  max-height: 400px;
  padding: 6px 0;
}
.filter-item .filter-title {
  padding: 6px 0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-item .filter-title svg {
  width: 20px;
  height: 20px;
  transition: ease 0.3s;
}
.filter-item .filter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

@media (max-width: 1200px) {
  .product-info-block {
    padding: 8px;
  }
}
@media (max-width: 768px) {
  .grid {
    gap: 24px;
    padding: 0 16px;
  }
  .card {
    grid-column: span 6 !important;
  }
  .card-4x .card-info {
    padding-top: 8px;
  }
  .card-info {
    padding-top: 8px;
  }
  .card-info {
    margin-bottom: unset;
  }
  .card-description {
    margin: 0;
  }
  .product-info button {
    padding: 8px 0 0;
  }
  .card-img {
    height: 90%;
  }
  .product-info button {
    padding: 0;
  }
  .product-info-block {
    min-width: 84vw;
    bottom: 24px;
  }
  .product-nav {
    opacity: 1;
    top: 40%;
  }
  .favourites {
    opacity: 1;
  }
  .labels {
    opacity: 1;
  }
  .rating-label {
    opacity: 1;
    bottom: 72px;
  }
  .card:hover .rating-label {
    bottom: 72px;
  }
}
.faq {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  padding: 100px 32px 100px;
}

.faq-body {
  max-width: 880px;
  width: 100%;
}

.faq-item {
  margin-bottom: 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(29, 29, 29, 0.1);
}
.faq-item.active .faq-question svg {
  transform: rotate(90deg);
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 8px 32px 8px 0;
}
.faq-item .faq-question {
  padding: 9px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.faq-item .faq-question svg {
  width: 24px;
  min-width: 24px;
  height: 24px;
  transition: ease 0.3s;
}
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 32px 0 0;
}

.faq-description {
  margin-bottom: 48px;
}

@media (max-width: 1200px) {
  .faq {
    flex-direction: column;
    gap: 32px;
    padding: 50px 16px;
  }
  .faq-description {
    margin-bottom: 32px;
  }
}
.block {
  max-width: 1384px;
  margin: 0 auto;
  padding: 100px 32px 150px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.block-left {
  position: relative;
  max-width: 520px;
  width: 100%;
  display: flex;
}

.block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: 100%;
  max-width: 450px;
  padding: 0 16px;
}
.block-inner .block-header {
  font-size: 32px;
  font-family: Medium;
}
.block-inner .text {
  margin: 16px auto 24px;
}
.block-inner .btn-white {
  margin: 0 auto;
}

.block-right {
  max-width: 740px;
  width: 100%;
}
.block-right .h2, .block-right .h3 {
  margin: 32px 0 16px;
  font-size: 34px;
}
.block-right .text {
  margin: 16px 0;
}

.block-right > :first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .block {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .block {
    padding: 50px 16px;
    gap: 16px;
  }
  .block-left {
    aspect-ratio: 340/390;
  }
  .block-inner a {
    font-size: 14px;
  }
  .block-right .h2, .block-right .h3 {
    margin: 24px 0 16px;
    font-size: 18px;
  }
}