html, body {
    height: 100%; /* !!! Ключевое добавление для растягивания */
    margin: 0; /* Убедимся, что нет внешних отступов */
    padding: 0; /* И внутренних */
    /* background-color: #1e1e2f; */ /* Фон уже должен быть */
}

main {
    min-height: 100%; /* Занимает минимум всю высоту body */
    display: flex; /* Позволит контенту внутри расти */
    flex-direction: column;
}

.page { /* Добавим стиль для обертки контента */
    flex-grow: 1; /* Занимает оставшееся место в main */
    display: flex; 
}

.main-content-wrapper { /* Этот контейнер тоже должен расти */
    flex-grow: 1; 
    display: flex;
    min-height: 100%; /* <<< Добавляем минимальную высоту */
}

/* Специфичные стили для левой колонки на странице корзины */
.left-column.full-width.cart-page-column {
    /* justify-content: flex-start; */ /* Уже есть */
    flex-grow: 1; /* Занимает все место в .main-content-wrapper */
    display: flex; /* Уже является flex-контейнером */
    flex-direction: column;
    min-height: 100%; /* <<< Добавляем минимальную высоту */
}

/* Стили .cart-block */
.cart-block {
    /* ... background, box-shadow, padding ... */
    flex-grow: 1; /* Растет внутри .left-column */
    display: flex; 
    flex-direction: column; 
    width: 100%;
}

/* Стили для сообщения о пустой корзине */
.cart-block #empty-cart-message {
    /* ... color, text-align, font-size ... */
    flex-grow: 1; /* Растет внутри .cart-block */
    display: flex;
    align-items: center; 
    justify-content: center; 
    /* padding: 5vw; */ /* Уже есть */
}

/* ... Остальные стили ... */

.main-page,
.main-page * {
  box-sizing: border-box;
}
.main-page {
  background: #1f1f1f;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: auto;
  overflow-x: hidden;
}
.main-content-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.left-column {
  width: 58.854vw;
  height: 100%;
  display: flex; /* Используем Flexbox */
  flex-direction: column; /* Элементы идут сверху вниз */
  justify-content: center; /* !!!! Центрируем содержимое по ВЕРТИКАЛИ !!!! */
  align-items: center; /* !!!! Центрируем содержимое по ГОРИЗОНТАЛИ !!!! */
 
  box-sizing: border-box;

  overflow-y: auto; /* Оставляем прокрутку на случай очень маленьких экранов */
  
}

.right-column {
  width: 41.146vw;
  height: 100%;

  overflow: hidden;
}
.unsplash-r-q-wn-g-ta-ay-u {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  width: 41.146vw;
  height: 100vh;
  position: absolute;
  right: 0;
  top: 0;
  object-fit: cover;
}

.div {
  text-align: center;
  font-family: "Poppins-Bold", sans-serif;
  font-size: 3.333vw;
  font-weight: 700;
  position: absolute;
  left: 71.771vw;
  top: 37.778vh;
  width: auto;
  height: auto;
}

.div-span {
  color: #ffffff;
  font-family: "Poppins-Bold", sans-serif;
  font-size: inherit;
  font-weight: 700;
  display: inline; /* Изменяем на inline, чтобы "для" и "ТЕБЯ" были на одной строке */
}

.div-span2 {
  color: #f204ff;
  font-family: "Poppins-Bold", sans-serif;
  font-size: inherit;
  font-weight: 700;
}

