@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Lora:wght@500;600&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,200&display=swap");

:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(19, 64%, 54%);
  --first-color-alt: hsl(19, 64%, 52%);
  --title-color: hsl(19, 16%, 15%);
  --text-color: hsl(19, 16%, 35%);
  --text-color-light: hsl(19, 8%, 55%);
  --body-color: hsl(19, 100%, 96%);
  --container-color: hsl(19, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --title-font: "Lora", serif;
  --subtitle-font: "Dancing Script", cursive;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background 0.2s; /* for dark mode animation */
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*============THEME==================*/
.nav_buttons {
  display: flex;
  align-items: center;
  column-gap: 0.4rem;
}

.change_theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s;
}

body.dark_theme {
  --first-color: hsl(19, 64%, 58%);
  --first-color-alt: hsl(19, 64%, 54%);
  --title-color: hsl(19, 24%, 85%);
  --text-color: hsl(19, 16%, 65%);
  --body-color: hsl(19, 12%, 8%);
  --container-color: hsl(19, 10%, 10%);
}

/* Menu styles */
.menu_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.menu_table th, .menu_table td {
  border: 1px solid var(--text-color-light);
  padding: 0.5rem;
  text-align: left;
}
.menu_table th {
  background: var(--first-color-alt);
  color: white;
}
/* Menu styles */
.menu_category {
  font-size: var(--h2-font-size);
  margin: 2.5rem 0 1.5rem;
  text-align: center;
  color: var(--title-color);
}

.menu_grid {
  display: grid;
  gap: 1.5rem 1.25rem;          /* расстояние между карточками */
  padding: 0 1rem;
}

/* На мобильных — по одной карточке в ряд */
.menu_grid {
  grid-template-columns: 1fr;   /* по умолчанию 1 колонка */
  max-width: 420px;
  margin: 0 auto;
}

/* На планшетах и выше — 2–3 колонки */
@media (min-width: 640px) {
  .menu_grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
  }
}

@media (min-width: 992px) {
  .menu_grid {
    grid-template-columns: repeat(3, 1fr);   /* 3 в ряд на десктопе */
    max-width: 1200px;
  }
}

@media (min-width: 1400px) {
  .menu_grid {
    grid-template-columns: repeat(4, 1fr);   /* 4 в ряд на очень широких экранах */
  }
}

/* Стили карточки (чтобы выглядело аккуратно) */
.menu_item {
  background: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 0.75rem;
}

.menu_item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.menu_item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;          /* фиксированное соотношение сторон для фото */
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.menu_item h4 {
  font-size: 1.1rem;
  text-align: center;
  margin: 0.5rem 0 0.4rem;
  color: var(--title-color);
}

.menu_item p {
  font-size: 0.875rem;
  color: var(--text-color);
  margin: 0 0 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--first-color);
  margin-top: 0.25rem;
}


/* Dark theme */
body.dark-theme {
  --body-color: hsl(19, 16%, 15%);
  --container-color: hsl(19, 16%, 20%);
  --title-color: hsl(19, 100%, 96%);
  --text-color: hsl(19, 100%, 80%);
  --first-color: hsl(19, 64%, 58%);
}
.dark_theme .bg_header,
.dark_theme .nav_menu {
  box-shadow: 0 2px 8px hsla(19, 64%, 4%, 0.5);
}
.dark_theme .popular_card {
  box-shadow: 0 8px 20px hsla(19, 64%, 4%, 0.2);
}

.dark_theme .newsletter_content {
  background-color: var(--container-color);
}

