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

html {
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Адаптивность контейнера */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
}

/* ========== Шапка — стандартная ширина, как контент ========== */
.header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0;
}
.header > .container {
  width: 100%;
}

/* Контент не уезжает под шапку */
body {
  padding-top: 72px;
}

/* Учёт полосы WordPress при входе в админку */
body.admin-bar .header {
  top: 32px;
}

body.admin-bar {
  padding-top: 104px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
  body.admin-bar {
    padding-top: 118px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 85px;
  }
  body {
    padding-top: 85px;
  }
  body.admin-bar {
    padding-top: 131px;
  }
}

.header-modern:hover,
.header-modern.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  flex-wrap: nowrap;
  gap: 1.5rem;
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  min-width: 0;
}

/* Логотип-картинка (Настройки → Идентичность сайта): подгон под высоту шапки */
.logo .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo .custom-logo-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.logo .custom-logo,
.logo .logo-theme {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo .logo-link-theme {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo .logo-link-theme:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .logo .custom-logo,
  .logo .logo-theme {
    max-height: 44px;
  }
}

.logo a.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo a.logo-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.logo .logo-link svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo a.logo-link:hover svg {
  transform: scale(1.05);
}

.logo h1 {
  font-size: 1.75rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #c2410c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Навигация — плавные переходы и акцент при наведении */
.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
}

.nav a:hover {
  color: #ea580c;
  background: rgba(249, 115, 22, 0.08);
}

.nav a.active,
.nav .current-menu-item a {
  color: #ea580c;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.1);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  flex-wrap: nowrap;
}

/* Десктоп: жестко выравниваем все элементы шапки в одну линию */
@media (min-width: 993px) {
  .header .header-content {
    min-height: 72px;
    align-items: center;
  }

  .header .logo,
  .header .nav,
  .header .header-actions {
    display: flex;
    align-items: center;
  }

  .header .nav .nav-menu,
  .header .nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
  }

  .header .nav .nav-menu > li,
  .header .nav ul > li {
    display: flex;
    align-items: center;
  }

  .header .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    line-height: 1;
  }

  .header .nav li.menu-item-gtranslate a.gt_switcher-popup,
  .header .nav li[class*="menu-item-gtranslate"] a.gt_switcher-popup {
    min-height: 40px;
    line-height: 1;
  }

  .header .nav li.menu-item-gtranslate a.gt_switcher-popup img,
  .header .nav li[class*="menu-item-gtranslate"] a.gt_switcher-popup img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    vertical-align: middle;
  }

  .header .header-icon-btn,
  .header a.header-icon-btn {
    align-self: center;
  }
}

/* Переключатель языков — встроен рядом с кнопкой поиска */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f8fafc;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  flex-shrink: 0;
  margin: 0;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

/* Переключатель языка в .header-actions — правильные отступы и отображение */
.header-actions .language-switcher {
  margin-right: 0;
  order: 1;
  flex-shrink: 0;
}

.header-actions .search-btn {
  order: 2;
}

.header-actions .cart-btn {
  order: 3;
}

/* Скрыть переключатель языка в других местах (если плагин выводит его под логотипом или в другом месте) */
.header-content > .language-switcher:not(.header-actions .language-switcher),
.logo + .language-switcher,
.logo ~ .language-switcher:not(.header-actions .language-switcher),
.header-content > *:not(.header-actions) .language-switcher,
.nav + .language-switcher,
.nav ~ .language-switcher:not(.header-actions .language-switcher),
.header-content .language-switcher:not(.header-actions .language-switcher) {
  display: none !important;
}

/* Переключатель языка должен быть только в .header-actions */
.header-actions .language-switcher {
  display: inline-flex !important;
}

.header-content .language-switcher,
.header-actions .language-switcher {
  flex-shrink: 0;
  margin-right: 0.75rem;
}

/* Кнопка поиска — нормальный отступ, gap уже задаёт расстояние */
.header-actions .search-btn,
.header-actions button.search-btn {
  margin-left: 0;
  flex-shrink: 0;
}

/* Типичные селекторы плагинов языков (Polylang, WPML и др.) */
.header-actions .pll-switcher,
.header-content .pll-switcher,
.header-actions .wpml-ls,
.header-content .wpml-ls {
  flex-shrink: 0;
  margin-right: 0.75rem;
  padding: 0.25rem 0.4rem;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  color: #64748b;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.lang-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.lang-btn.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.lang-flag {
  display: inline-block;
  width: 16px;
  height: 12px;
  flex-shrink: 0;
}

.lang-flag img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

/* Языковой dropdown в шапке — современный стиль */
.header-actions .language-switcher,
.header-actions .pll-switcher,
.header-actions .wpml-ls {
  position: relative;
}

.header-actions .pll-switcher ul,
.header-actions .wpml-ls ul,
.header-actions .language-switcher ul,
.header-actions .language-switcher .sub-menu,
.header-actions .wpml-ls-sub-menu {
  min-width: 180px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.header-actions .pll-switcher ul ul,
.header-actions .wpml-ls ul ul,
.header-actions .language-switcher ul ul,
.header-actions .wpml-ls-sub-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1200 !important;
}

.header-actions .pll-switcher li,
.header-actions .wpml-ls li,
.header-actions .language-switcher li {
  margin: 0 !important;
  padding: 0 !important;
}

.header-actions .pll-switcher a,
.header-actions .wpml-ls a,
.header-actions .language-switcher a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: #334155 !important;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.25;
  transition: background 0.16s ease, color 0.16s ease;
}

.header-actions .pll-switcher a:hover,
.header-actions .wpml-ls a:hover,
.header-actions .language-switcher a:hover {
  background: #f8fafc;
  color: #0f172a !important;
}

.header-actions .pll-switcher .current-lang > a,
.header-actions .wpml-ls-current-language > a,
.header-actions .wpml-ls-current-language a,
.header-actions .language-switcher .current-lang > a {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c !important;
  font-weight: 700;
}

/* Флаги в дропдауне */
.header-actions .pll-switcher img,
.header-actions .wpml-ls img,
.header-actions .language-switcher img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Языковой dropdown в основном меню (пункт "Russian ▼") */
.nav .menu-item-has-children,
.nav li[class*="lang"],
.nav li[class*="pll"] {
  position: relative;
}

.nav .menu-item-has-children > ul.sub-menu,
.nav li[class*="lang"] > ul.sub-menu,
.nav li[class*="pll"] > ul.sub-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(6px);
  min-width: 170px;
  margin: 0 !important;
  padding: 0.4rem !important;
  list-style: none !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 1300;
}

.nav .menu-item-has-children:hover > ul.sub-menu,
.nav .menu-item-has-children:focus-within > ul.sub-menu,
.nav li[class*="lang"]:hover > ul.sub-menu,
.nav li[class*="lang"]:focus-within > ul.sub-menu,
.nav li[class*="pll"]:hover > ul.sub-menu,
.nav li[class*="pll"]:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav .menu-item-has-children > ul.sub-menu li,
.nav li[class*="lang"] > ul.sub-menu li,
.nav li[class*="pll"] > ul.sub-menu li {
  margin: 0 !important;
}

.nav .menu-item-has-children > ul.sub-menu a,
.nav li[class*="lang"] > ul.sub-menu a,
.nav li[class*="pll"] > ul.sub-menu a {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.52rem 0.62rem !important;
  border-radius: 10px;
  color: #334155 !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.25;
  transition: background .16s ease, color .16s ease;
}

