* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  background-color: #ffffff41;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.Header {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #86af8d8f;
  padding: 12px 24px;
  border-radius: 20px;
}

.Header__logo {
  color: #18291bcc;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.NavBar {
  display: flex;
  gap: 24px;
}

.NavBar__link {
  color: #18291bcc;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 8px 0;
}

.NavBar__link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #18291bcc;
}

.Header__buttons {
  display: flex;
  gap: 12px;
}

.Header__button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #18291bcc;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  position: relative;
}

.Header__button img {
  width: 20px;
  height: 20px;
}

.Header__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: white;
  color: #18291bcc;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Мобильное меню */
.Burger {
  display: none;
  cursor: pointer;
}

.Module {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  flex-direction: column;
}

.Module__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.Module__close {
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.Module__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.Module__nav a {
  color: #18291bcc;
  font-size: 18px;
  text-decoration: none;
}

.Module__contacts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.Module__social {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.Module__social img {
  width: 32px;
  height: 32px;
}

.banner {
  position: relative;
  overflow: hidden;
  padding: 21px;
  display: flex;
  justify-content: center;
}

.banner img {
  width: 1668px;
  height: 648px;
  object-fit: cover;
  border-radius: 64px;
}

.banner button {
  position: absolute;
  bottom: 44px;
  left: 960px;
  transform: translateX(-120px);
  padding: 15px 30px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
  font-size: 18px;
}

h1 {
  text-align: center;
  margin: 30px 0;
  color: #2e7d32;
  width: 100%;
}

.categories {
  padding: 20px;
}

.categories ul {
  list-style: none;
  padding: 0;
  display: flex;
}

.categories li {
  margin-right: 20px;
}

.product-list {
  display: flex;
  padding: 20px;
  gap: 20px;
  height: auto;
}

.products {
flex:1;
  width: 1940px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  justify-content: center;
}

.product {
  cursor: pointer;
  border: 1px solid #59775bc7;
  background-color: rgb(255, 255, 255);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 5px 5px 5px rgba(28, 122, 41, 0.295);
  border-radius: 30px;
}

.product:hover {
  transform: translateY(-10px);
}

.product img {
  max-width: 1920px;
  height: auto;
  max-height: 200px;
  margin-bottom: 10px;
}

.add_to_cart {
  background-color: rgba(35, 77, 35, 0.719);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
}

.filters {
  text-align: center;
  margin: 0 auto;
  padding: 10px;
  background-color: #9fb8a3;
  display: block;
  border-radius: 30px;
  height: auto;
  max-height: 550px;
  transition: background-color 0.3s ease;
}

.filters-title {
  margin-bottom: 20px;
}

.filter-group {
  width: 248px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.filter-group1 {
  width: 1920px;
  box-sizing: border-box;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;

}

.filter-group1 input {
  height: 20px;
  width: 56px;
  border-radius: 6px;
  border: none;
}

.filter-group2 {
  width: 1920px;
  box-sizing: border-box;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.filter-checkboxes {
  display: flex;
  gap: 20px;
}

.filter-column {
  width: 300px;
  display: flex;
  justify-content: center;
}

.checkbox-group label {
  display: block;
  margin-bottom: 5px;
  display: flex;
  justify-content: flex-start;
}

.filters button {
  background-color: rgba(35, 77, 35, 0.719);
  border-radius: 10px;
  border: none;
  padding: 10px 20px;
}

.filter-group1 {
  display: flex;
  margin-bottom: 15px;
}

.filter-group1 span {
  margin: 0 5px;
}

#cartSection {
  padding: 20px;
  background-color: rgba(87, 114, 79, 0.301);
}

#cart li {
  list-style: none;
  margin-bottom: 10px;
}

#cartSection h2 {
  display: flex;
  justify-content: center;
}

.clear-cart {
  padding: 10px;
  background-color: #9c544e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#cartSection button:not(.clear-cart) {
  background-color: #9fb8a3;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
}

#cartSection img {
  min-width: 70px;
  min-height: 110px;

}