.dark_theme .newsletter_form,
.dark_theme .newsletter_input {
  background-color: var(--body-color);
}
.container {
  max-width: 1024px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section_title {
  font-size: var(--h1-font-size);
  font-family: var(--title-font);
  margin-bottom: 1.5rem;
}

.section_subtitle {
  display: block;
  font-size: var(--h2-font-size);
  font-family: var(--subtitle-font);
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.section_title,
.section_subtitle {
  text-align: center;
}
.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/

.header {
  position: fixed;
  width: 100%;
  background-color: var(--body-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: box-shadow 0.3s background 0.4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_logo,
.nav_togle,
.nav_close {
  display: flex;
  color: var(--title-color);
}

.nav_logo {
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: 0.5s;
}

.nav_logo img,
.footer_logo img {
  width: 25px;
}

.nav_logo:hover,
.footer_logo:hover {
  color: var(--first-color);
}

.nav_togle {
  font-size: 1.2rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav_menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    box-shadow: 0 8px 20px hsla(19, 64%, 24%, 0.1);
    padding-block: 3.5rem;
    transition: top 0.4s;
  }
}

.nav_list {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 2rem;
}
.nav_link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color 0.2s;
}

.nav_link:hover {
  color: var(--first-color);
}

.nav_close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav_img1,
.nav_img2 {
  position: absolute;
  opacity: 0.2;
}

.nav_img1 {
  width: 100px;
  top: 0.75rem;
  left: -2rem;
  transform: rotate(165deg);
}

.nav_img2 {
  width: 50px;
  bottom: 0;
  right: -1rem;
  transform: rotate(-30deg);
}
/* Show menu */

.show-menu {
  top: 0;
}

/* Change background header */
.bg-header {
  box-shadow: 0 2px 8px hsla(19, 64%, 24%, 0.1);
}

/* Active link */

/*=============== HOME ===============*/

.home {
  position: relative;
}

.home_container {
  row-gap: 3rem;
  padding-top: 2rem;
}

.home_img {
  width: 300px;
  justify-self: center;
}

.home_data {
  text-align: center;
}

.home_title {
  font-size: var(--biggest-font-size);
  font-family: var(--title-font);
  margin-bottom: 1rem;
}

.home_title img {
  width: 40px;
}

.home_title div {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.home_description {
  padding: 0 1rem;
  margin-bottom: 2.5rem;
}

.home_leaf-2,
.home_leaf-1 {
  position: absolute;
  opacity: 0.2;
}

.home_leaf-1 {
  width: 80px;
  top: 8rem;
  left: -1rem;
  transform: rotate(90deg);
}

.home_leaf-2 {
  width: 100px;
  bottom: 8rem;
  right: -2rem;
  transform: rotate(-15deg);
}

/*=============== BUTTON ===============*/

.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background: var(--first-color);
  padding: 0.6rem 1rem;
  border-radius: 4rem;
  color: #fff;
  font-weight: var(--font-medium);
}

/*=============== ABOUT ===============*/
.about {
  position: relative;
}
.about_container {
  row-gap: 3rem;
}
.about_data {
  text-align: center;
}
.about_title img {
  width: 30px;
}

.about_title div {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
}

.about_img {
  width: 300px;
  justify-self: center;
}

.about_leaf {
  width: 100px;
  opacity: 0.2;
  position: absolute;
  right: -1.5rem;
  bottom: 11rem;
  transform: rotate(-15deg);
}

/*=============== POPULAR ===============*/

.popular_container {
  padding-top: 4rem;
  grid-template-columns: 250px;
  justify-content: center;
  row-gap: 5.5rem;
}

.popular_card {
  position: relative;
  background-color: var(--container-color);
  padding: 7rem 2rem 1.5rem;
  box-shadow: 0 8px 20px hsla(19, 64%, 48%, 0.08);
  border-radius: 1rem;
  text-align: center;
  transition: background 0.2s;
}

.popular_img {
  width: 220px;
  position: absolute;
  inset: 0;
  top: -2.5rem;
  margin: 0 auto;
  transition: transform 0.4s;
}

.popular_namme {
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  margin-bottom: 0.25rem;
}

.popular_description {
  display: block;
  font-size: var(--smaller-font-size);
  margin-bottom: 1rem;
}

.popular_price {
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
}
.popular_button {
  display: flex;
  background-color: var(--first-color);
  padding: 6px;
  border-radius: 50%;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px hsla(19, 64%, 20%, 0.2);
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  cursor: pointer;
  transition: background 0.3s;
}

.popular_button:hover {
  background-color: var(--first-color-alt);
}

.popular_card:hover .popular_img {
  transform: translateY(-0.25rem);
}

/*=============== RECENTLY ===============*/
.recently {
  position: relative;
}

.recently_container {
  row-gap: 4rem;
}

.recently_data {
  position: relative;
  text-align: center;
}

.recently_description {
  margin-bottom: 2rem;
}
.recently_data_img {
  width: 25px;
  position: absolute;
  top: 3.5rem;
  right: 1.5rem;
  transform: rotate(30deg);
}

.recently_img {
  width: 300px;
  justify-content: center;
}

.recently_leaf_1,
.recently_leaf_2 {
  position: absolute;
  opacity: 0.2;
}

.recently_leaf_1 {
  width: 80px;
  top: 17rem;
  left: -1rem;
  transform: rotate(15deg);
}

.recently_leaf_2 {
  width: 40px;
  bottom: 12rem;
  right: -1rem;
  transform: rotate(-30deg);
}

/*=============== NEWSLETTER ===============*/
.newsletter_container {
  position: relative;
}

.newsletter_container,
.newsletter_input,
.newsletter_form {
  transition: background 0.2s;
}

.newsletter_content {
  position: relative;
  background-color: hsl(19, 24%, 15%);
  border-radius: 2.5rem;
  padding: 5rem 1rem 3rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

.newsletter_img {
  width: 250px;
  position: absolute;
  top: -4.5rem;
  left: -8rem;
}

.newsletter_data .section_title {
  color: #fff;
  margin-bottom: 2rem;
}

.newsletter_form {
  background-color: #fff;
  padding: 5px 5px 5px 16px;
  border-radius: 4rem;
  display: flex;
  column-gap: 0.5rem;
}

.newsletter_input,
.newsletter_button {
  font-family: var(--body-font);
  border: none;
  outline: none;
}

.newsletter_input {
  width: 90%;
  color: var(--text-color);
}

.newsletter_button {
  cursor: pointer;
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  padding-block: 3rem 2rem;
  overflow: hidden;
}

.footer_container {
  row-gap: 3rem;
}

.footer_logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.footer_description,
.footer_link,
.footer_information {
  font-size: var(--small-font-size);
}

.footer_content,
.footer_links {
  display: grid;
}

.footer_content {
  grid-template-columns: repeat(2, max-content);
  gap: 2.5rem;
}

.footer_title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.footer_lins {
  row-gap: 0.5rem;
}

.footer_link {
  color: var(--text-color);
  transition: color 0.3s;
}

.footer_link:hover {
  color: var(--first-color);
}

.footer_social {
  display: flex;
  column-gap: 1rem;
}

.footer_social_link {
  color: var(--first-color);
  font-size: 1.2rem;
}

.footer_onion,
.footer_spinach {
  width: 30px;
  position: absolute;
}

.footer_onion {
  top: 7.5rem;
  right: 5rem;
  transform: rotate(-45deg);
}

.footer_spinach {
  bottom: 8rem;
  left: 3rem;
  transform: rotate(30deg);
}

.footer_leaf {
  width: 100px;
  opacity: 0.2;
  position: absolute;
  bottom: 6rem;
  right: -2rem;
  transform: rotate(-15deg);
}

.footer_info,
.footer_card {
  display: flex;
}

.footer_info {
  margin-top: 6.5rem;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer_card {
  column-gap: 1rem;
  justify-content: center;
}

.footer_card img {
  width: 35px;
}

.footer_copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}
/* Стили для селекта тем */
#theme-selector {
  appearance: none;                    /* убираем стандартную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;

  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--text-color-light);
  border-radius: 0.5rem;
  padding: 0.4rem 1.8rem 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 140px;
  margin-left: 0.75rem;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 10px;
}

#theme-selector:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--first-color);
  border-color: var(--first-color);
}

/* Тёмные темы — делаем селект тоже красивым */
.theme-graphite #theme-selector,
.theme-black-mirror #theme-selector {
  background-color: #222;
  color: #eee;
  border-color: #444;
}

.theme-black-mirror #theme-selector {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ccc' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.4rem;
  background: hsl(19, 8%, 75%);
}

::-webkit-scrollbar-thumb {
  background: hsl(19, 8%, 55%);
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(19, 8%, 50%);
}

/*=============== SCROLL UP ===============*/

/* Show Scroll Up*/

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1ren;
  }

  .section {
    padding-block: 4rem 1rem;
  }

  .home_title {
    font-size: 2rem;
  }

  .home_leaf-1 {
    top: 5rem;
  }
  .home_leaf-2 {
    bottom: 0;
  }

  .about_leaf {
    bottom: 8rem;
  }

  .recently_data_img {
    right: 0.5rem;
  }

  .newsletter_content {
    padding: 6rem 1rem 2rem;
  }

  .newsletter_button {
    width: 40px;
    color: transparent;
  }

  .footer_content {
    gap: 1.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 575px) {
  .home_container,
  .about_container,
  .recently_container,
  .newsletter_content {
    grid-template-columns: 0.7fr;
    justify-content: center;
  }

  .footer_content {
    grid-template-columns: repeat(4, max-content);
  }

  .footer_onion {
    width: 20px;
    right: 3rem;
    transform: rotate(-45deg);
  }
}

