/* Главный CSS файл темы tu6v1 */
/* Оптимизированный и улучшенный для современных стандартов */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&family=Lato:wght@300;400;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* Переменные цветов */
:root {
  --primary-burgundy: #8B2635;
  --primary-dark-red: #6E1111;
  --primary-dark: #333;
  --primary-light: #E8E8E8;
  --primary-white: #FFFFFF;
  --primary-cream: #F8F6F0;
  --primary-yellow: #FFD700;
  --accent-gold: #D4AF37;
  --accent-red: #DC143C;
  --accent-cream: #F5DEB3;
  --gradient-primary: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--primary-dark-red) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--primary-dark-red) 0%, var(--primary-burgundy) 100%);
}

/* Базовые стили */
html {
  background-color: var(--primary-burgundy);
}

body {
  margin: 0;
  padding: 0;
  background: var(--primary-burgundy);
  color: var(--primary-dark);
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Формы создания/редактирования нод — стили полей формы */
body.page-node-form fieldset {
  background: #f8f4e6 !important;
  border: 1px solid #ddd !important;
}

body.page-node-form fieldset legend {
  background: transparent !important;
  color: #333 !important;
  padding: 4px 0 !important;
}

body.page-node-form .form-submit,
body.page-node-form input.form-submit {
  background: linear-gradient(135deg, #870128, #6e1111) !important;
  color: #fff !important;
}

body.page-node-form .form-submit:hover,
body.page-node-form input.form-submit:hover {
  background: linear-gradient(135deg, #6e1111, #870128) !important;
}

/* Admin menu - убираем отступы и рамку */
#admin-menu {
  margin: 0 !important;
  padding: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  display: block !important;
  visibility: visible !important;
}

#admin-menu-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

#admin-menu ul {
  margin: 0 !important;
  padding: 0 !important;
}

#admin-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Обертка сайта */
.site-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 24px auto 48px auto;
  padding: 12px 12px 16px 12px;
  background: var(--primary-cream);
  border-radius: 32px;
  box-shadow: 0 8px 40px rgba(139, 38, 53, 0.10);
  overflow-x: visible;
  overflow-y: visible;
  position: relative;
  box-sizing: border-box;
}

/* Если есть админ-бар - добавляем отступ сверху */
body.with-admin-menu .site-wrapper,
#admin-menu ~ .site-wrapper {
  margin-top: 50px;
}

/* Основные стили элементов */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 500;
  color: #333;
}

h1 { font-size: 1.8em; font-weight: 600; }
h2 { font-size: 1.5em; }
h3, h4, h5, h6 { font-size: 1.2em; }

p {
  margin-top: 0.5em;
  margin-bottom: 0.9em;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  font-weight: 500;
}

a:link { color: var(--primary-dark-red); }
a:visited { color: var(--primary-burgundy); }
a:hover { color: #6e1111; text-decoration: underline; }

/* Структура страницы */
#header, #content {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

/* Sidebar - левая колонка */
#sidebar-left {
  vertical-align: top;
  padding: 15px;
  background: var(--primary-white);
  width: 200px;
  min-width: 200px;
}

#sidebar-left .block {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--primary-light);
}

#sidebar-left .block:last-child {
  border-bottom: none;
}

/* Блок "Сейчас на сайте" */
#sidebar-left .block-who,
#sidebar-left .block-user-online {
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 15px;
  background: var(--primary-cream);
}

#sidebar-left .block-who h2,
#sidebar-left .block-user-online h2 {
  margin: 0 0 10px 0;
  padding: 0 0 8px 0;
  border-bottom: 1px solid #870128;
  font-size: 14px;
  font-weight: 600;
  color: #870128;
}

#sidebar-left .block-who .content,
#sidebar-left .block-user-online .content {
  font-size: 13px;
  color: var(--primary-dark);
}

#sidebar-left .block-who ul,
#sidebar-left .block-user-online ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#sidebar-left .block-who li,
#sidebar-left .block-user-online li {
  padding: 4px 0;
  border-bottom: 1px solid var(--primary-light);
}

#sidebar-left .block-who li:last-child,
#sidebar-left .block-user-online li:last-child {
  border-bottom: none;
}

#sidebar-right {
  vertical-align: top;
  padding: 15px;
  background: var(--primary-white);
  width: 200px;
  min-width: 200px;
}

#sidebar-right .block {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--primary-light);
}

#sidebar-right .block:last-child {
  border-bottom: none;
}

#main-menu {
  background: #870128;
  padding: 6px 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 251, 230, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  margin-bottom: 2px !important;
  flex-wrap: nowrap;
  min-width: 0;
}

#main-menu .main-menu-links {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#main-menu .main-menu-links li {
  display: inline-flex;
  align-items: center;
  border-left: 1px solid rgba(255, 251, 230, 0.25);
  padding-left: 10px;
}

#main-menu .main-menu-links li:first-child {
  border-left: 0;
  padding-left: 0;
}

#main-menu .main-menu-links a {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffff00;
  transition: background-color .15s ease, color .15s ease;
}

#main-menu .main-menu-links a:hover {
  background-color: rgba(255,255,255,0.12);
  color: #ffff00;
  text-decoration: underline;
}

/* Дополнительные ссылки (secondary links) */
#secondary-menu {
  background: #870128;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  margin-top: 0;
  margin-bottom: 6px;
}

#secondary-menu .secondary-menu-links {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#secondary-menu .secondary-menu-links li {
  display: inline-flex;
  align-items: center;
  border-left: 1px solid rgba(255, 251, 230, 0.25);
  padding-left: 10px;
}

