* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-focus-ring-color: transparent;
}

/* Меню навигации */
body {
  background: #fdfdfb;
}

/* Меню навигации  */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.3s ease;
}

nav.transparent ul img {
  filter: invert(100%); /* делает иконку белой, если она чёрная */
}

nav.scrolled img {
  filter: invert(0%);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.nav-logo {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  filter: invert(100%);
}

/* Исходный прозрачный стиль */
nav.transparent {
  color: white;
  background: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* После прокрутки — белый фон и чёрный текст */

nav.transparent a {
  color: rgb(255, 255, 255);
}
nav.transparent:hover a {
  color: rgb(255, 255, 255);
}

/* ЭФФЕКТ НАВЕДЕНИЯ: фон становится белым, иконки — чёрными */
nav.transparent:hover {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

.logo_header {
  width: 220px;
}

ul {
  display: flex;
}
li {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  margin-left: 40px;
  font-family: roboto;
  font-weight: 300;
  font-size: 13px;
  position: relative;
}
li:first-child {
  margin-left: 60px;
}

li img {
  width: 18px;
}

li a {
  text-decoration: none;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
}

li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: rgb(255, 255, 255);
  transition: width 0.3s ease-in-out;
}

li:hover::after {
  left: 0;
  right: auto;
  width: 100%;
}
.menu_burger {
  display: none;
  filter: invert(0%);
}

.cart {
  margin-right: 60px;
  transition: 0.5s;
}
.cart:hover {
  transform: scale(1.04);
}

.burger-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: white;
  padding: 20px 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.burger-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.burger-menu li {
  margin-bottom: 20px;
}
.burger-menu li:last-child {
  margin-bottom: 0;
}

.burger-menu a {
  text-decoration: none;
  color: black;
  font-size: 16px;
}

.burger-menu.show {
  display: block;
}

.menu_burger {
  display: none;
}

.color-selector,
.size-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

/* Скрываем радиокнопки */
.color-selector input[type="radio"],
.size-selector input[type="radio"] {
  display: none;
}

/* Цветовые кружки */
.color-selector label {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid black;
  cursor: pointer;
  margin-top: 50px;
}

.color-selector input[type="radio"]:checked + label {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Размерные кнопки */
.size-selector label {
  font-family: roboto;
  font-size: 17px;
  padding: 14px 24px;
  border: 1px solid black;
  cursor: pointer;
  user-select: none;
  margin-top: 10px;
}

.size-selector input[type="radio"]:checked + label {
  background-color: black;
  color: white;
}

.main_block {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 200px;
}

.main_block img {
  width: 450px;
  height: 600px;
  object-fit: cover;
}

.block_img{
  position: relative;
}

.arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 40px;
  background: none;
}

.arrow img{
  height: 20px;
  width: 20px;
  background: white;
  padding: 15px;
  border-radius: 40px;
}

.left {
  left: 0px;
}

.right {
  right: 0px;
}


.main_block .main_img {
  width: 450px;
  height: 600px;
  object-fit: cover;
}
.product_cart {
  margin-top: 50px;
}

.product_cart h1 {
  font-family: roboto;
  font-weight: 200;
  max-width: 700px;
}
.title_prod {
  font-family: roboto;
  font-weight: 200;
  font-size: 18px;
  margin-top: 5px;
}
.product_cart #price {
  font-size: 26px;
  margin-top: 30px;
  font-family: roboto;
  font-weight: 200;
  position: relative;
}
#price:after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -5px;
  width: 334px;
  height: 1px;
  background: rgb(0, 0, 0);
}

.size {
  font-family: roboto;
  font-weight: 200;
  font-size: 18px;
  margin-top: 30px;
}

button {
  background: none;
  border: 1px solid;
  font-size: 20px;
  font-family: roboto;
  font-weight: 300;
  padding: 15px 30px;
  margin-top: 20px;
}

#add-to-cart {
  cursor: pointer;
  transition: 0.3s;
}
#add-to-cart:hover {
  transform: scale(1.04);
}

.description {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin: 200px 150px;
}

.left_desc {
  width: 600px;
}

.description img {
  width: 600px;
  height: 400px;
  object-fit: cover;
}
.name_desc {
  font-size: 30px;
  font-family: roboto;
  font-weight: 300;
}

#description {
  font-size: 20px;
  font-family: roboto;
  font-weight: 300;
  margin-top: 30px;
}

.gallary {
  display: flex;
  gap: 15px;
  justify-content: center;
}

footer {
  display: flex;
  flex-direction: column;
  height: 400px;
  margin-top: 30px;
  overflow: hidden;
  background: #181818;
  box-shadow: 4px 0 12px rgb(198, 198, 198);
}

.contact {
  display: flex;
  flex-direction: column;
}

.contact a {
  margin-top: 20px;
  text-decoration: none;
  color: #fafafa;
  font-family: roboto;
  font-weight: 200;
  transition: 0.3s;
}

.contact a:hover {
  font-weight: 400;
}

.top_footer {
  display: flex;
  gap: 200px;
  justify-content: center;
  margin-top: 50px;
  width: 70%;
  align-self: center;
}
.top_footer p {
  font-family: roboto;
  font-weight: 200;
  font-size: 22px;
  color: #fafafa;
}