@media screen and (min-width: 767px) {
  .nav {
    column-gap: 3rem;
  }

  .nav_togle,
  .nav_close,
  .nav_img1,
  .nav_img2 {
    display: none;
  }
  .nav_list {
    flex-direction: row;
    column-gap: 3rem;
  }
  .nav_menu {
    margin-left: auto;
  }

  .dark_theme .nav_menu {
    box-shadow: none;
  }

  .popular_container {
    grid-template-columns: repeat(2, 250px);
  }
}
/* For large devices */

@media screen and (min-width: 1024px) {
  .section {
    padding-block: 7rem 1.5rem;
  }

  .section_subtitle {
    margin-bottom: 0.75rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .home_container {
    position: relative;
    grid-template-columns: 480px 500px;
    padding-block: 7rem 3rem;
  }

  .home_data {
    text-align: initial;
    order: -1;
  }

  .home_title img {
    width: 60px;
  }

  .home_title div {
    justify-content: initial;
    column-gap: 1rem;
  }

  .home_description {
    padding-inline: 0 10rem;
  }
  .home_img {
    width: 600px;
    position: absolute;
    top: 5rem;
    right: -2rem;
  }

  .about_container {
    grid-template-columns: 450px 360px;
    column-gap: 7rem;
    align-items: center;
  }

  .about_data {
    order: 1;
  }
  .about_data,
  .about .section_subtitle,
  .about .section_title {
    text-align: center;
  }

  .about_title div {
    column-gap: 1rem;
    justify-content: initial;
  }

  .about_title img {
    width: 50px;
  }

  .about_img {
    width: 450px;
  }
  .popular_container {
    grid-template-columns: repeat(3, 250px);
    column-gap: 3.5rem;
    padding-block: 6rem 4rem;
  }

  .popular_card {
    padding: 7.5rem 2rem 2rem;
    border-radius: 1.5rem;
  }

  .popular_img {
    width: 230px;
  }
  .popular_button {
    bottom: 2rem;
  }
  .popular_price {
    font-size: var(--h3-font-size);
  }
  .recently_container {
    grid-template-columns: 350px 480px;
    align-items: center;
    column-gap: 7rem;
    padding-bottom: 2rem;
  }
  .recently_img {
    width: 480px;
  }
  .newsletter_img {
    width: 350px;
    position: absolute;
    top: -4.5rem;
    left: -8rem;
  }

  .footer {
    padding-block: 8rem 0;
  }
  .footer_container {
    position: relative;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer_content {
    column-gap: 4rem;
  }

  .footer_title,
  .footer_description,
  .footer_link,
  .footer_info {
    font-size: var(--normal-font-size);
  }

  .footer_description {
    width: 200px;
  }

  .footer_spinach {
    position: absolute;
    bottom: 10rem;
    right: 10rem;
    transform: rotate(30deg);
    width: 20px;
  }
}

@media screen and (min-width: 1064px) {
  .container {
    margin-inline: auto;
  }
}

@media screen and (min-width: 1280px) {
  #home,
  #about,
  #popular, #recently{
    height: 90vh;
  }

  #about,
  #popular,
  #recently{
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .home_leaf-1 {
    width: 150px;
    top: 5rem;
  }
  .home_leaf-2 {
    width: 180px;
    bottom: -4rem;
  }

  .about_leaf{
    width: 240px;
    bottom: -2rem;
  }

  .popular_container {
    grid-template-columns: repeat(3, 350px);
    column-gap: 4.5rem;
    padding-block: 6rem 4rem;
  }
  .popular_card {
    padding: 8rem 3rem 4rem;
    border-radius: 1.5rem;
  }

  .popular_img {
    width: 250px;
  }
  .popular_button {
    bottom: 1rem;
  }
  .popular_price {
    font-size: var(--h2-font-size);
  }
  .recently_leaf_1{
    width: 180px;
    top: 19rem;
  }

  .recently_leaf_2{
    width: 130px;
    bottom: -2rem;
  }

  .footer_leaf{
    right:0;
    left: 0;
    bottom:-15rem;
    width: 150px;
    margin: 0 auto;
  }
}
/* ====================== THEMES ====================== */
.theme-graphite {
  --body-color: #121212;
  --container-color: #1a1a1a;
  --title-color: #f0f0f0;
  --text-color: #d0d0d0;
  --text-color-light: #a0a0a0;
}

.theme-black-mirror {
  --body-color: #000000;
  --container-color: #0a0a0a;
  --title-color: #ffffff;
  --text-color: #e0e0e0;
  --text-color-light: #b0b0b0;
}

body.theme-graphite {
  background: linear-gradient(135deg, #0f0f0f 0%, #1e1e1e 50%, #0f0f0f 100%) !important;
  background-attachment: fixed;
}

body.theme-black-mirror {
  background:
    radial-gradient(circle at 30% 20%, rgba(40,40,60,0.18) 0%, transparent 60%),
    linear-gradient(145deg, #000000 0%, #0d0d0d 50%, #000000 100%) !important;
  background-attachment: fixed;
}

body.theme-black-mirror::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(80,80,100,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ====================== HEADER ====================== */
.nav_contacts {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1rem;
  color: var(--title-color);
}

.nav_contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--container-color);
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav_instagram i {
  font-size: 2rem;
  color: #E1306C;
  transition: transform 0.3s;
}

.nav_instagram i:hover {
  transform: scale(1.2);
}

/* ====================== FOOTER ====================== */
.footer {
  background: var(--container-color);
}

.footer_container {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

/* ====================== MENU ====================== */
.menu_grid {
  display: grid;
  gap: 1.5rem 1.25rem;
  padding: 0 1rem;
}

@media (min-width: 640px) { .menu_grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .menu_grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .menu_grid { grid-template-columns: repeat(4, 1fr); } }
/* ====================== HEADER CONTACTS ====================== */
.nav_contacts {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1rem;
}

.nav_contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: var(--container-color);
  border-radius: 2rem;
  color: var(--title-color);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav_contact:hover {
  background: var(--first-color);
  color: white;
  transform: translateY(-2px);
}

/* Иконки в шапке одинакового размера */
.nav_buttons i,
.nav_instagram i {
  font-size: 1.75rem;     /* одинаковый размер */
}

.nav_instagram {
  padding: 0.5rem;
  border-radius: 50%;
  transition: 0.3s;
}

.nav_instagram:hover {
  background: rgba(225, 48, 108, 0.15);
}
/* Единый правый блок (тема + инста) — плотно прижаты */
.nav_right {
  display: flex;
  align-items: center;
  gap: 0.08rem;           /* почти без расстояния */
  margin-left: auto;
}

.nav_right i,
.nav_instagram i {
  font-size: 1.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav_right i:hover,
.nav_instagram:hover i {
  color: var(--first-color);
  transform: scale(1.12);
}

.nav_instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.nav_instagram:hover {
  background: rgba(225, 48, 108, 0.12);
}
/* ====================== FOOTER ====================== */
/* ====================== FOOTER ====================== */
.footer {
  background: var(--container-color);
  padding-top: 4rem;
}

.footer_container {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer_col h4 {
  color: var(--first-color);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer_links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer_links a {
  color: var(--text-color);
  transition: 0.3s;
}

.footer_links a:hover {
  color: var(--first-color);
  padding-left: 6px;
}

.footer_contact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--text-color);
}

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

.footer_contact a:hover {
  color: var(--first-color);
}

.footer_instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #E1306C;
  font-size: 1.1rem;
  margin-top: 1rem;
  transition: 0.3s;
}

.footer_instagram:hover {
  color: #c02a5f;
  transform: translateX(6px);
}

/* Нижняя строка — одна чистая */
.footer_bottom {
  background: #0a0a0a;
  padding: 1.8rem 0 1.2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer_copy {
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.footer_made {
  font-size: 0.85rem;
  color: var(--text-color-light);
  margin-top: 0.4rem;
  opacity: 0.75;
}

/* Адаптив */
@media (max-width: 768px) {
  .footer_container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* ====================== MENU BUTTON ====================== */
.add-to-cart {
  background: var(--first-color);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--first-color-rgb), 0.3);
}

.add-to-cart:hover {
  background: var(--first-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--first-color-rgb), 0.4);
}

/* ====================== MODAL ====================== */
#product-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal-content {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1.5rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  animation: modalFadeIn 0.4s ease;
}

.modal-content img {
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.modal-content h2 {
  color: var(--first-color);
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
}

.modal-button {
  /* Такой же стиль, как у add-to-cart */
  background: var(--first-color);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--first-color-rgb), 0.3);
}

.modal-button:hover {
  background: var(--first-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--first-color-rgb), 0.4);
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color-light);
  transition: 0.3s;
}

