@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 900;

  src:
    url('../fonts/Raleway-Black.woff2') format('woff2'),
    url('../fonts/Raleway-Black.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;

  src:
    url('../fonts/Raleway-Bold.woff2') format('woff2'),
    url('../fonts/Raleway-Bold.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;

  src:
    url('../fonts/Raleway-ExtraBold.woff2') format('woff2'),
    url('../fonts/Raleway-ExtraBold.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 200;

  src:
    url('../fonts/Raleway-ExtraLight.woff2') format('woff2'),
    url('../fonts/Raleway-ExtraLight.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;

  src:
    url('../fonts/Raleway-Light.woff2') format('woff2'),
    url('../fonts/Raleway-Light.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;

  src:
    url('../fonts/Raleway-Medium.woff2') format('woff2'),
    url('../fonts/Raleway-Medium.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;

  src:
    url('../fonts/Raleway-Regular.woff2') format('woff2'),
    url('../fonts/Raleway-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;

  src:
    url('../fonts/Raleway-SemiBold.woff2') format('woff2'),
    url('../fonts/Raleway-SemiBold.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100;

  src:
    url('../fonts/Raleway-Thin.woff2') format('woff2'),
    url('../fonts/Raleway-Thin.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;

  src:
    url('../fonts/Lato-Black.woff2') format('woff2'),
    url('../fonts/Lato-Black.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 900;

  src:
    url('../fonts/Lato-BlackItalic.woff2') format('woff2'),
    url('../fonts/Lato-BlackItalic.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;

  src:
    url('../fonts/Lato-Bold.woff2') format('woff2'),
    url('../fonts/Lato-Bold.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;

  src:
    url('../fonts/Lato-BoldItalic.woff2') format('woff2'),
    url('../fonts/Lato-BoldItalic.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: normal;

  src:
    url('../fonts/Lato-Italic.woff2') format('woff2'),
    url('../fonts/Lato-Italic.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;

  src:
    url('../fonts/Lato-Light.woff2') format('woff2'),
    url('../fonts/Lato-Light.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;

  src:
    url('../fonts/Lato-LightItalic.woff2') format('woff2'),
    url('../fonts/Lato-LightItalic.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 500;

  src:
    url('../fonts/Lato-Medium.woff2') format('woff2'),
    url('../fonts/Lato-Medium.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 500;

  src:
    url('../fonts/Lato-MediumItalic.woff2') format('woff2'),
    url('../fonts/Lato-MediumItalic.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: normal;

  src:
    url('../fonts/Lato-Regular.woff2') format('woff2'),
    url('../fonts/Lato-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 600;

  src:
    url('../fonts/Lato-Semibold.woff2') format('woff2'),
    url('../fonts/Lato-Semibold.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 600;

  src:
    url('../fonts/Lato-SemiboldItalic.woff2') format('woff2'),
    url('../fonts/Lato-SemiboldItalic.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 100;

  src:
    url('../fonts/Lato-Thin.woff2') format('woff2'),
    url('../fonts/Lato-Thin.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 100;

  src:
    url('../fonts/Lato-ThinItalic.woff2') format('woff2'),
    url('../fonts/Lato-ThinItalic.woff') format('woff');
  font-display: swap;
}

:root {
  --font-family-primary: 'Lato', 'Arial', sans-serif;
  --font-family-headings: 'Raleway', 'Arial', sans-serif;
  --white: #ffffff;
  --black: #000000;
  --blue-primary: #5b7fff;
  --green-primary: #08a826;
  --accent-color: #e74c3c;
  --grey: #bbbbbb;
}

html {
  box-sizing: border-box;

  height: 100%;
  scroll-behavior: smooth;

  font-size: 16px;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  display: flex;

  flex-direction: column;

  height: auto;
  min-height: 100%;

  padding: 0;
  margin: 0;

  font-family: var(--font-family-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: normal;

  line-height: normal;

  color: var(--black);

  background-color: var(--white);
}

.lock,
body.locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;

  display: block;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  white-space: nowrap;

  border: 0;

  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  clip-path: inset(100%);
}

.list-reset {
  padding: 0;
  margin: 0;

  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-headings);
}

.container {
  width: 100%;
  max-width: 1440px;

  padding-right: 20px;
  padding-left: 20px;
  margin: 0 auto;
}

.sections {
  display: flex;

  flex-direction: column;

  row-gap: 40px;
}

@media (max-width: 1024px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.page-wrapper {
  display: grid;

  flex-grow: 1;

  grid-template-rows: 1fr auto;
  grid-template-columns: 100%;

  height: auto;
  min-height: 100%;

  padding-top: 180px;
}

@media (max-width: 992px) {
  .page-wrapper {
    padding-top: 70px;
  }
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 8px 12px;
  margin: 0;

  font-size: 16px;
  font-weight: 400;

  color: var(--black);

  text-decoration: none;

  cursor: pointer;

  background-color: transparent;
  border: none;

  transition:
    background-color 0.3s,
    color 0.3s;
}

.btn:hover {
  color: var(--blue-primary);
}

.btn-blue {
  color: var(--white);

  background-color: var(--blue-primary);
  border-radius: 8px;
}

.btn-blue:hover {
  color: var(--white);

  background-color: #7a97ff;
}

.btn-green {
  color: var(--white);

  background-color: var(--green-primary);
  border-radius: 8px;
}

.btn-green.active {
  color: var(--white);

  pointer-events: none;

  background-color: #83b81d;
}

.btn-green:hover {
  color: var(--white);

  background-color: #83b81d;
}

.btn.disabled,
.btn:disabled {
  pointer-events: none;
  cursor: auto;
}

.burger-button {
  display: none;

  align-items: center;
  justify-content: center;

  cursor: pointer;

  background-color: transparent;
  border: none;
}

@media (max-width: 992px) {
  .burger-button {
    display: flex;
  }
}

.basket {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  line-height: 1;

  color: var(--black);

  text-decoration: none;
}

.basket__top {
  position: relative;
}

.basket__count {
  position: absolute;
  top: -8px;
  right: -12px;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  font-size: 10px;
  font-weight: 700;

  line-height: 20px;

  color: var(--white);

  background-color: var(--green-primary);
  border-radius: 50%;
}

.swiper-slide {
  cursor: grab;
}

.nt-swiper-pagination:not(.swiper-pagination-lock) {
  display: flex;

  align-items: center;
  justify-content: center;

  margin-top: 20px;
}

.nt-swiper-pagination .swiper-pagination-bullet {
  width: 15px;
  height: 5px;

  background-color: var(--blue-primary);
  border-radius: 0;

  opacity: 0.3;

  transition:
    opacity 0.3s,
    width 0.3s;
}

.nt-swiper-pagination .swiper-pagination-bullet-active {
  width: 40px;

  opacity: 1;
}

.carousel-view-primary {
  position: relative;
}

.carousel-view-primary .swiper {
  width: 100%;
  height: 100%;
}

.swiper-nav__item {
  position: absolute;
  top: 0;
  z-index: 3;

  display: inline-flex;

  flex-shrink: 0;

  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;

  cursor: pointer;

  background-color: rgb(0 0 0 / 10%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 8px rgb(0 0 0 / 20%);
}

.swiper-nav__item:disabled {
  cursor: auto;

  background-color: var(--white);
}

.swiper-nav__icon {
  width: 22px;

  fill: var(--white);
}

.swiper-nav__item:disabled .swiper-nav__icon {
  opacity: 0.3;
}

.swiper-nav__item.swiper-button-lock {
  display: none;
}

.swiper-prev {
  top: 25%;
  left: -10px;
}

.swiper-next {
  top: 25%;
  right: -10px;
}

.input-qty {
  display: flex;

  align-items: center;
  justify-content: space-between;

  border: 1px solid var(--green-primary);
  border-radius: 10px;
}

.input-qty__control {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 28px;
  height: 100%;

  padding-top: 8px;
  padding-right: 0;
  padding-bottom: 6px;
  padding-left: 0;

  font-size: 20px;
  font-weight: 700;

  color: var(--green-primary);

  cursor: pointer;

  background-color: transparent;
  border: none;
  border-radius: 10px;

  transition: color 0.3s;
}

.input-qty__control:hover {
  color: var(--black);
}

.input-qty__input {
  width: 50px;

  padding-top: 4px;
  padding-right: 0;
  padding-bottom: 4px;
  padding-left: 0;

  text-align: center;

  outline: none;

  border: none;
}

/* Убрать стрелки для Chrome, Safari, Edge, Opera */

.input-qty__input::-webkit-outer-spin-button,
.input-qty__input::-webkit-inner-spin-button {
  margin: 0;

  appearance: none;
  appearance: none;
}

/* Убрать стрелки для Firefox */

.input-qty__input[type='number'] {
  appearance: textfield;
  appearance: textfield;
}

/* SHARED BLOCKS */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;

  display: block;

  width: 100%;

  padding-bottom: 20px;

  background-color: var(--white);

  transition: transform 0.3s;
}

.header-top {
  position: relative;

  display: block;

  padding: 14px 0;

  border-bottom: 2px solid #f2f2f2;

  transition: transform 0.3s;
}

.header-nav__list {
  display: flex;

  flex-wrap: wrap;

  gap: 20px;
}

.header-nav__item {
  font-size: 14px;

  color: var(--black);
}

.header-nav__item a {
  display: inline-block;

  font: inherit;

  color: inherit;

  text-decoration: none;

  transition:
    color 0.3s,
    border-color 0.3s;
}

.header-nav__item a:hover {
  color: var(--blue-primary);

  border-color: var(--blue-primary);
}

.header-nav__item.current {
  font-weight: 700;
}

.header-middle {
  position: relative;
  z-index: 3;

  padding-top: 15px;
  padding-bottom: 5px;

  background-color: var(--white);

  transition: transform 0.3s;
}

.header-middle__wrapper {
  display: flex;

  column-gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.header-middle__right {
  display: flex;

  flex: 1 1 0;

  column-gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  max-width: 210px;
}

.header__logo img {
  display: block;
}

.header-contacts {
  display: flex;

  flex-direction: column;

  align-items: center;
}

.header-contacts__item {
  display: flex;

  column-gap: 8px;
  align-items: center;

  color: var(--black);

  text-decoration: none;

  transition: color 0.3s;
}

.header-contacts__phone {
  font-weight: 700;
}

.header-contacts__email {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-contacts__item:hover {
  color: var(--blue-primary);
}

.header__search {
  display: flex;

  flex: 1 1 0;

  justify-content: end;
}

.search-form {
  width: 100%;
}

.search-form__wrapper {
  display: flex;

  column-gap: 14px;
  justify-content: end;

  width: 100%;
}

.search-input-wrapper {
  position: relative;

  flex: 1 1 0;
}

.search-form-input {
  width: 100%;
  height: 47px;

  padding-top: 6px;
  padding-right: 14px;
  padding-bottom: 6px;
  padding-left: 14px;

  font-size: 18px;

  background-color: var(--white);
  border: 1px solid #bebebe;
  border-radius: 8px;
}

.search-form-input:focus-visible {
  outline: none;

  border-color: var(--black);
}

.search-form__submit {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;

  display: flex;

  align-items: center;

  height: 100%;

  padding: 0 16px 1px;

  line-height: 0;

  background: transparent;
  border: none;
  border-radius: 0 8px 8px 0;
}

.search-form-input:focus-visible + .search-form__submit {
  color: var(--white);

  background-color: var(--blue-primary);
}

.search-form-assistance {
  display: none;
}

.header__search-toggle {
  display: none;
}

.header-bottom {
  position: relative;

  padding-top: 15px;

  transition: transform 0.3s;
}

.header-bottom-nav {
  display: flex;

  column-gap: 16px;
  align-items: center;
}

.header-bottom-nav__link {
  display: inline-flex;

  column-gap: 8px;
  align-items: center;

  padding: 8px;

  font-size: 16px;
  font-weight: 700;

  text-decoration: none;
}

.header.scroll-down {
  transform: translateY(-100%);
}

.header.scroll-up {
  transform: translateY(0);
}

.header.scrolled .header-top {
  position: absolute;
  top: 0;

  transform: translateY(50%);
}

.header.scrolled .header-bottom {
  position: absolute;
  top: 0;

  transform: translateY(-200%);
}

@media (max-width: 992px) {
  .header-top {
    display: none;
  }

  .header-bottom {
    display: none;
  }

  .header-middle {
    padding-bottom: 15px;

    border-bottom: 2px solid #f2f2f2;
  }

  .header-middle__wrapper {
    column-gap: 20px;
  }

  .header-contacts__item {
    font-size: 14px;
    font-weight: 600;
  }

  .header-contacts__item svg {
    width: 24px;
    height: 24px;
  }

  .search-form-input {
    height: 46px;
  }

  .search-form__submit {
    padding: 10px 12px;

    border-radius: 15px;
  }

  .header-basket svg {
    width: 32px;
    height: 32px;
  }

  .basket__ttl {
    display: none;
  }
}

@media (max-width: 860px) {
  .header__logo {
    flex: 1 1 0;
  }

  .header__search {
    min-width: 240px;
  }

  .header-contacts {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-middle__right {
    justify-content: end;
  }

  .header__search {
    display: none;
  }

  .header__search-toggle {
    display: inline-flex;
  }
}

@media (max-width: 564px) {
  .header {
    padding-bottom: 0;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;

  width: 100%;
  height: 100%;

  padding-top: 20px;

  overflow: hidden;

  font-size: 12px;

  background-color: var(--white);

  transform: translateX(-200%);

  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__controls {
  display: flex;

  align-items: center;
}

.mobile-menu__close-btn {
  padding: 8px;
  margin-left: auto;
}

.mobile-menu__back-btn {
  column-gap: 4px;
}

.mobile-menu__top {
  display: flex;

  column-gap: 24px;
  align-items: center;

  margin-top: 20px;
  margin-bottom: 20px;
}

.mobile-menu-contacts {
  display: flex;

  flex-direction: column;

  row-gap: 8px;
}

.mobile-menu-contacts__item {
  display: flex;

  column-gap: 4px;
  align-items: center;

  font-size: 14px;

  color: var(--black);

  text-decoration: none;
}

.mobile-menu-basket {
  margin-left: auto;
}

.mobile-menu-basket svg {
  width: 42px;
  height: 42px;
}

.mobile-search-open-btn {
  padding: 8px;
}

.mobile-menu-search {
  position: absolute;
  left: 0;

  display: flex;

  flex-direction: column;

  row-gap: 14px;
  align-items: start;
  justify-content: center;

  width: 100%;
  height: 100px;

  padding-right: 16px;
  padding-left: 16px;

  background-color: var(--white);

  transform: translateX(100%);

  transition: transform 0.3s;
}

.mobile-menu-search.open {
  transform: translateX(0);
}

.mobile-search-form {
  width: 100%;
}

.mobile-search-form__wrapper {
  display: flex;

  column-gap: 20px;
  align-items: center;

  width: 100%;
}

.mobile-search-input-wrapper,
.mobile-search-form-input {
  width: 100%;
}

.mobile-search-form-input {
  width: 100%;

  padding: 8px 12px;

  font-size: 16px;

  background-color: var(--white);
  border: 1px solid #bebebe;
  border-radius: 15px;
}

.mobile-search-form__submit {
  padding: 6px;
}

.mobile-search-form-assistance {
  display: none;
}

.mobile-menu-nav__list {
  display: flex;

  flex-direction: column;

  row-gap: 12px;
}

.mobile-menu-link {
  font-size: 18px;

  color: var(--black);

  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer {
  padding-bottom: 38px;
  margin-top: 40px;

  box-shadow: 0 0 10px rgb(0 0 0 / 20%);
}

.footer p {
  margin: 0;
}

.footer__wrapper {
  display: flex;

  column-gap: 40px;
}

.footer__left {
  display: flex;

  column-gap: 16px;
}

.footer__categories {
  display: flex;

  column-gap: 16px;
}

.footer-nav__list {
  position: relative;

  display: flex;

  flex-direction: column;

  row-gap: 6px;

  padding-left: 16px;
}

.footer-nav__list::before {
  position: absolute;
  top: 0;
  left: 0;

  display: block;

  width: 4px;
  height: 100%;

  content: '';

  background-color: var(--blue-primary);
}

.footer-nav__item a {
  font: inherit;

  color: inherit;

  text-decoration: none;
}

.footer__right-wrapper {
  display: flex;

  flex-direction: column;

  row-gap: 12px;
}

.footer-contacts {
  display: flex;

  flex-direction: column;

  row-gap: 8px;
}

.footer-contacts__item {
  display: flex;

  column-gap: 8px;
  align-items: center;
}

.footer-socials {
  display: flex;

  gap: 12px;
  align-items: center;
}

.footer-socials__link {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 8px;

  background-color: #f4f4f4;
  border-radius: 8px;
}

.footer-socials__link svg {
  width: 100%;
  height: 100%;

  color: var(--blue-primary);

  transition: opacity 0.3s;
}

.footer-socials__link:hover svg {
  opacity: 0.5;
}

@media (max-width: 992px) {
  .footer__left,
  .footer__categories,
  .footer__wrapper {
    flex-wrap: wrap;
  }

  .footer-nav {
    max-width: 300px;
  }
}

.breadcrumbs {
  padding-bottom: 12px;

  overflow-x: auto;
}

.breadcrumbs__list {
  display: flex;

  align-items: center;
}

.breadcrumbs__item {
  white-space: nowrap;
}

.breadcrumbs__item:not(:last-child)::after {
  display: inline-block;

  margin-right: 8px;
  margin-left: 8px;

  content: '\2014';
}

.breadcrumbs__item a,
.breadcrumbs__item span {
  color: var(--black);

  text-decoration: none;

  opacity: 0.6;

  transition: opacity 0.3s;
}

.breadcrumbs__item a:hover {
  opacity: 1;
}

.tabs__pills {
  display: flex;

  column-gap: 8px;
  align-items: center;

  padding-bottom: 10px;
  margin-bottom: 10px;

  overflow-y: auto;
}

.tabs__pill {
  padding-top: 12px;
  padding-right: 18px;
  padding-bottom: 12px;
  padding-left: 18px;

  white-space: nowrap;
}

.tabs__panel {
  display: none;
}

.tabs__panel.active {
  display: block;
}

.main-banner__slide a {
  text-decoration: none;
}

.main-banner__slide img {
  display: block;

  aspect-ratio: 1960 / 440;

  object-fit: cover;
}

.product-card {
  display: flex;

  flex-direction: column;

  row-gap: 16px;
}

.product-card__ttl {
  margin: 0;
  margin-bottom: 8px;
}

.product-card__ttl a {
  font-weight: 400;

  color: var(--black);

  text-decoration: underline;
  text-underline-offset: 4px;

  transition: color 0.3s;
}

.product-card__compare {
  font-size: 14px;

  color: var(--black);

  white-space: nowrap;

  text-underline-offset: 2px;

  opacity: 0.6;

  transition: opacity 0.3s;
}

.product-card__ttl a:hover {
  color: var(--grey);
}

.product-card__compare:hover {
  opacity: 1;
}

.product-card__brand {
  font-style: italic;
}

.product-card__img-wrapper {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  text-decoration: none;

  background-color: var(--white);
  box-shadow: 0 0 0 transparent;

  transition: box-shadow 0.3s;
}

.product-card__img-wrapper:hover {
  box-shadow: 0 0 10px var(--grey);
}

.product-card__img {
  display: block;

  max-height: 200px;
}

.product-card__controls {
  display: grid;

  grid-template-columns: 1fr 1fr;

  row-gap: 10px;
  column-gap: 20px;
}

.new-products__header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding-top: 12px;
  padding-right: 16px;
  padding-bottom: 12px;
  padding-left: 16px;
  margin-bottom: 24px;

  color: var(--white);

  background-color: var(--blue-primary);
  border-radius: 12px;
}

.new-products__header h2,
.new-products__header h3 {
  margin: 0;
}

.new-products__header a {
  color: inherit;

  text-underline-offset: 4px;
}

.new-products .swiper-slide {
  padding: 10px;
}

.main-categories {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));

  gap: 32px;
}

.main-categories__group {
  display: flex;

  flex-direction: column;

  row-gap: 12px;

  padding: 10px;

  border: 1px solid var(--blue-primary);
  border-radius: 14px;
}

.main-categories__ttl {
  padding: 4px 10px;
  margin: 0;

  color: var(--white);

  text-align: center;

  background-color: var(--blue-primary);
  border-radius: 8px;
}

.main-categories__list {
  display: flex;

  flex-direction: column;

  row-gap: 12px;
}

.main-categories__link {
  color: var(--black);

  text-decoration: none;

  transition: color 0.3s;
}

.main-categories__link:hover {
  color: var(--grey);
}

.main-categories__show-more-btn {
  display: inline-block;

  align-self: flex-start;

  padding: 0;
  margin: 0;

  text-decoration: underline;
  text-underline-offset: 4px;

  cursor: pointer;

  background-color: transparent;
  border: none;
}

.main-categories__show-more-btn:hover {
  color: var(--grey);
}

@media (max-width: 420px) {
  .main-categories {
    display: flex;

    flex-direction: column;
  }
}

/* PAGES BLOCKS */

.catalog-wrapper {
  display: grid;

  grid-template-rows: auto 1fr;
  grid-template-columns: 312px 1fr;

  column-gap: 24px;
}

.sidebar__top {
  display: none;
}

.product-list__items {
  display: flex;

  flex-direction: column;

  row-gap: 20px;
}

.grid .product-list__items {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 32px;
}

.table .product-list__items li:not(:last-child) {
  padding-bottom: 20px;

  border-bottom: 1px solid var(--grey);
}

.product-list__header {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 20px;

  font-size: 18px;
  font-weight: 700;

  background-color: #efefef;
  border-radius: 10px;
}

.table .product-card {
  min-height: 120px;
}

.table .product-card,
.product-list__header {
  display: grid;

  grid-template-columns: 120px 3fr 1fr 2fr;

  column-gap: 20px;
}

.grid .product-list__header {
  display: none;
}

.table .product-card__img {
  display: block;

  max-height: 120px;
}

.grid .product-list__col:has(.product-card__code) {
  display: none;
}

@media (max-width: 1100px) {
  .catalog-wrapper {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 10;

    width: 100%;
    height: 100%;

    padding-top: 20px;
    padding-bottom: 40px;

    background-color: rgb(0 0 0 / 40%);

    transform: translateX(0);

    transition: transform 0.1s;
  }

  .sidebar__top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
  }

  .sidebar.open {
    transform: translateX(100%);
  }

  .sidebar::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

    display: block;

    width: 100%;
    max-width: 360px;
    height: 100%;

    content: '';

    background-color: var(--white);
  }

  .sidebar__wrapper {
    max-width: 360px;
    height: 100%;

    padding-right: 16px;
    padding-left: 16px;

    overflow-y: auto;

    transform: translateX(-100%);

    transition: transform 0.3s;
  }

  .sidebar.open .sidebar__wrapper {
    transform: translateX(0);
  }

  .sidebar__ttl {
    display: inline-block;

    font-size: 18px;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .grid .product-list__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .grid .product-list__items {
    grid-template-columns: 1fr;
  }
}

.table-control {
  display: flex;

  flex-wrap: wrap;

  gap: 20px;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;
}

.table-control__sort {
  display: flex;

  flex-wrap: wrap;

  row-gap: 10px;
  column-gap: 20px;
}

.table-control__sort-types {
  display: flex;

  column-gap: 20px;
}

.table-control__sort-item a {
  color: var(--black);

  text-underline-offset: 4px;

  transition: color 0.3s;
}

.table-control__sort-item.is-active a {
  font-weight: 700;

  text-decoration: none;
}

.table-control__sort-item a:hover {
  color: var(--blue-primary);
}

.table-control__right {
  display: flex;

  column-gap: 20px;
  align-items: center;
}

.table-control__view {
  display: flex;

  column-gap: 8px;
  align-items: center;
}

.filters-toggle {
  display: none;

  column-gap: 8px;
  align-items: center;
}

.filters-toggle__btn,
.view-trigger {
  display: flex;

  align-items: center;
  justify-content: center;

  padding: 4px;
  margin: 0;

  cursor: pointer;

  background-color: transparent;
  border: 1px solid var(--green-primary);
  border-radius: 4px;

  transition: color 0.3s;
}

.filters-toggle__btn:hover,
.view-trigger:hover {
  color: var(--green-primary);
}

.view-trigger.is-active {
  color: var(--green-primary);

  pointer-events: none;
}

@media (max-width: 1100px) {
  .filters-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .table-control__view {
    display: none;
  }
}

.sidebar-categories {
  padding-top: 16px;
  padding-right: 10px;
  padding-bottom: 16px;
  padding-left: 10px;
  margin-top: 0;
  margin-bottom: 10px;

  background: #efefef;
  border-radius: 15px;
}

.sidebar-categories__header {
  display: inline-block;

  margin-bottom: 10px;

  font-family: var(--font-family-headings);
  font-weight: 700;

  color: var(--green-primary);
}

.sidebar-categories-list {
  display: flex;

  flex-direction: column;

  row-gap: 8px;
}

.sidebar-categories-item a {
  color: var(--black);

  text-decoration: none;

  transition: color 0.3s;
}

.sidebar-categories-item a:hover {
  color: var(--blue-primary);
}

.sidebar-show-more-btn {
  padding: 0;
  margin-top: 16px;

  color: var(--green-primary);

  text-decoration: underline;
  text-underline-offset: 4px;

  cursor: pointer;

  background-color: transparent;
  border: none;

  transition: color 0.3s;
}

.sidebar-show-more-btn:hover {
  color: var(--blue-primary);
}

.filter__wrapper {
  display: flex;

  flex-direction: column;

  row-gap: 36px;

  padding: 16px 10px;

  border: 1px solid var(--blue-primary);
  border-radius: 10px;
}

.filter__controls {
  display: flex;

  flex-direction: column;

  row-gap: 16px;
}

.filter-search {
  position: relative;
}

.filter-search__input {
  width: 100%;

  padding-top: 8px;
  padding-right: 32px;
  padding-bottom: 8px;
  padding-left: 8px;

  border: 1px solid #bebebe;
  border-radius: 6px;
}

.filter-search__btn {
  position: absolute;
  top: 50%;
  right: 8px;

  transform: translateY(-50%);
}

.filter-group__ttl {
  display: inline-block;

  margin-bottom: 12px;

  font-family: var(--font-family-headings);
  font-weight: 700;
}

.checkbox-list {
  display: flex;

  flex-direction: column;

  row-gap: 8px;
}

.checkbox-wrapper {
  display: flex;

  align-items: center;
}

.checkbox-input {
  display: none;
}

.checkbox-label {
  position: relative;

  display: flex;

  column-gap: 8px;
  align-items: center;

  cursor: pointer;

  transition: color 0.3s;
}

.checkbox-label:hover {
  color: var(--blue-primary);
}

.checkbox-label::before {
  display: block;

  width: 18px;
  height: 18px;

  padding: 4px;

  content: '';

  border: 1px solid var(--blue-primary);
}

.checkbox-label::after {
  position: absolute;
  top: 50%;
  left: 4px;

  display: block;

  width: 10px;
  height: 10px;

  content: '';

  background-color: transparent;

  transform: translateY(-50%);

  transition: background-color 0.3s;
}

.checkbox-input:checked + .checkbox-label::after {
  background-color: var(--blue-primary);
}

.filter__reset-btn {
  padding: 0;
  margin: 0;

  color: var(--green-primary);

  text-decoration: underline;
  text-underline-offset: 4px;

  cursor: pointer;

  background-color: transparent;
  border: none;

  transition: color 0.3s;
}

.filter__reset-btn:hover {
  color: var(--blue-primary);
}

.product-detail {
  display: grid;

  grid-template-columns: calc(30% - 20px) calc(70% - 20px);

  column-gap: 40px;

  margin-bottom: 40px;
}

.product-purpose {
  display: flex;

  flex-wrap: wrap;

  grid-column: span 2;

  column-gap: 8px;
  align-items: center;

  margin-bottom: 20px;
}

.product-purpose__list {
  display: flex;

  flex-wrap: wrap;

  column-gap: 24px;
}

.product-purpose__item {
  display: flex;

  column-gap: 8px;
  align-items: center;

  font-weight: 700;
}

.product-purpose__img svg,
.product-purpose__img img {
  max-width: 32px;
}

.product-detail__right {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  column-gap: 40px;
}

.product-detail__info {
  display: flex;

  flex-direction: column;

  row-gap: 24px;
}

.product-characteristics {
  display: flex;

  flex-direction: column;

  row-gap: 8px;

  margin: 0;
}

.product-characteristics__group {
  display: grid;

  grid-template-columns: 1fr 1fr;

  column-gap: 12px;
}

.product-characteristics__group dd {
  margin: 0;

  font-weight: 700;
}

.product-characteristics__group a {
  color: var(--blue-primary);
}

.product-accent-info {
  display: flex;

  flex-direction: column;

  row-gap: 8px;
}

.product-accent-info__item {
  display: flex;

  column-gap: 8px;
  align-items: center;
}

.product-accent-info__img {
  width: 24px;
  height: 24px;
}

.product-accent-info__item a {
  color: var(--blue-primary);
}

.product-brand {
  display: flex;

  column-gap: 8px;
  align-items: center;
}

.product-brand img {
  max-width: 80px;

  filter: grayscale(100);
}

.product-brand a {
  color: var(--black);
}

.item-order {
  display: grid;

  grid-template-columns: 2fr 1fr;

  column-gap: 24px;
}

.item-order__left {
  display: flex;

  flex-direction: column;

  row-gap: 16px;
}

.item-order__right {
  display: flex;

  flex-direction: column;

  row-gap: 16px;
}

.item-order__price-min {
  font-size: 12px;

  color: var(--grey);
}

.item-order__caution {
  padding: 10px;

  font-size: 14px;

  background-color: #fafafa;
  border: solid 1px #f2f2f2;
}

.item-order__caution a {
  color: inherit;
}

.item-order__compare {
  display: flex;

  flex-direction: column;

  row-gap: 4px;
}

.item-order__compare a {
  font-size: 14px;

  color: var(--black);

  text-underline-offset: 2px;

  opacity: 0.6;

  transition: opacity 0.3s;
}

.item-order__compare a:hover {
  opacity: 1;
}

@media (max-width: 992px) {
  .product-detail {
    display: flex;

    flex-direction: column;

    row-gap: 40px;
  }
}

@media (max-width: 640px) {
  .product-detail__right {
    display: flex;

    flex-direction: column;

    row-gap: 32px;
  }
}

@media (max-width: 420px) {
  .item-order {
    display: flex;

    flex-direction: column;

    row-gap: 32px;
  }
}

.product__swiper {
  padding-top: 14px;
  padding-right: 18px;
  padding-bottom: 14px;
  padding-left: 18px;
  margin-bottom: 20px;
}

.product__swiper-slide {
  display: flex;

  align-items: center;
  justify-content: center;

  height: auto;

  cursor: grab;
}

.product__swiper-slide img {
  max-height: 300px;
}

.product__thumbs-swiper-slide {
  cursor: pointer;
}

.product__thumbs-swiper-slide img {
  max-width: 80px;
  max-height: 80px;
}

.product__gallery-pagination .swiper-pagination-bullet {
  width: 12px;
}

@media (max-width: 992px) {
  .product__thumbs-swiper {
    max-width: 400px;
  }
}

@media (max-width: 620px) {
  .product__thumbs-swiper {
    display: none;
  }
}