.bottom_logo {
  width: 180px;
}

.block_help {
  display: flex;
  flex-direction: column;
}

.block_help p {
  font-size: 30px;
  margin-top: 15px;
  font-family: roboto;
  font-weight: 200;
}

.block_help a {
  font-size: 15px;
  font-family: roboto;
  font-weight: 200;
  margin-top: 15px;
  color: #fafafa;
  text-decoration: none;
  transition: 0.1s;
}
.block_help a:hover {
  font-weight: 400;
}

.social a img {
  margin-right: 20px;
  margin-top: 15px;
  width: 35px;
  transition: 0.3s;
}
.social a img:hover {
  transform: scale(1.1);
}

.line {
  width: 1200px;
  border: 1px solid #fafafa;
  align-self: center;
  margin-top: 100px;
}

@media screen and (min-width: 1800px) {
  nav {
    height: 83px;
  }

  .logo_header{
    width: 250px;
  }

  li{
    font-size: 15px;
  }

  li img {
    width: 20px;
  }
  .main_block .main_img {
  width: 550px;
  height: 700px;
  object-fit: cover;
}

 
}

@media screen and (max-width: 440px) {
  body {
    overflow-x: hidden;
  }
  header {
    background: none;
    display: flex;
    flex-direction: column;
    height: 600px;
    margin-bottom: 80px;
  }
  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    filter: blur(3px); /* Уровень размытия */
    z-index: -1;
  }

  .cart {
    background: #f0f0f0;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    padding: 20px;
    height: 50px;
    background: none;
  }
  ul {
    padding: 0;
    display: none;
  }
  li {
    margin-left: 30px;
  }
  li:first-child {
    margin-left: 0;
  }
  li a {
    color: #000000;
    font-size: px;
  }

  .nav-logo {
    position: absolute;
    top: 20%;
    left: 47%;
    transform: translateX(-50%);
  }

  .transparent {
    justify-content: flex-end;
    height: 30px;
    background: #fafafa;
    width: 100%;
  }
  nav.scrolled {
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: flex-end;
    height: 30px;
  }

  .cart {
    display: none;
  }

  .menu_burge:focus {
    outline: none;
    box-shadow: none;
  }
  .burger {
    margin: 0;
  }
  .menu_burger {
    display: flex;
    margin-right: 40px;
  }

  .menu_burger img {
    width: 40px;
    margin-top: 10px;
  }

  .burger-menu ul {
    display: flex;
    justify-content: start;
    align-items: flex-start;
  }

  .burger-menu {
    display: none;
    margin-top: 10px;
  }

  .burger-menu.show {
    display: block;
  }

  button {
    gap: 10px;
  }


  .main_block .main_img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}
  .main_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 70px;
  }
  .main_block img {
    width: 100%;
  }
  .product_cart {
    margin-top: 30px;
    align-self: flex-start;
    margin-left: 20px;
  }

  .product_cart h1 {
    font-family: roboto;
    font-weight: 200;
    font-size: 26px;
  }
  .name_prod {
    font-family: roboto;
    font-weight: 200;
    font-size: 16px;
    margin-top: 5px;
  }
  .product_cart #price {
    font-size: 26px;
    margin-top: 30px;
    font-family: roboto;
    font-weight: 200;
    position: relative;
  }
  #price:after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: -5px;
    width: 230px;
    height: 1px;
    background: rgb(0, 0, 0);
  }

  .size {
    font-family: roboto;
    font-weight: 200;
    font-size: 18px;
    margin-top: 30px;
  }

  button {
    background: none;
    border: 1px solid;
    font-size: 18px;
    font-family: roboto;
    font-weight: 300;
    padding: 15px 30px;
    margin-top: 20px;
  }

  /* Цветовые кружки */
  .color-selector label {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid black;
    cursor: pointer;
    margin-top: 50px;
  }

  .description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    margin: 50px 20px;
  }

  .left_desc {
    width: 350px;
  }

  .description img {
    width: 380px;
    object-fit: cover;
  }
  .name_desc {
    font-size: 25px;
    font-family: roboto;
    font-weight: 300;
  }

  #description {
    font-size: 16px;
    font-family: roboto;
    font-weight: 300;
    margin-top: 30px;
  }

  .gallary {
    display: none;
    gap: 15px;
    justify-content: center;
  }

  footer {
    height: 650px;
    margin-top: 0;
  }

  .top_footer {
    flex-direction: column;
    gap: 50px;
  }

  .line {
    display: none;
  }
}

.burger-menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 40px;
  background-color: rgb(0, 0, 0);
  padding: 15px 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.burger-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.burger-menu li {
  margin-bottom: 20px;
}
.burger-menu li:last-child {
  margin-bottom: 0;
}

.burger-menu ul li a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 16px;
}

.burger-menu.show {
  display: block;
}



.toast {
  width: 300px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: white;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, bottom 0.4s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  bottom: 70px;
}

.toast a {
  background: white;
  color: black;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 20px;
}

.toast a:hover {
  background: #ddd;
}