#secondary-menu .secondary-menu-links li:first-child {
  border-left: 0;
  padding-left: 0;
}

#secondary-menu .secondary-menu-links a {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffff00;
  transition: background-color .15s ease, color .15s ease;
  text-decoration: none;
}

#secondary-menu .secondary-menu-links a:hover {
  background-color: rgba(255,255,255,0.12);
  color: #ffff00;
  text-decoration: underline;
}

/* Поиск в меню */
#main-menu .site-search {
  margin-left: auto;
  margin-right: 15px;
  flex: 1 1 240px;
  min-width: 120px;
  display: flex;
  align-items: center;
  position: relative;
  transition: flex-basis 0.2s, width 0.2s;
  overflow: visible;
}

#main-menu .site-search input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 40px 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(135, 1, 40, 0.45);
  background: #fffbe6;
  color: #333;
  outline: none;
  box-sizing: border-box;
}

#main-menu .site-search input::placeholder{
  color: #8a6f6f;
}

#main-menu .site-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #870128;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

#main-menu .site-search button svg {
  width: 18px;
  height: 18px;
}

/* Основные стили элементов */

/* Заголовки и контент страницы */
.title, .title a {
  font-weight: 600;
  font-size: 1.4em;
  color: var(--primary-dark-red);
  margin: 0 auto;
}

#main h1.title {
  color: var(--primary-dark-red);
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  width: 100%;
  display: block;
}

/* Вкладки (tabs) */
.tabs {
  margin: 10px 0 15px 0;
  clear: both;
}

ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: flex-end;
}

ul.tabs.primary {
  border-bottom: 2px solid var(--primary-burgundy);
  margin-bottom: 10px !important;
}

ul.tabs.secondary {
  border-bottom: 2px solid #d4af37;
  margin-top: 0 !important;
  padding-top: 0;
}

ul.tabs li {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

ul.tabs li a {
  display: block;
  padding: 8px 14px;
  background: #f8f4e6;
  color: var(--primary-dark-red);
  text-decoration: none;
  border: 1px solid var(--primary-burgundy);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.2;
}

ul.tabs.secondary li a {
  padding: 6px 12px;
  font-size: 12px;
  background: #fff7e6;
  border-color: #d4af37;
}

ul.tabs li a:hover {
  background: #fff;
}

ul.tabs li.active a,
ul.tabs li a.active {
  background: var(--primary-burgundy);
  color: #fff;
}

ul.tabs.secondary li.active a,
ul.tabs.secondary li a.active {
  background: #d4af37;
  color: #fff;
}

/* Блоки контента */
.block, .box {
  padding: 0 0 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary-white);
  border: 1px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

/* Вкладки внутри контента */
#main .tabs ul.primary {
  list-style: none;
  margin: 0 0 10px 0 !important;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--primary-burgundy);
  align-items: flex-end;
}

#main .tabs ul.secondary {
  list-style: none;
  margin: 0 !important;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 2px solid #d4af37;
  align-items: flex-end;
}

#main .tabs ul.primary li,
#main .tabs ul.secondary li {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

#main .tabs ul.primary li a {
  display: block;
  padding: 8px 14px;
  background: #f8f4e6;
  color: var(--primary-dark-red);
  text-decoration: none;
  border: 1px solid var(--primary-burgundy);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.2;
}

#main .tabs ul.secondary li a {
  display: block;
  padding: 6px 12px;
  background: #fff7e6;
  color: var(--primary-dark-red);
  text-decoration: none;
  border: 1px solid #d4af37;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.2;
}

#main .tabs ul.primary li a:hover,
#main .tabs ul.secondary li a:hover {
  background: #fff;
}

#main .tabs ul.primary li.active a,
#main .tabs ul.primary li a.active {
  background: var(--primary-burgundy);
  color: #fff;
}

#main .tabs ul.secondary li.active a,
#main .tabs ul.secondary li a.active {
  background: #d4af37;
  color: #fff;
}