.nav .menu-item-has-children > ul.sub-menu a:hover,
.nav li[class*="lang"] > ul.sub-menu a:hover,
.nav li[class*="pll"] > ul.sub-menu a:hover {
  background: #f8fafc;
  color: #0f172a !important;
}

.nav .menu-item-has-children > ul.sub-menu .current-lang > a,
.nav .menu-item-has-children > ul.sub-menu .current-menu-item > a,
.nav li[class*="lang"] > ul.sub-menu .current-lang > a,
.nav li[class*="pll"] > ul.sub-menu .current-lang > a {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c !important;
  font-weight: 700;
}

.nav .menu-item-has-children > ul.sub-menu img,
.nav li[class*="lang"] > ul.sub-menu img,
.nav li[class*="pll"] > ul.sub-menu img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

/* Polylang/WPML в основном меню: приоритетные стили (перебивают плагин) */
.header .nav li.menu-item-language,
.header .nav li[class*="menu-item-language"],
.header .nav li.lang-item,
.header .nav li[class*="pll-parent"] {
  position: relative !important;
}

.header .nav li.menu-item-language > ul.sub-menu,
.header .nav li[class*="menu-item-language"] > ul.sub-menu,
.header .nav li.lang-item > ul.sub-menu,
.header .nav li[class*="pll-parent"] > ul.sub-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  min-width: 176px !important;
  padding: 6px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18) !important;
  z-index: 2500 !important;
}

.header .nav li.menu-item-language > ul.sub-menu li,
.header .nav li[class*="menu-item-language"] > ul.sub-menu li,
.header .nav li.lang-item > ul.sub-menu li,
.header .nav li[class*="pll-parent"] > ul.sub-menu li {
  margin: 0 !important;
}

.header .nav li.menu-item-language > ul.sub-menu a,
.header .nav li[class*="menu-item-language"] > ul.sub-menu a,
.header .nav li.lang-item > ul.sub-menu a,
.header .nav li[class*="pll-parent"] > ul.sub-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.header .nav li.menu-item-language > ul.sub-menu a:hover,
.header .nav li[class*="menu-item-language"] > ul.sub-menu a:hover,
.header .nav li.lang-item > ul.sub-menu a:hover,
.header .nav li[class*="pll-parent"] > ul.sub-menu a:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.header .nav li.menu-item-language > ul.sub-menu .current-lang > a,
.header .nav li[class*="menu-item-language"] > ul.sub-menu .current-lang > a,
.header .nav li.lang-item > ul.sub-menu .current-lang > a,
.header .nav li[class*="pll-parent"] > ul.sub-menu .current-lang > a {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #c2410c !important;
  font-weight: 700 !important;
}

/* Убираем затемнение шапки при открытии языкового меню на десктопе */
@media (min-width: 769px) {
  .nav-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* GTranslate (popup mode): убираем чёрный fullscreen overlay,
   оставляем красивый dropdown в шапке */
.header .nav li.menu-item-gtranslate,
.header .nav li[class*="menu-item-gtranslate"] {
  position: relative !important;
}

.header .nav .gt_black_overlay {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.header .nav li.menu-item-gtranslate .gt_white_content,
.header .nav li[class*="menu-item-gtranslate"] .gt_white_content {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 210px !important;
  height: auto !important;
  max-height: 320px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18) !important;
  overflow: auto !important;
  color: #334155 !important;
  z-index: 2500 !important;
}

.header .nav li.menu-item-gtranslate .gt_white_content .gt_languages,
.header .nav li[class*="menu-item-gtranslate"] .gt_white_content .gt_languages {
  display: block !important;
  max-height: none !important;
}

.header .nav li.menu-item-gtranslate .gt_white_content a,
.header .nav li[class*="menu-item-gtranslate"] .gt_white_content a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  line-height: 1.2 !important;
  color: #334155 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.header .nav li.menu-item-gtranslate .gt_white_content a:hover,
.header .nav li[class*="menu-item-gtranslate"] .gt_white_content a:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.header .nav li.menu-item-gtranslate a.gt_switcher-popup,
.header .nav li[class*="menu-item-gtranslate"] a.gt_switcher-popup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Кнопки поиска и корзины — иконки в круглых кнопках, не сжимаются */
.header-icon-btn,
a.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.header-icon-btn:hover,
a.header-icon-btn:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  transform: scale(1.05);
}

.header-icon-btn:active,
a.header-icon-btn:active {
  transform: scale(0.98);
}

