/* ===== Базовые настройки ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #4a3b3b;
  background-color: #fdf6f5;
  line-height: 1.5;
}
.main-nav a.active {
  color: #d97a91;
  font-weight: 700;
}
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Шапка ===== */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #f0dede;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #d97a91;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto; /* Позволяет панели навигации центрироваться лучше */
}

.logo-img {
  height: 44px;
  width: 44px;
  display: block;
}

.main-nav {
  flex: 1;
  min-width: 0;
  margin-left: 32px;
}

.main-nav ul {
  display: flex;
  gap: 24px;
}

.category-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.category-item {
  flex-shrink: 0;
  white-space: nowrap;
}

.category-more {
  position: relative;
}

.category-more-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #4a3b3b;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.category-more-btn:hover {
  color: #d97a91;
}

.category-more-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #f0dede;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  padding: 8px 0;
  z-index: 200;
  list-style: none;
}

.category-more-dropdown.open {
  display: block;
}

.category-more-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #4a3b3b;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.category-more-dropdown li a:hover {
  background-color: #fcf4f4;
  color: #d97a91;
}

.category-more-dropdown li a.active {
  color: #d97a91;
  font-weight: 600;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #4a3b3b;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #d97a91;
}

.header-actions .cart-icon {
  background-color: #d97a91;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.header-actions .cart-icon:hover {
  background-color: #c4647c;
}

/* ===== Кнопка "Категории" (триггер сайдбара) ===== */
.categories-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fcf4f4;
  border: 1px solid #f0dede;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #4a3b3b;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
  margin-right: 20px; /* Сдвигает логотип вправо, обеспечивая отступ */
}

.categories-trigger:hover {
  background-color: #d97a91;
  color: #fff;
}

.categories-trigger-icon {
  font-size: 16px;
  line-height: 1;
}

/* ===== Выдвижной сайдбар со всеми категориями ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 998;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.categories-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.categories-sidebar.open {
  transform: translateX(0);
}

.categories-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0dede;
}

.categories-sidebar-header h3 {
  font-size: 18px;
  color: #4a3b3b;
}

.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #8a7878;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.sidebar-close-btn:hover {
  color: #d97a91;
}

.categories-sidebar-list {
  padding: 12px 0;
}

.categories-sidebar-list li a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  color: #4a3b3b;
  font-weight: 500;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.categories-sidebar-list li a:hover {
  background-color: #fcf4f4;
  color: #d97a91;
}

.categories-sidebar-list li a.active {
  color: #d97a91;
  font-weight: 700;
  background-color: #fcf4f4;
}

/* ===== Основной контент ===== */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ===== Каталог: сетка + сайдбар ===== */
.catalog-page {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 220px;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #d97a91;
}

.category-list li {
  margin-bottom: 8px;
}

.category-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #4a3b3b;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.category-list a:hover {
  background-color: #f5e6e6;
  color: #d97a91;
}

.category-list a.active {
  background-color: #d97a91;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Карточка товара ===== */
.product-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f5e6e6;
}

.product-info {
  padding: 14px;
}

.product-name a {
  font-size: 15px;
  font-weight: 600;
  color: #4a3b3b;
  display: block;
  margin-bottom: 6px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #d97a91;
  margin-bottom: 10px;
}

.btn-buy,
.btn-buy-large {
  width: 100%;
  background-color: #d97a91;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-buy:hover,
.btn-buy-large:hover {
  background-color: #c4647c;
}

/* ===== Страница товара ===== */
.product-detail {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.product-detail-image {
  flex: 1 1 360px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-detail-image img {
  width: 100%;
  height: auto;
}

.product-detail-info {
  flex: 1 1 360px;
}

.product-detail-info h1 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #4a3b3b;
}

.product-detail-price {
  font-size: 22px;
  font-weight: 700;
  color: #d97a91;
  margin-bottom: 20px;
}

.product-detail-description {
  margin-bottom: 24px;
}

.product-detail-description h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #d97a91;
}

.add-to-cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.add-to-cart-form input[type="number"] {
  width: 70px;
  padding: 8px;
  border: 1px solid #f0dede;
  border-radius: 8px;
  font-size: 14px;
}

.add-to-cart-form .btn-buy-large {
  width: auto;
  padding: 10px 24px;
}

/* ===== Страница регистрации ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.auth-card {
  background-color: #fff;
  max-width: 450px;
  width: 100%;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0dede;
}

.auth-card h2 {
  font-size: 24px;
  color: #4a3b3b;
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: #8a7878;
  text-align: center;
  margin-bottom: 28px;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a3b3b;
  margin-bottom: 6px;
}

.auth-form .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #f0dede;
  border-radius: 8px;
  font-size: 14px;
  color: #4a3b3b;
  outline: none;
  background-color: #fff;
  transition: border-color 0.2s;
}

.auth-form .form-input:focus {
  border-color: #d97a91;
}

.auth-form .select-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a3b3b' 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 14px center;
  padding-right: 35px;
}

.btn-auth {
  width: 100%;
  background-color: #d97a91;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.btn-auth:hover {
  background-color: #c4647c;
}

.form-errors {
  color: #c4647c;
  font-size: 12px;
  margin-top: 4px;
}

.global-errors {
  background-color: #fdf6f5;
  border: 1px solid #f0dede;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .catalog-page {
    flex-direction: column;
  }

  .sidebar {
    flex: 1 1 auto;
    width: 100%;
  }

  .main-nav ul {
    gap: 14px;
    flex-wrap: wrap;
  }
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #a08c8c;
  font-size: 16px;
}
/* ===== Корзина ===== */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: #d97a91;
}