/* Узлы контента */
.node {
  margin: .5em 0 2em;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 18px 12px 20px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Заметки (не товары) - выравнивание по левому краю */
.node:not(.type-product) {
  text-align: left;
  align-items: center;
  padding: 15px 10px;
  border: 2px solid #870128;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.1);
  background: #fffbe6;
}

.node:not(.type-product) .title {
  text-align: left;
  width: 100%;
  margin-bottom: 12px;
}

.node:not(.type-product) .taxonomy {
  margin: 5px auto 15px auto;
  width: fit-content;
}

.node:not(.type-product) .content {
  text-align: left;
  width: 100%;
}

.node:not(.type-product) .content img {
  display: block;
  margin: 25px auto;
  height: auto;
  border-radius: 8px;
}

.node:not(.type-product) .submitted {
  color: #666;
  font-size: 13px;
  margin-bottom: 10px;
}

.node .links {
  margin: 0;
  text-align: center;
  width: 100%;
  clear: both;
  padding-top: 5px;
  border-top: 1px solid #ddd;
}

.node .links a {
  display: inline-block;
  background: #f8f4e6;
  color: #870128;
  padding: 8px 20px;
  border: 2px solid #870128;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.node .links a:hover {
  background: #870128;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(135, 1, 40, 0.2);
}

/* Основные стили для карточек товаров */
.buildmode-grid {
  display: contents !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: unset !important;
  max-width: unset !important;
  border: none !important;
  box-shadow: none !important;
  transition: none !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Стили для каталога товаров */
.products-grid-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.1%;
  margin: 1.5% 0;
  padding: 1.1%;
  background: var(--primary-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

/* Стили для карточек товаров */
.buildmode-grid:hover {
  box-shadow: none !important;
  transform: none !important;
}

.buildmode-grid .field-product-image {
  width: 100%;
  text-align: center;
}

.buildmode-grid .field-product-image img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 7px;
  background: #f8f4e6;
  box-shadow: 0 1px 6px rgba(135,1,40,0.06);
}

.buildmode-grid .field-title h1,
.buildmode-grid .field-title h2 {
  font-size: 1.1em;
  font-weight: 600;
  color: #6e1111;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 2.6em;
  line-clamp: 2;
  cursor: pointer;
}

.buildmode-grid .field-sell-price {
  font-size: 1.15em;
  color: #870128;
  font-weight: 700;
  margin: 6px 0 10px 0;
  text-align: center;
  width: 100%;
}

.buildmode-grid .add-to-cart {
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Стили для страницы товара */
.node.type-product .content {
  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.node.type-product .content .field {
  margin-bottom: 6px;
}

.node.type-product .content .field .field-label {
  font-size: 1.1em;
  font-weight: 600;
  color: #6e1111;
  margin-bottom: 2px;
}

.node.type-product .content .field .field-items,
.node.type-product .content .field .field-item {
  color: #333;
  font-weight: 400;
}

/* Стили для цены товара */
.node.type-product .content .field-sell-price,
.node.type-product .content .product-info.product.sell {
  font-size: 1.3em;
  color: #870128;
  font-weight: 700;
  margin: 4px 0 6px 0;
}

/* Изображение товара */
.node.type-product .content .product-image {
  grid-column: 1;
  grid-row: 1 / span 6;
  float: none !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 4px;
  width: 320px;
}

/* Стили для корзины */
.page-cart .cart-page-content {
  background: var(--primary-white);
  border-radius: 16px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(135, 1, 40, 0.1);
}

.page-cart .cart-title {
  color: var(--primary-burgundy);
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 32px 0;
  text-shadow: 0 2px 4px rgba(135, 1, 40, 0.1);
}

/* Таблица корзины */
#uc-cart-view-form table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--primary-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.08);
}

#uc-cart-view-form table thead {
  background: var(--gradient-primary);
}

#uc-cart-view-form table th {
  padding: 10px 8px;
  color: var(--primary-white);
  font-weight: 600;
  text-align: left;
  font-size: 13px;
  border: none;
}

#uc-cart-view-form table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--primary-light);
  vertical-align: middle;
}

#uc-cart-view-form table tbody tr:nth-child(even) {
  background: #f8f4e6;
}

#uc-cart-view-form table tbody tr:nth-child(odd) {
  background: var(--primary-white);
}

#uc-cart-view-form table tbody tr:last-child td {
  border-bottom: none;
}

#uc-cart-view-form table tbody tr:hover {
  background: var(--primary-cream) !important;
}

#uc-cart-view-form table td img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--primary-cream);
  padding: 3px;
}

#uc-cart-view-form table .cart-product-title {
  font-weight: 600;
  color: var(--primary-dark-red);
  font-size: 14px;
}

#uc-cart-view-form table .cart-product-title a {
  color: var(--primary-dark-red);
  text-decoration: none;
}

#uc-cart-view-form table .cart-product-title a:hover {
  text-decoration: underline;
}

/* Итоговая информация корзины */
.cart-summary-wrapper {
  background: var(--primary-cream);
  border: 2px solid var(--primary-burgundy);
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.1);
}

.cart-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-summary-item td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(135, 1, 40, 0.1);
}

.cart-summary-item:last-child td {
  border-bottom: none;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary-burgundy);
  padding-top: 15px;
}

.cart-summary-item .summary-label {
  text-align: left;
  font-weight: 500;
  color: #333;
}

.cart-summary-item .summary-value {
  text-align: right;
  font-weight: 600;
  color: var(--primary-dark-red);
}

/* Кнопки корзины */
.checkout-buttons-wrapper {
  text-align: center;
  margin: 25px 0;
}

#uc-cart-view-form .form-submit,
.checkout-buttons-wrapper .form-submit {
  background: var(--gradient-primary);
  color: var(--primary-white);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(139, 38, 53, 0.25);
  margin: 8px;
  letter-spacing: 0.3px;
}

#uc-cart-view-form .form-submit:hover,
.checkout-buttons-wrapper .form-submit:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 38, 53, 0.35);
}

/* Пустая корзина */
.empty-cart-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--primary-cream);
  border-radius: 16px;
  margin: 20px 0;
}

.empty-cart-message h2 {
  color: var(--primary-burgundy);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.empty-cart-message p {
  color: #666;
  font-size: 1.1em;
  margin-bottom: 25px;
}

.empty-cart-message a {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--primary-white);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.empty-cart-message a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 38, 53, 0.3);
}

/* Стили для оформления заказа */
.page-checkout .checkout-page-content {
  background: var(--primary-white);
  border-radius: 16px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(135, 1, 40, 0.1);
}

/* Инструкция для покупателя */
.page-checkout #checkout-instructions,
.page-checkout .checkout-help,
.page-checkout .help {
  background: linear-gradient(135deg, #fff7e6 0%, #f8f4e6 100%);
  border-left: 4px solid var(--primary-burgundy);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 25px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.08);
}