.close:hover {
  color: var(--first-color);
}

/* Анимация модалки */
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* ====================== HEADER АДАПТИВ ====================== */

/* Верхняя часть (логотип + бургер) */
.nav_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
}

/* Десктопная часть (скрыта на мобилках) */
.nav_desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Мобильное меню */
.nav_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--body-color);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 999;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.nav_menu.show-menu {
  transform: translateX(0);
}

.nav_mobile_inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

/* Контакты в мобильном меню */
.nav_contacts_mobile {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nav_contacts_mobile .nav_contact {
  font-size: 1.1rem;
  justify-content: flex-start;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 1rem;
}

/* Правый блок на мобильных */
.nav_right_mobile {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2rem;
}

/* На десктопе скрываем мобильные элементы */
@media (min-width: 769px) {
  .nav_top .nav_toggle,
  .nav_mobile_inner,
  .nav_contacts_mobile {
    display: none;
  }

  .nav_menu {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    height: auto;
    overflow: visible;
  }

  .nav_desktop {
    display: flex;
  }
}

/* На мобильных скрываем десктопные контакты и правый блок */
@media (max-width: 768px) {
  .nav_desktop,
  .nav_contacts {
    display: none;
  }

  .nav_toggle {
    font-size: 1.8rem;
    cursor: pointer;
  }
}

/* Анимация открытия меню */
.nav_menu {
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
}/* ====================== HEADER АДАПТИВ ====================== */

/* Общий контейнер */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* На десктопе всё в строку */
.nav_desktop_right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Тема + Instagram — плотный блок */
.nav_right {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* минимальное расстояние */
}

.nav_right i,
.nav_instagram i {
  font-size: 1.9rem;
  cursor: pointer;
  transition: 0.3s;
}

.nav_instagram {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 48, 108, 0.08);
  transition: 0.3s;
}