.catalog-button {
  width: 10.417vw;
  height: 4.630vh;
  position: absolute;
  left: 74.688vw;
  top: 60.185vh;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.catalog-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button-container {
  background: #0febeb;
  border-radius: 50px;
  width: 100%;
  height: 100%;
}

.div2 {
  color: #000000;
  text-align: center;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1.25vw;
  font-weight: 600;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.feedback_wishes{
  max-height: 50px;
}
.polimer {
  color: #f204ff;
  text-align: left;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1.2rem; /* <<< Меняем vw на rem (подбери значение по вкусу) */
  letter-spacing: 0.05em;
  font-weight: 600;
  position: absolute;
  left: 7.5vw;
  top: 4.93vh;
}

.navigation-container {
  position: absolute;
  left: 21.5vw; /* Позиция по умолчанию для layout-split */
  top: 4.3vh; 
  display: flex;
  align-items: center;
  transition: left 0.4s ease, transform 0.4s ease; /* Плавный переход */
  white-space: nowrap; /* <<< Запрещаем перенос элементов */
}

/* Центрирование навигации на страницах с полной шириной */
.layout-full-width .navigation-container {
    left: 50%; 
    transform: translateX(-50%); 
    width: auto; /* Сбрасываем ширину, если была задана */
    /* Можно добавить max-width, чтобы на очень широких экранах меню не растягивалось */
    /* max-width: 1200px; */ 
}

.nav-item {
  display: flex;
  align-items: center;
  margin-right: 1.5rem; /* <<< Меняем vw на rem */
}

.nav-icon {
  width: 1.25rem; /* <<< Меняем vw на rem (примерно 20px) */
  height: 2.222vh; /* Оставим vh для высоты, если подходит */
  margin-right: 0.5rem; /* <<< Меняем vw на rem */
}

.nav-button {
  color: #ffffff;
  text-align: left;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1rem; /* <<< Меняем vw на rem (примерно 16px) */
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
  margin-right: 1.5rem; /* <<< Меняем vw на rem */
}


.nav-button:hover {
  color: #0febeb;
}

/* Убираем старые стили для отдельных кнопок навигации */
/* .nav-button:nth-child(4) { ... } */
/* .nav-button:nth-child(5) { ... } */
/* .nav-button:nth-child(6) { ... } */
/* .nav-button:nth-child(7) { ... } */

.menu {
  width: 1.25vw;
  height: 2.222vh;
  position: absolute;
  left: 5.208vw;
  top: 4.815vh;
  overflow: visible;
}

.user-corner {
  width: 1.25vw;
    height: 2.222vh;
    margin-right: 1.5vw;
    overflow: visible;
}

.icon-corner {
  width: 1.25vw;
  height: 2.222vh;

  overflow: visible;
}

._3-d {
  color: #8d8d8d;
  text-align: left;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 0.938vw;
  font-weight: 400;
  position: absolute;
  left: 5.208vw;
  top: 43.704vh;
  width: 48.333vw;
}

.div7 {
  text-align: left;
  font-family: "Poppins-Bold", sans-serif;
  font-size: 2.5vw;
  font-weight: 700;
  position: absolute;
  left: 5.208vw;
  top: 30.370vh;
  width: auto;
  height: auto;
}

.div-7-span {
  color: #ffffff;
  font-family: "Poppins-Bold", sans-serif;
  font-size: inherit;
  font-weight: 700;
  display: inline;
  padding-right: 15px;
}

.div-7-span2 {
  color: #f204ff;
  font-family: "Poppins-Bold", sans-serif;
  font-size: inherit;
  font-weight: 700;
  padding-right: 15px;
}

.div-7-span3 {
  color: #ffffff;
  font-family: "Poppins-Bold", sans-serif;
  font-size: inherit;
  font-weight: 700;
  padding-right: 15px;
}

.div-7-span4 {
  color: #0febeb;
  font-family: "Poppins-Bold", sans-serif;
  font-size: inherit;
  font-weight: 700;
}

.explore-button {
  width: 10.417vw;
  height: 4.630vh;
  position: absolute;
  left: 5.208vw;
  top: 53.333vh;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out; /* Добавил transition для красоты */
}

.explore-button:hover {
  transform: scale(1.05);
 /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);  Добавил стиль фона при наведении, как у "Каталог" Хрень некрасивая */ 
  color: #000000;
}

.button-container2 {
  background: #f204ff;
  border-radius: 50px;
  width: 100%;
  height: 100%;
}

.div8 {
  color: #ffffff;
  text-align: center;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1.25vw;
  letter-spacing: 0.05em;
  font-weight: 600;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.learn-more-button {
  color: #8d8d8d;
  text-align: center;
  font-family: "Poppins-Medium", sans-serif;
  font-size: 0.938vw;
  font-weight: 500;
  position: absolute;
  left: 17.344vw;
  top: 54.352vh;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.learn-more-button:hover {
  color: #f204ff;
}

.telegram {
  width: 2.25vw;
  height: 3.222vh;
  position: absolute;
  left: 5.208vw;
  top: 62.593vh;
  overflow: visible;
}

.vk {
  width: 2.25vw;
  height: 3.222vh;
  position: absolute;
  left: 7.5vw;
  top: 62.593vh;
  overflow: visible;
}

.whatsapp {
  width: 2.25vw;
  height: 3.222vh;
  position: absolute;
  left: 9.792vw;
  top: 62.593vh;
  overflow: visible;
}
/* --- Стили ТОЛЬКО для формы авторизации (login_menu.php) --- */

/* Контейнер самой формы */
.login-container {
  display: flex;             /* Используем Flexbox для выравнивания */
  flex-direction: column;    /* Элементы друг под другом */
  width: 100%;             /* Занимает доступную ширину в левой колонке */
  max-width: 550px;        /* Максимальная ширина как в вашем HTML */
  padding-top: 30%;              /* Убираем внутренние отступы, если они не нужны */
  margin: 0 auto;          /* Центрируем контейнер формы, если левая колонка шире */
  box-sizing: border-box;
  
}


/* Заголовок "С возвращением!" */
.login-container .login-title {
  color: #fff6f6;          /* Белый цвет текста */
  text-align: left;
  font-family: "Poppins-Medium", sans-serif; /* Шрифт как в вашем HTML */
  font-size: 5vh;         /* Размер шрифта как в вашем HTML */
  font-weight: 500;
  width: 100%;             /* Занимает всю ширину */
  margin-bottom: 8px;      /* Небольшой отступ снизу */
}

/* Описание под заголовком */
.login-container .login-description {
  color: #fff6f6;
  text-align: left;
  font-family: "Poppins-Medium", sans-serif;
  font-size: 2vh;
  font-weight: 500;
  width: 90%;
  margin-top: 0;
  margin-bottom: 25px;     /* Отступ перед полями ввода */
}

/* Контейнер для label + input */
.login-container .login-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;                /* Отступ между label и input */
  width: 100%;
  margin-bottom: 20px;     /* Отступ между группами Логин/Пароль */
}

/* Стиль для label (Логин, Пароль) */
.login-container .login-form-group .login-label {
  color: #fff6f6;
  text-align: left;
  font-family: "Poppins-Medium", sans-serif;
  font-size: 2vh;
  font-weight: 500;
}

/* Стиль для полей ввода */
.login-container .login-form-group .login-input {
  border-radius: 10px;       /* Скругление как в вашем HTML */
  border: 1px solid #d9d9d9; /* Рамка как в вашем HTML */
  padding: 10px 10px;      /* Внутренние отступы */
  width: 100%;             /* На всю ширину контейнера */
  /*height: 32px;             Высота как в вашем HTML */
  font-family: "Poppins-Medium", sans-serif;
  font-size: 1.3vh;         /* Размер шрифта плейсхолдера */
  font-weight: 500;
  background-color: transparent; /* Прозрачный фон */
  color: #ffffff;          /* Цвет вводимого текста */
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.login-container .login-form-group .login-input::placeholder {
  color: #d9d9d9;           /* Цвет плейсхолдера */
  opacity: 1;              /* Убедимся, что он виден */
}

.login-container .login-form-group .login-input:focus {
  border-color: #f204ff;      /* Розовая граница при фокусе */
  outline: none;           /* Убираем стандартный outline */
}

/* Стиль для кнопки "Войти" */
.login-container .login-button {
  background: #f204ff;       /* Розовый фон */
  border-radius: 10px;       /* Скругление */
  border: none;              /* Убираем границу */
  padding: 8px 0;          /* Вертикальный отступ для достижения нужной высоты */
  width: 100%;               /* На всю ширину */
  height: 40px;              /* Немного увеличим высоту для кликабельности */
  color: #ffffff;
  text-align: center;
  font-family: "Poppins-Bold", sans-serif; /* Жирный шрифт */
  font-size: 1.5vh;           /* Размер текста кнопки */
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;          /* Отступ сверху от поля пароля */
  line-height: normal;       /* Сбросим высоту строки */
}

.login-container .login-button:hover {
  background-color: #e000e0; /* Более темный розовый при наведении */
}

/* Стиль для текста "Нет аккаунта?" */
.login-container .login-no-account {
  margin-top: 20px;          /* Отступ сверху */
  text-align: center;        /* Центрирование текста */
  font-family: "Poppins-Medium", sans-serif;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
}

.login-container .login-no-account .login-no-account-text {
  color: #fff6f6;            /* Белый текст */
}

.login-container .login-no-account .login-no-account-text .login-register-link {
  color: #9e9ea0;            /* Серый цвет ссылки */
  text-decoration: none;
  font-weight: 500;          /* Обычный вес для ссылки */
}

.login-container .login-no-account .login-no-account-text .login-register-link:hover {
  text-decoration: underline;
}

/* Стиль для сообщения об ошибке */
.login-container .login-error-message {
    color: #ff4d4d; /* Яркий красный */
    font-size: 0.9em; /* Чуть меньше основного текста */
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

/* ... ваши существующие стили ... */

.login-container .login-form-group textarea.login-input {
  height: 150px; /* Или другая желаемая высота */
  resize: vertical; /* Позволить изменять размер по вертикали */
  padding: 10px; /* Добавим внутренние отступы */
}

.individual-container {
  display: flex;             /* Используем Flexbox для выравнивания */
  flex-direction: column;    /* Элементы друг под другом */
  width: 100%;             /* Занимает доступную ширину в левой колонке */
  max-width: 750px;        /* Максимальная ширина как в вашем HTML */
  padding-top: 16%;              /* Убираем внутренние отступы, если они не нужны */
  margin: 0 auto;          /* Центрируем контейнер формы, если левая колонка шире */
  box-sizing: border-box;
  
}

/* Заголовок "С возвращением!" */
.individual-container .login-title {
  color: #fff6f6;          /* Белый цвет текста */
  text-align: left;
  font-family: "Poppins-Medium", sans-serif; /* Шрифт как в вашем HTML */
  font-size: 5vh;         /* Размер шрифта как в вашем HTML */
  font-weight: 500;
  width: 100%;             /* Занимает всю ширину */
  margin-bottom: 8px;      /* Небольшой отступ снизу */
}

/* Описание под заголовком */
.individual-container .login-description {
  color: #fff6f6;
  text-align: left;
  font-family: "Poppins-Medium", sans-serif;
  font-size: 2vh;
  font-weight: 500;
  width: 90%;
  margin-top: 0;
  margin-bottom: 25px;     /* Отступ перед полями ввода */
}

/* Контейнер для label + input */
.individual-container .login-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;                /* Отступ между label и input */
  width: 100%;
  margin-bottom: 20px;     /* Отступ между группами Логин/Пароль */
}

/* Стиль для label (Логин, Пароль) */
.individual-container .login-form-group .login-label {
  color: #fff6f6;
  text-align: left;
  font-family: "Poppins-Medium", sans-serif;
  font-size: 2vh;
  font-weight: 500;
}

/* Стиль для полей ввода */
.individual-container .login-form-group .login-input {
  border-radius: 10px;       /* Скругление как в вашем HTML */
  border: 1px solid #d9d9d9; /* Рамка как в вашем HTML */
  padding: 10px 10px;      /* Внутренние отступы */
  width: 100%;             /* На всю ширину контейнера */
  /*height: 32px;             Высота как в вашем HTML */
  font-family: "Poppins-Medium", sans-serif;
  font-size: 1.3vh;         /* Размер шрифта плейсхолдера */
  font-weight: 500;
  background-color: transparent; /* Прозрачный фон */
  color: #ffffff;          /* Цвет вводимого текста */
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.individual-container .login-form-group .login-input::placeholder {
  color: #d9d9d9;           /* Цвет плейсхолдера */
  opacity: 1;              /* Убедимся, что он виден */
}

.individual-container .login-form-group .login-input:focus {
  border-color: #f204ff;      /* Розовая граница при фокусе */
  outline: none;           /* Убираем стандартный outline */
}

/* Стиль для кнопки "Войти" */
.individual-container .login-button {
  background: #f204ff;       /* Розовый фон */
  border-radius: 10px;       /* Скругление */
  border: none;              /* Убираем границу */
  padding: 8px 0;          /* Вертикальный отступ для достижения нужной высоты */
  width: 100%;               /* На всю ширину */
  height: 40px;              /* Немного увеличим высоту для кликабельности */
  color: #ffffff;
  text-align: center;
  font-family: "Poppins-Bold", sans-serif; /* Жирный шрифт */
  font-size: 1.5vh;           /* Размер текста кнопки */
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;          /* Отступ сверху от поля пароля */
  line-height: normal;       /* Сбросим высоту строки */
}

.individual-container .login-button:hover {
  background-color: #e000e0; /* Более темный розовый при наведении */
}

/* Стиль для текста "Нет аккаунта?" */
.individual-container .login-no-account {
  margin-top: 20px;          /* Отступ сверху */
  text-align: center;        /* Центрирование текста */
  font-family: "Poppins-Medium", sans-serif;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
}

.individual-container .login-no-account .login-no-account-text {
  color: #fff6f6;            /* Белый текст */
}

.individual-container .login-no-account .login-no-account-text .login-register-link {
  color: #9e9ea0;            /* Серый цвет ссылки */
  text-decoration: none;
  font-weight: 500;          /* Обычный вес для ссылки */
}

.individual-container .login-no-account .login-no-account-text .login-register-link:hover {
  text-decoration: underline;
}

/* Стиль для сообщения об ошибке */
.individual-container .login-error-message {
    color: #ff4d4d; /* Яркий красный */
    font-size: 0.9em; /* Чуть меньше основного текста */
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

/* ... ваши существующие стили ... */

.individual-container .login-form-group textarea.login-input {
  height: 150px; /* Или другая желаемая высота */
  resize: vertical; /* Позволить изменять размер по вертикали */
  padding: 10px; /* Добавим внутренние отступы */
  max-height: 150px;
  min-height: 45px;
}

/* Убедитесь, что эти стили тоже есть */
.login-error-message {
  color: #ff4d4d;
  font-size: 0.9vw;
  text-align: center;
  margin-bottom: 15px;
  width: 100%;
  background-color: rgba(255, 77, 77, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.login-success-message {
  color: #4CAF50;
  font-size: 0.9vw;
  text-align: center;
  margin-bottom: 15px;
  width: 100%;
  background-color: rgba(76, 175, 80, 0.1);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
/* --- Стили КОНКРЕТНО для страницы "О нас" (about_us.php) --- */

/* Контейнер для всего контента "О нас" внутри левой колонки */
.about-us-page {
  /* Убираем ограничения ширины и центрирование */
  /* max-width: min(1600px, 90%); */
  /* margin: 2vw auto;  */ 
  margin: 0; /* Сбрасываем margin */
  width: 100%; /* Явно задаем 100% ширину */

  /* Оставляем внутренние отступы, но можно настроить */
  /* Возможно, боковые отступы нужно уменьшить или убрать для full-width */
  padding: 4vw 5vw 0vw 5vw; /* Пример: уменьшили боковые отступы */

  background-color: #1e1e2f;
  color: #eee;
  margin-top: 100px;
  /* Убираем скругление и тень, т.к. блок на всю ширину */
  /* border-radius: 15px; */
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
}

.about-us-page .page-title {
    text-align: center;
    font-size: 2.8vw; /* Крупный заголовок */
    font-family: "Poppins-Bold", sans-serif; /* Используем жирный шрифт */
    color: #fff;
    margin-bottom: 1.5vw;
    padding-bottom: 1vw;
    position: relative;
    text-shadow: 0 0 15px rgba(15, 235, 235, 0.3);
}

.about-us-page .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0febeb, #f204ff); /* Градиентная линия */
    border-radius: 2px;
}

.about-section {
  display: flex;
    align-items: center;
    gap: 4vw;
    margin-bottom: 5vw;
    padding: 2.5vw;
    background-color: #292938;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* --- Анимация появления --- */
    opacity: 0; /* Изначально невидимы */
    transform: translateY(40px); /* Немного сдвинуты вниз */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease; /* Плавный переход + тень */
}

/* Класс для видимых секций */
.about-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section:hover {
    /* Ховер-эффект тени оставляем, но убираем transform, он теперь для появления */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Чередование: текст справа, картинка слева */
.about-section.text-right {
  flex-direction: row-reverse;
}

.about-text-content {
    flex: 1; /* Занимает доступное пространство */
    min-width: 50%; /* Минимальная ширина */
}

.about-image-container {
    flex: 1; /* Занимает доступное пространство */
    max-width: 45%; /* Ограничиваем ширину изображения */
    text-align: center;
}

.about-image {
  max-width: 100%;
  height: auto;
    border-radius: 8px;
   
    transition: transform 0.3s ease;
}

.about-section:hover .about-image {
    transform: scale(1.03);
}

.about-title {
    font-size: 2vw;
    font-family: "Poppins-SemiBold", sans-serif;
    margin-bottom: 1.5vw;
    position: relative;
    padding-bottom: 0.8vw;
}

/* Подчеркивание для заголовков */
.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Начальная ширина 0 */
    height: 3px;
    border-radius: 1.5px;
    /* Добавляем transition для ширины */
    transition: width 0.6s ease-out 0.4s; /* Задержка 0.4s после появления секции */
}

/* Когда секция видима, линия расширяется */
.about-section.is-visible .about-title::after {
    width: 70px; /* Конечная ширина */
}

/* Устанавливаем цвет линии в зависимости от класса заголовка */
.about-title.about-title-teal::after {
    background-color: #0febeb;
}

.about-title.about-title-magenta::after {
    background-color: #f204ff;
}

.about-text {
    font-size: 1.1vw;
    line-height: 1.7;
    color: #ccc;
  font-family: "Poppins-Regular", sans-serif;
}

.about-text:not(:last-child) {
    margin-bottom: 1vw;
}

.about-list {
  list-style: none;
  padding-left: 0;
}

.about-list li {
    font-size: 1.1vw;
  line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.2vw;
    padding-left: 2vw;
  position: relative;
    font-family: "Poppins-Regular", sans-serif;
}

.about-list li::before {
    content: '✓';
  position: absolute;
  left: 0;
    top: 0;
    color: #0febeb;
  font-weight: bold;
    font-size: 1.2em;
}

.about-list li strong {
    font-family: "Poppins-SemiBold", sans-serif;
    color: #fff;
}

/* Секция CTA */
.cta-section {
    text-align: center;
    padding: 4vw 2vw;
    margin-top: 5vw;
    background: linear-gradient(45deg, rgba(15, 235, 235, 0.1), rgba(242, 4, 255, 0.1)),
                radial-gradient(circle at top left, rgba(15, 235, 235, 0.15) 0%, transparent 30%),
                radial-gradient(circle at bottom right, rgba(242, 4, 255, 0.15) 0%, transparent 30%);
    background-color: #292938; /* Фоллбэк */
    border-radius: 10px;
    border: 1px solid rgba(15, 235, 235, 0.3);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  position: relative;
    overflow: hidden;
    margin-bottom: 4vw; /* Добавляем отступ снизу перед футером */
}

/* Небольшой эффект свечения для CTA */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(15, 235, 235, 0.1) 0%, rgba(15, 235, 235, 0) 70%);
    animation: rotateGlow 15s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Контент CTA должен быть поверх свечения */
.cta-title,
.cta-subtitle,
.cta-button {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.2vw;
    color: #fff;
    margin-bottom: 0.8vw;
  font-family: "Poppins-Bold", sans-serif;
}

.cta-subtitle {
    font-size: 1.2vw;
    color: #ccc;
    margin-bottom: 2vw;
    font-family: "Poppins-Regular", sans-serif;
}

.cta-button {
    display: inline-block;
    padding: 0.8vw 2.5vw;
    font-size: 1.1vw;
    font-family: "Poppins-SemiBold", sans-serif;
    color: #000;
    background-color: #0febeb;
  border: none;
  border-radius: 50px;
  cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 235, 235, 0.3);
}

.cta-button:hover {
    background-color: #f204ff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 4, 255, 0.4);
}

/* --- Стили для футера --- */
.footer-section {
  width: 98vw; /* Растянуть на всю ширину экрана */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  text-align: center;
  margin-top: 30px;
  padding: 20px 0;
  color: #8d8d8d;
  font-family: "Poppins-Regular", sans-serif;
  font-size: max(0.8vw, 13px);
  border-top: 1px solid #444;
  background-color: #1f1f1f; /* Если хочешь чтобы фон совпадал с фоном всей страницы */
}
/* Делает left-column шириной 100% только если применён класс full-width */
.left-column.full-width {
  width: 100% ;
}

/* Также желательно скрыть right-column */
.full-width ~ .right-column {
  display: none ;
}

/* --- Каталог товаров --- */
.catalog-block {
    width: 100%;
    padding: 2vw;
    background: #1f1f2f;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: 100px;
    /* --- Добавляем анимацию --- */
    opacity: 0; /* Изначально скрыт */
    animation: fadeInUp 0.6s 0.1s ease-out forwards; /* Применяем анимацию */
}

.catalog-title {
    color: #ffffff;
  font-family: "Poppins-Bold", sans-serif;
    font-size: 2.5vw;
  margin-bottom: 2vw;
    text-align: center;
    position: relative;
}

.catalog-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #f204ff, #0febeb);
    border-radius: 3px;
}

.catalog-filter-form {
  display: flex;
    gap: 1.5vw;
  margin-bottom: 2vw;
    flex-wrap: wrap;
}

.catalog-search-input {
    flex: 1;
    min-width: 200px;
    padding: 1.2vw 1.8vw;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
  font-family: "Poppins-Regular", sans-serif;
    font-size: 1.1vw;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.catalog-search-input:focus {
    border-color: #0febeb;
    box-shadow: 0 0 20px rgba(15, 235, 235, 0.2);
    background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.catalog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.catalog-category-select {
    min-width: 200px;
    padding: 1.2vw 1.8vw;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-family: "Poppins-Regular", sans-serif;
    font-size: 1.1vw;
  cursor: pointer;
   
    backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230febeb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2vw center;
    background-size: 1.2vw;
    padding-right: 3vw;
}

.catalog-category-select:focus {
   
    box-shadow: 0 0 20px rgba(242, 4, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.catalog-category-select option {
    background: #1f1f1f;
    color: #ffffff;
    padding: 1vw;
}

.catalog-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2vw;
    padding: 1vw;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(15, 235, 235, 0.3);
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
    height: 100%;
    padding: 1.5vw;
}

.product-image {
  width: 100%;
    height: 200px;
  object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5vw;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    background: linear-gradient(45deg, #1f1f1f, #2f2f2f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-family: "Poppins-Regular", sans-serif;
    font-size: 1vw;
}

.product-name {
    color: #ffffff;
    font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1.2vw;
    margin-bottom: 1vw;
    line-height: 1.4;
    min-height: 2.4em;
}

.product-desc {
    color: rgba(255, 255, 255, 0.7);
  font-family: "Poppins-Regular", sans-serif;
    font-size: 0.9vw;
    margin-bottom: 1.5vw;
    line-height: 1.5;
    flex-grow: 1;
    min-height: 4.5em;
}

.product-prices {
  display: flex;
  align-items: center;
    gap: 1vw;
    margin-bottom: 1.5vw;
}

.product-new-price {
  color: #0febeb;
  font-family: "Poppins-Bold", sans-serif;
    font-size: 1.5vw;
}

.product-old-price {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Poppins-Regular", sans-serif;
    font-size: 1.2vw;
  text-decoration: line-through;
}

.product-more-btn {
  width: 100%;
    padding: 1.2vw;
    background: transparent;
    border: 2px solid #0febeb;
  border-radius: 12px;
    color: #0febeb;
  font-family: "Poppins-SemiBold", sans-serif;
    font-size: 1.1vw;
  cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: auto;
}

.product-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: #0febeb;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.product-more-btn:hover {
    color: #000000;
    box-shadow: 0 0 20px rgba(15, 235, 235, 0.3);
}

.product-more-btn:hover::before {
    transform: scaleX(1);
}

.product-more-btn:active {
    transform: scale(0.98);
}

.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Poppins-Regular", sans-serif;
  font-size: 1.2vw;
    padding: 3vw;
    margin-top: 100px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .catalog-title {
        font-size: 4vw;
    }
    
    .catalog-filter-form {
        flex-direction: column;
    }
    
    .catalog-search-input,
    .catalog-category-select {
        width: 100%;
        font-size: 3vw;
        padding: 2vw;
    }
    
.product-name {
        font-size: 3vw;
    }
    
    .product-desc {
        font-size: 2.5vw;
    }
    
    .product-new-price {
        font-size: 4vw;
    }
    
    .product-old-price {
        font-size: 3vw;
    }
    
    .product-more-btn {
        font-size: 3vw;
        padding: 2vw;
    }
    
    .catalog-empty {
        font-size: 3vw;
    }
}

/* --- Страница отдельного товара --- */
.product-detail-card {
  /* Убираем градиент, рамку, тень и скругления для full-width */
  /* background: linear-gradient(145deg, #212130, #1c1c2a); */
  background-color: #1f1f2f; /* Ставим основной фон */
  /* border-radius: 18px; */
  /* box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5); */
  /* border: 1px solid #0febeb55; */

  /* Убираем ограничение ширины и центрирование */
  /* max-width: 1200px; */
  /* margin: 5vw auto 0 auto; */
  margin: 0; /* Сбрасываем margin */
  width: 100%; /* Явно 100% */
  margin-top: 100px; /* Оставляем верхний отступ (или регулируем) */

  /* Адаптируем внутренние отступы */
  padding: 3vw 5vw; /* Уменьшаем боковые, оставляем верх/низ */

  display: flex;
  flex-direction: column;
  opacity: 0; /* Анимация остается */
  animation: fadeInUp 0.6s 0.1s ease-out forwards;
}

.product-back-link {
  color: #0febeb;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1vw;
  margin-bottom: 2vw; /* Больше отступ */
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  align-self: flex-start;
}
.product-back-link:hover {
  color: #f204ff;
}

.product-detail-flex {
  display: flex;
  gap: 3vw; /* Отступ между картинкой и правой частью */
  align-items: flex-start;
}

.product-detail-image-wrap {
  flex: 0 0 40%; /* Фиксированная ширина для картинки (можно настроить) */
  position: sticky; /* Чтобы картинка 'залипала' при прокрутке отзывов */
  top: 100px; /* Отступ сверху для 'залипшей' картинки (под хедером) */
}

.product-detail-image {
  width: 100%;
  object-fit: cover;
  border-radius: 14px; /* Slightly more rounded */
  border: 1px solid #0febeb33;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover */
}


.product-image-placeholder {
  background-color: #2a2a3e;
  border: 1px dashed #0febeb55;
}

.product-detail-info {
  flex: 1 1 auto; /* Занимает оставшееся место */
  display: flex;
  flex-direction: column;
  gap: 1.2vw; /* Отступы между элементами инфо */
}

.product-detail-category {
  font-family: "Poppins-Regular", sans-serif;
  font-size: 0.9em;
  color: #ffffff; /* Второй неон для категории */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-detail-name {
  font-family: "Poppins-Bold", sans-serif;
  font-size: 2.2vw;
  color: #fff;
  line-height: 1.2;
}

.product-detail-desc {
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1.15vw;
  color: #e0e0e0;
  margin-bottom: 1vw;
  line-height: 1.6;
}

.product-prices {
  display: flex;
  gap: 1vw;
  align-items: baseline; /* Выравнивание по базовой линии */
  margin-top: 1vw;
}

.product-new-price {
  color: #0febeb;
  font-size: 1.8em; /* Крупная новая цена */
  font-family: "Poppins-Bold", sans-serif;
}

.product-old-price {
  color: #f204ff88; /* Приглушенный второй неон */
  text-decoration: line-through;
  font-size: 1.2em;
  font-family: "Poppins-Regular", sans-serif;
}

.product-detail-actions {
  margin-top: 1.5vw; /* Отступ для кнопок */
  display: flex;
  gap: 1.5vw;
}

/* Стили кнопок - наследуем/адаптируем от существующих */
.product-detail-actions .product-more-btn {
  /* ... (основные стили: padding, font, border-radius, cursor, transition, etc.) ... */

  background: transparent;       /* Прозрачный фон по умолчанию */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Общий псевдоэлемент для эффекта заливки */
.product-detail-actions .product-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

/* Общие стили для hover */
.product-detail-actions .product-more-btn:hover {
  color: #000; /* Текст становится черным при наведении */
  transform: none; /* Убираем другие эффекты transform, если были */
}
.product-detail-actions .product-more-btn:hover::before {
    transform: scaleX(1); /* Псевдоэлемент заполняет кнопку */
}

/* Кнопка "В корзину" (Бирюзовый, заливка слева) */
.product-detail-actions form[action="action_cart.php"] .product-more-btn {
  border-color: #0febeb;
  color: #0febeb;
}
.product-detail-actions form[action="action_cart.php"] .product-more-btn::before {
    background: #0febeb;
    transform-origin: left;
}
.product-detail-actions form[action="action_cart.php"] .product-more-btn:hover {
  box-shadow: 0 0 20px rgba(15, 235, 235, 0.3);
   color: #000000;
}

/* Кнопка "В избранное" (Пурпурный, заливка справа) */
.product-detail-actions #add-to-favorite-form .product-more-btn {
  border-color: #f204ff;
  color: #f204ff;
  background: transparent; /* Убеждаемся, что фон прозрачный */
  /* Убираем все лишние свойства, которые могли остаться */
  box-shadow: none;
}
.product-detail-actions #add-to-favorite-form .product-more-btn::before {
    background: #f204ff;
    transform-origin: right;
}
.product-detail-actions #add-to-favorite-form .product-more-btn:hover {
  /* Цвет текста при наведении на пурпурную заливку, можно #fff или #000 */
  color: #fff;
  box-shadow: 0 0 20px rgba(242, 4, 255, 0.3);
}
/* Ховер для ::before остается без изменений */

/* Стили для ссылок входа (Остаются без изменений) */
.product-detail-actions a.product-more-btn {
   background: #444;
   color: #eee;
   border: none;
}

/* ... Остальные стили ... */

.cart-block {
  background: #23232b;
 
  box-shadow: 0 4px 32px #0003;
  padding: 2.5vw 2vw 2vw 2vw;
  flex-grow: 1;

  width: 100%;
  margin-top: 100px;
}

.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.7vw;
  margin-bottom: 2vw;
  background: none;
}
.cart-table th, .cart-table td {
  padding: 0.8vw 0.7vw;
  text-align: left;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1vw;
  color: #fff;
  background: none;
}
.cart-table th {
  color: #0febeb;
  font-family: "Poppins-Bold", sans-serif;
  font-size: 1.1vw;
  border-bottom: 2px solid #2a2a2a;
}
.cart-table tr {
  background: #292938;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
}
.cart-table-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  background: #181818;
  display: block;
}
.cart-table-image-placeholder {
  background: #181818;
  width: 70px;
  height: 60px;
  border-radius: 10px;
}
.cart-table-link {
  color: #f204ff;
  text-decoration: none;
  font-family: "Poppins-SemiBold", sans-serif;
  transition: color 0.2s;
}
.cart-table-link:hover {
  color: #0febeb;
  text-decoration: underline;
}
.cart-table-remove {
  background-color: #c0392b;
  border: none;
  color: #000000; /* Белый текст */
  font-size: 0.9em; /* Размер шрифта для текста */
  font-family: 'Poppins-SemiBold', sans-serif; /* Шрифт */
  cursor: pointer;
  padding: 0.4em 0.8em; /* Отступы как у кнопки Редактировать */
  border-radius: 6px; /* Скругление как у кнопки Редактировать */
  vertical-align: middle; /* Выравнивание */
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
  
}



.cart-table-summary {
  margin-top: 2vw;
  display: flex;
  flex-direction: column;
  
  gap: 1vw;
}
.cart-table-total {
  color: #fff;
  font-size: 1.3vw;
  font-family: "Poppins-Bold", sans-serif;
  margin-bottom: 0.5vw;
}
.cart-table-form {
  display: flex;
  flex-direction: row;
  gap: 1vw;
  align-items: center;
  width: 100%;
  max-width: 420px;
}
.cart-table-label {
  color: #fff;
  font-size: 1vw;
  font-family: "Poppins-Regular", sans-serif;
}
.cart-table-input {
  width: 100%;
  min-width: 120px;
  max-width: 320px;
  padding: 0.5vw 1vw;
  font-size: 1vw;
  border: 1.5px solid #0febeb;
  border-radius: 10px;
  background: #23232f;
  color: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
  outline: none;
  margin: 0.2vw 0;
}
.cart-table-input:focus {
  
  box-shadow: 0 0 0 2px #0febeb44;
  background: #23233a;
}
.cart-table-input[type="file"] {
  background: none;
  color: #fff;
  border: none;
  box-shadow: none;
  padding: 0;
}
.cart-table-input::-webkit-input-placeholder {
  color: #aaa;
}
.cart-table-input:-ms-input-placeholder {
  color: #aaa;
}
.cart-table-input::placeholder {
  color: #aaa;
}
.cart-table-input, .cart-table-input option, .cart-table-input select {
  font-family: "Poppins-Regular", sans-serif;
}
.cart-table-input option {
  background: #23232f;
  color: #fff;
}




.cart-table-remove:hover {
 
 
  opacity: 1 !important;
  /* transform: translateY(-1px); */ /* Убрали */
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.2) !important;
}

.cart-table-summary {
  margin-top: 2vw;
  display: flex;
  flex-direction: column;
  
  gap: 1vw;
}
.cart-table-total {
  color: #fff;
  font-size: 1.3vw;
  font-family: "Poppins-Bold", sans-serif;
  margin-bottom: 0.5vw;
}
.cart-table-form {
  display: flex;
  flex-direction: row;
  gap: 1vw;
  align-items: center;
  width: 100%;
  max-width: 420px;
}
.cart-table-label {
  color: #fff;
  font-size: 1vw;
  font-family: "Poppins-Regular", sans-serif;
}
.cart-table-input {
  width: 100%;
  min-width: 120px;
  max-width: 320px;
  padding: 0.5vw 1vw;
  font-size: 1vw;
  border: 1.5px solid #0febeb;
  border-radius: 10px;
  background: #23232f;
  color: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
  outline: none;
  margin: 0.2vw 0;
}
.cart-table-input:focus {
  
  box-shadow: 0 0 0 2px #0febeb44;
  background: #23233a;
}
.cart-table-input[type="file"] {
  background: none;
  color: #fff;
  border: none;
  box-shadow: none;
  padding: 0;
}
.cart-table-input::-webkit-input-placeholder {
  color: #aaa;
}
.cart-table-input:-ms-input-placeholder {
  color: #aaa;
}
.cart-table-input::placeholder {
  color: #aaa;
}
.cart-table-input, .cart-table-input option, .cart-table-input select {
  
  width: 100%;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid #0febeb66;
    border-radius: 8px;
    color: #eee;
    font-family: "Poppins-Regular", sans-serif;
    font-size: 0.95em;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box;
}
.cart-table-input option {
  background: #23232f;
  color: #fff;
}
.cart-table-order-btn {
  background-color: #0febeb;
  color: #1a1a2e;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s, color 0.3s;
  border: none;
  font-family: 'Poppins-SemiBold', sans-serif;
  margin-right: 5px; /* Добавим небольшой отступ справа */
  margin-bottom: 5px;
}
.cart-table-order-btn:hover {
  box-shadow: 0 0 15px rgba(45, 189, 233, 0.3);
}




.new-product-layout {
  padding: 3vw 3vw 2vw 3vw;
 
 
  box-shadow: 0 4px 32px #0003;
}
.product-detail-flex {
  display: flex;
  flex-direction: row;
  gap: 3vw;
  align-items: flex-start;
  justify-content: flex-start;
}
.big-product-image {
  width: 470px;
  height: 470px;
  object-fit: cover;
  border-radius: 22px;
  background: #181818;
  box-shadow: 0 4px 24px #0004;
  display: block;
}
.product-detail-image-wrap {
  flex: 0 0 370px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.product-detail-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0.5vw;
}
.product-detail-category {
  color: #ffffff;
  font-size: 1.1vw;
  font-family: "Poppins-SemiBold", sans-serif;
  margin-bottom: 0.5vw;
}
.product-detail-name {
  font-family: "Poppins-Bold", sans-serif;
  font-size: 2.2vw;
  color: #fff;
  margin-bottom: 0.5vw;
  line-height: 1.1;
}
.product-detail-desc {
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1.15vw;
  color: #e0e0e0;
  margin-bottom: 1vw;
  line-height: 1.6;
}
.product-prices {
  display: flex;
  gap: 1vw;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5vw;
}
.product-new-price {
  color: #0febeb;
  font-size: 1.5vw;
  font-family: "Poppins-Bold", sans-serif;
}
.product-old-price {
  color: #f204ff;
  text-decoration: line-through;
  font-size: 1.1vw;
}
.product-detail-actions {
  margin-top: 1vw;
  display: flex;
  gap: 1vw;
}
.product-more-btn {
  min-width: 170px;
  font-size: 1.1vw;
  padding: 0.8vw 0;
  border-radius: 14px;
  box-shadow: 0 2px 8px #0febeb22;
}
.product-back-link {
  margin-top: 2vw;
  font-size: 1vw;
}

.profile-block {
  background: #23232b;
  border-radius: 24px;
  box-shadow: 0 4px 32px #0003;
  padding: 2.5vw 2vw 2vw 2vw;
  max-width: 1100px;
  margin: 10%;
  width: 100%;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-bottom: 2vw;
}
.profile-username {
  color: #fff;
  font-size: 1.2vw;
  font-family: "Poppins-SemiBold", sans-serif;
}
.profile-logout-btn {
  background: #f204ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1vw;
  font-weight: 600;
  padding: 0.5vw 2vw;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 1vw;
}
.profile-logout-btn:hover {
  background: #0febeb;
  color: #000;
}
.profile-admin-btn {
  background: #0febeb;
  color: #000;
  border-radius: 10px;
  border: none;
  padding: 0.5vw 2vw;
  font-size: 1vw;
  font-family: "Poppins-SemiBold", sans-serif;
  font-weight: 700;
 
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.profile-admin-btn:hover {
  background: #f204ff;
  color: #fff;
}
.profile-section {
  margin-bottom: 2vw;
}
.profile-section h2 {
  color: #0febeb;
  font-size: 1.3vw;
  font-family: "Poppins-Bold", sans-serif;
  margin-bottom: 1vw;
}
.profile-empty {
  color: #aaa;
  font-size: 1vw;
  margin-bottom: 1vw;
}
.profile-orders-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-order-item {
  color: #fff;
  font-size: 1vw;
  background: #292938;
  border-radius: 10px;
  margin-bottom: 0.7vw;
  padding: 0.7vw 1vw;
  font-family: "Poppins-Regular", sans-serif;
}
.profile-favorites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
}
.profile-fav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #292938;
  border-radius: 10px;
  padding: 0.7vw 1vw;
  text-decoration: none;
  color: #fff;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1vw;
  transition: box-shadow 0.2s, transform 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0002;
  min-width: 120px;
  max-width: 160px;
}
.profile-fav-link:hover {
  color: #0febeb;
  box-shadow: 0 6px 24px #0febeb44;
  transform: translateY(-4px) scale(1.03);
}
.profile-fav-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5vw;
  background: #181818;
}