.page-checkout #checkout-instructions p,
.page-checkout .checkout-help p,
.page-checkout .help p {
  margin: 12px 0;
  line-height: 1.6;
  color: #333;
  font-size: 14px;
}

.page-checkout #checkout-instructions p:first-child,
.page-checkout .checkout-help p:first-child,
.page-checkout .help p:first-child {
  margin-top: 0;
}

.page-checkout #checkout-instructions p:last-child,
.page-checkout .checkout-help p:last-child,
.page-checkout .help p:last-child {
  margin-bottom: 0;
}

.page-checkout #checkout-instructions strong,
.page-checkout .checkout-help strong,
.page-checkout .help strong {
  color: var(--primary-dark-red);
  font-weight: 600;
}

.page-checkout #checkout-instructions br,
.page-checkout .checkout-help br,
.page-checkout .help br {
  display: block;
  content: "";
  margin: 4px 0;
}

.page-checkout #checkout-instructions ul,
.page-checkout .checkout-help ul,
.page-checkout .help ul {
  margin: 10px 0;
  padding-left: 25px;
}

.page-checkout #checkout-instructions li,
.page-checkout .checkout-help li,
.page-checkout .help li {
  margin: 6px 0;
  line-height: 1.5;
}

.page-checkout .checkout-title {
  color: var(--primary-burgundy);
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px 0;
  text-shadow: 0 2px 4px rgba(135, 1, 40, 0.1);
}

.page-checkout h2,
.page-checkout .checkout-page-content h2 {
  color: var(--primary-dark-red);
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-burgundy);
}

.page-checkout h3,
.page-checkout .checkout-page-content h3 {
  color: var(--primary-dark-red);
  font-size: 1.2em;
  font-weight: 600;
  margin: 15px 0 10px 0;
}

/* Панели оформления заказа */
.page-checkout fieldset {
  background: #f8f4e6;
  border: 2px solid var(--primary-burgundy);
  border-radius: 10px;
  padding: 18px;
  margin: 18px 0;
}

.page-checkout fieldset legend {
  background: var(--gradient-primary);
  color: var(--primary-white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1em;
}

.page-checkout fieldset legend a {
  color: var(--primary-white);
  text-decoration: none;
  font-weight: 700;
}

.page-checkout fieldset legend a:hover {
  color: var(--primary-white);
  text-decoration: underline;
}

.page-checkout fieldset .fieldset-wrapper {
  padding-top: 10px;
}

/* Стили для полей формы */
.page-checkout .form-item {
  margin-bottom: 16px;
}

.page-checkout .form-item label {
  color: var(--primary-dark-red);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
}

.page-checkout .form-required {
  color: #dc143c;
}

.page-checkout input[type="text"],
.page-checkout input[type="email"],
.page-checkout input[type="tel"],
.page-checkout input[type="password"],
.page-checkout textarea,
.page-checkout select {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  font-size: 14px;
  color: #333;
  background: var(--primary-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-checkout input[type="text"]:focus,
.page-checkout input[type="email"]:focus,
.page-checkout input[type="tel"]:focus,
.page-checkout input[type="password"]:focus,
.page-checkout textarea:focus,
.page-checkout select:focus {
  border-color: var(--primary-burgundy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.15);
  background: var(--primary-white);
}

.page-checkout textarea {
  min-height: 80px;
  resize: vertical;
}

.page-checkout select {
  cursor: pointer;
}

/* Радио и чекбоксы */
.page-checkout input[type="radio"],
.page-checkout input[type="checkbox"] {
  margin-right: 8px;
}

.page-checkout .form-radios .form-item,
.page-checkout .form-checkboxes .form-item {
  margin-bottom: 10px;
}

/* Стили для кнопок */
.page-checkout .form-submit,
.page-checkout input.form-submit {
  background: var(--gradient-primary);
  color: var(--primary-white);
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(139, 38, 53, 0.25);
  margin: 15px 8px 8px 0;
  letter-spacing: 0.3px;
}

.page-checkout .form-submit:hover,
.page-checkout input.form-submit:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 38, 53, 0.35);
}

/* Обзор заказа */
.page-checkout table.order-review-table,
.page-checkout #cart-pane table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--primary-white);
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.08);
}

.page-checkout table.order-review-table th,
.page-checkout #cart-pane table th {
  background: var(--gradient-primary);
  color: var(--primary-white);
  padding: 10px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.page-checkout table.order-review-table td,
.page-checkout #cart-pane table td {
  padding: 10px;
  border-bottom: 1px solid var(--primary-light);
  font-size: 14px;
}

.page-checkout table.order-review-table tbody tr:nth-child(even),
.page-checkout #cart-pane table tbody tr:nth-child(even) {
  background: #f8f4e6;
}

.page-checkout table.order-review-table tbody tr:nth-child(odd),
.page-checkout #cart-pane table tbody tr:nth-child(odd) {
  background: var(--primary-white);
}

.page-checkout table.order-review-table tr:last-child td,
.page-checkout #cart-pane table tfoot td {
  border-bottom: none;
  font-weight: 700;
  color: var(--primary-burgundy);
  font-size: 1.1em;
}

.page-checkout #cart-pane table td img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--primary-cream);
  padding: 3px;
}

/* Страница просмотра заказа (review) */
.page-review .checkout-content-main > p:first-child {
  background: linear-gradient(135deg, #fff7e6 0%, #f8f4e6 100%);
  border-left: 4px solid var(--primary-burgundy);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 25px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.08);
  line-height: 1.6;
  color: #333;
  font-size: 14px;
}