.nav_instagram:hover {
  background: rgba(225, 48, 108, 0.2);
}

/* Контакты на десктопе */
.nav_contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav_contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--container-color);
  border-radius: 2rem;
  color: var(--title-color);
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
}

.nav_contact:hover {
  background: var(--first-color);
  color: white;
}

/* Мобильное меню */
.nav_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--body-color);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 999;
  padding: 5rem 2rem 2rem;
}

.nav_menu.show-menu {
  transform: translateX(0);
}

.nav_mobile_extra {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav_contacts_mobile .nav_contact {
  font-size: 1.1rem;
  padding: 0.8rem;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 1rem;
}

.nav_right_mobile {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2.2rem;
}

/* На мобильных скрываем десктопные элементы */
@media (max-width: 768px) {
  .nav_desktop_right,
  .nav_toggle { display: block; }
  .nav_contacts { display: none; }
  .nav_menu { display: block; }
  .nav_list { flex-direction: column; gap: 1.5rem; font-size: 1.3rem; text-align: center; }
}

/* На десктопе скрываем мобильные элементы и бургер */
@media (min-width: 769px) {
  .nav_toggle,
  .nav_mobile_extra,
  .nav_contacts_mobile { display: none; }
  .nav_menu { position: static; transform: none; background: transparent; padding: 0; height: auto; }
  .nav_list { flex-direction: row; gap: 2rem; }
}
/* Красивый крестик в модалке */
.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 10;
}