.admin-modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,30,0.75);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  backdrop-filter: blur(5px); /* Добавляем блюр */
}
.admin-modal-bg.show {
  display: flex;
  animation: fadeInBg 0.3s;
}
@keyframes fadeInBg {
  from { background: rgba(20,20,30,0); }
  to { background: rgba(20,20,30,0.75); }
}
.admin-modal-window {
  background: #2a2a3e; /* Немного другой фон */
  border-radius: 24px;
  box-shadow: 0 8px 32px #00000088; /* Более выраженная тень */
  padding: 2vw 2.5vw; /* Увеличим паддинг */
  border: 1px solid #0febeb66;
  min-width: 420px;
  max-width: 98vw;
  max-height: 78vh;
  position: relative;
  transform: translateY(-40px) scale(0.98);
  opacity: 0;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
  overflow-y: auto;
  animation: fadeInScale 0.3s ease-out forwards;
}
.admin-modal-bg.show .admin-modal-window {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.admin-modal-close {
  position: absolute;
  top: 1vw;
  right: 1vw;
  background: none;
  border: none;
  color: #f204ff;
  font-size: 2em;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
  transition: color 0.2s, transform 0.2s;
}
.admin-modal-close:hover {
  color: #0febeb;
  transform: rotate(90deg);
}
.admin-modal-content {
  margin-top: 1vw;
}
.admin-modal-content h2 {
    color: #0febeb;
    text-align: center;
    margin-bottom: 2vw; /* Больше отступ снизу */
    font-size: 1.6vw;
}
.admin-panel-tabs {
  margin-bottom: 2vw;
  display: flex;
  gap: 1vw;
}
.admin-tab-btn {
  background: #292938;
  color: #fff;
  border: none;
  border-radius: 10px 10px 0 0;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1vw;
  padding: 0.7vw 2vw;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.admin-tab-btn:hover {
  background: #0febeb;
  color: #000;
}
.admin-panel-tab {
  background: #292938;
  color: #fff;
  border: none;
  border-radius: 10px 10px 0 0;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1vw;
  padding: 0.7vw 2vw;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-right: 0.5vw;
  outline: none;
}
.admin-panel-tab.active,
.admin-panel-tab:focus {
  background: #0febeb;
  color: #000;
}
.admin-panel-tab:hover {
  background: #0febeb;
  color: #000;
}
.password-table-input{
  width: 100%;
  min-width: 120px;
  
  padding: 0.5vw 1vw;
  font-size: 1vw;
  border: 1.5px solid #0febeb;
  border-radius: 10px;
  background: #23232f;
  color: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
  outline: none;
  margin: 0.2vw 0;
}


/* Шапка */

.header-avatar-link {
  display: flex;
  align-items: center;
  gap: 0.8vw; /* Spacing between avatar and username */

  text-decoration: none;
}
.header-avatar-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0febeb;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header-avatar-img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px #0febeb88;
}
.header-username {
  color: #fff;
  font-size: 1vw;
  font-family: "Poppins-Regular", sans-serif;
  transition: color 0.2s;
}
.header-avatar-link:hover .header-username {
  color: #0febeb; /* Highlight username on hover */
}
.user-corner {
  width: 30px;
  height: 30px;
}

/* Кнопка Редактировать профиль */
.profile-edit-btn {
  background: #0febeb;
  color: #000;
  border: none;
  padding: 0.7vw 2vw;
  border-radius: 10px;
  font-size: 1.1vw;
  font-family: "Poppins-SemiBold", sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.profile-edit-btn:hover {
  background: #f204ff;
  color: #fff;
}
.profile-edit-btn:active {
    transform: scale(0.98);
}

/* Форма в модальном окне редактирования */
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.5vw; /* Увеличим еще gap */
}
.profile-edit-form .login-form-group {
  margin-bottom: 0; /* Remove bottom margin as we use gap now */
}
.profile-edit-form .login-label {
  display: block;
  margin-bottom: 0.5vw; /* Увеличим отступ */
  color: #ccc;
  font-size: 1em;
  font-weight: 500;
}
.profile-edit-form .cart-table-input {
  width: 100%;
  max-width: none;
  padding: 0.8vw 1.2vw; /* Увеличим padding инпутов */
  font-size: 1em;
  /* Стили из .cart-table-input применяются, но можно переопределить фон/бордер */
  background: #1f1f2f;
  border: 1px solid #444;
  border-radius: 8px; /* Чуть меньше радиус */
}
.profile-edit-form .cart-table-input:focus {
  background: #2a2a3e;
  border-color: #0febeb;
  box-shadow: 0 0 0 3px #0febeb33;
}

.profile-edit-form hr {
  border: none;
  height: 1px;
  background-color: #0febeb55; /* Цвет разделителя */
  margin: 1.5vw 0;
}

/* Стили кнопки сохранения */
.profile-edit-form .cart-table-order-btn {
    padding: 0.8vw 2vw;
    font-size: 1.1em;
    margin-top: 1vw; /* Отступ сверху */
    align-self: center; /* Кнопка по центру */
}

/* Стили сообщений внутри формы остаются */
.profile-edit-form .profile-form-message {
    padding: 0.8vw;
    margin-top: 1vw;
    border-radius: 8px;
    font-size: 0.9em;
    text-align: center;
    display: none; /* Hidden by default */
}
.profile-edit-form .profile-form-message.error {
    background-color: rgba(242, 4, 255, 0.15);
  color: #f204ff;
    border: 1px solid #f204ff55;
    display: block;
}
.profile-edit-form .profile-form-message.success {
    background-color: rgba(15, 235, 235, 0.15);
  color: #0febeb;
    border: 1px solid #0febeb55;
    display: block;
}

/* Аватар в профиле (основная страница) */
.profile-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0febeb;
  display: block; /* Ensure it behaves like a block */
  margin: 0 auto 0.5vw auto; /* Center horizontally */
}



