@font-face {
  font-family: "Prosto One";
  src: url(/fonts/ProstoOne-Regular.ttf);
}

@font-face {
  font-family: "Roboto";
  src: url(/fonts/Roboto-VariableFont_wdth\,wght.ttf);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto";
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  user-select: none;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

h2 {
  font-family: "Prosto One";
  color: #1F1F1F;
  font-weight: normal;
  font-size: 2rem;
}
html {
  font-size: clamp(12px, 1.2vw, 16px);
}
body {
  line-height: 1.4;
}
img,
video {
  max-width: 100%;
  height: auto;
}
input,
textarea,
select,
button {
  font-size: 1rem;
}

:root {
  --marquee-width: 80vw;
  --marquee-height: 20vh;
  --marquee-elements-displayed: 5;
  --marquee-element-width: calc(
    var(--marquee-width) / var(--marquee-elements-displayed)
  );
  --marquee-animation-duration: calc(var(--marquee-elements) * 3s);
}

.marquee {
  max-width: var(--marquee-width);
  height: var(--marquee-height);
  overflow: hidden;
  position: relative;
  margin: auto;
}

.marquee-content {
  list-style: none;
  height: 100%;
  display: flex;
  animation: scrolling var(--marquee-animation-duration) linear infinite;
  -webkit-animation: scrolling var(--marquee-animation-duration) linear infinite;
  gap: 4vw;
}
.marquee-content:hover {
  animation-play-state: paused;
}
@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-1 * var(--marquee-element-width) * var(--marquee-elements))
    );
  }
}

.marquee-content li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: var(--marquee-element-width);
  max-height: 100%;
  white-space: nowrap;
}

.marquee-content li img {
  width: 100%;
  /* height: 100%; */
}

@media (max-width: 600px) {
  html {
    font-size: 12px;
  }
  :root {
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 3;
  }
  .marquee:before,
  .marquee:after {
    width: 5rem;
  }
}

header {
  color: #fff;

  .head1_back {
    background-color: #1F1F1F;

    .head1 {
      max-width: 80vw;
      height: 5vh;
      margin: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .delivery,
      .phone {
        display: flex;
        align-items: center;
        gap: 0.5vw;
      }

      .social {
        display: flex;
        align-items: center;
        gap: 1vw;
      }

      nav {
        display: flex;
        gap: 2vw;

        a:after {
          display: block;
          content: "";
          height: 2px;
          width: 0%;
          background-color: #fff;
          transition: width 0.6s ease-in-out;
          -webkit-transition: width 0.6s ease-in-out;
          -moz-transition: width 0.6s ease-in-out;
          -ms-transition: width 0.6s ease-in-out;
          -o-transition: width 0.6s ease-in-out;
        }

        a:hover:after {
          width: 100%;
        }
      }
    }
  }

  .head2_back {
    border: 3px solid rgba(235, 235, 235, 1);

    .head2 {
      padding: 1vh 0;
      max-width: 80vw;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-height: 9vh;
      .catalog {
        height: 6vh;
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        gap: 2vw;
        background-color: #1F1F1F;
        padding: 0 2vw;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;
      }

      form {
        display: flex;
        align-items: center;
        height: 6vh;
        button {
          font-size: 1.1rem;
          height: 6vh;
          background-color: #1F1F1F;
          padding: 0 2vw;
          color: #fff;
          border: none;
          border-radius: 0 10px 10px 0;
        }

        input {
          color: rgba(59, 59, 59, 1);
          border: 3px solid rgba(235, 235, 235, 1);
          width: 19vw;
          height: 6vh;
          padding: 0 2vw;
          border-radius: 10px 0 0 10px;
        }

        button:hover {
          background-color: #900000;
          transition: all ease-in-out 0.5s;
        }
      }

      nav {
        display: flex;
        align-items: center;
        gap: 1vw;
      }
    }
  }
}