.close-modal i {
  font-size: 2rem;
}

.close-modal:hover {
  background: rgba(255, 60, 60, 0.9);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(255,60,60,0.5);
}

/* Чтобы модалка выглядела лучше */
.modal-content {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  background: var(--container-color);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-content img {
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}
/* Уведомление (toast) */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--first-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  font-weight: 500;
  max-width: 350px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Корзина (модалка) */
.cart-modal {
  max-width: 480px;
  width: 90%;
  padding: 2rem;
}

.cart-items {
  max-height: 400px;
  overflow-y: auto;
  margin: 1.5rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-item-img {
  width: 150px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-right: 1rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cart-item-price {
  color: var(--first-color);
  font-size: 0.95rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}

.cart-item-qty button:hover {
  background: var(--first-color);
}

.cart-delete {
  background: rgba(255,60,60,0.15);
  color: #ff3c3c;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.2s;
}

.cart-delete:hover {
  background: rgba(255,60,60,0.8);
  color: white;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.cart-checkout {
  width: 100%;
  padding: 1rem;
  background: var(--first-color);
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.cart-checkout:hover {
  background: var(--first-color-alt);
  transform: translateY(-3px);
}
/* Бейджик на корзине */
.cart-wrapper {
  position: relative;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--first-color);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  display: none;
}

/* Карточки в корзине */
.cart-item-img {
  width: 150px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 1rem;
}

.cart-item-qty button {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}

.cart-item-qty button:hover {
  background: var(--first-color);
}

.cart-delete {
  background: transparent;
  border: none;
  color: #ff4d4d;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.cart-delete:hover {
  color: #ff0000;
  transform: scale(1.2);
}

/* Общие стили модалки корзины */
.cart-modal {
  max-width: 500px;
  width: 92%;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  font-weight: bold;
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.cart-checkout {
  width: 100%;
  padding: 1rem;
  background: var(--first-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.cart-checkout:hover {
  background: var(--first-color-alt);
  transform: translateY(-3px);
}
/* Фикс модалки корзины — она должна быть поверх всего экрана */

#cart-modal {
  display: none;
  /* остальные стили без !important */
}
/* Контент внутри модалки */
.cart-modal {
  position: relative;
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1.5rem;
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Крестик закрытия */
.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.8rem;
  cursor: pointer;
  color: var(--text-color-light);
  transition: all 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  color: var(--first-color);
  transform: rotate(90deg) scale(1.1);
}

/* ====================== MODAL (общий) ====================== */
.modal {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

/* Модалка корзины */
#cart-modal .modal-content,
#cart-modal .cart-modal {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1.5rem;
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

/* Закрытие модалок */
.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.8rem;
  cursor: pointer;
  color: var(--text-color-light);
  transition: all 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  color: var(--first-color);
  transform: rotate(90deg) scale(1.1);
}
/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--body-color);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 1rem;
}

.nav_logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
}

.nav_logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav_logo:hover { color: var(--first-color); }

/* Мобильная правая часть */
.nav_mobile_right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Десктопная правая часть */
.nav_desktop_right {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

/* Корзина всегда красивая */
.cart-wrapper {
  position: relative;
  cursor: pointer;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--first-color);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Бургер */
.nav_toggle {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--title-color);
}

/* Мобильное меню (полноэкранное, красивое) */
.nav_menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--body-color);
  z-index: 9999;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.nav_menu.show-menu {
  left: 0;
}

.nav_close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-color-light);
}

.nav_mobile_content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nav_contact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  padding: 0.8rem 1rem;
  background: var(--container-color);
  border-radius: 1rem;
  color: var(--title-color);
}

/* Десктоп */
@media (min-width: 769px) {
  .nav {
    padding: 0 2rem;
    height: 80px;
  }

  .nav_mobile_right { display: none; }
  .nav_desktop_right { display: flex; }

  .nav_logo img { width: 48px; height: 48px; }
  .nav_logo {  gap: 14px; }
}
/* ====================== HEADER + БУРГЕР ====================== */
body.menu-open {
  overflow: hidden;
}

.nav_menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--body-color);
  z-index: 9999;
  transition: left 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 5.5rem 2rem 3rem;
  overflow-y: auto;
}

.nav_menu.show-menu {
  left: 0;
}

.nav_mobile_content {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

/* ====================== КОРЗИНА НА МОБИЛКЕ (главное исправление) ====================== */
#cart-modal {
  display: none;
}

#cart-modal.show {
  display: flex !important;
}

#cart-modal .cart-modal {
  max-height: 92vh;
  width: 94%;
  margin: 4vh auto;
  padding: 1.6rem 1.25rem 2rem;
  border-radius: 1.8rem;
  overflow: hidden;
}