.profile-edit-modal-window {
  background: linear-gradient(145deg, #252537, #2c2c44); /* Градиентный фон */
  border-radius: 18px; /* Меньше радиус */
  border: 1px solid #0febeb66; /* Цвет рамки */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); /* Мягкая тень */
  padding: 2.5vw 3vw; /* Паддинги */
  
  /* Наследует базовые стили окна от .admin-modal-window (позиционирование и т.д.) */
  position: relative;
  margin: 5vh auto; /* Отступ сверху и авто по бокам */
  animation: fadeInScale 0.3s ease-out forwards; /* Анимация появления */
  
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-edit-modal-close {
  /* Наследует стили от .admin-modal-close */
  color: #f204ff;
  font-size: 2.2em;
  position: absolute; /* Позиционируем кнопку закрытия */
  top: 1vw;
  right: 1.5vw;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.profile-edit-modal-close:hover {
  color: #0febeb;
  transform: rotate(90deg);
}



.profile-edit-modal-content h2 {
  color: #0febeb;
  text-align: center;
  margin-bottom: 2.5vw;
  font-size: 1.8vw;
  font-family: "Poppins-Bold", sans-serif; /* Используем жирный шрифт */
}

/* Стили самой формы редактирования */
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.8vw; /* Еще увеличим gap */
}

.profile-edit-form .login-label {
  display: block;
  margin-bottom: 0.6vw;
  color: #ccc;
  font-size: 1em;
  font-family: "Poppins-SemiBold", sans-serif; /* Полужирный для лейблов */
}

/* Используем общий класс для инпутов формы */
.profile-edit-form .cart-table-input {
  width: 100%;
  padding: 0.9vw 1.3vw;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.05); /* Полупрозрачный фон */
  border: 1px solid #0febeb88; /* Цвет рамки */
  border-radius: 10px;
  color: #fff;
  font-family: "Poppins-Regular", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.profile-edit-form .cart-table-input::placeholder {
  color: #aaa;
}

.profile-edit-form .cart-table-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f204ff;
  box-shadow: 0 0 0 3px #f204ff44; /* Тень при фокусе */
  outline: none;
}

.profile-edit-form hr {
  border: none;
  height: 1px;
  background-color: #0febeb33; /* Полупрозрачный разделитель */
  margin: 1vw 0;
}

/* Кнопка сохранения */
.profile-edit-save-btn {
  padding: 0.9vw 2.5vw; /* Увеличим паддинги */
  font-size: 1.1em;
  margin-top: 1.5vw;
  align-self: center;
  background: linear-gradient(45deg, #0febeb, #f204ff); /* Градиент */
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Poppins-SemiBold", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 235, 235, 0.3);
}

.profile-edit-save-btn:hover {
  background: linear-gradient(45deg, #f204ff, #0febeb);
  box-shadow: 0 6px 20px rgba(242, 4, 255, 0.4);
  transform: translateY(-2px);
}

.profile-edit-save-btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Стили сообщений */
.profile-edit-form .profile-form-message {
    padding: 1vw;
    margin-top: 0;
    margin-bottom: 1.5vw; /* Показываем над формой */
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    display: none;
    font-family: "Poppins-Regular", sans-serif;
    border-width: 1px;
    border-style: solid;
}

.profile-edit-form .profile-form-message.error {
    background-color: rgba(242, 4, 255, 0.1);
    color: #ff78f5; /* Светлее */
    border-color: #f204ff88;
    display: block;
}

.profile-edit-form .profile-form-message.success {
    background-color: rgba(15, 235, 235, 0.1);
    color: #64ffda; /* Светлее */
    border-color: #0febeb88;
    display: block;
}

/* ... Остальные стили ... */

/* Modern Gradient Scrollbar (Based on Example 5) */
:root {
  --scroll-size: 15px;
  --scroll-radius: 20px;
 
  --scroll-thumb: linear-gradient(45deg, #00aeff, #a68eff);
}

/* Webkit browsers */
::-webkit-scrollbar {
    width: var(--scroll-size);
    height: var(--scroll-size);
}

::-webkit-scrollbar-track {
    background-color: var(--scroll-track);
    border-radius: var(--scroll-radius);
}

::-webkit-scrollbar-thumb {
    background-image: var(--scroll-thumb);
    border-radius: var(--scroll-radius);
    /* Add slight border for better separation */
    border: 3px solid transparent;
    background-clip: padding-box;
}



::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    /* Using one of the gradient colors and the track color */
    --scroll-size: 15px;
    --scroll-radius: 20px;

    --scroll-thumb: linear-gradient(45deg, #0febeb, #f204ff);
}

/* --- Анимации --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Секция сопутствующих товаров --- */
.related-products-section {
  margin: 4vw auto 0 auto; /* Убираем отступы auto, т.к. секция внутри карточки */
  margin-top: 4vw; /* Только верхний отступ */
  width: 100%;
  /* max-width больше не нужен, т.к. ограничено родительской карточкой */
  /* padding не нужен, т.к. будет у родителя */
  /* Убираем анимацию отсюда */
}

/* ... стили заголовка ... */

.related-products-list {
  display: flex; /* Меняем на flex */
  overflow-x: auto; /* Добавляем горизонтальную прокрутку */
  gap: 1.5vw; /* Уменьшаем gap для слайдера */
  padding-bottom: 15px; /* Место под скроллбар */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #0febeb #1f1f2f; /* Firefox */
  justify-content: center;
}

/* Стилизация скроллбара для Webkit */
.related-products-list::-webkit-scrollbar {
  height: 8px;
}
.related-products-list::-webkit-scrollbar-track {
  background: #1f1f2f;
  border-radius: 4px;
}
.related-products-list::-webkit-scrollbar-thumb {
  background-color: #0febeb;
  border-radius: 4px;
  border: 2px solid #1f1f2f;
}
.related-products-list::-webkit-scrollbar-thumb:hover {
  background-color: #f204ff;
}


/* ... hover для карточки ... */


/* ... стили имени и цены ... */

/* ... Остальные стили ... */

/* --- Секция сопутствующих товаров --- */
/* ... .related-products-section ... */
.related-products-title {
  color: #0febeb;
  font-family: "Poppins-Bold", sans-serif;
  font-size: 1.8vw;
  margin-bottom: 2vw;
  text-align: center;
  border-bottom: 1px solid #0febeb55;
  padding-bottom: 0.8vw;
}

/* ... .related-products-list (слайдер) ... */

.related-product-card {
  display: block;
  text-decoration: none;
  background: #2a2a3e;
  border-radius: 12px;
  padding: 1vw;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  width: 180px;
  flex-shrink: 0;
  margin-top: 10px;
}

/* ВОССТАНАВЛИВАЕМ HOVER */
.related-product-card:hover {
  transform: translateY(-5px);
  border-color: #f204ff88;
  box-shadow: 0 5px 20px rgba(242, 4, 255, 0.2);
}

.related-product-img {
  width: 100%;
  height: auto;

  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1vw;
}

/* ВОССТАНАВЛИВАЕМ СТИЛИ ИМЕНИ */
.related-product-name {
  color: #fff;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1em;
  margin-bottom: 0.5vw;
  display: block;
  /* Можно добавить ограничение по высоте, если нужно */
  /* height: 2.4em; 
  overflow: hidden; 
  text-overflow: ellipsis; */
}

/* ВОССТАНАВЛИВАЕМ СТИЛИ ЦЕНЫ */
.related-product-price {
  color: #0febeb;
  font-family: "Poppins-Bold", sans-serif;
  font-size: 1.1em;
}

/* ... Остальные стили ... */

/* --- Адаптация для мобильных устройств --- */
@media (max-width: 768px) {

  /* --- Страница товара --- */
  .product-detail-card {
    padding: 5vw 4vw; /* Уменьшаем паддинги */
    margin-top: 8vw;
  }

  .product-back-link {
    font-size: 3.5vw; /* Увеличиваем относительный размер */
    margin-bottom: 5vw;
  }

  .product-detail-flex {
    flex-direction: column; /* Ставим фото над информацией */
    gap: 5vw;
  }

.product-detail-image-wrap {
    flex-basis: auto; /* Сбрасываем основу */
    max-width: 100%; /* Фото на всю ширину */
  }

  .product-detail-image {
    aspect-ratio: 1 / 1; /* Можно оставить квадратным или сделать 4 / 3 */
  }

  .product-detail-info {
     gap: 3vw; /* Уменьшаем отступы в инфо блоке */
  }

  .product-detail-category {
    font-size: 2.8vw;
  }

  .product-detail-name {
    font-size: 6vw; /* Крупнее для мобильных */
  }

  .product-detail-desc {
    font-size: 3.5vw;
  }

  .product-prices {
    gap: 4vw;
    margin-top: 2vw;
  }

  .product-new-price {
    font-size: 6vw;
  }

  .product-old-price {
    font-size: 4vw;
  }

  .product-detail-actions {
    flex-direction: column; /* Кнопки друг под другом */
    gap: 3vw;
    margin-top: 4vw;
  }

  .product-detail-actions .product-more-btn {
    width: 100%; /* Кнопки на всю ширину */
    padding: 3vw 5vw;
    font-size: 4vw;
  }

  /* --- Похожие товары --- */
  .related-products-section {
    margin-top: 8vw;
    padding: 0; /* Убираем горизонтальный паддинг у секции */
  }

  .related-products-title {
    font-size: 5vw;
    margin-bottom: 4vw;
    padding-bottom: 2vw;
  }

  .related-products-list {
    gap: 3vw; /* Уменьшаем отступ в слайдере */
  }

  .related-product-card {
    width: 150px; /* Уменьшаем ширину карточки */
    padding: 2.5vw;
  }

  .related-product-img {
    aspect-ratio: 3 / 4; /* Делаем чуть менее вытянутыми */
    margin-bottom: 2vw;
  }

  .related-product-name {
    font-size: 3.5vw;
  margin-bottom: 1.5vw;
  }

  .related-product-price {
    font-size: 3.8vw;
  }

  /* Может потребоваться адаптация других общих стилей (например, шрифтов в header) */

}

/* ... Предыдущие стили ... */

/* --- Стили для Корзины (cart.php) --- */

/* Основной блок */
.cart-block {
  background: #1f1f2f; /* Темный фон, как у карточки товара */

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
 
  padding: 2.5vw 3vw;

  width: 100%;
 
}

.cart-block .catalog-title {
    /* Используем стили заголовка из каталога */
    margin-bottom: 3vw;
}

.cart-layout {
    display: flex;
    gap: 3vw;
    flex-wrap: wrap; /* Для адаптивности */
}

.cart-items-list {
    flex: 2; /* Список товаров занимает больше места */
    min-width: 300px; /* Минимальная ширина */
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

/* Карточка товара в корзине */
.cart-item-card {
  display: flex;
  align-items: center;
    gap: 1.8vw; /* Немного увеличим отступ */
    background: linear-gradient(145deg, #2e2e42, #252535); /* Легкий градиент */
    border-radius: 15px; /* Больше скругление */
    padding: 1.8vw; /* Увеличим паддинг */
    border: 1px solid #0febeb33; /* Тонкая рамка */
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25); /* Улучшенная тень */
}
/* Анимация появления с задержкой */
.cart-item-card:nth-child(1) { animation-delay: 0.1s; }
.cart-item-card:nth-child(2) { animation-delay: 0.2s; }
.cart-item-card:nth-child(3) { animation-delay: 0.3s; }


.cart-item-card:hover {
    transform: translateY(-3px) scale(1.01); /* Чуть изменим ховер */
    border-color: #0febeb88;
    box-shadow: 0 8px 28px rgba(15, 235, 235, 0.18);
}

.cart-item-img {
    width: 100px;  /* Оставим размер */
    height: 100px; 
  object-fit: cover;
    border-radius: 12px; /* Больше скругление */
    flex-shrink: 0;
    border: 1px solid #ffffff1a; /* Очень легкая рамка */
}

.cart-item-info {
    flex-grow: 1;
  display: flex;
  flex-direction: column;
    gap: 0.5vw; /* Отступ внутри инфо */
}

.cart-item-name {
    color: #ffffff; /* <<< Белый цвет */
  font-family: "Poppins-Bold", sans-serif;
    font-size: 1.15em;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
}
.cart-item-name:hover {
    color: #0febeb;
}

/* Описание товара в корзине */
.cart-item-info .cart-item-desc {
    font-family: "Poppins-Regular", sans-serif;
    font-size: 0.9em;
    color: #e0e0e0; /* <<< Светло-серый/почти белый */
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cart-item-price {
    color: #f0f0f0; /* <<< Почти белый */
    font-family: "Poppins-Regular", sans-serif; /* Не жирный */
    font-size: 1em; /* Стандартный размер */
    margin-top: 0.8vw; /* Отступ сверху */
}

.cart-item-remove-form {
    margin-left: auto; /* Остается справа */
    flex-shrink: 0; /* Не сжимается */
}

/* Новая кнопка удаления */
.cart-item-remove-btn {
    background: #e74c3c; /* Красный фон */
    border: none;
    color: #fff; /* Белый текст/иконка */
    font-size: 1em; /* Подбираем размер иконки/текста */
    width: 36px; /* Квадратная кнопка */
    height: 36px;
    border-radius: 8px; /* Скругление */
    cursor: pointer;
    display: flex; /* Для центрирования иконки */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
    padding: 0;
}

.cart-item-remove-btn:hover {
    background-color: #c0392b; /* Темнее при наведении */
    transform: scale(1.1); /* Увеличение */
}

/* Блок Итого и Оформления */
.cart-summary-block {
    flex: 1; /* Занимает оставшееся место */
    min-width: 280px;
    background: #2a2a3e;
    border-radius: 15px;
    padding: 2vw;
    border: 1px solid #f204ff33;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    align-self: flex-start; /* Прилипает к верху */
    position: sticky; /* Делаем блок липким */
    top: 20px; /* Отступ от верха при прокрутке */
}

.cart-total-section {
  display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1.5vw;
    margin-bottom: 1.5vw;
    border-bottom: 1px solid #0febeb55;
}

.cart-total-label {
    color: #ccc;
    font-family: "Poppins-Regular", sans-serif;
    font-size: 1.1em;
}

.cart-total-amount {
    color: #0febeb;
    font-family: "Poppins-Bold", sans-serif;
    font-size: 1.6em;
}

.cart-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.cart-checkout-form .login-label {
    /* Используем существующий стиль */
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 0.3vw;
}

.cart-checkout-form .cart-table-input {
    /* Используем существующий стиль, но на всю ширину */
    max-width: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: #f204ff88;
    max-width: 281px;
    min-height: 79px;
}
.cart-checkout-form .cart-table-input:focus {
    border-color: #f204ff;
    box-shadow: 0 0 0 3px #f204ff44;
}

.cart-checkout-btn .product-more-btn{
    /* Используем общий стиль .product-more-btn, но можно кастомизировать */
    border-color: #0febeb;
    color: #0febeb;

}
.cart-checkout-btn .product-more-btn::before{
  /* Используем общий стиль .product-more-btn, но можно кастомизировать */
  background: #0febeb;
  transform-origin: left;
}
.cart-checkout-btn .product-more-btn:hover{
  /* Используем общий стиль .product-more-btn, но можно кастомизировать */
  box-shadow: 0 0 20px rgba(15, 235, 235, 0.3);
   color: #000000;
}

/* --- Адаптация Корзины --- */
@media (max-width: 768px) {
    .cart-layout {
        flex-direction: column; /* Все блоки друг под другом */
    }
    .cart-summary-block {
        position: static; /* Убираем липкость на мобильных */
  width: 100%;
        margin-top: 3vw;
    }
    .cart-item-card {
        padding: 3vw;
        gap: 3vw;
    }
    .cart-item-img {
        width: 60px;
        height: 60px;
    }
    .cart-item-name { font-size: 3.8vw; }
    .cart-item-price { font-size: 4vw; }
    .cart-item-remove-btn { font-size: 5vw; }
    .cart-total-label { font-size: 3.8vw; }
    .cart-total-amount { font-size: 5vw; }
    .cart-checkout-form .cart-table-input { font-size: 3.5vw; padding: 2.5vw; }
    .cart-checkout-btn { font-size: 4.5vw; padding: 3vw; }
}



.toast-notification {
  background-color: rgba(40, 40, 60, 0.9); /* Полупрозрачный темный фон */
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 0.95em;
  border-left: 5px solid #0febeb; /* Полоска слева */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-width: 250px;
  max-width: 350px;
  backdrop-filter: blur(3px);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Стили для типа "успех" */
.toast-notification.toast-success {
  border-left-color: #0febeb;
  background-color: rgba(15, 235, 235, 0.15); /* Слегка бирюзовый фон */
  color: #64ffda;
}

/* Стили для типа "ошибка" */
.toast-notification.toast-error {
  border-left-color: #f204ff;
  background-color: rgba(242, 4, 255, 0.15); /* Слегка пурпурный фон */
  color: #ff78f5;
}

/* Адаптация уведомлений */
@media (max-width: 768px) {
  #toast-container {
      right: 10px;
      bottom: 10px;
      left: 10px;
      width: auto;
      align-items: stretch;
  }
  .toast-notification {
      font-size: 3.5vw;
      padding: 3vw 4vw;
  }
}

/* ... Остальные стили ... */

/* =================================== */
/*          Страница "О нас"           */
/* =================================== */

/* ... остальные стили .about-us-page ... */

/* Секция CTA */
.cta-section {
    /* ... существующие стили CTA ... */
    margin-top: 5vw;
    /* Убираем нижний отступ, т.к. футера больше нет */
    /* margin-bottom: 4vw; */
    /* Возможно, добавить нижний padding к .about-us-page вместо этого */
    /* ... существующие стили CTA ... */
}

/* ... */

/* Футер - Стили удалены, т.к. элемента больше нет */
/* .about-us-page .footer-section { ... } */

/* Адаптация */
@media (max-width: 768px) {
    .about-us-page {
        padding: 8vw 5vw; /* Адаптируем паддинги для мобильных */
    }
    /* ... остальные адаптивные стили ... */

    /* Удаляем стили для футера и здесь */
    /* .about-us-page .footer-section { ... } */
}
/* --- Конец стилей для "О нас" --- */

/* ... */

/* ... стили .product-detail-actions ... */

/* --- Стили для блока отзывов --- */

.product-detail-flex {
    display: flex;
    gap: 3vw; /* Отступ между картинкой и правой частью */
  align-items: flex-start;
}

.product-detail-image-wrap {
    flex: 0 0 40%; /* Фиксированная ширина для картинки (можно настроить) */
    position: sticky; /* Чтобы картинка 'залипала' при прокрутке отзывов */
    top: 100px; /* Отступ сверху для 'залипшей' картинки (под хедером) */
}

/* Новый контейнер для контента справа */
.product-detail-content-area {
    flex: 1; /* Занимает оставшееся место */
  display: flex;
    gap: 2.5vw; /* Отступ между инфо/кнопками и отзывами */
    align-items: flex-start;
}

.product-detail-info-actions-wrap {
    flex: 1 1 60%; /* Примерная пропорция для инфо+кнопки внутри правой части */
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
    /* Добавляем min-width: 0 для предотвращения растягивания контентом */
    min-width: 0;
}

.product-reviews-wrap {
    flex: 1 1 40%; /* Примерная пропорция для отзывов внутри правой части */
    min-width: 280px;
  display: flex;
  flex-direction: column;
    gap: 1.5vw;
    /* Добавляем min-width: 0 для предотвращения растягивания контентом */
    min-width: 0;
}

/* ... остальные стили для отзывов ... */


/* Адаптация */
@media (max-width: 992px) { /* Точка перестроения (можно выбрать другую) */
    .product-detail-flex {
        flex-direction: column;
        gap: 4vw;
    }
    .product-detail-image-wrap {
        flex: 0 0 auto; /* Сбрасываем flex-basis */
        position: static; /* Отменяем sticky */
        width: 100%; /* На мобильных картинка может быть шире */
        max-width: 450px; /* Но не слишком большой */
        margin: 0 auto; /* Центрируем */
    }
    .product-detail-content-area {
        flex-direction: column; /* Инфо и отзывы тоже в колонку */
        gap: 4vw;
        width: 100%; /* Занимают всю ширину */
    }
    .product-detail-info-actions-wrap,
    .product-reviews-wrap {
        flex-basis: auto; /* Сбрасываем flex-basis */
        width: 100%;
    }
    .product-reviews-wrap {
         /* Добавляем разделитель сверху, как было раньше для мобильных */
        margin-top: 5vw;
        border-top: 1px solid #0febeb44; 
        padding-top: 5vw;
    }
}

/* ... остальные адаптивные стили ... */

/* ... стили .product-detail-info-actions-wrap ... */

.product-reviews-wrap {
    flex: 1 1 40%; /* Примерная пропорция для отзывов внутри правой части */
    min-width: 280px;
    /* Убираем левый отступ и рамку, т.к. есть gap */
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

/* --- Стили для содержимого блока отзывов (Восстанавливаем) --- */

.reviews-title {
    color: #0febeb;
  font-family: "Poppins-Bold", sans-serif;
    font-size: 1.6vw;
  margin-bottom: 0.5vw;
    padding-bottom: 0.5vw;
    border-bottom: 1px solid #f204ff55;
}

/* Форма добавления отзыва */
.add-review-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5vw;
    border: 1px solid #f204ff33;
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.add-review-form h3 {
    color: #fff;
    font-size: 1.2vw;
    margin: 0 0 0.5vw 0;
    font-family: "Poppins-SemiBold", sans-serif;
}

.review-form-rating label,
.review-form-text label {
    display: block;
    color: #ccc;
    font-size: 0.9vw;
    margin-bottom: 0.4vw;
    font-family: "Poppins-Regular", sans-serif;
}

/* Стилизация звезд */
.star-rating {
    display: inline-flex; 
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2vw;
    color: #444;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 0.1vw;
    margin-bottom: 0;
}

/* Магия CSS: красим звезды при наведении и выбранные - МЕНЯЕМ НА ЖЕЛТЫЙ */
.star-rating label:hover,
.star-rating label:hover ~ label, 
.star-rating input[type="radio"]:checked ~ label 
{
    color: #FFD700; /* Желтый цвет звезд */
}

.review-form-text textarea {
    width: 100%;
    padding: 0.8vw 1vw;
    background: #1f1f2f;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1vw;
    resize: vertical;
    min-height: 80px;
    max-height: 250px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-form-text textarea:focus {
    outline: none;
    border-color: #f204ff;
    box-shadow: 0 0 0 3px #f204ff33;
}

.submit-review-btn {
    padding: 0.7vw 2vw;
    font-size: 1vw;
    font-family: "Poppins-SemiBold", sans-serif;
    color: #000;
    background-color: #f204ff; /* Оставляем кнопку пурпурной? Или тоже желтой? */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    align-self: flex-start;
    margin-top: 0.5vw;
}

.submit-review-btn:hover {
    background-color: #e000e0;
}
.submit-review-btn:active {
    transform: scale(0.98);
}

.submit-review-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Сообщения формы отзыва */
.review-form-message {
    padding: 0.8vw;
    margin-top: 0.5vw;
    border-radius: 8px;
    font-size: 0.9vw;
    text-align: center;
    font-family: "Poppins-Regular", sans-serif;
    border-width: 1px;
    border-style: solid;
}
.review-form-message.error {
    background-color: rgba(242, 4, 255, 0.1);
    color: #ff78f5;
    border-color: #f204ff88;
}
.review-form-message.success {
    background-color: rgba(15, 235, 235, 0.1);
    color: #64ffda;
    border-color: #0febeb88;
}

/* Уведомление (не могу оставить отзыв и т.д.) */
.review-notice {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1vw 1.2vw;
    font-size: 0.95vw;
    color: #ccc;
    border-left: 3px solid #0febeb;
}
.review-notice a {
  color: #0febeb;
    text-decoration: none;
}
.review-notice a:hover {
    text-decoration: underline;
}

/* Список отзывов */
.reviews-list {
    margin-top: 1vw;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #f204ff #2a2a3e;
    display: flex;
    flex-direction: column;
    gap: 1.2vw;
    max-width: 500px;
}

/* Стилизация скроллбара для Webkit */
.reviews-list::-webkit-scrollbar {
  width: 6px;
}
.reviews-list::-webkit-scrollbar-track {
  background: #2a2a3e;
  border-radius: 3px;
}
.reviews-list::-webkit-scrollbar-thumb {
  background-color: #f204ff;
  border-radius: 3px;
}
.reviews-list::-webkit-scrollbar-thumb:hover {
  background-color: #e000e0;
}

.review-item {
    background: #292938;
    border-radius: 8px;
    padding: 1vw 1.2vw;
    border-left: 4px solid #0febeb;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  margin-bottom: 0.5vw;
}

.review-author {
    color: #fff;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 1vw;
}

.review-date {
    color: #888;
    font-size: 0.8vw;
}

.review-rating {
    margin-bottom: 0.6vw;
}

.review-rating .star {
    font-size: 1.2vw;
    color: #444;
}

/* МЕНЯЕМ НА ЖЕЛТЫЙ */
.review-rating .star.filled {
    color: #FFD700; /* Желтый цвет звезд */
}

.review-text {
    color: #ccc;
    font-size: 0.95vw;
  line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    /* Добавляем явную ширину */
    width: 100%;
}

.no-reviews {
    color: #aaa;
    font-style: italic;
    text-align: center;
    padding: 2vw 0;
}


/* Адаптация для отзывов */
@media (max-width: 992px) { /* Точка перестроения совпадает с layout */
    /* ... layout адаптация ... */
}
@media (max-width: 768px) {
    /* Стили размеров и отступов для мобильных */
    .reviews-title {
        font-size: 5vw;
    }
    .add-review-form h3 {
        font-size: 4vw;
    }
    .review-form-rating label, .review-form-text label {
        font-size: 3.5vw;
    }
    .star-rating label {
        font-size: 6vw;
    }
    .review-form-text textarea {
        font-size: 3.5vw;
    }
    .submit-review-btn {
        padding: 2.5vw 5vw;
        font-size: 3.8vw;
    }
    .review-notice, .review-form-message {
        font-size: 3.5vw;
        padding: 2.5vw 3vw;
    }
    .reviews-list {
        max-height: none;
        overflow-y: visible;
        gap: 3vw;
        
    }
    .review-item {
        padding: 3vw 3.5vw;
    }
    .review-author {
        font-size: 3.8vw;
    }
    .review-date {
        font-size: 3vw;
    }
    .review-rating .star {
        font-size: 4vw;
    }
    .review-text {
        font-size: 3.5vw;
    }
    .no-reviews {
        font-size: 3.5vw;
    }
}

/* ... остальные стили ... */

/* ... другие стили ... */

.div7 span[class^="div-7-span"] { /* Целимся во все span внутри .div7, класс которых начинается с div-7-span */
  display: inline-block; /* Чтобы transform работал корректно */
  opacity: 0;
  transform: translateY(30px); /* Начальное смещение вниз */
  /* Плавный переход */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Класс, который будет добавляться JS для запуска анимации */
.div7 span[class^="div-7-span"].is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* ... остальные стили ... */

/* Payment Return Page Styles */
.payment-status-block {
    text-align: center;
    padding: 5vw 4vw; /* Increased vertical padding */
    max-width: 800px; /* Limit width for better readability */
    margin: 5vw auto; /* Center block vertically and horizontally */
    background: #1f1f1f; /* Match catalog block background */
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out forwards;
}

.payment-status-title {
    /* Reusing catalog-title style is fine, or define specifically */
    color: #ffffff;
    font-family: "Poppins-Bold", sans-serif;
    font-size: 2.5vw;
    margin-bottom: 3vw; /* Increased margin */
    text-align: center;
    position: relative;
    /* animation: fadeInUp 0.6s 0.1s ease-out forwards; */
}

/* Enhance message boxes */
.payment-status-message {
    padding: 1.5vw 2vw;
    margin-bottom: 2.5vw;
    border-radius: 10px;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 1.1vw;
    display: inline-block; /* Fit content width */
    max-width: 90%;
  line-height: 1.6;
    position: relative;
    padding-left: 4vw; /* Space for icon */
    text-align: left;
    opacity: 0; /* Start hidden for animation */
    /* Using a simpler timing function */
    animation: fadeInUp 0.5s 0.5s ease-out forwards;
}

.payment-status-message::before {
    content: '';
    font-family: "Poppins-Bold", sans-serif; /* Or use an icon font */
    font-size: 1.5em;
    position: absolute;
    left: 1.5vw;
    top: 50%;
    transform: translateY(-50%);
}

.payment-status-message.success {
    background-color: rgba(15, 235, 235, 0.1);
    color: #64ffda;
    border: 1px solid rgba(15, 235, 235, 0.3);
}

.payment-status-message.success::before {
    content: '\2714'; /* Checkmark */
    color: #0febeb;
}

.payment-status-message.error {
    background-color: rgba(242, 4, 255, 0.1);
    color: #ff78f5;
    border: 1px solid rgba(242, 4, 255, 0.3);
}

.payment-status-message.error::before {
    content: '\2716'; /* Cross mark */
    color: #f204ff;
}


.payment-status-block p {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Poppins-Regular", sans-serif;
    font-size: 1.1vw;
    line-height: 1.7;
    margin-bottom: 1.5vw;
    opacity: 0;
    animation: fadeInUp 0.5s 0.5s ease-out forwards; /* Added animation with delay */
}

.payment-status-block p a {
    color: #0febeb;
    text-decoration: none;
    transition: color 0.3s ease;
}



.payment-status-block .product-more-btn {
    display: inline-block;
    width: auto;
    padding: 1vw 2.5vw;
    text-decoration: none;
    margin-top: 1vw;
    opacity: 0;
    animation: fadeInUp 0.5s 0.6s ease-out forwards; /* Added animation with delay */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-status-block {
        padding: 8vw 6vw;
        margin: 8vw auto;
    }
    .payment-status-title {
        font-size: 5vw;
        margin-bottom: 5vw;
    }
    .payment-status-message {
        font-size: 3.5vw;
        padding: 3vw 4vw;
        padding-left: 10vw;
        margin-bottom: 4vw;
    }
    .payment-status-message::before {
        left: 4vw;
    }
    .payment-status-block p {
        font-size: 3.5vw;
    }
     .payment-status-block .product-more-btn {
        padding: 2.5vw 5vw;
        font-size: 3.5vw;
    }
}

/* Стили для новых блоков в корзине */
.cart-extra-blocks-container {
  margin-top: 40px; /* Отступ сверху от основного контента корзины */
  padding-top: 20px;
  border-top: 1px solid #eee; /* Линия-разделитель */
  display: flex;
  flex-wrap: wrap; /* Позволяет блокам переноситься */
  gap: 20px; /* Пространство между блоками */
}

.cart-extra-block {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
  flex: 1 1 300px; /* Позволяет блокам растягиваться, базовая ширина 300px */
  /* Можно задать минимальную ширину, если нужно */
  /* min-width: 280px; */
}

.cart-extra-block-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.cart-extra-block-content p {
  font-size: 0.9em;
  color: #666;
}

/* --- Конец стилей для новых блоков --- */

/* --- Стили для новых блоков в корзине --- */
/* ... существующие стили .cart-extra-blocks-container, .cart-extra-block ... */

/* Стили для сетки продуктов внутри доп. блоков */
.cart-extra-block-content.cart-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Сетка для маленьких карточек */
  gap: 15px; /* Отступ между карточками */
  padding-top: 10px;
}

.cart-extra-product-card {
  display: block;
  text-decoration: none;
  background: #fff; /* Белый фон для контраста */
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-extra-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-extra-product-img {
  width: 100%;
  max-width: 100px; /* Ограничение размера картинки */
  height: 80px; /* Фиксированная высота */
  object-fit: contain; /* Чтобы картинка помещалась */
  margin-bottom: 8px;
}

.cart-extra-product-name {
  display: block; /* Чтобы занимало всю строку */
  font-size: 0.85em;
  color: #333;
  font-weight: 500;
  margin-bottom: 5px;
  height: 2.4em; /* Ограничение в 2 строки */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
}

.cart-extra-product-price {
  display: block;
  font-size: 0.9em;
  color: #000;
  font-weight: 600;
}

.payment-icons img {
  height: 24px; /* Размер иконок оплаты */
  margin-right: 8px;
  opacity: 0.7;
}

/* ... остальные стили ... */

/* --- Адаптация Корзины --- */
@media (max-width: 768px) {
    .cart-layout {
        flex-direction: column; /* Все блоки друг под другом */
    }
    .cart-sidebar { /* Изменяем .cart-summary-block на .cart-sidebar */
        position: static; /* Убираем липкость на мобильных */
        width: 100%;
        margin-top: 3vw;
        /* Добавляем отступ между summary и shipping/payment */
        gap: 20px; 
    }
    .cart-extra-blocks-column { /* Добавляем адаптацию для колонки */
        margin-top: 5vw;
        gap: 15px;
    }
    .cart-extra-block {
        padding: 3vw;
    }
    .cart-extra-block-title {
        font-size: 4vw;
    }
    /* ... остальные мобильные стили ... */
}

/* --- Обновленные и новые стили для Корзины --- */

.cart-layout {
  /* display: flex; */ /* Уже есть */
  /* gap: 3vw; */ /* Уже есть */
  /* flex-wrap: wrap; */ /* Уже есть */
  align-items: flex-start; /* Добавим выравнивание по верху */
}


/* Новый контейнер для правого сайдбара */
.cart-sidebar {
  flex: 1; /* Занимает оставшееся место */
  min-width: 280px;
  display: flex;
  flex-direction: column; /* Блоки внутри идут друг под другом */
  gap: 20px; /* Отступ между summary и shipping/payment */
  align-self: flex-start;
  position: sticky;
  top: 100px; /* Отступ сверху (под хедером) */
}

/* Стили блока "Итого" (бывший .cart-summary-block) */
.cart-summary-block {
  /* Убираем позиционирование отсюда, оно теперь в .cart-sidebar */
  /* position: sticky; top: 20px; align-self: flex-start; */ 
  
  /* Стили фона и рамки оставляем или адаптируем */
  background: #2a2a3e;
  border-radius: 15px;
  padding: 2vw;
  border: 1px solid #f204ff33;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  width: 100%; /* Занимает всю ширину сайдбара */
}

/* Новый контейнер для блоков под корзиной */
.cart-extra-blocks-column {
  margin-top: 40px; 
  padding-top: 20px;
  border-top: 1px solid #0febeb55; 
  /* Меняем flex на grid для двух колонок */
  display: grid; 
  grid-template-columns: 1fr 1fr; /* Две равные колонки */
  gap: 25px; /* Отступ между колонками и строками */
  width: 100%;
}

/* Обновленные стили для дополнительных блоков (Related, Recently Viewed) */
.cart-extra-block {
  background: rgba(255, 255, 255, 0.05); 
  border-radius: 15px;
  padding: 1.5vw 2vw;
  border: 1px solid #0febeb44; 
  /* Блоки будут занимать одну ячейку сетки */
}

/* Обновленный стиль для заголовков доп. блоков */
.cart-extra-block-title {
  color: #0febeb; /* Бирюзовый заголовок */
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 1.3em;
  margin-bottom: 1vw;
  padding-bottom: 0.5vw;
  border-bottom: 1px solid #f204ff55; /* Пурпурный разделитель под заголовком */
}

/* Стили для блока Доставки/Оплаты (когда он в сайдбаре) */
.cart-sidebar .shipping-payment-block {
    /* Используем стили, похожие на cart-summary-block */
    background: #2a2a3e;
    border-radius: 15px;
    padding: 1.5vw;
    border: 1px solid #f204ff33;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
}
.cart-sidebar .shipping-payment-block .cart-extra-block-title {
    color: #f204ff; /* Пурпурный заголовок */
    border-bottom-color: #0febeb55; /* Бирюзовый разделитель */
    font-size: 1.1em;
}
.cart-sidebar .shipping-payment-block .cart-extra-block-content p {
    color: #e0e0e0; /* Еще светлее текст */
    font-size: 1em; /* Сделаем чуть крупнее для читаемости */
    line-height: 1.75; 
    padding-left: 1.8em; /* Отступ слева для иконки */
    position: relative; /* Для позиционирования псевдоэлемента */
    font-family: "Poppins-Regular", sans-serif;
}
.cart-sidebar .shipping-payment-block .cart-extra-block-content p::before {
    content: '';
    position: absolute;
    left: 0.5em;
    top: 0.6em; /* Поправим позицию маркера */
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #0febeb; /* Бирюзовая точка */
}
/* Можно задать другую иконку для второго параграфа, если нужно */
/* .cart-sidebar .shipping-payment-block .cart-extra-block-content p:nth-of-type(2)::before { 
    background-color: #f204ff; 
} */



/* Обновленные стили для иконок оплаты */
.payment-icons {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-top: 1.5vw; 
    padding-left: 0; 
    flex-wrap: wrap; /* <<< Позволяем иконкам переноситься */
    justify-content: flex-start; /* <<< Выравниваем по левому краю */
}

.payment-icons img {
    /* Используем clamp для адаптивного размера: min 24px, preferred 2.5vw, max 36px */
    height: clamp(24px, 2.5vw, 36px);
    /* Убираем фиксированный filter, hover будет работать */
    /* filter: grayscale(20%); */
    opacity: 0.9;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}
.payment-icons img:hover {
    /* ... opacity, filter, transform ... */
    filter: none; /* Убираем фильтр при наведении */
    transform: scale(1.05); /* Небольшое увеличение при наведении */
}

/* Обновленные стили для карточек товаров в доп. блоках */
.cart-extra-block-content.cart-product-grid {
  /* ... display: grid ... */
  /* ... grid-template-columns ... */
  /* ... gap ... */
  justify-items: center; /* <<< ДОБАВЛЯЕМ ЦЕНТРИРОВАНИЕ ЭЛЕМЕНТОВ ПО ГОРИЗОНТАЛИ */
}

.cart-extra-product-card {
  /* ... существующие стили ... */
  text-align: center; /* Убедимся, что текст внутри карточки тоже центрирован */
  width: 100%; /* Позволим сетке управлять шириной */
  max-width: 160px; /* Но ограничим максимальную ширину для единообразия */
}

/* ... остальные стили ... */

/* --- Стили для карточек в блоках Related/Recently Viewed (Уточнение) --- */

/* Контейнер-сетка */


/* Сама карточка товара (повышаем специфичность) */
.cart-block .cart-extra-blocks-column .cart-extra-product-card {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    width: 100%; 
    max-width: 170px; 
    
    background: #292938 !important; /* Темный фон (добавим !important для теста) */
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cart-block .cart-extra-blocks-column .cart-extra-product-card:hover {
    transform: translateY(-4px);
    border-color: #0febeb88;
    box-shadow: 0 5px 18px rgba(15, 235, 235, 0.18);
}

/* Изображение товара */
.cart-block .cart-extra-blocks-column .cart-extra-product-img {
    /* ... стили изображения ... */
    max-width: 120px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1vw;
    border-radius: 6px;
}

/* Название товара */
.cart-block .cart-extra-blocks-column .cart-extra-product-name {
    /* ... display, height, overflow ... */
    font-size: 0.9em;
    color: #eee !important; /* Светлый текст (добавим !important для теста) */
    font-family: "Poppins-Regular", sans-serif;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.8vw;
    width: 100%;
}

/* Цена товара */
.cart-block .cart-extra-blocks-column .cart-extra-product-price {
    /* ... display, margin-top ... */
    font-size: 1.1em;
    color: #0febeb !important; /* Бирюзовая цена (добавим !important для теста) */
    font-family: "Poppins-SemiBold", sans-serif;
    font-weight: 600;
}

/* --- Конец стилей для карточек --- */

/* ... остальные стили ... */

/* ... Стили .left-column ... */

/* Специфичные стили для левой колонки на странице корзины */
.left-column.full-width.cart-page-column {
    justify-content: flex-start; /* Начинаем контент сверху, а не центрируем */
}

/* ... Стили .cart-block ... */
.cart-block {
    /* ... background, box-shadow, padding ... */
    flex-grow: 1; /* Убедимся, что блок может расти */
    display: flex; /* Делаем сам блок flex-контейнером */
    flex-direction: column; /* Элементы внутри идут колонкой */
    width: 100%;
    /* Добавляем минимальную высоту, чтобы точно работало */
    /* min-height: calc(90vh - 100px); /* 100vh минус высота хедера (примерно) */ 
}

/* Стили для сообщения о пустой корзине, когда оно внутри растянутого блока */
.cart-block #empty-cart-message {
    /* Стили по умолчанию */
    color: #aaa;
    text-align: center;
    font-size: 1.2vw; 
    display: none; /* По умолчанию скрыто */

    /* Новые стили для растягивания и центрирования, КОГДА ВИДИМО */
    flex-grow: 1; /* Занимает все доступное место в .cart-block */
    display: flex; /* <<< Важно оставить flex для align/justify */
    align-items: center; /* Центрирует текст вертикально */
    justify-content: center; /* Центрирует текст горизонтально */
    padding: 5vw; /* Добавим паддинг для воздуха */
    width: 100%; /* <<< Занимает всю ширину */
    box-sizing: border-box; /* <<< Учитываем padding */
    min-height: 300px; /* <<< Добавим минимальную высоту для гарантии */
}

/* Стиль, когда сообщение видимо (переопределяем display) */
.cart-block #empty-cart-message:not([style*="display: none"]) {
   display: flex !important; /* <<< Гарантированно показываем как flex */
}

/* Адаптация для сообщения о пустой корзине */
@media (max-width: 768px) {
    .cart-block #empty-cart-message {
        font-size: 4vw;
    }
}

/* ... Остальные стили ... */

/* Стиль для описания товара в корзине */
.cart-item-info .cart-item-desc {
    font-family: "Poppins-Regular", sans-serif;
    font-size: 0.9em;
    color: #eee !important; /* <<< Меняем цвет + !important */
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cart-checkout-form .cart-table-input[name="order_address"] {
    /* Используем существующий стиль, но на всю ширину */
    width: 100%; /* <<< Заставляем занять всю ширину */
    max-width: 100%; /* <<< Убираем ограничение */
    min-height: 100px; /* <<< Можно увеличить мин. высоту */
    resize: vertical; /* Разрешаем изменять размер по вертикали */
    max-height: 200px;
    /* Остальные стили наследуются или можно добавить */
    /* background: rgba(255, 255, 255, 0.05); */
    /* border-color: #f204ff88; */
}

/* ... */

/* --- Обновленный дизайн карточек в доп. блоках корзины --- */

/* Контейнер-сетка */
.cart-extra-blocks-container .cart-extra-block-content.cart-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 1.5vw; /* Можно немного изменить отступ */
    justify-items: center; 
    justify-content: center;
    padding-top: 1vw;
}

/* Сама карточка товара */
.cart-extra-blocks-container .cart-extra-product-card {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    width: 100%; 
    max-width: 180px; /* Можно немного увеличить макс. ширину */
    padding: 1vw; 
    background: #2c2c40; /* Слегка измененный темный фон */
    border-radius: 12px; /* Больше скругления */
    border: 1px solid rgba(15, 235, 235, 0.15); /* Постоянная легкая бирюзовая рамка */
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Мягкая тень */
    overflow: hidden; /* На случай будущих псевдоэлементов */
}

.cart-extra-blocks-container .cart-extra-product-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(15, 235, 235, 0.5);
    box-shadow: 0 8px 25px rgba(15, 235, 235, 0.15); /* Тень при наведении */
}

/* Изображение товара */
.cart-extra-blocks-container .cart-extra-product-img {
    width: 100%;
    height: 110px; /* Немного выше */
    object-fit: contain; /* Чтобы вся картинка была видна */
    margin-bottom: 0.8vw;
    border-radius: 8px; /* Скругление для картинки */
}

/* Название товара */
.cart-extra-blocks-container .cart-extra-product-name {
    display: block;
    font-size: 0.95em; /* Чуть крупнее */
    color: #ffffff; /* Белый цвет */
    font-family: "Poppins-SemiBold", sans-serif; /* Полужирный */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6vw;
    height: 2.8em; /* Ограничение в 2 строки */
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Цена товара */
.cart-extra-blocks-container .cart-extra-product-price {
    display: block;
    font-size: 1.15em; /* Крупнее */
    color: #0febeb; /* Бирюзовая цена */
    font-family: "Poppins-Bold", sans-serif; /* Жирный */
    font-weight: 700;
    margin-top: auto; /* Прижимаем цену к низу */
}

/* --- Конец обновленного дизайна --- */

/* ... остальные стили ... */

/* --- Стили для карточек в доп. блоках корзины (как на странице товара) --- */

/* Контейнер - теперь flex */
.cart-extra-blocks-container .cart-extra-block-content.cart-product-grid {
    display: flex; /* <<< Меняем Grid на Flex */
    flex-wrap: wrap; /* Позволяем переноситься */
    justify-content: center; /* <<< Центрируем карточки по горизонтали */
    gap: 1.5vw; /* Отступ между карточками */
    padding-top: 1vw;
}

/* Сама карточка товара (копируем стиль .related-product-card) */
.cart-extra-blocks-container .cart-extra-product-card {
    display: block; /* Карточка как блочный элемент (ссылка) */
    text-decoration: none;
    background: #2a2a3e;
    border-radius: 12px;
    padding: 1vw;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 180px; /* Фиксированная ширина как у .related-product-card */
    flex-shrink: 0; /* Предотвращаем сжатие */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Добавим тень */
}

.cart-extra-blocks-container .cart-extra-product-card:hover {
    transform: translateY(-5px);
    border-color: #f204ff88; /* Пурпурная рамка при наведении */
    box-shadow: 0 5px 20px rgba(242, 4, 255, 0.2); /* Пурпурная тень */
}

/* Изображение товара (как .related-product-img) */
.cart-extra-blocks-container .cart-extra-product-img {
    width: 100%;
    height: 160px; /* Можно задать высоту для единообразия */
    object-fit: contain; /* ИЛИ cover, если нужно заполнение */
    border-radius: 8px;
    margin-bottom: 1vw;
}

/* Название товара (как .related-product-name) */
.cart-extra-blocks-container .cart-extra-product-name {
    color: #fff;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 1em;
    margin-bottom: 0.5vw;
    display: block;
    height: 2.8em; 
    overflow: hidden; 
    line-height: 1.4;
    text-overflow: ellipsis;
}

/* Цена товара (как .related-product-price) */
.cart-extra-blocks-container .cart-extra-product-price {
    color: #0febeb;
    font-family: "Poppins-Bold", sans-serif;
    font-size: 1.1em;
    display: block;
    margin-top: auto; /* Остается внизу */
}

/* --- Конец стилей для карточек доп. блоков корзины --- */

/* ... остальные стили ... */

/* --- Стили для страницы профиля --- */

/* Основной блок профиля - делаем полноширинным */
.profile-block {
    /* Переопределяем max-width и margin */
    max-width: none;
    margin: 100px 0 0 0; /* Убираем боковые и нижний отступы, оставляем верхний */
    width: 100%;
    padding: 3vw 5vw; /* Адаптируем паддинги */
    background: #1f1f2f; /* Фон как у каталога */
    border-radius: 0; /* Убираем скругление для full-width */
    box-shadow: none; /* Убираем тень */
}

/* Верхняя секция (шапка) профиля */
.profile-header-section {
    background: linear-gradient(145deg, #232334, #1f1f2f);
    padding: 4vw 5vw 3vw 5vw;
    text-align: center;
    border-bottom: 1px solid #0febeb33;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Контейнер аватара */
.profile-avatar-container {
    margin-bottom: 1.5vw;
}

.profile-avatar-img {
    width: 150px; /* Larger avatar */
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0febeb; /* Thicker border */
    box-shadow: 0 0 25px rgba(15, 235, 235, 0.3);
    display: inline-block; /* Center it */
    margin-bottom: 0.5vw;
}

/* Имя пользователя */
.profile-username {
    color: #ffffff;
    font-size: 1.8em; /* Larger username */
    font-family: "Poppins-Bold", sans-serif;
    margin-bottom: 2vw;
}
.profile-username b {
    color: #0febeb; /* Keep highlight */
    font-weight: inherit;
}

/* Контейнер кнопок управления */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1.5vw;
    flex-wrap: wrap;
}

/* Общий стиль для кнопок управления */
.profile-actions .profile-logout-btn,
.profile-actions .profile-admin-btn,
.profile-actions .profile-edit-btn {
    background: transparent;
    border: 2px solid;
    border-radius: 10px;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 1em;
    font-weight: 600;
    padding: 0.7vw 2vw;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

/* Кнопка Выхода (Magenta) */
.profile-actions .profile-logout-btn {
    color: #f204ff;
    border-color: #f204ff;
}
.profile-actions .profile-logout-btn:hover {
    background: #f204ff;
    color: #fff;
    box-shadow: 0 0 18px rgba(242, 4, 255, 0.4);
}

/* Кнопка Админ (Teal) */
.profile-actions .profile-admin-btn {
    color: #0febeb;
    border-color: #0febeb;
    text-decoration: none; /* Ensure link looks like a button */
}
.profile-actions .profile-admin-btn:hover {
    background: #0febeb;
    color: #000;
    box-shadow: 0 0 18px rgba(15, 235, 235, 0.4);
}

/* Кнопка Редактировать (White/Neutral) */
.profile-actions .profile-edit-btn {
    color: #ffffff;
    border-color: #ffffff;
}
.profile-actions .profile-edit-btn:hover {
    background: #ffffff;
    color: #1a1a2e; /* Dark text on white hover */
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
}

/* Контентная часть (Заказы и Избранное) */
.profile-content-section {
    padding: 3vw 5vw;
    flex-grow: 1;
}

/* Общий стиль для секций */
.profile-section {
    margin-bottom: 4vw;
}

.profile-section h2 {
    color: #ffffff;
    font-size: 1.8em;
    font-family: "Poppins-Bold", sans-serif;
    margin-bottom: 1.5vw;
    padding-bottom: 1vw;
    border-bottom: 2px solid;
    text-align: left;
    /* Use border gradient for effect */
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, #0febeb, #f204ff);
}

.profile-empty {
    color: #aaa;
    font-size: 1.1em;
    text-align: center;
    padding: 3vw 0;
}

/* Стили Заказов (можно оставить текущие карточки или переделать) */
/* Оставим текущие .profile-order-item стили пока что */
.profile-orders-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}
/* Стили для .profile-order-item и его содержимого остаются как были добавлены ранее */


/* === Favorites New List Design === */

/* Удаляем старые стили сетки избранного */
.profile-fav-link {
   /* Removed old styles */
}
.profile-fav-img {
    /* Removed old styles */
}

.profile-favorites-list {
   /* This class might still exist, reset its grid styles */
    display: block; /* Override grid/flex if previously set */
    grid-template-columns: none; /* Override grid */
    gap: 0; /* Override gap */
    padding: 0;
}

/* Новый список для избранного */
.profile-favorites-list-view {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5vw; /* Space between items */
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 2vw;
    background: #2a2a3e; /* Dark item background */
    padding: 1.5vw;
    border-radius: 12px;
    border: 1px solid #0febeb22;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.favorite-item:hover {
    border-color: #0febeb88;
    box-shadow: 0 6px 25px rgba(15, 235, 235, 0.15);
    transform: translateY(-3px) scale(1.01);
}

/* Контейнер изображения слева */
.favorite-item-image-link {
    flex-shrink: 0;
}

.favorite-item-image {
    width: 120px; /* Larger image */
    height: 120px;
    object-fit: cover; /* Use cover for better look */
    border-radius: 8px;
    display: block;
}

/* Информация по центру */
.favorite-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    align-items: flex-start; /* Align text left */
}

.favorite-item-name {
    color: #ffffff;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 1.2em;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.favorite-item-name:hover {
    color: #0febeb;
}

.favorite-item-price {
    color: #0febeb;
    font-family: "Poppins-Bold", sans-serif;
    font-size: 1.3em;
    margin-top: 0.5vw;
}

/* Действия справа */
.favorite-item-actions {
    display: flex;
    flex-direction: column; /* Buttons stack vertically */
    align-items: flex-end; /* Align buttons right */
    gap: 1vw;
    margin-left: auto; /* Push actions to the right */
    flex-shrink: 0;
}

/* Кнопка Просмотреть */
.favorite-item-actions .view-btn {
    /* Style like primary action */
    display: inline-block;
    background: #0febeb;
    color: #1a1a2e;
    padding: 0.5em 1.5em;
    border-radius: 8px;
    text-decoration: none;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.favorite-item-actions .view-btn:hover {
    background: #f204ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(242, 4, 255, 0.3);
}

/* Кнопка Удалить */
.favorite-item-actions .remove-btn {
    /* Style like secondary/danger action */
    background: transparent;
    border: 2px solid #f204ff;
    color: #f204ff;
    padding: 0.5em 1.5em;
    border-radius: 8px;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-item-actions .remove-btn:hover {
    background: #f204ff;
    color: #fff;
}

/* === End Profile Page New Design === */


/* --- Стили для полей редактирования в Админ-панели --- */
/* ... rest of the existing code ... */

/* === Profile Page New Design === */

/* ... Existing profile header and general section styles ... */

/* Стили Заказов (остаются) */
.profile-orders-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}
/* Стили для .profile-order-item и его содержимого остаются как были добавлены ранее */

/* === Favorites - Grid Design (Restored & Improved) === */

/* Комментируем или удаляем стили для List View */
/*
.profile-favorites-list-view {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5vw; 
}
.favorite-item { ... }
.favorite-item-image-link { ... }
.favorite-item-image { ... }
.favorite-item-info { ... }
.favorite-item-name { ... }
.favorite-item-price { ... }
.favorite-item-actions { ... }
.favorite-item-actions .view-btn { ... }
.favorite-item-actions .remove-btn { ... }
*/

/* Восстанавливаем и улучшаем Grid */
.profile-favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Адаптивная сетка */
    gap: 2vw; /* Отступ между карточками */
    padding: 0;
    list-style: none; /* Убираем маркеры списка, если это ul */
    margin: 0;
}

/* Карточка избранного */
.profile-fav-link { /* Используем этот класс как контейнер карточки */
    display: flex;
    flex-direction: column; /* Элементы внутри идут колонкой */
    height: 100%; /* Занимает всю высоту ячейки грида */
    text-decoration: none;
    background: #2a2a3e; /* Темный фон */
    border-radius: 12px;
    padding: 1.2vw;
    border: 1px solid #0febeb22; /* Легкая рамка */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-fav-link:hover {
    transform: translateY(-5px);
    border-color: #0febeb88;
    box-shadow: 0 6px 20px rgba(15, 235, 235, 0.15);
}

/* Изображение */
.profile-fav-img {
    width: 100%;
    height: 180px; /* Фиксированная высота для выравнивания */
    object-fit: cover; /* Обрезаем, чтобы заполнить */
    border-radius: 8px;
    margin-bottom: 1vw;
    display: block;
}

/* Название товара */
.profile-fav-link span.fav-item-name { /* Ожидаем span с классом */
    color: #fff;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 0.8vw;
    /* Задаем минимальную высоту, чтобы выровнять карточки разной длины названия */
    min-height: 2.8em; /* Примерно 2 строки */
    display: -webkit-box; /* Для ограничения строк */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Цена товара (Новый элемент) */
.profile-fav-price {
    color: #0febeb;
    font-family: "Poppins-Bold", sans-serif;
    font-size: 1.2em;
    margin-bottom: 1vw;
    margin-top: auto; /* Прижимает блок цены+кнопки вниз */
    padding-top: 0.5vw; /* Небольшой отступ сверху */
}

/* Кнопка удаления */
.profile-fav-remove-form {
    margin-top: auto; /* Прижимает кнопку к низу, если цена выше */
    padding-top: 0.5vw; /* Отступ от цены/названия */
}

.profile-fav-remove-btn {
    display: inline-block;
    background-color: #c0392b; /* Красный цвет как на скриншоте */
    color: white;
    border: none;
    border-radius: 6px;
    width: 35px; /* Размер квадрата */
    height: 35px;
    font-size: 1.3em; /* Размер крестика */
    line-height: 35px; /* Центрируем крестик вертикально */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 0; /* Убираем внутренние отступы */
}

.profile-fav-remove-btn:hover {
    background-color: #e74c3c; /* Более светлый красный при наведении */
    transform: scale(1.1);
}


/* === End Profile Page New Design === */

/* ... rest of the code ... */

/* === Admin Panel Styles (Restored) === */

/* --- Стили для полей редактирования в Админ-панели --- */

/* Общие стили для полей ввода в режиме редактирования */
.admin-edit-input,
.admin-edit-textarea,
.admin-edit-select {
    width: 100%; /* Занимают всю ширину ячейки */
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid #0febeb66;
    border-radius: 8px;
    color: #eee;
    font-family: "Poppins-Regular", sans-serif;
    font-size: 0.95em;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box; /* Важно */
}

.admin-edit-input:focus,
.admin-edit-textarea:focus,
.admin-edit-select:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #0febeb;
    outline: none;
}
.cart-table-input admin-edit-textarea{
  min-height: 70px;
}
/* Стили для textarea */
.admin-edit-textarea {
    resize: vertical;
    /* Устанавливаем min-height равным высоте input */
    min-height: 37px; /* Примерная высота input с паддингами и границей */
    max-height: 150px;
    overflow-y: auto;
    /* Остальные стили (width, padding, font, color, border) наследуются от .admin-edit-input */
}

/* Стили для select */
.admin-edit-select {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    color: #eee;
    border: 1px solid #0febeb66;
}

.admin-edit-select option {
    background-color: #2a2a3e;
    color: #eee;
}

/* --- Стили для ячейки с фото и таблицы в Админке --- */

/* Миниатюра в обычном режиме */
.admin-prod-thumb {
    max-width: 60px;
    max-height: 60px;
    border-radius: 4px;
    vertical-align: middle;
}

/* Ячейка в режиме редактирования */
.admin-edit-image-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Кастомная кнопка/лейбл для выбора файла */
.admin-edit-file-label {
    display: inline-block;
    padding: 6px 12px;
    background-color: #0febeb;
    color: #1a1a2e;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}
.admin-edit-file-label:hover {
    background-color: #f204ff;
    color: #fff;
}

/* Превью выбранного/существующего изображения */
.admin-edit-thumb-preview {
    max-width: 70px;
    max-height: 70px;
    border-radius: 4px;
    border: 1px solid #0febeb44;
    vertical-align: middle;
}

/* Ширина ячеек таблицы в админке */
.admin-modal-content .cart-table td {
    padding: 0.8vw 1vw;
    vertical-align: middle; /* Выравниваем содержимое */
}
.admin-modal-content .cart-table td:nth-child(2), /* Название */
.admin-modal-content .cart-table td:nth-child(3) { /* Описание */
    min-width: 200px;
}
.admin-modal-content .cart-table td:nth-child(4), /* Новая цена */
.admin-modal-content .cart-table td:nth-child(5) { /* Старая цена */
    min-width: 100px;
}
.admin-modal-content .cart-table td:nth-child(6) { /* Категория */
    min-width: 140px;
}
.admin-modal-content .cart-table td:nth-child(7) { /* Фото */
    min-width: 160px;
}

/* === End Admin Panel Styles === */

/* ... rest of the code ... */

/* === Favorites - Grid Design (Using Divs) === */

/* Комментируем или удаляем старые стили ul/li */
/* .profile-favorites-list { ... } */
/* .profile-fav-link { ... } */
/* .profile-fav-img { ... } */
/* span.fav-item-name { ... } */
/* .profile-fav-price { ... } */
/* .profile-fav-remove-form { ... } */
/* .profile-fav-remove-btn { ... } */


/* Новый контейнер сетки */
.favorites-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2vw;
    padding: 0;
    margin: 0;
}

/* Новая карточка избранного */
.favorite-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #2a2a3e;
    border-radius: 12px;
    padding: 1.2vw;
    border: 1px solid #0febeb22;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.favorite-card:hover {
    transform: translateY(-5px);
    border-color: #0febeb88;
    box-shadow: 0 6px 20px rgba(15, 235, 235, 0.15);
}

/* Ссылка для изображения и названия */
.favorite-card-link {
    text-decoration: none;
    color: inherit; /* Наследуем цвет */
    display: block; /* Или flex, если нужно внутреннее выравнивание */
    margin-bottom: 0.8vw; /* Отступ под ссылкой */
}

/* Изображение */
.favorite-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1vw;
    display: block;
}

/* Название товара */
.favorite-card-name {
    color: #fff;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 1.1em;
    line-height: 1.4;
    /* min-height: 2.8em; Убираем min-height, т.к. кнопка внизу */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Цена товара */
.favorite-card-price {
    color: #0febeb;
    font-family: "Poppins-Bold", sans-serif;
    font-size: 1.2em;
    margin-bottom: 1vw;
    margin-top: auto; /* Прижимает блок цены+кнопки вниз */
    padding-top: 0.5vw;
}

/* Форма удаления */
.favorite-card-remove-form {
    margin-top: auto; /* Прижимает кнопку к низу */
    padding-top: 0.5vw; /* Отступ от цены */
}

/* Кнопка удаления */
.favorite-card-remove-btn {
    display: inline-block;
    background-color: #c0392b;
    color: white;
    border: none;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 0;
}

.favorite-card-remove-btn:hover {
    background-color: #e74c3c;
    transform: scale(1.1);
}


/* === End Favorites Styles === */

/* ... rest of the code ... */

/* УДАЛЯЕМ старый стиль .cart-item-price, т.к. теперь есть .cart-item-pricing */
/*
.cart-item-price {
    color: #f0f0f0; 
    font-family: "Poppins-Regular", sans-serif; 
    font-size: 1em; 
    margin-top: 0.8vw; 
}
*/

/* УДАЛЯЕМ стили для предложенной ранее структуры */
/*
.cart-item-pricing {
    ...
}
.cart-item-pricing .price-item {
    ...
}
.cart-item-pricing .price-item .label {
    ...
}
.cart-item-pricing .price-item .value {
    ...
}
*/

/* НОВЫЕ стили для твоей структуры .cart-item-pricing */
.cart-item-pricing {
    display: flex; /* Элементы в строку */
    flex-wrap: wrap; /* Позволяем перенос */
    gap: 1.5vw; /* Отступ между элементами */
    margin-top: 0.8vw; /* Отступ от описания */
    color: #e0e0e0; /* Цвет текста по умолчанию (светло-серый) */
    font-family: "Poppins-Regular", sans-serif;
    font-size: 0.95em; /* Немного уменьшим для компактности */
    line-height: 1.5;
}

/* Стиль для отдельных элементов внутри */
.cart-item-pricing span { /* Ко всем span внутри */
    white-space: nowrap; /* Запрещаем перенос внутри одного элемента */
}

/* Можно добавить специфичные стили, если нужно, например, выделить сумму */
.cart-item-pricing .cart-item-subtotal {
    color: #ffffff; /* Сумму делаем чисто белой */
    font-family: "Poppins-SemiBold", sans-serif; /* И полужирной */
}

/* Адаптация: на маленьких экранах возвращаем одну колонку */
@media (max-width: 992px) { /* Или другая точка, например 768px */
    .cart-extra-blocks-column {
        grid-template-columns: 1fr; /* Одна колонка */
    }
}

/* --- Стили для выбора размера на странице товара --- */
.product-size-selector {
    display: flex;
    align-items: center;
    gap: 10px; /* Отступ между лейблом и селектом */

}

.product-size-selector label {
    color: #ccc; /* Цвет лейбла */
    font-family: 'Poppins-SemiBold', sans-serif;
    font-size: 1em;
}

.product-size-select-control {
    /* Базовые стили */
    display: inline-block; /* Чтобы занимал место по контенту */
    padding: 10px 35px 10px 15px; /* Паддинги (справа больше для стрелки) */
    font-size: 1em;
    font-family: 'Poppins-Regular', sans-serif;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08); /* Темный фон */
    border: 1px solid #0febeb88; /* Бирюзовая рамка */
    border-radius: 8px;
    cursor: pointer;
    appearance: none; /* Убираем стандартную стрелку */
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 200px; /* Минимальная ширина */
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;

    /* Кастомная стрелка */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230febeb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;
}

.product-size-select-control:focus {
    outline: none;
   
    background-color: rgba(255, 255, 255, 0.12);
   
}

/* Стили для опций */
.product-size-select-control option {
    background-color: #2a2a3e;
    color: #eee;
}
/* --- Конец стилей для выбора размера --- */

/* --- Стили для кастомного селекта фильтра --- */
.custom-select-wrapper {
    position: relative;
    min-width: 200px; /* Такая же ширина, как у других селектов */
    font-family: 'Poppins-Regular', sans-serif;
    font-size: 1.1vw; /* Размер шрифта как у других */
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Разносим текст и стрелку */
    padding: 1.2vw 1.8vw; /* Паддинги как у других */
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);

    
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230febeb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2vw center;
  background-size: 1.2vw;
  padding-right: 3vw; 
}



.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #2a2a3e;
    /* border-radius: 10px; */
    border: 1px solid #ffffff88;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); */
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    scrollbar-width: thin;
    scrollbar-color: #fbfbfb #2a2a3e;
    background: #1f1f1f;
    color: #ffffff;
  
}
.custom-options::-webkit-scrollbar { width: 6px; }
.custom-options::-webkit-scrollbar-track { background: #2a2a3e; border-radius: 3px; }
.custom-options::-webkit-scrollbar-thumb { background-color: #f204ff; border-radius: 3px; }

.custom-option {
    padding: 1vw 1.5vw;
    color: #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px; /* Отступ между кружком и текстом */
}

/* Стиль для цветного кружка */
.color-circle {
    display: inline-block;
    width: 1em; /* Размер кружка */
    height: 1em;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Легкая обводка */
    flex-shrink: 0; /* Не сжимается */
}
/* --- Конец стилей для кастомного селекта --- */

/* --- Конец стилей для выбора количества на странице товара --- */
.product-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1vw 0; /* Отступы как у размера */
}

.product-quantity-selector label {
    color: #ccc;
    font-family: 'Poppins-SemiBold', sans-serif;
    font-size: 1em;
}

/* Контейнер для кнопок и числа */
.quantity-controls {
    display: inline-flex; /* Элементы в строку */
    align-items: center; /* Выравнивание по центру */
    border: 1px solid #0febeb88; /* Общая рамка */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    overflow: hidden; /* Скрываем вылезающие части кнопок */
}

/* Стили кнопок +/- */
.quantity-btn {
    background-color: transparent;
    border: none;
    color: #0febeb;
    font-size: 1.4em; /* Размер значка +/- */
    font-weight: bold;
    padding: 5px 12px; /* Паддинги кнопок */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1; /* Убираем лишнюю высоту строки */
}





/* Дисплей количества */
.quantity-display {
    padding: 10px 10px; /* Паддинги вокруг числа */
    font-size: 1em;
    font-family: 'Poppins-SemiBold', sans-serif;
    color: #fff;
    min-width: 30px; /* Минимальная ширина для числа */
    text-align: center;
    border-left: 1px solid #0febeb88; /* Разделитель слева */
    border-right: 1px solid #0febeb88; /* Разделитель справа */
    margin-left: 3px;
}

/* Старый стиль для input type=number (можно удалить или оставить на всякий случай) */
/* 
.product-quantity-input { ... }
.product-quantity-input::-webkit-outer-spin-button, ... { ... }
.product-quantity-input:focus { ... }
*/
/* --- Конец стилей для выбора количества --- */

/* --- Стили для двухколоночной раскладки в профиле --- */
.profile-content-layout {
    display: flex; /* Используем flexbox */
    gap: 2vw; /* Отступ между колонками */
    align-items: flex-start; /* Выравниваем по верху */
    margin-top: 2vw; /* Отступ сверху от шапки профиля */
}

/* Стили для секций внутри раскладки */
.profile-content-layout > .profile-section {
    flex: 1; /* Каждая секция занимает равное пространство */
    min-width: 0; /* Позволяет секциям сжиматься */
    margin-bottom: 0; /* Убираем стандартный нижний отступ у секций */
}

/* Убедимся, что заголовки внутри секций тоже не имеют лишних отступов */
.profile-content-layout > .profile-section h2 {
    margin-top: 0; /* Убираем верхний отступ у заголовков */
}

/* Адаптация для мобильных */
@media (max-width: 992px) { /* Или другую точку, например 768px */
    .profile-content-layout {
        flex-direction: column; /* Возвращаем колонку */
        gap: 3vw; /* Отступ между блоками в колонке */
    }
    /* Возвращаем нижний отступ секциям в колонке */
    .profile-content-layout > .profile-section {
        margin-bottom: 3vw; 
    }
    .profile-content-layout > .profile-section:last-child {
         margin-bottom: 0; /* У последней убираем */
    }
}
/* --- Конец стилей для раскладки профиля --- */

.profile-orders-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

.profile-order-item {
    background: #2a2a3e; /* Темнее фон */
    border-radius: 12px;
    padding: 1.5vw 2vw; /* Увеличим паддинг */
    border: 1px solid #0febeb33; /* Тонкая рамка */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.profile-order-item:hover {
    border-color: #0febeb88;
    box-shadow: 0 6px 25px rgba(15, 235, 235, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Позволяем перенос на маленьких экранах */
    gap: 10px 20px; /* Отступы: вертикальный / горизонтальный */
    margin-bottom: 1vw; /* Отступ снизу до кнопки или деталей */
}

.order-info-main, 
.order-info-secondary {
    display: flex;
    align-items: center;
    gap: 15px; /* Отступ между элементами внутри блока */
    flex-wrap: wrap;
}

.order-id {
    font-family: "Poppins-SemiBold", sans-serif;
    color: #fff;
}
.order-id strong {
    color: #0febeb;
}

.order-date {
    font-size: 0.9em;
    color: #aaa;
}

.order-total {
    font-size: 1em;
    color: #fff;
}
.order-total strong {
    font-family: "Poppins-Bold", sans-serif;
    color: #0febeb;
    font-size: 1.1em;
}

.order-status {
    font-size: 1em;
    color: #ccc;
}
/* Стиль для span статуса уже задан инлайн, но можно добавить сюда, если нужно */

/* Кнопка "Детали" */
.order-details-toggle {
    background-color: transparent;
    border: 1px solid #f204ff;
    color: #f204ff;
    padding: 5px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Poppins-SemiBold', sans-serif;
    transition: all 0.2s ease;
    margin-left: auto; /* Прижимаем кнопку вправо в flex-контейнере */
}

.order-details-toggle:hover {
    background-color: #f204ff;
    color: #fff;
}

/* Список продуктов (скрыт по умолчанию) */
.order-products-list {
    display: none;
    list-style: disc; /* Маркеры списка */
    padding-left: 25px;
    margin: 1.5vw 0 0 0;
    border-top: 1px dashed #0febeb55; /* Разделитель */
    padding-top: 1.5vw;
    color: #ccc;
    font-size: 0.95em;
}

.order-products-list li {
    margin-bottom: 0.8vw;
    line-height: 1.5;
}

/* Сообщение об отсутствии товаров */
.order-products-list-empty {
    display: none; /* Тоже скрыто по умолчанию */
    font-size: 0.9em;
    color: #aaa;
    margin: 1.5vw 0 0 0;
    border-top: 1px dashed #0febeb55;
    padding-top: 1.5vw;
}

/* Стили для раскрытого состояния */
.profile-order-item.expanded .order-products-list,
.profile-order-item.expanded .order-products-list-empty {
    display: block; /* Показываем список или сообщение */
}

/* Меняем кнопку в раскрытом состоянии */
.profile-order-item.expanded .order-details-toggle {
    background-color: #f204ff;
    color: #fff;
    border-color: #f204ff;
}

/* Старые стили (можно удалить/адаптировать) */
/* .profile-order-item-content { ... } */
/* .profile-order-item .order-products-list li { ... } */
/* ... */

/* Список продуктов и адрес (скрыты по умолчанию) */
.order-details-content {
    display: none;
    margin-top: 1.5vw;
    padding-top: 1.5vw;
    border-top: 1px dashed #0febeb55; /* Разделитель */
}

.order-address {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1.5vw; /* Отступ снизу до списка товаров */
}
.order-address strong {
    color: #fff;
    font-family: "Poppins-SemiBold", sans-serif;
}

/* Список продуктов */
.order-products-list {
    /* display: none; - Убираем, т.к. родитель скрыт */
    list-style: disc; 
    padding-left: 25px;
    /* margin: 1.5vw 0 0 0; - Убираем, т.к. есть у родителя */
    /* border-top: 1px dashed #0febeb55; - Убираем, т.к. есть у родителя */
    /* padding-top: 1.5vw; - Убираем, т.к. есть у родителя */
    color: #ccc;
    font-size: 0.95em;
}

/* Сообщение об отсутствии товаров */
.order-products-list-empty {
    /* display: none; - Убираем */
    font-size: 0.9em;
    color: #aaa;
    /* margin: 1.5vw 0 0 0; - Убираем */
    /* border-top: 1px dashed #0febeb55; - Убираем */
    /* padding-top: 1.5vw; - Убираем */
}

/* Стили для раскрытого состояния */
.profile-order-item.expanded .order-details-content {
    display: block; /* Показываем весь блок деталей */
}
/* Старые правила для показа списка убираем, т.к. показываем родителя */
/*
.profile-order-item.expanded .order-products-list,
.profile-order-item.expanded .order-products-list-empty {
    display: block; 
}
*/

/* Более специфичный стиль для textarea описания в таблице редактирования товаров */
.admin-modal-content .cart-table td textarea.admin-edit-textarea {
    min-height: 111px; /* Новая минимальная высота */
}

/* Кнопка "Оплатить" */
.order-pay-btn {
    border-color: #0febeb;
    color: #0febeb;
}

.order-pay-btn:hover {
    background-color: #0febeb;
    color: #1e1e2f; /* Темный цвет для текста на светлом фоне */
}

/* Общие стили для кнопок действий в заказе */
.order-action-btn {
    background-color: transparent;
    padding: 5px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Poppins-SemiBold', sans-serif;
    text-decoration: none; /* Для ссылок, выглядящих как кнопки */
    display: inline-block; /* Для корректного отображения padding */
    transition: all 0.2s ease;
    border: 1px solid; /* Общая граница, цвет будет ниже */
    margin-left: 10px; /* Небольшой отступ от предыдущего элемента (если есть) */
}

@media (max-width: 768px) {
    /* === ОБЩАЯ СТРУКТУРА === */
    .main-page {
        position: static; /* Убираем контекст позиционирования, главная причина проблемы */
        height: auto;
        min-height: 100vh;
        overflow-x: hidden; /* Запрещаем горизонтальный скролл */
    }

    /* Когда меню открыто, запрещаем прокрутку основной страницы */
    body.mobile-menu-open {
        overflow: hidden;
    }

    .main-content-wrapper {
        flex-direction: column;
        height: auto;
    }

    .left-column, .right-column {
        width: 100%;
        height: auto;
        padding: 0; /* Убираем глобальные паддинги, они будут у дочерних элементов */
        box-sizing: border-box;
    }

    /* === ШАПКА И НАВИГАЦИЯ === */
    /* Прячем десктопную навигацию. 
       В будущем здесь можно будет реализовать выпадающее мобильное меню. */
    .navigation-container,
    .user-corner,
    .icon-corner {
        display: none;
    }
    
    .mobile-menu-open .navigation-container {
        display: flex; /* Показываем как мобильное меню */
        width: 100%;
      }
    
    .polimer {
        left: 8vw;
        top: 3vh;
        font-size: 1.8rem;
    }
    
    .menu {
        display: block;
        right: 8vw;
        left: auto;
        top: 3vh;
        width: 30px;
        height: 30px;
        z-index: 1001;
    }

    /* === ГЛАВНЫЙ ЭКРАН (ЛЕВАЯ КОЛОНКА) === */
    /* Только если это главная страница, центрируем контент */
    .left-column:has(.hero-section) {
        padding: 15vw 8vw;
        justify-content: center;
        align-items: center;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .div7, ._3-d, .explore-button, .learn-more-button, .social-icons {
        position: static;
        width: auto;
        height: auto;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 5vh;
    }
    
    .social-icons { margin-bottom: 0; }
    .div7 { font-size: 10vw; line-height: 1.2; }
    .div-7-span, .div-7-span2, .div-7-span3, .div-7-span4 { padding-right: 10px; }
    ._3-d { font-size: 1rem; width: 100%; max-width: 400px; color: #b0b0b0; }

    .explore-button {
        position: relative;
        width: 100%;
        max-width: 320px;
        height: 50px;
        margin-bottom: 3vh;
    }
    
    .learn-more-button {
        width: auto;
        height: auto;
        font-size: 1rem;
        margin-bottom: 4vh;
    }

    .div8 { font-size: 1.2rem; width: 100%; }

    .social-icons { display: flex; gap: 25px; width: 100%; justify-content: center; }
    .telegram, .vk, .whatsapp { position: static; width: 35px; height: 35px; }
    
    /* === ПРАВАЯ КОЛОНКА === */
    .right-column {
        min-height: 60vh;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .unsplash-r-q-wn-g-ta-ay-u {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .div, .catalog-button {
        position: relative;
        z-index: 2; /* Поверх фонового изображения */
        left: auto;
        top: auto;
        text-align: center;
    }

    .div { /* "Сделано для ТЕБЯ" */
        font-size: 12vw;
        margin-bottom: 4vh;
    }

    .catalog-button {
        width: 80%;
        max-width: 300px;
        height: 55px;
    }

    .div2 { /* "Каталог" текст на кнопке */
        font-size: 1.3rem;
    }

    /* === СТИЛИ МОБИЛЬНОГО МЕНЮ === */
    /* Когда меню открыто, запрещаем прокрутку основной страницы */
    body.mobile-menu-open {
        overflow: hidden;
    }

    header .navigation-container { /* <<< Увеличиваем специфичность, добавляя 'header' */
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw; 
        height: 100vh;
        background: rgba(31, 31, 31, 0.97);
        backdrop-filter: blur(10px);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        opacity: 0;
        visibility: hidden;
    }
    
    body.mobile-menu-open header .navigation-container { /* <<< Увеличиваем специфичность */
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Стили для элементов внутри меню также делаем более специфичными */
    body.mobile-menu-open header .navigation-container nav { 
        display: flex; flex-direction: column; align-items: center; gap: 5vh; margin-bottom: 6vh; 
    }
    body.mobile-menu-open header .navigation-container .nav-button {
        font-size: 1.8rem; font-weight: 500; color: #ffffff;
        opacity: 0; transform: translateY(20px);
        animation: menuItemFadeIn 0.4s ease-out forwards;
    }
    @keyframes menuItemFadeIn { to { opacity: 1; transform: translateY(0); } }
    body.mobile-menu-open header .navigation-container .nav-button:nth-child(1) { animation-delay: 0.2s; }
    body.mobile-menu-open header .navigation-container .nav-button:nth-child(2) { animation-delay: 0.3s; }
    body.mobile-menu-open header .navigation-container .nav-button:nth-child(3) { animation-delay: 0.4s; }
    body.mobile-menu-open header .navigation-container .nav-button:nth-child(4) { animation-delay: 0.5s; }
    body.mobile-menu-open header .navigation-container .header-avatar-link { 
        flex-direction: column; gap: 15px; animation: menuItemFadeIn 0.4s ease-out 0.6s forwards; opacity: 0; transform: translateY(20px); 
    }
    body.mobile-menu-open header .navigation-container .header-avatar-img { width: 80px; height: 80px; }
    body.mobile-menu-open header .navigation-container .header-username { font-size: 1.2rem; }
    body.mobile-menu-open header .navigation-container .user-corner { 
        width: 80px; height: 80px; animation: menuItemFadeIn 0.4s ease-out 0.6s forwards; opacity: 0; transform: translateY(20px); 
    }
    #menu-toggle { cursor: pointer; z-index: 1001; }

    /* === СТРАНИЦА КАТАЛОГА === */
    .catalog-block {
        padding: 8vw 5vw;
        margin-top: 80px;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .catalog-title { font-size: 2rem; margin-bottom: 8vw; }
    .catalog-filter-form { flex-direction: column; gap: 4vw; }
    .catalog-search-input, .custom-select-wrapper, .catalog-category-select { width: 100%; font-size: 1rem; }
    .catalog-search-input, .custom-select-trigger, .catalog-category-select { padding: 15px; font-size: 1rem; }
    .catalog-products-list { grid-template-columns: 1fr; gap: 6vw; }
    .product-card { padding: 4vw; }
    .product-image { height: 250px; }
    .product-card .product-name { font-size: 1.3rem; min-height: auto; }
    .product-card .product-desc { font-size: 0.9rem; min-height: auto; margin-bottom: 4vw; }
    .product-card .product-prices { margin-bottom: 4vw; }
    .product-card .product-new-price { font-size: 1.5rem; }
    .product-card .product-old-price { font-size: 1.2rem; }
    .product-card .product-more-btn { padding: 15px; font-size: 1rem; }
    .catalog-empty { font-size: 1.1rem; padding: 10vw 5vw; }

    /* === СТРАНИЦА КОРЗИНЫ === */
    .cart-block {
        padding: 8vw 5vw;
    }

    .cart-layout {
        flex-direction: column;
        gap: 8vw;
    }

    .cart-sidebar {
        position: static;
        width: 100%;
        gap: 5vw;
    }

    .cart-item-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 5vw;
        gap: 4vw;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-item-img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .cart-item-name {
        font-size: 1.4rem;
    }

    .cart-item-desc {
        font-size: 0.9rem;
    }

    .cart-item-pricing {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2vw;
    }
    
    .cart-item-remove-form {
        margin-left: 0;
        margin-top: 3vw;
        width: 100%;
    }

    .cart-item-remove-btn {
        width: 100%;
        height: 45px;
        font-size: 1.1rem;
    }
    .cart-item-remove-btn > svg {
        display: none; 
    }
    .cart-item-remove-btn::before {
        content: "Удалить";
        font-family: "Poppins-SemiBold", sans-serif;
    }

    .cart-summary-block {
        padding: 5vw;
    }
    
    .cart-total-label { font-size: 1.1rem; }
    .cart-total-amount { font-size: 1.5rem; }

    .cart-checkout-form .cart-table-input {
        padding: 15px;
        font-size: 1rem;
    }

    .cart-checkout-btn .product-more-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    #empty-cart-message {
        font-size: 1.1rem !important;
    }

    .cart-extra-blocks-column {
        grid-template-columns: 1fr;
        gap: 8vw;
    }

    .cart-extra-block {
        padding: 5vw;
    }

    .cart-extra-block-title {
        font-size: 1.5rem;
    }
    
    .cart-extra-blocks-container .cart-extra-product-card {
        padding: 4vw;
        width: 100%;
        max-width: none;
    }

    /* === СТРАНИЦА ТОВАРА === */
    .product-detail-card {
        padding: 8vw 5vw;
        margin-top: 80px;
    }

    /* Главный контейнер (картинка | контент) */
    .product-detail-flex {
        flex-direction: column;
        gap: 8vw;
    }
    
    .product-detail-image-wrap {
        position: static; /* Отключаем "липкость" */
        width: 100%;
    }

    /* Контейнер справа (инфо | отзывы) */
    .product-detail-content-area {
        flex-direction: column;
        gap: 8vw;
    }

    .product-detail-info,
    .product-detail-info-actions-wrap {
        gap: 4vw;
    }

    /* Элементы в блоке информации */
    .product-detail-category { font-size: 0.9rem; }
    .product-detail-name { font-size: 2rem; }
    .product-detail-desc { font-size: 1rem; }
    .product-new-price { font-size: 1.8rem; }
    .product-old-price { font-size: 1.3rem; }
    
    .product-size-selector,
    .product-quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 2vw;
       
    }
    
    .product-size-select-control,
    .quantity-controls {
        width: 100%;
    }

    .product-detail-actions {
        flex-direction: column;
        width: 100%;
    }

    .product-detail-actions .product-more-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    /* Блок отзывов */
    .product-reviews-wrap {
        border-left: none;
        padding-left: 0;
        margin-top: 5vw;
        padding-top: 5vw;
        border-top: 1px solid #0febeb44;
    }
    
    .reviews-title { font-size: 1.8rem; }
    .add-review-form { padding: 5vw; }
    .add-review-form h3 { font-size: 1.4rem; }
    .review-form-rating label { font-size: 1rem; }
    .star-rating label { font-size: 8vw; }
    .review-form-text label { font-size: 1rem; }
    .review-form-text textarea { font-size: 1rem; }
    .submit-review-btn { width: 100%; padding: 15px; font-size: 1rem; }
    .review-notice { font-size: 1rem; padding: 4vw; }
    
    .reviews-list {
        max-height: none;
        padding-right: 0;
        gap: 5vw;
    }
    
    .review-item { padding: 4vw; }
    .review-author { font-size: 1.1rem; }
    .review-rating .star { font-size: 1.2rem; }
    .review-text { font-size: 1rem; }

    /* Похожие товары */
    .related-products-section {
        margin-top: 8vw;
    }
    
    .related-products-title {
        font-size: 1.8rem;
    }

    /* === СТРАНИЦА ПРОФИЛЯ === */
    .profile-block {
       
        margin-top: 80px;
    }

    .profile-header-section {
        padding: 30px 20px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .profile-username {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .profile-actions {
        display: none; /* Полностью скрываем старый блок, если он где-то есть */
    }

    /* Новые, правильные стили для самих кнопок */
    .profile-header .profile-logout-btn,
    .profile-header .profile-admin-btn,
    .profile-header .profile-edit-btn {
        width: auto;
        font-size: 0.9rem !important; 
        padding: 10px 18px !important; 
        margin: 0 5px !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .profile-content-section {
        padding: 30px 20px;
    }

    .profile-content-layout {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .profile-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .profile-order-item {
        padding: 20px;
        font-size: 1rem; /* Базовый шрифт для карточки */
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 15px;
    }

    .order-info-main, 
    .order-info-secondary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-id, 
    .order-date, 
    .order-total, 
    .order-status {
        font-size: 1em;
    }
    .order-status span {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    
    .order-details-toggle {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
        text-align: center;
        margin-top: 5px;
    }

    .favorites-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .favorite-card {
        padding: 20px;
    }
}

/* 
 * Стиль для аватара по умолчанию в мобильном меню (бургере)
 * для неавторизованного пользователя.
 * Создает круглый плейсхолдер с иконкой пользователя,
 * когда внутри ссылки .header-avatar-link отсутствует изображение .header-avatar-img.
*/
@media (max-width: 768px) {
    body.mobile-menu-open header .navigation-container .header-avatar-link:not(:has(.header-avatar-img))::before {
        content: '';
        display: block;
        width: 80px; /* Соответствует размеру аватара авторизованного пользователя */
        height: 80px;
        background-color: #3a3a50; /* Фоновый цвет плейсхолдера */
        border-radius: 50%;
        /* Встроенная SVG-иконка пользователя */
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
        background-size: 50%;
        background-position: center;
        background-repeat: no-repeat;
        border: 2px solid #f204ff; /* Рамка в стиле сайта */
    }
}

/* 
 * Медиа-запросы для страниц авторизации и регистрации 
*/
@media (max-width: 768px) {
    /* На страницах, где есть форма входа или регистрации... */
    .left-column:has(.login-container),
    .left-column:has(.individual-container) {
        /* ...левая колонка занимает всю ширину и выравнивает форму по центру */
        justify-content: center;
        padding: 5vw;
    }

    /* ...а правая колонка полностью скрывается */
    .left-column:has(.login-container) ~ .right-column,
    .left-column:has(.individual-container) ~ .right-column {
        display: none;
    }

    /* Адаптируем сами контейнеры форм */
    .login-container,
    .individual-container {
        width: 100%;
        max-width: 450px;
       
        border: none;
        box-shadow: none;
    }
    
    /* Увеличиваем заголовки для читаемости */
    .login-container .login-title,
    .individual-container .login-title {
        font-size: 2.2rem;
    }
    
    /* Увеличиваем текст и поля ввода */
    .login-container .login-description,
    .individual-container .login-description,
    .login-container .login-form-group .login-label,
    .individual-container .login-form-group .login-label,
    .login-container .login-form-group .login-input,
    .individual-container .login-form-group .login-input,
    .login-container .login-button,
    .individual-container .login-button,
    .login-container .login-no-account-text,
    .individual-container .login-no-account-text {
        font-size: 1rem;
    }

  
}

/*
 * Медиа-запросы для страницы "О нас"
*/
@media (max-width: 768px) {
  .about-us-page .page-title {
      font-size: 2.2rem;
      margin-bottom: 8vw;
  }

  .about-section {
      flex-direction: column; /* Ставим блоки друг под друга */
      margin-bottom: 10vw;
      padding: 1;
  }

  /* Сбрасываем обратный порядок для секций с текстом справа, чтобы картинка всегда была сверху */
  .about-section.text-right {
      flex-direction: column;
  }

  .about-image-container,
  .about-text-content {
      width: 100%;
      max-width: 100%;
      padding: 0;
      margin: 0;
  }
  
  .about-image-container {
      margin-bottom: 5vw;
      max-height: 300px; /* Ограничиваем высоту картинки */
  }
  
  .about-text-content {
      padding: 0 5vw 5vw; /* Добавили горизонтальные отступы для текста */
  }

  .about-title {
      font-size: 1.8rem;
      text-align: center; /* Центрируем заголовок секции */
  }
  
  .about-title::after {
      margin-left: auto;
      margin-right: auto;
      width: 80px;
  }

  .about-text,
  .about-list li {
      font-size: 1rem;
  line-height: 1.6;
}

  /* Улучшенное выравнивание для списка с галочками на мобильных */
  .about-list li {
      
      align-items: flex-start;
      padding-left: 0; /* Сбрасываем старый отступ */
  }

  .about-list li::before {
      position: static; /* Убираем абсолютное позиционирование */
      flex-shrink: 0; /* Запрещаем иконке сжиматься */
      margin-right: 12px; /* Добавляем отступ справа от иконки */
      line-height: 1.4; /* Тонкая подстройка вертикального выравнивания галочки */
  }

  /* Адаптация для блока призыва к действию (CTA) */
  .cta-section {
      padding: 15vw 5vw;
      border-radius: 20px;
      text-align: center;
  }

  .cta-title {
      font-size: 2rem;
  }

  .cta-subtitle {
      font-size: 1rem;
  }

  .cta-button {
      width: 100%;
      max-width: 300px;
      padding: 15px;
      font-size: 1rem;
  }
}

/* Дополнительные медиа-запросы для исправления ошибок на странице товара */
@media (max-width: 768px) {
    
    /* 1. Исправление для блока "Похожие товары" */
    .related-products-list {
        /* Добавляем отступы, чтобы первый и последний товары не обрезались по краям */
        padding-left: 110px;
        padding-right: 20px;
        /* Убедимся, что box-sizing не ломает верстку */
        box-sizing: border-box;
    }

    /* 2. Исправление для неработающей кнопки-бургера */
    /* Увеличиваем z-index, чтобы кнопка и меню были поверх других элементов */
    #menu-toggle {
        z-index: 1101; 
    }

    header .navigation-container {
        z-index: 1100;
    }
}

/*
 * Финальное, ЦЕЛЕВОЕ исправление для "половинчатого" меню.
 * Этот код сбрасывает transform ТОЛЬКО на тех страницах, где он ломает меню,
 * и не трогает страницы, где transform нужен для других эффектов (например, на главной).
*/
@media (max-width: 768px) {
    /* 
     * Выбираем основной контейнер .left-column, но только в том случае,
     * если внутри него находится один из "проблемных" блоков:
     * .catalog-block (страница каталога)
     * .product-detail-card (страница товара)
     * .profile-block (страница профиля)
     * .cart-block (страница корзины)
     * .about-us-page (страница "О нас")
     */
    .left-column:has(.catalog-block),
    .left-column:has(.product-detail-card),
    .left-column:has(.profile-block),
    .left-column:has(.cart-block),
    .left-column:has(.about-us-page) {
        transform: none !important; /* Отключаем transform, чтобы починить меню */
    }
}

@media (max-width: 768px) {
    .profile-header-section {
        flex-direction: column;
        align-items: center;
        gap: 5vw;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3vw;
    }

    .profile-actions {
        width: 100%;
        justify-content: center;
    }

    .profile-actions .profile-edit-btn,
    .profile-actions .profile-logout-btn,
    .profile-actions .profile-admin-btn {
        padding: 3vw 5vw;
        font-size: 4vw;
        flex-grow: 1;
        max-width: 250px;
        
    }

    .favorites-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }

    .favorite-card {
        padding: 3vw;
    }

    .favorite-card-name {
        font-size: 3.8vw;
        margin-bottom: 2vw;
    }

    .favorite-card-price {
        font-size: 4.2vw;
        margin-bottom: 3vw;
    }

    .favorite-card-remove-btn {
        font-size: 3.5vw;
      
    }
}

/* --- MOBILE FIX: enlarge profile edit button --- */
@media (max-width: 768px) {
    .profile-edit-btn {
        font-size: 4.2vw !important;  /* ~16px on 375px width */
        padding: 2.6vw 5vw !important; /* balanced vertical and horizontal padding */
        min-width: 50%;               /* occupy reasonable width */
        text-align: center;
    }
}

/* =========================================================================
   MOBILE ADAPTATION: ADMIN MODALS & PROFILE-EDIT MODAL (≤768px)
   =========================================================================*/
@media (max-width: 768px) {
    /* --- Общие размеры окон --- */
    .admin-modal-window,
    .profile-edit-modal-window {
        width: 92vw !important;   /* почти полная ширина */
        min-width: 0;
        padding: 6vw 4vw !important; /* комфортные отступы */
        max-height: 95vh;         /* помещается по высоте */
        overflow-y: auto;
    }

    /* --- Заголовки внутри окон --- */
    .admin-modal-content h2,
    .profile-edit-modal-content h2 {
        font-size: 1.6rem !important;
        margin-bottom: 5vw;
    }

    /* --- Вкладки админ панели --- */
    .admin-panel-tabs {
        flex-wrap: wrap;
        gap: 3vw;
    }
    .admin-panel-tab {
        font-size: 0.95rem;
        padding: 2vw 4vw;
    }

    /* --- Таблица товаров внутри админки --- */
    .admin-modal-content .cart-table {
        font-size: 0.9rem; /* чуть крупнее шрифт для читаемости */
    }
    .admin-modal-content .cart-table th,
    .admin-modal-content .cart-table td {
        padding: 2.5vw 1.5vw;
        white-space: nowrap; /* предотвращаем ломание строк */
    }
    .admin-edit-input,
    .admin-edit-textarea,
    .admin-edit-select {
        font-size: 1rem;
        padding: 3vw 3vw;
    }

    /* --- Кнопка закрытия окна --- */
    .admin-modal-close,
    .profile-edit-modal-close {
        font-size: 2rem !important;
        top: 3vw;
        right: 4vw;
    }

    /* --- Форма редактирования профиля --- */
    .profile-edit-form {
        gap: 4vw;
    }
    .profile-edit-form .login-label {
        font-size: 1rem;
        margin-bottom: 1.5vw;
    }
    .profile-edit-form .cart-table-input {
        font-size: 1rem;
        padding: 3vw 3vw;
    }
    .profile-edit-save-btn {
        font-size: 1.1rem;
        padding: 3vw 8vw;
    }
}

@media (max-width: 768px) {
    /* -----------------------------------------------------------
       SAFETY FIX: гарантируем, что бургер-меню растягивается на
       всю ширину/высоту экрана даже если у предков есть transform.
       -----------------------------------------------------------*/
    body.mobile-menu-open .main-page,
    body.mobile-menu-open .page,
    body.mobile-menu-open .main-content-wrapper,
    body.mobile-menu-open .left-column,
    body.mobile-menu-open .right-column {
        transform: none !important; /* убираем "новый контекст" */
    }

    /* На всякий случай расширяем сам контейнер меню */
    body.mobile-menu-open header .navigation-container {
        inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */
        width: 100vw !important;
        height: 100vh !important;
    }
}

body.mobile-menu-open header .navigation-container .user-corner {
    display: block !important;
}

body.mobile-menu-open header .navigation-container .nav-item.header-avatar-link {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    animation: menuItemFadeIn 0.4s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}
body.mobile-menu-open header .navigation-container .nav-item.header-avatar-link .header-username {
    font-size: 1.2rem;
    color: #ffffff;
}

header {
    position: relative;
    z-index: 1200;
}

/* === DESKTOP: делаем иконку бургера неактивной === */
@media (min-width: 769px) {
    .menu#menu-toggle,
    .menu {
        pointer-events: none;
        cursor: default;
    }
}