main {
  color: rgba(59, 59, 59, 1);
  max-width: 80vw;
  margin: auto;
  .banner {
    padding: 5vh 0;

    .fade {
      animation-name: fade;
      animation-duration: 1.5s;
    }

    .slide {
      /* background-color: rgba(235, 235, 235, 1); */
      border: 3px solid rgba(235, 235, 235, 1);
      border-radius: 10px;

      .slide_content {
        height: 55vh;
        display: flex;
        align-items: center;

        img {
          height: 55vh;
        }

        .text_slide {
          text-align: center;

          h1 {
            font-family: "Prosto One";
            color: #1F1F1F;
            font-weight: normal;
            font-size: 3rem;
          }

          p {
            font-size: 1.5rem;
            padding: 6vh 0;
          }

          button {
            background-color: #1F1F1F;
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 1.2rem;
            padding: 2vh 2vw;
          }

          button:hover {
            background-color: #900000;
            transition: all ease-in-out 0.5s;
          }
        }
      }
    }
  }

  .categories {
    padding: 4vh 0;
    .categories_card {
      display: flex;
      justify-content: space-between;
      padding: 2.3vh 0;

      .category_text {
        h3 {
          font-size: 1.5rem;
          font-weight: normal;
          color: #900000;
          padding-bottom: 2vh;
        }

        p {
          font-size: 1.2rem;
        }
      }

      .category {
        /* background-color: rgba(235, 235, 235, 1); */
        border: 3px solid rgba(235, 235, 235, 1);
        width: 38vw;
        display: flex;
        padding: 4vh;
        max-height: 50vh;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;
      }

      .category-link {
        color: inherit;
        text-decoration: none;
        cursor: pointer;
        transition: border-color 0.2s ease, transform 0.2s ease,
          box-shadow 0.2s ease;
      }

      .category-link:hover {
        border-color: rgba(144, 0, 0, 0.35);
        box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
        transform: translateY(-2px);
      }

      .category2 {
        max-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .category3 {
          max-height: 22vh;
          /* margin-bottom: 5vh; */
          padding: 4vh;
          display: flex;
          /* background-color: rgba(235, 235, 235, 1); */
          border: 3px solid rgba(235, 235, 235, 1);
          width: 40vw;
          border-radius: 10px;
          -webkit-border-radius: 10px;
          -moz-border-radius: 10px;
          -ms-border-radius: 10px;
          -o-border-radius: 10px;
        }
      }
    }
  }

  .hits {
    padding: 4vh 0;

    .tovar_cards {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      padding-top: 3vh;
      gap: 2vw;

      .tovar_card {
        border: 2px solid inherit;
        padding: 2vh;
        width: 18vw;
        height: 60vh;
        position: relative;
        display: flex;
        flex-direction: column;
        text-align: center;
        /* background-color: rgba(230, 230, 230, 1); */
        border: 3px solid rgba(235, 235, 235, 1);
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;

        img {
          padding-bottom: 3vh;
          width: 15vw;
          height: 30vh;
        }
        .tovar_card_text {
          p {
            font-size: 1.1rem;
            height: 10vh;
          }

          .cena {
            font-size: 1.2rem;
            font-weight: bold;
            padding: 2vh;
            height: 8vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
          }

          .old-price {
            height: auto;
            font-size: 0.92rem;
            color: rgba(59, 59, 59, 0.55);
            text-decoration: line-through;
            padding: 0;
          }
        }

        button {
          background-color: #1F1F1F;
          color: #fff;
          border: none;
          border-radius: 10px;
          -webkit-border-radius: 10px;
          -moz-border-radius: 10px;
          -ms-border-radius: 10px;
          -o-border-radius: 10px;
          font-size: 1.2rem;
          padding: 1.5vh 3vw;
          margin-top: auto;
        }

        .favorite-btn {
          position: absolute;
          top: 1.4vh;
          right: 1.2vh;
          width: 42px;
          height: 42px;
          margin: 0;
          padding: 0;
          border: 2px solid rgba(235, 235, 235, 1);
          border-radius: 50%;
          background: #fff url("/img/heart.svg") center / 21px 21px no-repeat;
          box-shadow: 0 8px 18px rgba(31, 31, 31, 0.12);
          z-index: 2;
        }

        .favorite-btn.active {
          background-image: url("/img/heart_red.svg");
          border-color: rgba(144, 0, 0, 0.28);
        }

        .favorite-btn:hover {
          background-color: #fff;
          transform: scale(1.06);
        }

        .discount-badge {
          position: absolute;
          top: 1.4vh;
          left: 1.2vh;
          border-radius: 999px;
          background: #900000;
          color: #fff;
          font-size: 0.9rem;
          font-weight: 700;
          padding: 6px 9px;
          z-index: 2;
        }
      }

      .tovar_card:hover {
        /* background-color: rgb(137, 1, 1); */
        /* color: #fff; */
        border: 3px solid #1F1F1F;
        transform: scale(110%, 110%);
        transition: all ease-in-out 1s;

        /* button {
          background-color: #900000;
          
          border: 2px solid #fff;
        } */

        button:hover {
          background-color: #900000;
          transition: all ease-in-out 0.5s;
          -webkit-transition: all ease-in-out 0.5s;
          -moz-transition: all ease-in-out 0.5s;
          -ms-transition: all ease-in-out 0.5s;
          -o-transition: all ease-in-out 0.5s;
        }

        .favorite-btn,
        .favorite-btn:hover {
          background-color: #fff;
          transform: scale(1.06);
        }
      }
    }
  }

  .loves {
    margin: 8vh 0;

    h2 {
      padding-bottom: 3vh;
    }
  }

  .market {
    padding: 4vh 0;

    h2 {
      padding-bottom: 4vh;
    }

    .market_cards {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;

      .market_card {
        height: 20vh;
        img {
          width: 20vw;
          height: 20vh;
        }
      }

      .market_card:hover {
        transform: scale(110%, 110%);

       
      }
    }
  }
}