.page-review .checkout-content-main > p:first-child strong {
  color: var(--primary-dark-red);
  font-weight: 600;
}

/* Таблица order-review-table */
.page-review table.order-review-table,
.page-checkout table.order-review-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--primary-white);
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.08);
}

.page-review table.order-review-table .pane-title-row td,
.page-checkout table.order-review-table .pane-title-row td {
  background: var(--gradient-primary);
  color: var(--primary-white);
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
}

.page-review table.order-review-table .title-col,
.page-checkout table.order-review-table .title-col {
  font-weight: 600;
  color: var(--primary-dark-red);
  padding: 10px;
  width: 30%;
  background: #f8f4e6;
}

.page-review table.order-review-table .data-col,
.page-checkout table.order-review-table .data-col {
  padding: 10px;
  background: var(--primary-white);
}

.page-review table.order-review-table .review-button-row td,
.page-checkout table.order-review-table .review-button-row td {
  padding: 15px;
  text-align: center;
  background: #f8f4e6;
}

/* Таблица cart-review */
.page-review table.cart-review,
.page-checkout table.cart-review {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  box-shadow: none;
}

.page-review table.cart-review tr.odd,
.page-checkout table.cart-review tr.odd {
  background: var(--primary-white);
}

.page-review table.cart-review tr.even,
.page-checkout table.cart-review tr.even {
  background: #f8f4e6;
}

.page-review table.cart-review td,
.page-checkout table.cart-review td {
  padding: 8px;
  border-bottom: 1px solid var(--primary-light);
}

.page-review table.cart-review td.qty,
.page-checkout table.cart-review td.qty {
  width: 50px;
  font-weight: 600;
  color: var(--primary-dark-red);
}

.page-review table.cart-review td.products,
.page-checkout table.cart-review td.products {
  color: #333;
}

.page-review table.cart-review td.price,
.page-checkout table.cart-review td.price {
  text-align: right;
  font-weight: 600;
  color: var(--primary-burgundy);
  white-space: nowrap;
}

.page-review table.cart-review tr:last-child td,
.page-checkout table.cart-review tr:last-child td {
  border-bottom: none;
}

/* Итоговая строка */
.page-review table.order-review-table .total-row td,
.page-checkout table.order-review-table .total-row td {
  background: #fff7e6;
  padding: 12px 10px;
  border-top: 2px solid var(--primary-burgundy);
}

.page-review table.order-review-table .total-row .title-col,
.page-checkout table.order-review-table .total-row .title-col {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-burgundy);
}

.page-review table.order-review-table .total-row .total-price,
.page-checkout table.order-review-table .total-row .total-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-burgundy);
}

/* Страница завершения заказа (complete) */
.page-complete .checkout-page-content {
  background: var(--primary-white);
  border-radius: 16px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(135, 1, 40, 0.1);
}

.page-complete .checkout-title {
  color: #333;
  font-size: 1.8em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px 0;
}

.page-complete .checkout-content-main {
  text-align: center;
}

.page-complete .checkout-content-main > p,
.page-complete .checkout-content-main > div {
  background: linear-gradient(135deg, #fff7e6 0%, #f8f4e6 100%);
  border-left: 4px solid var(--primary-burgundy);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 20px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.08);
  line-height: 1.6;
  color: #333;
  font-size: 14px;
  text-align: left;
}

.page-complete .checkout-content-main strong {
  color: var(--primary-dark-red);
  font-weight: 600;
}

.page-complete .checkout-content-main a {
  color: var(--primary-burgundy);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--primary-burgundy);
  transition: all 0.3s ease;
  display: inline-block;
  margin: 8px 0;
}

.page-complete .checkout-content-main a:hover {
  color: var(--primary-dark-red);
  border-bottom-color: var(--primary-dark-red);
  transform: translateX(3px);
}

/* Страница просмотра заказа (order view) */
.page-order #content,
.page-admin-store-orders #content {
  background: var(--primary-white);
  border-radius: 16px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(135, 1, 40, 0.1);
}

.page-order table,
.page-admin-store-orders table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--primary-white);
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.08);
}

.page-order table tr[bgcolor="#006699"],
.page-order table td[bgcolor="#006699"] {
  background: var(--gradient-primary) !important;
  color: var(--primary-white) !important;
  padding: 10px !important;
  font-weight: 600 !important;
}

.page-order table tr[bgcolor="#EEEEEE"],
.page-order table td[bgcolor="#EEEEEE"] {
  background: #f8f4e6 !important;
  padding: 10px !important;
}

.page-order table td {
  padding: 10px;
  border-bottom: 1px solid var(--primary-light);
}

.page-order table td b,
.page-order table td strong {
  color: var(--primary-dark-red);
  font-weight: 600;
}

.page-order table font[color="#CC6600"] {
  color: var(--primary-burgundy) !important;
  font-weight: 600 !important;
}

/* Сообщения */
.page-checkout .messages {
  border-radius: 10px;
  padding: 15px 20px;
  margin: 20px 0;
  border-left: 4px solid;
}