.mp_search {
  margin: 0 auto;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mp_search img {
  object-fit: contain;
  margin: 20px 30px;
  height: 30px;
}

.mp_search p {
  font-size: 40px;
  max-width: 74vh;
  text-align: center;
  align-items: center;
}

.mp_search input {
  border: none;
  border-bottom: 2px solid #000000;
  padding: 8px;
  padding-top: 20px;
  width: 300px;
  text-align: center;
  align-items: center;
  font-size: 16px;
}

.brands_main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 20px 0;
}

.brands-wrapper {
  position: relative;
  overflow: hidden;
  height: 50px;
  width: 100%;
}

.brands {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  display: flex;
  align-items: center;
  animation: brand-scroll 40s linear infinite;
}

.brands img {
  max-width: 230px;
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.brands img:hover {
  filter: grayscale(0%);
}

.brands img:not(:hover) {
  filter: saturate(0) contrast(0.25) brightness(1.6);
}

.brands:hover {
  animation-play-state: paused;
}

.brands_1 {
  animation: brand-scroll 40s linear infinite;
}

.brands_2 {
  animation: brand-scroll-reverse 35s linear infinite;
}

.brands_3 {
  animation: brand-scroll 35s linear infinite;
}

.brands_4 {
  animation: brand-scroll-reverse 40s linear infinite;
}

@keyframes brand-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% + 100vw));
  }
}

@keyframes brand-scroll-reverse {
  from {
    transform: translateX(calc(-100% + 100vw));
  }

  to {
    transform: translateX(0);
  }
}

body.dark-theme {
  background-color: #0b1a07a8;
  color: #e0e0e0;
}


body.dark-theme header {
  background-color: rgba(64, 82, 58, 0.699);
}

.dark-theme .button {
  background-color: #294636;
}

body.dark-theme .filters {
  background-color: #637c6c8f;
}

body.dark-theme h1 {
  color: #8caf99;
  text-shadow: 3px 3px 5px rgba(117, 151, 138, 0.692);
}

body.dark-theme .product {
  background-color: #637c6c8f;
}

body.dark-theme input {
  background-color: #717c75;
}

body.dark-theme #cartSection {
  background-color: rgba(64, 82, 58, 0.301);
}

body.dark-theme input::placeholder {
  color: #bdbaba;
}

body.dark-theme .filter-group2 input[type="number"] {
  color: #e6e6e6;
}

.footer {
  background-color: #c8ddcb8f;
  color: #18291bcc;
  padding: 40px 20px;
  border-top: 1px solid #44444400;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.footer-section h3 {
  color: #18291bcc;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
  text-transform: uppercase;
}

.footer-section p,
.footer-section ul {
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #18291bcc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #0a140bec;
}

.contact-form input,
.contact-form textarea {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #18291bcc;
  background-color: #86af8d8f;
  color: #18291bcc;
  border-radius: 5px;
  font-size: 0.9em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #18291bcc;
}

.contact-form button {
  background-color: #86af8d8f;
  color: #2c2c2c;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%;
}

.contact-form button:hover {
  background-color: #4a5e4ecc;
}

.footer-bottom {
  border-top: 1px solid #86af8d8f;
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  font-size: 0.8em;
  margin: 0;
}

.footer-social img {
  width: 24px;
  height: 24px;
  margin-left: 15px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-social img:hover {
  opacity: 1;
}



@media (max-width: 375px) {
  .Header {
    max-width: 340px;
    flex-wrap: wrap;
  }

  .Header__logo {
    font-size: 15px;
  }

  .Profile {
    width: 25px;
    height: 25px;
    border-radius: 5px;
  }

  .Profile img {
    width: 15px;
    height: 15px;
  }

  .Number__p {
    font-size: 8px;
  }

  .NavBar {
    display: none;
  }

  .Carzina {
    width: 25px;
    height: 25px;
    border-radius: 5px;
  }

  .Carzina img {
    width: 15px;
    height: 15px;
  }

  .Carzina div {
    width: 10px;
    height: 10px;
    font-size: 8px;
    top: 2px;
    right: 2px;
  }

  .Burger img {
    width: 24px;
    height: 24px;
  }

}