.back-link:hover {
  text-decoration: underline;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-table th,
.cart-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #f0dede;
  font-size: 14px;
}

.cart-table th {
  background-color: #fdf6f5;
  color: #d97a91;
  font-weight: 600;
}

.cart-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.no-photo {
  color: #a08c8c;
  font-size: 13px;
}

.cart-update-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-update {
  background-color: #f5e6e6;
  color: #4a3b3b;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-update:hover {
  background-color: #ecd5d5;
}

.btn-delete {
  color: #ff4d4d;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
}

.btn-delete:hover {
  text-decoration: underline;
}

.cart-total {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  margin-top: 20px;
  color: #4a3b3b;
}

.cart-total span {
  color: #d97a91;
}

/* Стилизация всех полей ввода в форме заказа (по классу от бэкенда) */
.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 15px;
  color: #4a3b3b;
  background-color: #fdf6f5; /* Легкий пудровый оттенок */
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* Эффект при клике на поле */
.form-input:focus {
  outline: none;
  border-color: #d97a91; /* Фирменный розовый */
  box-shadow: 0 0 0 3px rgba(217, 122, 145, 0.1);
  background-color: #fff;
}

/* Стилизация выпадающего списка стран */
.select-input {
  cursor: pointer;
  appearance: none; /* Убирает стандартную стрелочку браузера */
}

/* ===== Бургер-кнопка (скрыта на десктопе) ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #4a3b3b;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.burger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.header-actions-mobile {
  display: none;
}

/* =========================================
   ПОИСКОВАЯ СТРОКА (ОБНОВЛЕННЫЙ ДИЗАЙН)
   ========================================= */
.search-section-modern {
  background-color: #fff;
  padding: 25px 20px;
  border-bottom: 1px solid #f0dede;
  display: flex;
  justify-content: center;
}

.search-form-modern {
  display: flex;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.search-form-modern:hover {
  box-shadow: 0 8px 24px rgba(217, 122, 145, 0.15);
  transform: translateY(-1px);
}

.search-input-modern {
  flex: 1;
  padding: 16px 25px;
  border: 2px solid #f0dede;
  border-right: none;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 18px;
  color: #4a3b3b;
  transition: border-color 0.3s ease;
}

.search-input-modern:focus {
  border-color: #d97a91;
}

.search-btn-modern {
  padding: 16px 35px;
  background-color: #d97a91;
  color: white;
  border: 2px solid #d97a91;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.search-btn-modern:hover {
  background-color: #c2657b;
  border-color: #c2657b;
}

/* =========================================
   ВЫПАДАЮЩИЕ ПОДСКАЗКИ ПОИСКА
   ========================================= */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
}

.search-suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 130px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid #f0dede;
  border-top: none;
  display: none;
}