.page-checkout .messages.status {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.page-checkout .messages.warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.page-checkout .messages.error {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

/* Страница контактов */
.contacts-page {
  background: #fffbe6;
  padding: 20px;
  border-radius: 12px;
}

.contacts-hero {
  background: linear-gradient(135deg, #870128, #6e1111);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.contacts-hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 600;
  font-size: 24px;
}

.contacts-hero p {
  margin: 0 0 15px;
  color: #fffbe6;
  font-size: 16px;
}

.contact-quick-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
  text-decoration: none;
}

.contact-quick-actions .btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.contact-quick-actions .btn.call {
  background: #25D366;
}

.contact-quick-actions .btn.route {
  background: #4285F4;
}

.contact-quick-actions .btn.wa {
  background: #25D366;
}

.contact-quick-actions .btn.yanavi {
  background: #ffcc00;
  color: #000;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: start;
}

.contacts-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-card {
  background: #fff;
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(135,1,40,0.1);
}

.contact-card h3 {
  margin: 0 0 12px;
  color: #870128;
  font-weight: 600;
  font-size: 18px;
}

.contact-card p {
  margin: 8px 0;
  color: #333;
  line-height: 1.6;
}

.contact-card .inline-icon {
  margin-right: 5px;
}

.contact-card .links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-card .links a,
.contact-card .links .btn {
  color: #870128;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  background: #f8f4e6;
  border-radius: 6px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.contact-card .links a:hover,
.contact-card .links .btn:hover {
  background: #870128;
  color: #fff;
}

.contact-card .social {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.contact-card .social a {
  color: #870128;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  background: #f8f4e6;
  border-radius: 6px;
  transition: all 0.3s;
}

.contact-card .social a:hover {
  background: #870128;
  color: #fff;
}

.contacts-map {
  background: #fff;
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(135,1,40,0.1);
  height: fit-content;
}

.contacts-map iframe {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  display: block;
}

.mobile-only {
  display: none;
}

/* Стили для футера */
.footer-container {
  background: var(--gradient-primary);
  color: #fffbe6;
  border-top: 2px solid var(--accent-gold);
  border-radius: 24px;
  padding: 26px 20px 14px;
  margin-top: 24px;
  position: relative;
  box-shadow: 0 -8px 24px rgba(44, 62, 80, 0.25) inset;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 20px;
  align-items: start;
}

.footer-col {
  font-size: 14px;
}

.footer-links {
  margin-left: 12px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 6px 0;
  position: relative;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-list a {
  color: #fffbe6;
  transition: color .15s ease;
}

.footer-list a:hover {
  text-decoration: underline;
  color: #FFD700;
}

.footer-list .ico {
  width: 18px;
  text-align: center;
  opacity: 0.95;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-slogan {
  margin-top: 8px;
  color: #fff7cf;
}

.footer-since {
  margin-top: 4px;
  color: #f9e7b5;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.footer-meta {
  margin-top: 8px;
  color: #f3e6c0;
  font-size: 13px;
}

.footer-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.footer-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fffbe6;
  opacity: 0.95;
  margin: 4px 0;
}

.footer-points .ico {
  width: 18px;
  display: inline-block;
  text-align: center;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2));
}

.footer-contact {
  margin: 4px 0;
}

.footer-contacts a {
  color: #fffbe6;
}

.footer-contacts a:hover {
  text-decoration: underline;
  color: #FFD700;
}

.footer-social a {
  color: #fffbe6;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  transition: background .15s ease, color .15s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.14);
  color: #FFD700;
  text-decoration: none;
}

.footer-bottom { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: rgba(255,255,255,0.06); 
  border: 1px solid rgba(255,255,255,0.14); 
  border-radius: 12px; 
  padding: 10px 12px; 
  margin-top: 12px; 
  font-size: 13px; 
}

.footer-legal a {
  color: #fffbe6;
}

.footer-legal a:hover {
  text-decoration: underline;
  color: #FFD700;
}

.footer-legal .sep {
  margin: 0 6px;
  opacity: 0.8;
}

/* Сортировка и пагинация в каталоге (Advanced Catalog) */
#catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin: 12px 0 18px 0;
  padding: 12px 15px;
  background: #f8f4e6;
  border: 1px solid var(--primary-burgundy);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.1);
}

#catalog-filters .catalog-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark-red);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

#catalog-filters .catalog-filter .form-item {
  margin: 0;
  display: inline-block;
}

#catalog-filters select {
  background: #fff;
  color: #333;
  border: 1px solid var(--primary-burgundy);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  height: 32px;
  box-sizing: border-box;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#catalog-filters select:hover {
  background: #fffbe6;
  border-color: var(--primary-dark-red);
}

#catalog-filters select:focus {
  border-color: var(--primary-burgundy);
  outline: none;
  box-shadow: 0 0 0 2px rgba(135, 1, 40, 0.15);
}

#catalog-filters .filter-sort a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--primary-burgundy);
  border-radius: 6px;
  transition: all 0.2s ease;
}

#catalog-filters .filter-sort a:hover,
#catalog-filters .filter-sort a.active {
  background: var(--primary-burgundy);
}

#catalog-filters .filter-sort a img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(73%) saturate(2234%) hue-rotate(334deg) brightness(85%) contrast(95%);
}

#catalog-filters .filter-sort a:hover img,
#catalog-filters .filter-sort a.active img {
  filter: brightness(0) invert(1);
}

#catalog-filters br.clear {
  display: none;
}

/* Пейджер */
#main .pager,
.uc-catalog-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
  margin: 20px 0 15px 0;
  padding: 0;
}

#main .pager li,
.uc-catalog-pager li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#main .pager a,
#main .pager span,
.uc-catalog-pager a,
.uc-catalog-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: #f8f4e6;
  color: var(--primary-dark-red) !important;
  border: 1px solid var(--primary-burgundy);
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

#main .pager a:hover,
.uc-catalog-pager a:hover {
  background: var(--primary-burgundy);
  color: #fff !important;
}