.header-icon-btn svg,
a.header-icon-btn svg {
  display: block;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.cart-count:empty {
  display: none;
}

/* Кнопка гамбургера — скрыта на десктопе */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  gap: 5px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.menu-toggle:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
body.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* Оверлей мобильного меню */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.menu-open .nav-overlay {
  opacity: 1;
}

/* Главный баннер — стандартная ширина, в одну линию с контентом */
.hero {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: -32px auto 0 auto;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.25);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  margin-bottom: 2rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: white;
  color: #f97316;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Секции — единый стиль заголовков */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #1e293b;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Категории — стандартная ширина 1200px */
.categories {
  padding: 4rem 0;
  background: #fff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

/* Сетка ровно из трёх карточек в одну строку — принудительно 3 колонки на планшете и десктопе */
.categories-grid.categories-grid-three {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: auto !important;
  grid-auto-rows: auto !important;
  justify-items: stretch;
  align-items: stretch;
}

/* Скрыть пустые карточки и лишние элементы (пустые <p>, карточки без h3, дубликаты) */
.categories-grid-three .category-card:empty,
.categories-grid-three .category-card:not(:has(h3)) {
  display: none !important;
}

.categories-grid-three > p {
  display: none !important;
}

/* Скрыть только 4-ю и далее карточки (при старом контенте с 6 категориями); 3-я карточка остаётся видимой */
.categories-grid-three .category-card:nth-of-type(n+4) {
  display: none !important;
}

/* Отменить opacity: 0 у карточек от скриптов анимации, чтобы все три были видны */
.categories-grid-three .category-card {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .categories-grid.categories-grid-three {
    grid-template-columns: 1fr !important;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

.category-card {
  display: block;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}

a.category-card:hover {
  color: inherit;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.15);
  border-color: #f97316;
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  color: #1e293b;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.category-card p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Товары — стандартная ширина 1200px, стыкуется с hero без зазора */
.products {
  padding: 4rem 0;
  background: #fff;
  border-radius: 28px 28px 24px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.product-card {
  background: white !important;
  border-radius: 20px;
  overflow: visible !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer;
  height: auto !important;
  min-height: 500px !important;
  width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.product-card * {
  visibility: visible !important;
  opacity: 1 !important;
}

.product-card .product-image {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 220px !important;
  min-height: 220px !important;
  width: 100% !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%) !important;
  font-size: 5rem !important;
}

.product-card .product-info {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: auto !important;
  width: 100% !important;
  padding: 1.8rem !important;
}

.product-card .product-name,
.product-card .product-specs,
.product-card .product-description {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.product-card .product-features {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.product-card .product-price {
  display: flex !important;
  justify-content: flex-end !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
  text-align: right !important;
}

.product-card .btn-add-cart {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

.product-image {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%) !important;
  height: 220px !important;
  min-height: 220px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 5rem !important;
  position: relative;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

.product-info {
  padding: 1.8rem !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  min-height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.product-name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 700;
  display: block !important;
  visibility: visible !important;
}

.product-specs {
  color: #f97316;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
  display: block !important;
  visibility: visible !important;
}

.product-description {
  color: #64748b;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  display: block !important;
  visibility: visible !important;
}

.product-features {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  visibility: visible !important;
}

.feature-tag {
  background: #fff7ed;
  color: #c2410c;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.product-price {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
  text-align: right;
}

.price-old {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 1rem;
}

.price-new {
  color: #ef4444;
  font-size: 1.8rem;
  font-weight: 800;
}

.btn-add-cart {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: auto;
  display: block !important;
  visibility: visible !important;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-add-cart:active {
  transform: translateY(0);
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
  .btn-add-cart:hover {
    transform: none;
  }

  .feature-item:hover {
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }

  .btn-add-cart:active,
  .btn-primary:active {
    transform: scale(0.98);
  }
}

/* Преимущества — без зазора сверху */
.features {
  padding: 4rem 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 0.8rem;
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-item p {
  color: #64748b;
  line-height: 1.6;
}

/* Услуги — без зазора сверху */
.services {
  padding: 4rem 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.service-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-price {
  display: inline-block;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========== Подвал — та же ширина и по центру, что шапка и контент ========== */
.footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 1.75rem 0 0;
  position: relative;
  margin-top: auto;
  width: 100%;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 1.75rem 1.5rem;
  padding: 1.5rem 0 1.1rem;
  margin-bottom: 0;
}

.footer-title {
  margin: 0 0 1rem 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(249, 115, 22, 0.5);
  display: inline-block;
}

.footer-section p {
  margin: 0 0 0.5rem 0;
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-section-about .footer-about-text {
  margin-bottom: 0.75rem;
  max-width: 280px;
}

.footer-about-link {
  display: inline-block;
  color: #f97316;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}

.footer-about-link:hover {
  color: #fb923c;
  transform: translateX(4px);
}

.footer-section p:last-child {
  margin-bottom: 0;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-contact-list li:last-child {
  margin-bottom: 0;
}

.footer-social-wrap {
  margin-top: 1rem;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s, filter 0.2s;
}

.footer-social-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* WhatsApp — фирменный зелёный */
.footer-social-wa {
  background: #25D366;
}
.footer-social-wa:hover {
  background: #20bd5a;
}

/* Telegram — фирменный голубой */
.footer-social-tg {
  background: #0088cc;
}
.footer-social-tg:hover {
  background: #0077b5;
}

/* Instagram — фирменный градиент */
.footer-social-in {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.footer-social-in:hover {
  filter: brightness(1.1);
}

.footer-contact-list .footer-social-link {
  color: #fff;
}

.footer-social-link .footer-social-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.footer-contact-list li span:not(.footer-contact-icon) {
  color: #cbd5e1;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list a:hover {
  color: #f97316;
}

.footer-nav ul,
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav ul li,
.footer-nav-list li {
  margin-bottom: 0.6rem;
}

.footer-nav ul li:last-child,
.footer-nav-list li:last-child {
  margin-bottom: 0;
}

.footer-nav a,
.footer-nav-list a {
  display: inline-block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-nav a:hover,
.footer-nav-list a:hover {
  color: #f97316;
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(234, 88, 12, 0.25);
  background: rgba(15, 23, 42, 0.5);
}

.footer-copyright {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Адаптивность */
/* Адаптивность для средних экранов (пол-экрана) */
@media (max-width: 1200px) {
  .header-content {
    gap: 0.8rem;
    padding: 0.8rem 0;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .logo .logo-link svg {
    width: 36px;
    height: 36px;
  }

  .nav {
    gap: 0.2rem;
  }

  .nav a {
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
  }

  .language-switcher {
    padding: 0.25rem;
    gap: 0.2rem;
  }

  .lang-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    min-width: 35px;
  }

  .header-icon-btn,
  a.header-icon-btn {
    width: 40px;
    height: 40px;
  }
  .header-icon-btn svg,
  a.header-icon-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Планшет и мобильные: гамбургер-меню */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
    order: 0;
  }

  .logo {
    order: 1;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .header-actions {
    order: 2;
    margin-left: 0;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }
  body.menu-open .nav-overlay {
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 100vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  body.menu-open .nav {
    transform: translateX(0);
  }

  .nav .nav-menu,
  .nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nav .nav-menu li,
  .nav ul li {
    border-bottom: 1px solid #f1f5f9;
  }
  .nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    border-radius: 0;
  }
}

@media (max-width: 968px) {
  .header-content {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.65rem 0;
  }

  .logo {
    justify-content: flex-start;
  }

  .logo h1 {
    font-size: 1.15rem;
  }

  .logo .logo-link svg {
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .header-icon-btn,
  a.header-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .header-icon-btn svg,
  a.header-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Переключатель языка на планшете — компактнее */
  .header-actions .language-switcher {
    padding: 0.25rem 0.4rem;
  }
  .lang-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    min-width: 32px;
  }
  .lang-flag {
    width: 14px;
    height: 10px;
  }
}

/* Мобильные: ещё компактнее шапка и элементы */
@media (max-width: 768px) {
  .header-content {
    gap: 0.4rem;
    padding: 0.5rem 0;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .language-switcher {
    padding: 0.2rem 0.35rem;
    margin-right: 0.25rem;
  }
  .lang-btn {
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
    min-width: 28px;
  }
  .lang-flag {
    width: 12px;
    height: 9px;
  }

  .header-actions .pll-switcher ul ul,
  .header-actions .wpml-ls ul ul,
  .header-actions .language-switcher ul ul,
  .header-actions .wpml-ls-sub-menu {
    right: 0 !important;
    min-width: 160px;
  }

  /* Длинный текст в шапке (приветствие, email) — обрезка на мобильных */
  .header-actions a[href*="account"],
  .header-actions .user-name,
  .header-actions .greeting {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Очень малые экраны (до 480px) */
@media (max-width: 480px) {
  .header {
    height: 72px;
  }
  body {
    padding-top: 72px;
  }
  body.admin-bar .header {
    top: 46px;
  }
  body.admin-bar {
    padding-top: 118px;
  }

  .header-content {
    padding: 0.45rem 0;
    gap: 0.35rem;
  }

  .logo h1 {
    font-size: 1rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo .logo-link svg {
    width: 28px;
    height: 28px;
  }

  .logo .custom-logo,
  .logo .logo-theme {
    max-height: 38px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  .menu-toggle-bar {
    width: 18px;
    height: 2px;
  }

  .header-actions {
    gap: 0.35rem;
  }

  /* Только флаги, текст кода языка скрыт */
  .header-actions .language-switcher .lang-btn {
    padding: 0.35rem;
    min-width: 36px;
    justify-content: center;
    font-size: 0;
    line-height: 0;
  }
  .header-actions .language-switcher .lang-flag,
  .header-actions .language-switcher .lang-flag img {
    width: 14px;
    height: 10px;
    font-size: 0;
  }

  .header-icon-btn,
  a.header-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .header-icon-btn svg,
  a.header-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Сильно сократить длинное приветствие на очень малых экранах */
  .header-actions a[href*="account"],
  .header-actions .user-name,
  .header-actions .greeting {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cart-modal-content,
  .search-modal-content,
  .product-modal-content {
    max-width: 90%;
    padding: 1.8rem;
  }

  .hero {
    padding: 3.5rem 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .categories,
  .features,
  .services,
  .products {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
  }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
  .header-content {
    padding: 0.6rem 0;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .logo .logo-link svg {
    width: 28px;
    height: 28px;
  }

  .nav {
    padding: 4.5rem 1.25rem 1.5rem;
    width: min(300px, 100vw);
  }

  .nav a {
    font-size: 1rem;
    padding: 0.9rem 0;
  }

  .language-switcher {
    order: 1;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .categories,
  .features,
  .services,
  .products {
    padding: 2rem 0;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .categories-grid.categories-grid-three {
    grid-template-columns: 1fr !important;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    min-height: auto;
  }

  .product-image {
    height: 180px !important;
    min-height: 180px !important;
    font-size: 4rem !important;
  }

  .product-info {
    padding: 1.5rem !important;
  }

  .product-name {
    font-size: 1.1rem;
  }

  .price-new {
    font-size: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-card-body {
    padding: 1.5rem;
  }
}

/* Модальное окно корзины */
.cart-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.cart-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.cart-modal-header h2 {
  color: #1e293b;
  font-size: 1.8rem;
  margin: 0;
}

.cart-close,
.search-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.cart-close:hover,
.search-close:hover {
  color: #f97316;
}

.cart-items {
  min-height: 100px;
}

.cart-empty {
  text-align: center;
  color: #94a3b8;
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.cart-item-info h4 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.cart-item-info p {
  margin: 0;
  color: #f97316;
  font-weight: 600;
}

.cart-item-remove {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}

.cart-total p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

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

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
  color: white;
}

/* Модальное окно поиска */
.search-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.search-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.search-modal-header h2 {
  color: #1e293b;
  font-size: 1.8rem;
  margin: 0;
}

.search-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #f97316;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background: #fff7ed;
}

.search-result-item h4 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.search-result-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* Форма обратной связи */
/* Секция контактов — тот же стиль блоков, что и на главной */
.contact-form-section {
  padding: 4rem 0;
  background: #fff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-top: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-info h3 {
  color: #1e293b;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
  border-color: #fed7aa;
}

.contact-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 12px;
  border: 1px solid #fed7aa;
}

.contact-item strong {
  display: block;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.contact-item p {
  color: #1e293b;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-item p a {
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.contact-item p a:hover {
  color: #ea580c;
  transform: translateX(2px);
}

.contact-page-social {
  margin-top: 0.5rem;
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-form-wrapper h3 {
  color: #1e293b;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f97316;
}

.contact-form textarea {
  resize: vertical;
}

.btn-submit {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info h3,
  .contact-form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
  
  .contact-item p {
    font-size: 1rem;
  }
}

/* ========== Единый стиль всех страниц ========== */
/* Фон контента: светлый серый на всех страницах */
.site-main {
  background: #f8fafc;
  padding: 0 0 4rem 0;
  min-height: 50vh;
  flex: 1;
}

/* Убираем зазор между шапкой и оранжевым блоком */
.site-main > *,
.site-main .page-content,
.site-main article {
  margin-top: 0;
}

/* Дополнительный отступ для страницы корзины перед футером */
.site-main.mangaly-cart-page,
body.mangaly-cart-page .site-main {
  padding-bottom: 3rem;
  min-height: calc(100vh - 72px - 200px);
}

body.admin-bar .site-main.mangaly-cart-page,
body.admin-bar.mangaly-cart-page .site-main {
  min-height: calc(100vh - 104px - 200px);
}

/* Исправление контрастности футера на странице корзины */
body.mangaly-cart-page .footer-section p,
.site-main.mangaly-cart-page ~ .footer .footer-section p {
  color: #cbd5e1 !important;
}

body.mangaly-cart-page .footer-contact-list li,
body.mangaly-cart-page .footer-contact-list li span:not(.footer-contact-icon),
.site-main.mangaly-cart-page ~ .footer .footer-contact-list li,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list li span:not(.footer-contact-icon) {
  color: #cbd5e1 !important;
}

body.mangaly-cart-page .footer-contact-list a,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list a {
  color: #cbd5e1 !important;
}

body.mangaly-cart-page .footer-nav a,
body.mangaly-cart-page .footer-nav-list a,
.site-main.mangaly-cart-page ~ .footer .footer-nav a,
.site-main.mangaly-cart-page ~ .footer .footer-nav-list a {
  color: #cbd5e1 !important;
  transition: color 0.2s, transform 0.2s !important;
}

body.mangaly-cart-page .footer-nav a:hover,
body.mangaly-cart-page .footer-nav-list a:hover,
.site-main.mangaly-cart-page ~ .footer .footer-nav a:hover,
.site-main.mangaly-cart-page ~ .footer .footer-nav-list a:hover {
  color: #f97316 !important;
  transform: translateX(4px) !important;
}

body.mangaly-cart-page .footer-contact-list a,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list a {
  color: #cbd5e1 !important;
  transition: color 0.2s !important;
}

body.mangaly-cart-page .footer-contact-list a:hover,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list a:hover {
  color: #f97316 !important;
}

body.mangaly-cart-page .footer-copyright,
.site-main.mangaly-cart-page ~ .footer .footer-copyright {
  color: #94a3b8 !important;
}
/* Заголовок страницы — единый стиль на всех страницах (Контакты, Доставка, каталог, корзина и т.д.). Hero на главной не трогаем. */
.page-header,
.woocommerce .page-header,
.woocommerce-page .page-header {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 40%, #f97316 100%);
  color: #fff;
  padding: 2.25rem 0;
  margin: -32px auto 2rem auto;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.25);
  text-align: center;
}
.page-header .container {
  padding-top: 0;
  padding-bottom: 0;
}
.woocommerce .page-header,
.woocommerce-page .page-header {
  margin: -32px auto 2rem auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* Убираем зазор между шапкой и первым оранжевым блоком на всех страницах */
.site-main > .page-header:first-child,
.site-main > .entry-header:first-child {
  margin-top: 0 !important;
}
/* Контент под заголовком */
.site-main .container {
  padding-top: 0.5rem;
}
.site-main .entry-content {
  background: transparent;
  padding: 0;
}
.site-main .entry-content > *:first-child {
  margin-top: 0;
}

/* Страница товара: контейнер без боковых отступов, чтобы белый блок товара был вровень с шаблоном 1200px */
.single-product-page .single-product-container {
  max-width: 1200px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Фильтры каталога */
.filters-section {
  padding: 2rem 0;
  background: white;
  border-bottom: 2px solid #e2e8f0;
}

.filters {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s;
  min-width: 200px;
}

.filter-select:focus {
  outline: none;
  border-color: #f97316;
}

.btn-filter-reset {
  padding: 0.8rem 1.5rem;
  background: #e2e8f0;
  color: #1e293b;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-filter-reset:hover {
  background: #cbd5e1;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
  font-size: 1.2rem;
}

/* Блог: список постов в едином стиле карточек */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.post-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.post-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card-title a:hover {
  color: #f97316;
}

.post-card-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-card-excerpt p:last-child {
  margin-bottom: 0;
}

/* Запись блога (single): миниатюра и контент */
.single-post-thumbnail {
  padding: 0 0 1.5rem 0;
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
}

.single-post-content {
  padding-top: 0;
  padding-bottom: 3rem;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol {
  max-width: 720px;
}

/* Пагинация блога */
.site-main .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.site-main .nav-links a,
.site-main .nav-links span {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.site-main .nav-links a:hover {
  background: #f97316;
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.site-main .nav-links .current {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
}

/* Информационные карточки */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.info-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-card p {
  color: #64748b;
  margin-bottom: 0.5rem;
}

.info-price {
  color: #f97316;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ========== Страница «Доставка» — современный лаконичный блок ========== */
.delivery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

.delivery-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 2.5rem;
  text-align: center;
}

.delivery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.delivery-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.delivery-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.1);
}

.delivery-card-icon {
  display: block;
  font-size: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.delivery-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.delivery-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.delivery-card-price {
  color: #ea580c !important;
  font-weight: 700;
  font-size: 1rem !important;
  margin: 0 !important;
}

.delivery-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 0;
}

.delivery-conditions h3,
.delivery-payment h3 {
  font-size: 1.06rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.delivery-conditions,
.delivery-payment {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.delivery-conditions::before,
.delivery-payment::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
}

.delivery-conditions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.delivery-conditions li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.58rem;
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.55;
}

.delivery-conditions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: none;
}

.delivery-payment p {
  margin: 0;
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .delivery-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .delivery-card {
    padding: 1.5rem 1.25rem;
  }

  .delivery-bottom {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding-top: 1rem;
  }

  .delivery-conditions,
  .delivery-payment {
    padding: 1rem 0.9rem 1.05rem;
    border-radius: 14px;
  }

  .delivery-conditions h3,
  .delivery-payment h3 {
    margin-bottom: 0.8rem;
  }
}

/* Старые классы доставки (если используются в других местах) */
.delivery-intro { padding: 1.5rem 0 0; margin-bottom: 0; }
.delivery-intro-text { max-width: 720px; margin: 0 auto; font-size: 1.1rem; line-height: 1.6; color: #475569; }
.delivery-intro-text strong { color: #1e293b; }
.delivery-info { padding: 2rem 0; background: #f8fafc; border-radius: 0 0 20px 20px; }
.delivery-details { padding: 2rem 0; background: #fff; border-radius: 0 0 20px 20px; }
.entry-content .delivery-info,
.entry-content .delivery-details { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.entry-content .delivery-info .info-grid,
.entry-content .delivery-details .details-content { max-width: 100%; margin-left: auto; margin-right: auto; }
.details-content { max-width: 100%; margin: 0 auto; }
.details-section { margin-bottom: 2rem; }
.details-section h2 { color: #1e293b; font-size: 1.5rem; margin-bottom: 1rem; }
.details-list { list-style: none; padding: 0; }
.details-list li { padding: 0.75rem 1rem; margin-bottom: 0.5rem; background: #f8fafc; border-radius: 10px; color: #1e293b; font-size: 1rem; }
.zones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.zone-item { background: #fff7ed; padding: 1.25rem; border-radius: 12px; border: 1px solid rgba(249, 115, 22, 0.3); }
.zone-item h4 { color: #1e293b; margin-bottom: 0.35rem; font-size: 1rem; }
.zone-item p { color: #ea580c; font-weight: 600; font-size: 0.95rem; margin: 0; }

/* ========== Страница «Возврат» — современный блок ========== */
.return-page {
  padding: 0 0 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.return-intro {
  margin-bottom: 2.5rem;
}

.return-intro-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.return-blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.return-block {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.return-block-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
}

.return-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.return-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.5;
  border-bottom: 1px solid #f1f5f9;
}

.return-list li:last-child {
  border-bottom: none;
}

.return-list-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.return-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.return-step {
  text-align: center;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.return-step:hover {
  border-color: #fed7aa;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
}

.return-step-num {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  line-height: 2.25rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.return-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.return-step p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.return-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 20px;
  border: 2px solid #fed7aa;
}

.return-cta-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.return-cta-contact {
  margin: 0;
  font-size: 1.05rem;
}

.return-cta-contact a {
  color: #ea580c;
  font-weight: 600;
  text-decoration: none;
}

.return-cta-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .return-block {
    padding: 1.5rem 1.25rem;
  }
  .return-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Страница «О компании» — стильно и современно ========== */
.about-page {
  padding: 0 0 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.about-intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #475569;
  margin: 0 0 1.25rem 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-intro-text:last-of-type {
  margin-bottom: 0;
}

/* Блок «mangaly.pl — это» */
.about-highlights-block {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-highlights-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

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

.about-highlights-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.5;
  border-bottom: 1px solid #f1f5f9;
}

.about-highlights-list li:last-child {
  border-bottom: none;
}

.about-highlights-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Призыв к действию */
.about-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 20px;
  border: 2px solid #fed7aa;
}

.about-cta-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.about-cta-tagline {
  font-size: 1.1rem;
  color: #475569;
  margin: 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.3s ease;
}

.about-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
  border-color: #fed7aa;
}

.about-feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.about-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}

.about-feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.about-contact {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px solid #fed7aa;
}

.about-contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.about-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #fed7aa;
  transition: all 0.2s;
}

.about-contact-item:hover {
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

.about-contact-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 12px;
  border: 1px solid #fed7aa;
}

.about-contact-item strong {
  display: block;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-contact-item p {
  color: #1e293b;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.about-contact-item p a {
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s;
}

.about-contact-item p a:hover {
  color: #ea580c;
}

@media (max-width: 768px) {
  .about-title {
    font-size: 2rem;
  }
  
  .about-intro-text {
    font-size: 1.1rem;
  }
  
  .about-highlights-block {
    padding: 2rem 1.5rem;
  }
  
  .about-highlights-title {
    font-size: 1.25rem;
  }
  
  .about-highlights-list li {
    font-size: 1rem;
  }
  
  .about-cta {
    padding: 2rem 1.5rem;
  }
  
  .about-cta-text {
    font-size: 1.15rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-feature-card {
    padding: 2rem 1.5rem;
  }
  
  .about-contact {
    padding: 2rem 1.5rem;
  }
  
  .about-contact-info {
    grid-template-columns: 1fr;
  }
}

/* Калькулятор доставки */
.delivery-calculator {
  padding: 3rem 0;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.calculator-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #f97316;
}

.btn-calculate {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.calculation-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
}

.result-box h3 {
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.result-box p {
  color: #64748b;
  margin: 0;
}

/* Карта */
.map-section {
  padding: 3rem 0;
  background: #f8fafc;
}

.map-container {
  margin-top: 2rem;
}

.map-placeholder {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.map-placeholder p {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.map-info {
  margin-top: 2rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.map-info h4 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.map-info ul {
  list-style: none;
  padding: 0;
}

.map-info li {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  color: #64748b;
}

/* Дополнительная информация */
.additional-info {
  padding: 3rem 0;
  background: white;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-cards .info-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
}

.info-cards .info-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-cards .info-card p {
  color: #64748b;
  margin-bottom: 0.5rem;
}

/* Страница оформления заказа */
.checkout-section {
  padding: 3rem 0;
  background: #f8fafc;
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-form-column {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.checkout-summary-column {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.order-summary {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.summary-title {
  color: #1e293b;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

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

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.order-item-info h4 {
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.order-item-info p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.order-item-price {
  color: #1e293b;
  font-weight: 700;
  font-size: 1.1rem;
}

.order-totals {
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #64748b;
  font-size: 1.1rem;
}

.total-row.total-final {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  padding-top: 1rem;
  border-top: 2px solid #e2e8f0;
  margin-top: 1rem;
}

.summary-info {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff7ed;
  border-radius: 12px;
  border-left: 4px solid #f97316;
}

.summary-info p {
  color: #1e293b;
  margin: 0;
  font-size: 0.95rem;
}

.empty-cart-message {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.empty-cart-message a {
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}

.empty-cart-message a:hover {
  text-decoration: underline;
}

/* Форма оформления заказа */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-form .form-group {
  margin-bottom: 1.5rem;
}

.checkout-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.checkout-form .form-group input,
.checkout-form .form-group select,
.checkout-form .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.checkout-form .form-group input:focus,
.checkout-form .form-group select:focus,
.checkout-form .form-group textarea:focus {
  outline: none;
  border-color: #f97316;
}

.checkout-form .form-group textarea {
  resize: vertical;
}

.info-text {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Способы оплаты */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  padding: 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-option:hover {
  border-color: #f97316;
  background: #fff7ed;
}

.payment-option input[type="radio"] {
  margin-right: 1rem;
  margin-top: 0.2rem;
  width: auto;
  cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-label {
  color: #1e293b;
}

.payment-label {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.payment-label strong {
  color: #1e293b;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.payment-label small {
  color: #64748b;
  font-size: 0.9rem;
}

/* Чекбоксы */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #64748b;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.8rem;
  margin-top: 0.2rem;
  width: auto;
  cursor: pointer;
}

.checkbox-label a {
  color: #f97316;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Кнопка отправки заказа */
.btn-submit-order {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}

.btn-submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* Модальное окно успешного заказа */
.success-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.success-modal.active {
  display: flex;
}

.success-modal-content {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.success-modal-content h2 {
  color: #1e293b;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.order-number {
  color: #f97316;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-modal-content p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-success {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-close-success {
  background: #e2e8f0;
  color: #1e293b;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-close-success:hover {
  background: #cbd5e1;
}

@media (max-width: 1024px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
  }

  .checkout-summary-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .success-actions {
    flex-direction: column;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

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

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .product-card {
    min-height: auto;
  }

  .product-image {
    height: 160px !important;
    min-height: 160px !important;
    font-size: 3.5rem !important;
  }

  .product-info {
    padding: 1.2rem !important;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-specs {
    font-size: 0.85rem;
  }

  .product-description {
    font-size: 0.9rem;
  }

  .price-new {
    font-size: 1.3rem;
  }

  .price-old {
    font-size: 0.9rem;
  }

  .btn-add-cart {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-item {
    padding: 1.2rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-item h3 {
    font-size: 1rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }

  .services-grid {
    gap: 1rem;
  }

  .posts-grid {
    gap: 1rem;
  }

  .post-card-title {
    font-size: 1.1rem;
  }

  .post-card-body {
    padding: 1.2rem;
  }

  .entry-content .delivery-info,
  .entry-content .delivery-details {
    padding-left: 15px;
    padding-right: 15px;
  }

  .cart-modal-content,
  .search-modal-content,
  .product-modal-content {
    width: 95%;
    padding: 1.2rem;
    max-height: 90vh;
    border-radius: 15px;
  }

  .product-modal-content {
    max-width: 95%;
  }

  .product-detail-image {
    font-size: 3.5rem !important;
  }

  .product-modal-header h2 {
    font-size: 1.2rem;
  }

  .product-detail-name {
    font-size: 1.2rem;
  }

  .product-detail-specs,
  .product-detail-description {
    font-size: 0.9rem;
  }

  .filters {
    flex-direction: column;
    gap: 0.8rem;
  }

  .filter-select {
    width: 100%;
    padding: 0.8rem;
  }

  .checkout-form-column {
    padding: 1.2rem;
  }

  .order-summary {
    padding: 1.2rem;
  }

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 1.5rem;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-nav a,
  .footer-nav-list a,
  .footer-contact-list li {
    font-size: 0.9rem;
  }
}

/* Планшеты - адаптивность футера и других элементов */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-icon {
    font-size: 2.5rem;
  }
}

/* Мобильные - адаптивность info-grid и футера */
@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-card {
    padding: 1.2rem;
  }

  .info-icon {
    font-size: 2rem;
  }

  .info-card h3 {
    font-size: 1rem;
  }

  .info-card p {
    font-size: 0.9rem;
  }

  .info-price {
    font-size: 1.2rem;
  }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .logo svg {
    width: 24px;
    height: 24px;
  }

  .nav a {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .product-image {
    height: 140px !important;
    min-height: 140px !important;
    font-size: 3rem !important;
  }

  .product-info {
    padding: 1rem !important;
  }

  .price-new {
    font-size: 1.2rem;
  }

  .product-detail-image {
    font-size: 40px !important;
  }

  .product-modal-content {
    padding: 1rem;
  }

  .cart-modal-content,
  .search-modal-content {
    padding: 1rem;
  }

  .btn-primary {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Модальное окно быстрого просмотра товара — современный вид */
.product-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-modal.active {
  display: flex;
  opacity: 1;
}

.product-modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 0;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(249, 115, 22, 0.08);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: productModalIn 0.3s ease;
}

@keyframes productModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.product-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.product-modal-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
}

.product-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.product-close:hover {
  color: #ef4444;
}

.product-modal-body {
  padding: 1.5rem 1.5rem 2rem;
  overflow-y: auto;
  text-align: left;
}
.product-modal-body .mangaly-quickview-inner {
  text-align: center;
}

.product-detail-image {
  font-size: 120px;
  margin-bottom: 1.5rem;
}

.product-detail-name {
  font-size: 1.75rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 700;
}

.product-detail-specs {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.product-detail-description {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-detail-description-full {
  margin-top: 0.5rem;
}

.product-detail-characteristics {
  text-align: left;
  margin: 1rem 0 1.25rem 0;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.product-detail-characteristics-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}

.product-detail-characteristics-list {
  margin: 0;
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: auto 1fr;
  font-size: 0.9rem;
}

.product-detail-characteristics-list dt {
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.product-detail-characteristics-list dd {
  margin: 0;
  color: #1e293b;
}

.product-detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.product-detail-features .feature-tag {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-modal-body .product-price {
  margin: 1.5rem 0;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.product-modal-body .btn-add-cart {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  text-decoration: none;
}

/* Ссылка «Просмотр корзины» в карточке быстрого просмотра — оранжевый стиль темы */
.product-modal .product-modal-body .mangaly-quickview-view-cart,
.product-modal-body .mangaly-quickview-view-cart {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ea580c !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.product-modal .product-modal-body .mangaly-quickview-view-cart:hover,
.product-modal-body .mangaly-quickview-view-cart:hover {
  color: #c2410c !important;
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .product-modal-content {
    padding: 1.5rem;
    max-width: 95%;
  }

  .product-modal-header h2 {
    font-size: 1.3rem;
  }
  
  .product-detail-image {
    font-size: 50px;
  }
  
  .product-detail-name {
    font-size: 1.2rem;
  }

  .product-detail-specs {
    font-size: 0.85rem;
  }

  .product-detail-description {
    font-size: 0.9rem;
  }

  .product-modal-body .btn-add-cart {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
  }
}

/* Принудительное отображение всех элементов карточек товаров */
.products-grid .product-card {
  display: flex !important;
  flex-direction: column !important;
  background: white !important;
  min-height: 500px !important;
  height: auto !important;
}

.products-grid .product-card .product-image {
  display: flex !important;
  height: 220px !important;
  min-height: 220px !important;
  width: 100% !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%) !important;
  font-size: 5rem !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.products-grid .product-card .product-info {
  display: flex !important;
  flex-direction: column !important;
  padding: 1.8rem !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.products-grid .product-card .product-name {
  display: block !important;
  font-size: 1.3rem !important;
  color: #1e293b !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.products-grid .product-card .product-specs {
  display: block !important;
  font-size: 0.9rem !important;
  color: #f97316 !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.products-grid .product-card .product-description {
  display: block !important;
  font-size: 0.95rem !important;
  color: #64748b !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.products-grid .product-card .product-features {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
}

.products-grid .product-card .product-price {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.8rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
  text-align: right !important;
}

.products-grid .product-card .btn-add-cart {
  display: block !important;
  width: 100% !important;
  padding: 1rem !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: white !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

/* ========== Корзина WooCommerce — стили в main-style (всегда подключается) ========== */
/* Селектор :has(.woocommerce-cart-form) срабатывает только на странице корзины */
.page-content:has(.woocommerce-cart-form) .page-header {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 40%, #f97316 100%) !important;
  color: #fff !important;
  padding: 2.25rem 0 !important;
  margin: -2rem 0 2rem 0 !important;
  border-radius: 0 0 28px 28px !important;
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.25) !important;
}
.page-content:has(.woocommerce-cart-form) .page-title {
  margin: 0 !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #fff !important;
}
.woocommerce:has(.woocommerce-cart-form) {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 2rem !important;
  align-items: start !important;
}
@media (max-width: 1024px) {
  .woocommerce:has(.woocommerce-cart-form) {
    grid-template-columns: 1fr !important;
  }
}
.woocommerce:has(.woocommerce-cart-form) table.shop_table.cart {
  border: none !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  background: #fff !important;
}
.woocommerce:has(.woocommerce-cart-form) table.shop_table.cart thead th {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 1.15rem 1.5rem !important;
  border: none !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
.woocommerce:has(.woocommerce-cart-form) table.shop_table.cart tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}
.woocommerce:has(.woocommerce-cart-form) table.shop_table.cart tbody tr:hover {
  background: #fffbeb !important;
}
.woocommerce:has(.woocommerce-cart-form) table.shop_table.cart td {
  padding: 1.5rem 1.5rem !important;
  border: none !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-thumbnail img {
  border-radius: 16px !important;
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-name a {
  color: #1e293b !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-name a:hover {
  color: #ea580c !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-price .amount,
.woocommerce:has(.woocommerce-cart-form) .product-subtotal .amount {
  color: #dc2626 !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-price del .amount {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
}
.woocommerce:has(.woocommerce-cart-form) .cart_totals h2 {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 1.5rem 0 !important;
  padding-bottom: 1rem !important;
  border-bottom: 2px solid #f1f5f9 !important;
}
.woocommerce:has(.woocommerce-cart-form) .cart_totals .order-total .amount {
  color: #dc2626 !important;
  font-size: 1.5rem !important;
}
.woocommerce:has(.woocommerce-cart-form) .wc-proceed-to-checkout {
  padding-top: 1rem !important;
  margin-top: 0.5rem !important;
}
.woocommerce:has(.woocommerce-cart-form) .wc-proceed-to-checkout .checkout-button,
.woocommerce:has(.woocommerce-cart-form) a.checkout-button {
  display: block !important;
  width: 100% !important;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 1.15rem 1.5rem !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.woocommerce:has(.woocommerce-cart-form) .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce:has(.woocommerce-cart-form) a.checkout-button:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4) !important;
}
.woocommerce:has(.woocommerce-cart-form) .cart_totals {
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  padding: 2rem !important;
  position: sticky !important;
  top: 1.5rem !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-top: 4px solid #ea580c !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-remove a {
  color: #64748b !important;
  text-decoration: none !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-remove a:hover {
  color: #fff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}
/* Бейджи «СЭКОНОМЬТЕ» и купон в корзине */
.woocommerce:has(.woocommerce-cart-form) .product-name .amount,
.woocommerce:has(.woocommerce-cart-form) .cart-discount {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  color: #166534 !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  display: inline-block !important;
  margin-top: 0.5rem !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}
.woocommerce:has(.woocommerce-cart-form) .coupon {
  margin-bottom: 1.5rem !important;
  padding: 1.25rem !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
.woocommerce:has(.woocommerce-cart-form) .coupon .input-text {
  padding: 0.9rem 1.2rem !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin-bottom: 0.75rem !important;
}
.woocommerce:has(.woocommerce-cart-form) .coupon .button {
  background: #1e293b !important;
  color: #fff !important;
  border: none !important;
  padding: 0.75rem 1.4rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-quantity input.qty {
  width: 3.5rem !important;
  padding: 0.7rem 0.4rem !important;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
  text-align: center !important;
  -moz-appearance: textfield !important;
}
.woocommerce:has(.woocommerce-cart-form) .product-quantity input.qty::-webkit-outer-spin-button,
.woocommerce:has(.woocommerce-cart-form) .product-quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* ========== Каталог: фильтры сверху в виде горизонтальной полосы ========== */
/* Переопределяем grid-раскладку для горизонтальной полосы фильтров */
.catalog-page .catalog-layout.catalog-layout--top-filters,
.woocommerce .catalog-page .catalog-layout.catalog-layout--top-filters,
body.woocommerce .catalog-page .catalog-layout.catalog-layout--top-filters,
.catalog-layout.catalog-layout--top-filters {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-flow: unset !important;
  gap: 0 !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-sidebar,
.woocommerce .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-sidebar {
  display: none !important;
  visibility: hidden !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters-bar,
.woocommerce .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters-bar {
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  display: block !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  flex-wrap: wrap;
}

/* Скрываем заголовки секций в горизонтальной полосе */
.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Секция категорий - выпадающее меню */
.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters > .catalog-categories-dropdown {
  position: relative;
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0 !important;
  order: 1;
}

/* Кнопка открытия меню категорий */
.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem !important;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 150px;
  justify-content: space-between;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-toggle:hover {
  border-color: #ea580c;
  color: #ea580c;
  background: rgba(249, 115, 22, 0.05);
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-toggle[aria-expanded="true"] {
  border-color: #ea580c;
  color: #ea580c;
  background: rgba(249, 115, 22, 0.1);
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-toggle-text {
  flex: 1;
  text-align: left;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-toggle-icon {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: currentColor;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-toggle[aria-expanded="true"] .catalog-categories-toggle-icon {
  transform: rotate(180deg);
}

/* Выпадающее меню категорий */
.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-dropdown > nav.catalog-categories {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 1000;
  display: none !important;
  min-width: 200px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 0 !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-dropdown.catalog-categories-dropdown--open > nav.catalog-categories {
  display: block !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-list {
  display: block !important;
  margin: 0 !important;
  padding: 0.5rem !important;
  list-style: none !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-list li {
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-list a {
  display: block !important;
  padding: 0.75rem 1rem !important;
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-list a:hover {
  color: #ea580c;
  background: rgba(249, 115, 22, 0.1);
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-list a.current {
  color: #ea580c;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.15);
}

/* Секция фильтра по цене - справа, после заголовка */
.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters > h3 + form.catalog-price-filter,
.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters > form.catalog-price-filter {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0 !important;
  flex-wrap: nowrap;
  order: 2;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-price-label {
  flex: 0 0 auto !important;
  min-width: auto !important;
  margin: 0 !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-price-input {
  width: 90px !important;
  padding: 0.5rem 0.6rem !important;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 0 !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-price-sep {
  color: #94a3b8;
  font-weight: 600;
  margin: 0 0.25rem !important;
  flex-shrink: 0;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filter-submit {
  padding: 0.5rem 1rem !important;
  font-size: 0.9rem;
  white-space: nowrap;
  margin: 0 !important;
  flex-shrink: 0;
}

/* Кнопка сброса фильтров - рядом с формой */
.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters > a.catalog-filter-reset {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  order: 3;
}

.catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters > a.catalog-filter-reset:hover {
  color: #ea580c;
  background: rgba(249, 115, 22, 0.1);
}

@media (max-width: 768px) {
  .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-dropdown {
    width: 100% !important;
    flex: none !important;
  }
  
  .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-toggle {
    width: 100% !important;
  }
  
  .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-categories-dropdown > nav.catalog-categories {
    width: 100% !important;
    left: 0 !important;
  }

  .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-price-filter {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    order: 2 !important;
  }

  .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-price-input {
    flex: 1 !important;
    min-width: 80px !important;
  }

  .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters > a.catalog-filter-reset {
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    text-align: center !important;
    order: 3 !important;
  }
}

/* ========== Адаптация под все размеры экранов ========== */
/* Полэкрана и узкие окна (до 1200px) — каталог: сайдбар сверху, одна колонка */
@media (max-width: 1200px) {
  .catalog-layout:not(.catalog-layout--top-filters) {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .catalog-sidebar:not(.catalog-filters-bar) {
    position: static !important;
  }
  .catalog-filters:not(.catalog-layout--top-filters .catalog-filters) {
    padding: 1rem 1.25rem;
  }
}

/* Промежуточные экраны (до 576px) */
@media (max-width: 576px) {
  .hero {
    padding: 2rem 0.75rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-badge {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  .page-header,
  .woocommerce .page-header,
  .woocommerce-page .page-header {
    padding: 1.75rem 1rem;
    margin: -32px auto 1.5rem auto;
    border-radius: 0 0 20px 20px;
  }
  .page-title {
    font-size: 1.45rem;
  }
  .page-subtitle {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .categories,
  .features,
  .services,
  .products {
    padding: 1.75rem 0;
  }
  .contact-wrapper {
    gap: 1.5rem;
  }
  .contact-info h3,
  .contact-form-wrapper h3 {
    font-size: 1.4rem;
  }
  .delivery-card {
    padding: 1.25rem 1rem;
  }
  .delivery-bottom {
    gap: 1.25rem;
  }
  .return-block {
    padding: 1.5rem 1.25rem;
  }
}

/* Мобильные (до 768px) — заголовки страниц */
@media (max-width: 768px) {
  .page-header,
  .woocommerce .page-header,
  .woocommerce-page .page-header {
    padding: 1.5rem 1rem;
    margin: -32px auto 1.5rem auto;
    border-radius: 0 0 18px 18px;
  }
  .page-title {
    font-size: 1.4rem;
  }
  .page-subtitle {
    font-size: 0.9rem;
  }
  .catalog-filters {
    padding: 1rem;
  }
  .catalog-filters-title {
    font-size: 0.95rem;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .page-header,
  .woocommerce .page-header,
  .woocommerce-page .page-header {
    padding: 1.25rem 0.75rem;
    margin: -32px auto 1.25rem auto;
    border-radius: 0 0 16px 16px;
  }
  .page-title {
    font-size: 1.25rem;
  }
  .page-subtitle {
    font-size: 0.85rem;
  }
  .delivery-cards {
    gap: 0.75rem;
  }
  .delivery-card {
    padding: 1rem 0.75rem;
  }
  .delivery-card h3 {
    font-size: 1.1rem;
  }
  .return-block {
    padding: 1.25rem 1rem;
  }
  .return-block-title {
    font-size: 1.15rem;
  }
  .contact-item {
    padding: 1rem;
  }
  .contact-item p,
  .contact-item a {
    font-size: 0.95rem;
  }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  .page-header,
  .woocommerce .page-header,
  .woocommerce-page .page-header {
    padding: 1rem 0.5rem;
    margin: -32px auto 1rem auto;
    border-radius: 0 0 14px 14px;
  }
  .page-title {
    font-size: 1.1rem;
  }
  .page-subtitle {
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .delivery-card,
  .return-block {
    padding: 1rem 0.6rem;
  }
  .feature-item,
  .service-card {
    padding: 1rem;
  }
  .footer-content {
    gap: 1.25rem;
    padding: 1.5rem 0 1rem;
  }
}

/* Предотвращение горизонтальной прокрутки на всех экранах */
.site-main,
.container,
.hero .container,
.page-header .container,
.contact-wrapper,
.catalog-layout,
.products-grid,
.features-grid,
.services-grid,
.delivery-cards,
.woocommerce ul.products {
  max-width: 100%;
  box-sizing: border-box;
}

/* ========== ФИНАЛЬНЫЕ ПЕРЕОПРЕДЕЛЕНИЯ: Фильтры сверху полосой (максимальная специфичность) ========== */
/* Эти стили должны применяться в последнюю очередь, перебивая все остальные */
body .catalog-page .catalog-layout.catalog-layout--top-filters,
body.woocommerce .catalog-page .catalog-layout.catalog-layout--top-filters,
body .woocommerce .catalog-page .catalog-layout.catalog-layout--top-filters {
  display: block !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 0 !important;
}

body .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-sidebar,
body.woocommerce .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-sidebar {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

body .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-filters-bar {
  display: block !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
  order: -1;
}

body .catalog-page .catalog-layout.catalog-layout--top-filters .catalog-products {
  width: 100% !important;
  grid-column: 1 !important;
  order: 1;
}

/* Дополнительные переопределения для гарантированного применения */
.catalog-page .catalog-layout.catalog-layout--top-filters {
  grid-template-columns: 1fr !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters > .catalog-sidebar {
  display: none !important;
}

.catalog-page .catalog-layout.catalog-layout--top-filters > .catalog-filters-bar {
  display: block !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
}

/* Language switcher: safe dropdown styling without layout side effects */
.header .nav li.wpml-ls-item,
.header .nav li.wpml-ls-menu-item,
.header .nav li.wpml-ls-current-language,
.header .nav li.menu-item-language,
.header .nav li.lang-item,
.header .nav li.pll-parent-menu-item {
  position: relative !important;
}

.header .nav li.wpml-ls-item > ul.sub-menu,
.header .nav li.wpml-ls-menu-item > ul.sub-menu,
.header .nav li.wpml-ls-current-language > ul.sub-menu,
.header .nav li.menu-item-language > ul.sub-menu,
.header .nav li.lang-item > ul.sub-menu,
.header .nav li.pll-parent-menu-item > ul.sub-menu,
.header .nav .wpml-ls-sub-menu {
  top: calc(100% + 8px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  min-width: 176px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16) !important;
  z-index: 12000 !important;
}

.header .nav li.wpml-ls-item > ul.sub-menu li,
.header .nav li.wpml-ls-menu-item > ul.sub-menu li,
.header .nav li.wpml-ls-current-language > ul.sub-menu li,
.header .nav li.menu-item-language > ul.sub-menu li,
.header .nav li.lang-item > ul.sub-menu li,
.header .nav li.pll-parent-menu-item > ul.sub-menu li,
.header .nav .wpml-ls-sub-menu li {
  margin: 0 !important;
}

.header .nav li.wpml-ls-item > ul.sub-menu a,
.header .nav li.wpml-ls-menu-item > ul.sub-menu a,
.header .nav li.wpml-ls-current-language > ul.sub-menu a,
.header .nav li.menu-item-language > ul.sub-menu a,
.header .nav li.lang-item > ul.sub-menu a,
.header .nav li.pll-parent-menu-item > ul.sub-menu a,
.header .nav .wpml-ls-sub-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.header .nav li.wpml-ls-item > ul.sub-menu a:hover,
.header .nav li.wpml-ls-menu-item > ul.sub-menu a:hover,
.header .nav li.wpml-ls-current-language > ul.sub-menu a:hover,
.header .nav li.menu-item-language > ul.sub-menu a:hover,
.header .nav li.lang-item > ul.sub-menu a:hover,
.header .nav li.pll-parent-menu-item > ul.sub-menu a:hover,
.header .nav .wpml-ls-sub-menu a:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}