.cart-items {
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-delete {
  font-size: 1.7rem;
  padding: 10px;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Убираем скролл у body когда меню открыто */
@media (max-width: 768px) {
  .cart-items { max-height: 48vh; }
}
/* ====================== МЕНЮ КАРТОЧКИ (одинаковый размер + укороченный состав) ====================== */
.menu_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.cart-item-img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 1rem;
}

.menu_item {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--container-color);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  cursor: pointer;                 /* Подсказка, что кликабельно */
}

.menu_item:hover {
  transform: translateY(-8px);
}

.menu_item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 0 0;
}

.menu_item h4 {
  padding: 1rem 1.2rem 0.4rem;
  font-size: 1.3rem;
  text-align: center;
  min-height: 3.2rem;
  line-height: 1.3;
}

.menu_item p {
  flex-grow: 1;
  padding: 0 1.2rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 1.2rem;
  overflow: hidden;                /* ← Укороченный состав */
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;           /* 3 строки максимум */
  -webkit-box-orient: vertical;
}

.price {
  padding: 0 1.2rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--first-color);
  margin-bottom: 1.4rem;
}

.add-to-cart {
  margin-top: auto;
  margin: 0 1.2rem 1.2rem;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 2rem;
}

/* Мобилка */
@media (max-width: 768px) {
  .menu_grid { grid-template-columns: 1fr; }
  .menu_item img { height: 200px; }
  .menu_item p { -webkit-line-clamp: 4; }  /* На мобилке можно 4 строки для удобства */
}
/* ====================== МОДАЛКА ОФОРМЛЕНИЯ ====================== */
.checkout-modal {
  max-width: 480px;
  width: 94%;
  padding: 2rem 1.6rem;
  border-radius: 1.8rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--text-color-light);
  background: var(--container-color);
  color: var(--title-color);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--text-color-light);
}