#main .pager .pager-current,
#main .pager li.active a,
.uc-catalog-pager .active a,
.uc-catalog-pager .current {
  background: var(--primary-burgundy) !important;
  color: #fff !important;
  border-color: var(--primary-burgundy) !important;
}

/* Стили для хедера */
.header-container {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  height: 120px;
  padding: 0 20px 0 0;
  background: linear-gradient(135deg, #8B2635, #6E1111);
  border-radius: 12px 12px 0 0;
  margin-bottom: 3px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.header-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1;
}

.header-logo img {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
}

.header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffff00;
  text-align: center;
  padding: 0;
  font-size: 13px;
  justify-self: center;
  grid-column: 2;
}

.header-info .no-wrap {
  white-space: nowrap;
  display: inline;
}

.header-info .no-wrap svg {
  margin: 0;
  vertical-align: middle;
}

.header-info > div {
  margin: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.header-info a,
.header-info a:link,
.header-info a:visited,
.header-info a:hover,
.header-info a:active {
  color: #ffff00;
  text-decoration: none;
}

.header-info a:hover {
  color: #ffff00;
  text-decoration: underline;
}

.header-info svg {
  margin-right: 8px;
  flex: 0 0 auto;
  color: #fffbe6;
}

.header-info .text-lg {
  font-size: 13px;
  line-height: 1.4;
  color: #ffff00;
}

.header-info .mr-12 {
  margin-right: 12px;
}

.social a {
  color: #ffff00;
  margin: 0 8px;
  text-decoration: none;
  font-weight: 500;
}

.social a:hover {
  text-decoration: underline;
}

/* Явно задаем цвета для всех текстовых элементов в хедере */
.header-info div {
  color: #fffbe6;
}

.header-usercart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding-right: 10px;
  min-width: 160px;
  max-width: 220px;
  text-align: left;
  justify-self: end;
  grid-column: 3;
}

.header-login-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  width: auto;
  justify-content: flex-start;
  align-self: flex-start;
}

.login-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.login-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  flex: 0 0 auto;
}

.login-text > div {
  margin-bottom: 4px;
}

.login-text a,
.login-text a:link,
.login-text a:visited,
.login-text a:hover,
.login-text a:active {
  color: #ffff00;
  text-decoration: none;
  font-size: 13px;
  margin: 0 4px;
}

.login-text a:hover {
  text-decoration: underline;
}

.user-separator {
  color: #ffff00;
  margin: 0 4px;
}

.header-cart-row {
  display: flex;
  align-items: center;
  width: auto;
  justify-content: flex-start;
  align-self: flex-start;
}

.cart-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  flex: 0 0 auto;
}

.cart-icon {
  margin-right: 10px;
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #870128;
}

.cart-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cart-total {
  color: #ffff00;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-order-link a,
.cart-order-link a:link,
.cart-order-link a:visited,
.cart-order-link a:hover,
.cart-order-link a:active {
  color: #ffff00;
  text-decoration: none;
  font-size: 12px;
}

.cart-order-link a:hover {
  text-decoration: underline;
}

.cart-empty-promo {
  color: #ffff00 !important;
  font-size: 12px;
  font-style: italic;
}

.cart-empty-promo a,
.cart-empty-promo a:link,
.cart-empty-promo a:visited,
.cart-empty-promo a:hover,
.cart-empty-promo a:active {
  color: #ffff00 !important;
  text-decoration: none;
}

.cart-empty-promo a:hover {
  text-decoration: underline;
}

.header-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 20px;
  min-width: fit-content;
}

.header-image img {
  height: 110px;
  width: auto;
}

/* Стили для страницы товара */
.node.type-product {
  background: #fffbe6;
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 10px 25px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(135, 1, 40, 0.15);
}

/* Стили для полной страницы заметки */
.node:not(.type-product).node-full {
  background: #fffbe6;
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(135, 1, 40, 0.15);
}

.node:not(.type-product).node-full .title {
  color: #870128;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.node:not(.type-product).node-full .submitted {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.node:not(.type-product).node-full .taxonomy {
  background: transparent;
  padding: 0;
  margin-bottom: 25px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.node:not(.type-product).node-full .taxonomy a {
  display: inline-block;
  background: #f8f4e6;
  color: #870128;
  padding: 6px 16px;
  border: 2px solid #870128;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.node:not(.type-product).node-full .taxonomy a:hover {
  background: #870128;
  color: #fff;
}

.node:not(.type-product).node-full .content {
  line-height: 2;
  font-size: 15px;
}

.node:not(.type-product).node-full .content img {
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.15);
  border: 1px solid #ddd;
}

.node:not(.type-product).node-full .content h2,
.node:not(.type-product).node-full .content h3,
.node:not(.type-product).node-full .content h4 {
  color: #870128;
  font-weight: 600;
  margin: 35px 0 20px 0;
  clear: both;
}

.node:not(.type-product).node-full .content h2 {
  font-size: 1.5em;
  border-bottom: 2px solid #870128;
  padding-bottom: 8px;
}

.node:not(.type-product).node-full .content h3 {
  font-size: 1.3em;
}

.node:not(.type-product).node-full .content h4 {
  font-size: 1.1em;
}

.node:not(.type-product).node-full .content p {
  margin: 20px 0;
  text-align: justify;
}

.node:not(.type-product).node-full .content ul,
.node:not(.type-product).node-full .content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.node:not(.type-product).node-full .content li {
  margin: 8px 0;
  line-height: 1.6;
}