footer {
  .foot1_back {
    background-color: #1F1F1F;

    .foot1 {
      max-width: 80vw;
      margin: auto;
      color: #fff;
      display: flex;
      justify-content: space-between;
      padding: 4vh 0;

      .info1 {
        h3 {
          font-size: 1.5rem;
          padding-bottom: 2vh;
        }
        p {
          font-size: 1.1rem;
        }

        .number {
          font-size: 1.5rem;
          padding: 2vh 0;
        }
      }

      .info2 {
        display: flex;
        flex-direction: column;
        h4 {
          font-size: 1.3rem;
        }

        a {
          font-size: 1.1rem;
          padding-bottom: 1vh;
        }

        a:after {
          display: block;
          content: "";
          height: 2px;
          width: 0%;
          background-color: #fff;
          transition: width 0.6s ease-in-out;
          -webkit-transition: width 0.6s ease-in-out;
          -moz-transition: width 0.6s ease-in-out;
          -ms-transition: width 0.6s ease-in-out;
          -o-transition: width 0.6s ease-in-out;
        }

        a:hover:after {
          width: 100%;
        }

        .line {
          background-color: #fff;
          width: 13vw;
          height: 2px;
          margin-bottom: 2vh;
        }
      }
    }
  }

  .foot2 {
    text-align: center;
    padding: 2vh;
    color: #1F1F1F;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1240px) {
  header .head2_back .head2 .search input {
    width: 26vw;
  }
  main .hits .tovar_cards .tovar_card {
    width: 22vw;
  }
}
@media (max-width: 1040px) {
  header .head2_back .head2 .search input {
    width: 24vw;
  }
  main .categories .categories_card {
    flex-direction: column;
    gap: 2vh;
  }
  main .categories .category {
    width: 100%;
    height: auto;
  }
  main .categories .category2 .category3 {
    width: 100%;
  }
  main .hits .tovar_cards {
    justify-content: center;
    gap: 2vw;
  }
  main .hits .tovar_cards .tovar_card {
    width: 28vw;
    height: auto;
  }
}
@media (max-width: 840px) {
  header .head1_back {
    display: none;
  }
  header .head2_back .head2 .search {
    display: none;
  }
  header .head2_back .head2 {
    flex-wrap: wrap;
    gap: 10px;
  }
  header .head2_back .head2 .logo {
    height: 48px;
  }
  header .head2_back .head2 nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4vw;
  }
  main .hits .tovar_cards .tovar_card img {
    width: 60vw;
    height: auto;
  }
  main .hits .tovar_cards .tovar_card {
    width: 60vw;
  }
  main .market .market_cards {
    gap: 3vh;
  }
  main .market .market_cards .market_card {
    width: 44vw;
  }
}
@media (max-width: 640px) {
  main .banner .slide .slide_content {
    flex-direction: column;
    height: auto;
    padding: 4vh 0;
  }
  main .banner .slide .slide_content img {
    height: 32vh;
  }
  main .banner .slide .text_slide {
    padding: 4vh 6vw;
  }
  main .categories .categories_card {
    gap: 3vh;
  }
  main .hits .tovar_cards .tovar_card {
    width: 86vw;
  }
  main .hits .tovar_cards .tovar_card img {
    width: 80vw;
  }
  main .market .market_cards .market_card {
    width: 86vw;
  }
  main input,
  main textarea {
    width: 100%;
  }
  footer .foot1_back .foot1 {
    flex-direction: column;
    gap: 3vh;
  }
  footer .foot1_back .foot1 .info2 .line {
    width: 40vw;
  }
}
@media (max-width: 540px) {
  h2 {
    font-size: 2rem;
  }
  main .banner .slide .text_slide h1 {
    font-size: 2.2rem;
  }
  main .banner .slide .text_slide p {
    font-size: 1.1rem;
  }
  header .head2_back .head2 .catalog {
    gap: 2vw;
    padding: 0 4vw;
  }
}
@media (max-width: 440px) {
  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
  .mobile-nav {
    width: 88vw;
  }
}