.checkout-submit {
  width: 100%;
  padding: 1.2rem;
  background: var(--first-color);
  color: white;
  border: none;
  border-radius: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.checkout-submit:hover {
  background: var(--first-color-alt);
  transform: translateY(-3px);
}

/* Мобилка */
@media (max-width: 768px) {
  .checkout-modal { padding: 1.6rem 1.2rem; }
}
/* В style.css добавь/замени для корзины (в конец файла) */

/* Корзина в хедере (побольше на мобилке) */
.cart-wrapper, .cart-btn {
  position: relative;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  min-width: 58px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.cart-icon {
  font-size: 32px;  /* Больше на всех */
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--first-color);
  color: white;
  font-size: 1rem;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Плавающая корзина (на мобилке и десктопе, справа внизу) */
.floating-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--first-color);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9998;
  display: flex;  /* Всегда видна */
  align-items: center;
  justify-content: center;
  font-size: 36px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.floating-cart.show {
  opacity: 1;
  transform: scale(1);
}

.floating-cart .cart-badge {
  top: -10px;
  right: -10px;
  min-width: 30px;
  height: 30px;
  font-size: 1.1rem;
}

/* На мобилке ещё больше */
@media (max-width: 768px) {
  .cart-wrapper { min-width: 55px; height: 40px; }
  .cart-icon { font-size: 30px; }
  .floating-cart { width: 80px; height: 80px; font-size: 40px; bottom: 35px; right: 25px; }
}
/* В style.css добавь для подсказок */
.suggest-list {
  list-style: none;
  position: absolute;
  background: var(--container-color);
  border: 1px solid var(--text-color-light);
  border-radius: 1rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0;
}

.suggest-list li {
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

.suggest-list li:hover {
  background: var(--first-color-alt);
  color: white;
}
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--first-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  z-index: 999999 !important;   /* ← это главное */
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  font-weight: 500;
  max-width: 350px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* Тёмная тема для слайдера категорий */
.categories-slider-wrapper.dark-theme {
  background: linear-gradient(180deg, #0f0f17 0%, #14141f 100%);
  padding: 20px 0;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 1300px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* Сам слайдер */
.categories-slider {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 12px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

/* Кнопки категорий — тёмный стиль */
.category-btn {
  flex: 0 0 auto;
  padding: 12px 28px;
  background: rgba(30, 30, 46, 0.9);
  border: 1px solid rgba(100, 100, 140, 0.3);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: #d1d5db;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.category-btn:hover {
  background: rgba(50, 50, 70, 0.9);
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}

.category-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
  transform: scale(1.08);
}

/* Стрелки — тёмные, с неоновым акцентом */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(20, 20, 35, 0.85);
  border: 1px solid rgba(100, 100, 140, 0.4);
  border-radius: 50%;
  font-size: 26px;
  color: #a5b4fc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background: rgba(139, 92, 246, 0.3);
  color: white;
  border-color: #8b5cf6;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.slider-arrow.left  { left: 12px; }
.slider-arrow.right { right: 12px; }

/* Мобильная адаптация */
@media (max-width: 768px) {
  .categories-slider-wrapper.dark-theme {
    padding: 15px 0;
    margin: 15px auto;
    border-radius: 12px;
  }
  .category-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
}
.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;          /* квадратное фото, можно 4/3 или другое */
  overflow: hidden;
  background: #1a1a2e;          /* тёмный фон-заглушка */
  border-radius: 12px;
}

.menu_item img {
  transition: transform 0.4s ease;
}

.menu_item:hover img {
  transform: scale(1.08);
}
/* Стрелка наверх */
.scroll-to-top {
  position: fixed;
  bottom: 140px;          /* выше корзины (floating-cart на 80px + отступ) */
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--first-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 9998;          /* выше корзины, но ниже toast */
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--first-color-alt);
  transform: scale(1.1);
}

/* Адаптив */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 120px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
}
.work-time {
  text-align: center;
  font-size: 0.95rem;
  color: #777;
  margin: 10px 0 20px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.work-time i {
  font-size: 1.2rem;
  color: var(--first-color);
}
.weekly-set {
  background: linear-gradient(135deg, #0f0f17, #1a1a2e);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

.weekly-set_container {
  margin-top: 40px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.section_subtitle {
  color: #a5b4fc;
  font-size: 1.1rem;
  font-weight: 500;
}

.section_title {
  color: white;
  font-size: 2.4rem;
  margin: 10px 0 35px;
}

.weekly-set_card {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(25, 25, 40, 0.95);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
}

.weekly-set_card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(139, 92, 246, 0.3);
}

.weekly-set_image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.weekly-set_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.weekly-set_card:hover .weekly-set_img {
  transform: scale(1.1);
}

.weekly-discount {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #e74c3c;
  color: white;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
  z-index: 3;
}

.weekly-set_info {
  padding: 40px 35px;
  text-align: center;
  color: #ddd;
}

.weekly-set_name {
  font-size: 2rem;
  color: white;
  margin-bottom: 15px;
}

.weekly-set_desc {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 25px;
}

.weekly-set_price-block {
  margin-bottom: 30px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 1.4rem;
  margin-right: 12px;
}

.new-price {
  color: #ff4757;
  font-size: 2.4rem;
  font-weight: 700;
}

.weekly-set_btn {
  width: 100%;
  max-width: 320px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ff4757, #e74c3c);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.weekly-set_btn:hover {
  background: linear-gradient(135deg, #e74c3c, #ff4757);
  transform: translateY(-4px);
}
/* ====================== КРАСИВЫЙ ПЕРЕКЛЮЧАТЕЛЬ ====================== */
.delivery-toggle {
  margin-bottom: 1.8rem;
}

.toggle-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--title-color);
}

.toggle-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
}

.toggle-btn {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #ddd;
  background: var(--container-color);
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-color);
}

.toggle-btn i {
  font-size: 1.3rem;
}

.toggle-btn.active {
  border-color: var(--first-color);
  background: var(--first-color);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.toggle-btn:hover:not(.active) {
  border-color: var(--first-color);
  transform: translateY(-2px);
}

/* Темная тема */
body.dark-theme .toggle-btn {
  border-color: #444;
  background: #222;
}

body.dark-theme .toggle-btn.active {
  background: var(--first-color);
}
/* ==================== АДАПТИВ ПОД ТЕЛЕФОНЫ ==================== */
@media (max-width: 768px) {
  .weekly-set {
    padding: 50px 0 30px;
  }
  .section_title {
    font-size: 1.85rem;
  }
  .weekly-set_image-wrapper {
    height: 260px;
  }
  .weekly-set_info {
    padding: 30px 20px;
  }
  .weekly-set_name {
    font-size: 1.7rem;
  }
  .new-price {
    font-size: 2rem;
  }
  .weekly-set_btn {
    max-width: 100%;
    font-size: 1.05rem;
    padding: 15px;
  }
  .weekly-discount {
    font-size: 1.1rem;
    padding: 8px 14px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .weekly-set_image-wrapper {
    height: 220px;
  }
  .weekly-set_name {
    font-size: 1.55rem;
  }
}

/* ====================== ФИКС ПРОКРУТКИ МОДАЛКИ ОФОРМЛЕНИЯ ЗАКАЗА НА МОБИЛКЕ ====================== */
#checkout-modal .checkout-modal {
    max-height: 92vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;     /* плавная прокрутка на iPhone */
    padding-bottom: 30px;                  /* чтобы кнопка не прилипала к краю */
    box-sizing: border-box;
}

/* Дополнительно — делаем модалку чуть компактнее на очень маленьких экранах */
@media (max-width: 480px) {
    #checkout-modal .checkout-modal {
        max-height: 88vh;
        padding: 1.6rem 1.2rem 2.5rem;
    }
    
    .toggle-buttons button {
        padding: 12px 14px;
        font-size: 1rem;
    }
}

/* ===== Согласие на обработку ПД в форме заказа ===== */
.consent-group { margin: 12px 0 4px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.consent-label input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin: 2px 0 0; padding: 0; accent-color: #e74c3c; }
.consent-label a { color: inherit; text-decoration: underline; }
.footer_links li { color: inherit; }