.node:not(.type-product).node-full .content strong,
.node:not(.type-product).node-full .content b {
  color: #6e1111;
  font-weight: 600;
}

.node.type-product .submitted {
  display: none;
}

.node.type-product.node-teaser {
  margin: 5px 0;
}

.node.type-product .title {
  border: none;
  padding: 0;
  margin-bottom: 10px;
  border-top: none !important;
}

/* Общие стили для таксономии товаров и заметок */
.node.type-product .product-taxonomy-menu,
.node:not(.type-product) .taxonomy {
  margin: 5px 0;
  padding: 4px 12px;
  background: #f8f4e6;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border-radius: 8px;
  border: 1px solid rgba(135, 1, 40, 0.2);
  line-height: 1.2;
}

.node.type-product .product-taxonomy-menu a,
.node:not(.type-product) .taxonomy a {
  color: #870128 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border: none;
  border-left: 1px solid rgba(135, 1, 40, 0.25);
  border-radius: 6px;
  background: transparent;
  transition: all 0.15s ease;
}

.node.type-product .product-taxonomy-menu a:first-child,
.node:not(.type-product) .taxonomy a:first-child {
  border-left: none;
}

.node.type-product .product-taxonomy-menu a:hover,
.node:not(.type-product) .taxonomy a:hover {
  color: #6e1111 !important;
  text-decoration: none;
  background: rgba(135, 1, 40, 0.08);
}

/* Ссылка "Подробнее" для товаров */
.buildmode-grid .links {
  text-align: center;
  margin-top: 10px;
}

.buildmode-grid .links a {
  display: inline-block;
  background: #f8f4e6;
  color: #870128 !important;
  padding: 8px 20px;
  border: 2px solid #870128;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.buildmode-grid .links a:hover {
  background: #870128;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(135, 1, 40, 0.2);
}

.node.type-product .product-main-container {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.node.type-product .product-image-section {
  flex: 0 0 350px;
  text-align: center;
}

.node.type-product .product-image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.node.type-product .product-details-section {
  flex: 1;
  text-align: center;
}

.node.type-product .product-details-section .field {
  margin: 12px 0;
}

.node.type-product .product-details-section .field-label {
  font-weight: 600;
  color: #870128;
  font-size: 15px;
}

.node.type-product .product-description-below {
  line-height: 1.7;
  text-align: left;
}

.node.type-product .product-description-below h2,
.node.type-product .product-description-below h3,
.node.type-product .product-description-below h4 {
  color: #870128;
  margin: 15px 0 10px;
  font-weight: 600;
}

.node.type-product .product-description-below ul {
  margin: 10px 0;
  padding-left: 25px;
}

.node.type-product .product-description-below li {
  margin: 5px 0;
}

/* Кнопка Купить */
.node.type-product input[type="submit"],
.node.type-product .form-submit {
  background: linear-gradient(135deg, #870128, #6e1111);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(135, 1, 40, 0.3);
  margin: 15px 0;
}

.node.type-product input[type="submit"]:hover,
.node.type-product .form-submit:hover {
  background: linear-gradient(135deg, #6e1111, #870128);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(135, 1, 40, 0.4);
}


/* Описание категории */
#main .category-description {
  background: linear-gradient(135deg, #fff7e6 0%, #f8f4e6 100%);
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 12px 0 18px 0;
  box-shadow: 0 2px 8px rgba(135, 1, 40, 0.1);
  line-height: 1.6;
  color: #333;
  font-size: 14px;
  clear: both;
  overflow: hidden;
}

#main .category-description img.category {
  float: left;
  margin: 0 15px 10px 0;
}

/* Стили для страницы доставки */
.delivery-page {
  background: #fffbe6;
  border-radius: 12px;
  padding: 20px;
}

.delivery-hero {
  background: linear-gradient(135deg, #870128, #6e1111);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.delivery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.delivery-nav .nav-link {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.delivery-nav .nav-link:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.hero-slogan {
  font-size: 18px;
  font-weight: 600;
  color: #ffff00;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
}

.delivery-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delivery-card {
  background: #fff;
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(135,1,40,0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f8f4e6;
}

.card-icon {
  font-size: 32px;
}

.card-header h3 {
  color: #870128;
  margin: 0;
  font-size: 20px;
}

.card-intro {
  font-weight: 600;
  color: #6e1111;
  margin-bottom: 12px;
}

.delivery-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.delivery-card li {
  padding: 8px 0;
  line-height: 1.6;
}

.highlight-info {
  background: #fff7e6;
  border-left: 4px solid #870128;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.highlight-info .price {
  color: #870128;
  font-weight: 700;
  font-size: 18px;
}

.delivery-table-wrapper {
  overflow-x: auto;
}

.delivery-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.delivery-table th {
  background: #870128;
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.delivery-table td {
  padding: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.delivery-table tr:hover {
  background: #fffbe6;
}

.delivery-table .free {
  color: #870128;
  font-weight: 700;
}

.warning {
  background: #fff3cd;
  border-left: 4px solid #ff6b00;
  padding: 12px;
  margin-top: 15px;
  border-radius: 6px;
}

.delivery-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-card {
  background: #fff;
  border: 2px solid #870128;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(135,1,40,0.1);
}

.sidebar-card h4 {
  color: #870128;
  margin: 0 0 10px;
  font-size: 16px;
}

.sidebar-card p {
  margin: 0;
  line-height: 1.5;
}

.sidebar-card a {
  color: #870128;
  font-weight: 600;
}

#content {
  overflow-x: auto;
}

html {
  overflow-x: auto;
}