.suggestion-item {
  display: block;
  padding: 12px 25px;
  color: #4a3b3b;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #fcf4f4;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #fcf4f4;
  color: #d97a91;
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 768px) {
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .burger {
    display: flex;
  }

  .categories-trigger {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #f0dede;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul,
  .category-bar {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0;
    overflow: visible;
    flex-wrap: wrap;
  }

  .main-nav ul li a {
    display: block;
    padding: 12px 24px;
  }

  .header-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0dede;
  }

  .header-actions-mobile a {
    font-size: 14px;
    font-weight: 500;
  }

  .header-actions-mobile .cart-icon {
    display: inline-block;
    width: fit-content;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    margin-bottom: 16px;
    border-bottom: 2px solid #f0dede;
  }

  .cart-table td {
    padding: 8px 14px;
    border: none;
  }

  .search-section-modern {
    padding: 15px 12px;
  }

  .search-input-modern {
    padding: 12px 16px;
    font-size: 15px;
  }

  .search-btn-modern {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* ===== Адаптация для планшетов ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner {
    padding: 14px 16px;
    gap: 8px;
  }

  .categories-trigger {
    padding: 6px 12px;
    font-size: 13px;
    margin-right: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-img {
    height: 36px;
    width: 36px;
  }

  .main-nav {
    margin-left: 16px;
  }

  .category-bar {
    gap: 14px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .header-actions .cart-icon {
    padding: 6px 12px;
    font-size: 13px;
  }

  .header-actions a {
    font-size: 13px;
    margin-right: 10px !important;
  }

  .search-form-modern {
    max-width: 600px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
}

/* ===== Подвал ===== */
.site-footer {
  background-color: #f5c6d0;
  padding: 40px 60px 20px;
  margin-top: 60px;
  color: #333;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333;
}

.footer-col h4 {
  margin-bottom: 8px;
  font-size: 1em;
  color: #333;
}

.footer-col p {
  margin: 6px 0;
  line-height: 1.5;
  font-size: 0.95em;
  color: #333;
}

.footer-plain-link {
  color: #333;
  text-decoration: none;
  font-size: 0.95em;
  display: inline-block;
}

.footer-plain-link:hover {
  text-decoration: underline;
  cursor: pointer;
}

.footer-socials {
  margin-top: 8px;
}

.footer-socials a {
  display: inline-block;
  margin-right: 10px;
  color: #333;
  font-size: 1.2em;
}

.footer-divider {
  border: none;
  border-top: 1px dashed #333;
  margin: 30px 0 15px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9em;
  color: #555;
}

/* ===== Страница "О нас" ===== */
.about-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  color: #333;
  line-height: 1.6;
}

.about-page h1 {
  color: #e0a0b0;
  margin-bottom: 25px;
}

.about-page h2 {
  color: #333;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 32px;
  width: 32px;
  display: block;
}
/* =========================================
   ПРОФИЛЬ (ЛИЧНЫЙ КАБИНЕТ)
   ========================================= */
.profile-container {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  gap: 30px;
  padding: 0 24px;
}

.profile-sidebar {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0dede;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  height: fit-content;
}

.profile-avatar-block {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar {
  font-size: 50px;
  background: #fcf4f4;
  width: 90px;
  height: 90px;
  line-height: 90px;
  border-radius: 50%;
  margin: 0 auto 15px;
  color: #d97a91;
}

.profile-username {
  font-size: 20px;
  color: #4a3b3b;
  margin: 0 0 5px;
}

.profile-subtitle {
  color: #8a7878;
  font-size: 14px;
  margin: 0;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 14px 20px;
  font-size: 15px;
  color: #4a3b3b;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}


.tab-btn:hover {
  background: #fcf4f4;
  color: #d97a91;
}

.tab-btn.active {
  background: #d97a91;
  color: #fff;
}

.profile-logout-link {
  display: block;
  padding: 14px 20px;
  color: #c4647c;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
  border-top: 1px solid #f0dede;
  transition: color 0.2s;
}

.profile-logout-link:hover {
  color: #9a485d;
}

/* Формы в профиле */
.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form-group label {
  color: #8a7878;
  font-size: 14px;
  font-weight: 500;
}

/* История заказов в профиле */
.profile-orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-card {
  border: 1px solid #f0dede;
  border-radius: 12px;
  padding: 20px;
  background: #fdf6f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-meta {
  color: #8a7878;
  font-size: 14px;
  margin: 0 0 5px;
}

.order-total {
  font-weight: bold;
  font-size: 18px;
  color: #d97a91;
  margin: 0;
}

.order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.status-processing { background: #fff3cd; color: #856404; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.order-card-actions form {
  margin: 0;
}

.btn-order-cancel,
.btn-order-hide {
  background: #fff;
  border: 1px solid #c4647c;
  color: #c4647c;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-order-hide {
  border-color: #8a7878;
  color: #8a7878;
}

.btn-order-cancel:hover { background: #c4647c; color: #fff; }
.btn-order-hide:hover { background: #8a7878; color: #fff; }

.favorite-remove-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.favorite-remove-btn:hover {
  background: #ff4d4d;
  color: white;
}

/* Мобильный профиль */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    padding: 0 15px;
  }
  
  .profile-sidebar {
    width: 100%;
    flex: none;
  }
  
  .order-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .order-card-actions {
    width: 100%;
  }
  
  .btn-order-cancel,
  .btn-order-hide {
    width: 100%;
  }
}

/* --- ЭТОТ БЛОК ДЕЛАЕТ СЕТКУ ИЗ ТВОИХ ТОВАРОВ --- */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.item {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
}

.item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.price {
    font-weight: bold;
    color: #d97a91;
    margin-top: 10px;
}
/* ----------------------------------------------- */