/**
 * Posudion Custom Styles
 * 
 * Минимальные дополнительные стили
 * Основные стили используются из WooCommerce и темы
 * 
 * @package Posudion
 * @since 1.0.0
 */

/* ============================================
   БРЕНДОВЫЕ ЦВЕТА
   ============================================ */
:root {
  --posudion-primary: #1a5d3a;      /* Основной брендовый зелёный */
  --posudion-primary-hover: #145430; /* Тёмный зелёный для hover */
  --posudion-primary-light: #e8f5e9; /* Светлый зелёный для фонов */
  --posudion-text: #2C3E50;          /* Основной цвет текста */
  --posudion-text-light: #6c757d;    /* Серый текст */
  --posudion-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   ГЛОБАЛЬНЫЕ СТИЛИ КНОПОК - УНИФИКАЦИЯ
   ============================================ */

/* Все кнопки WooCommerce и сайта */
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
a.button,
button.button,
input[type="submit"].button {
  display: inline-block !important;
  padding: 12px 24px !important;
  background-color: #1a5d3a !important;
  color: #fff !important;
  font-family: var(--posudion-font-main) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
a.button:hover,
button.button:hover,
input[type="submit"].button:hover {
  background-color: #145430 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ============================================
   КНОПКИ (только дополнительные классы)
   ============================================ */
.posudion-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.5;
}

.posudion-btn--primary {
  background: var(--posudion-primary, #1a5d3a);
  color: #fff;
  border-color: var(--posudion-primary, #1a5d3a);
}

.posudion-btn--primary:hover {
  background: var(--posudion-hover, #155a35);
  border-color: var(--posudion-hover, #155a35);
  color: #fff;
}

.posudion-btn--secondary {
  background: var(--posudion-secondary, #E74C3C);
  color: #fff;
  border-color: var(--posudion-secondary, #E74C3C);
}

.posudion-btn--secondary:hover {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
}

/* ============================================
   ГЛАВНАЯ СТРАНИЦА
   ============================================ */

/* Hero Banner */
.posudion-hero {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
}

.posudion-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posudion-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  align-items: center;
  padding: 2rem;
}

.posudion-hero__content {
  max-width: 600px;
  color: #fff;
}

.posudion-hero__title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.posudion-hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Секция заголовки */
.posudion-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.posudion-section-header__title {
  font-size: 2rem;
  margin: 0;
}

.posudion-section-header__link {
  color: #1a5d3a !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.posudion-section-header__link:hover {
  color: #145430 !important;
  text-decoration: underline;
  text-decoration-color: #145430 !important;
}

/* ============================================
   СТРАНИЦА КАТЕГОРИЙ / МАГАЗИН
   ============================================ */

/* Обёртка магазина - занимает 100% родителя (padding на .content-container.site-container) */
.posudion-shop-wrapper {
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Сетка категорий */
.posudion-category-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.posudion-category-page__sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
}

.posudion-category-page__main {
  min-width: 0;
}

/* ============================================
   СТРАНИЦА БРЕНДОВ
   ============================================ */
.posudion-brands-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Страница брендов: восстанавливаем padding (body.page сбрасывает его) */
body.page-template-page-brands .posudion-brands-page,
body.page-template-page-brands .posudion-container {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Десктоп: отступы как на всём сайте (2rem, 1400px) — body.page сбрасывает padding */
/* posudion-has-brands/has-collections — добавляется через body_class в functions.php */
@media (min-width: 769px) {
  body.posudion-has-brands #primary,
  body.posudion-has-brands #main,
  body.posudion-has-collections #primary,
  body.posudion-has-collections #main,
  body.page-brands #primary,
  body.page-brands #main,
  body.page-template-page-brands #primary,
  body.page-template-page-brands #main,
  body:has(.posudion-brands-list) #primary,
  body:has(.posudion-brands-list) #main,
  body:has(.pwb-az-listing.posudion-brands) #primary,
  body:has(.pwb-az-listing.posudion-brands) #main,
  body.page-brands .posudion-brands-page,
  body.page-brands .posudion-container,
  body.page-brands .entry-content-wrap,
  body.page-brands .entry-content,
  body.page-template-page-brands .posudion-brands-page,
  body.page-template-page-brands .posudion-container,
  body.page-template-page-brands .entry-content-wrap,
  body.page-template-page-brands .entry-content {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  body.posudion-has-brands #primary,
  body.posudion-has-brands #main,
  body.posudion-has-collections #primary,
  body.posudion-has-collections #main,
  body.page-brands #primary,
  body.page-brands #main,
  body.page-template-page-brands #primary,
  body.page-template-page-brands #main,
  body:has(.posudion-brands-list) #primary,
  body:has(.posudion-brands-list) #main,
  body:has(.pwb-az-listing.posudion-brands) #primary,
  body:has(.pwb-az-listing.posudion-brands) #main,
  body.posudion-has-brands .posudion-brands-page,
  body.posudion-has-collections .posudion-collections-page,
  body.page-brands .posudion-brands-page,
  body.page-template-page-brands .posudion-brands-page {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.page-brands .posudion-brands-list,
  body.page-template-page-brands .posudion-brands-list,
  body:has(.posudion-brands-list) .posudion-brands-list {
    column-count: 6 !important;
    column-gap: 32px !important;
    max-width: 100%;
  }
  body.page-brands .pwb-az-listing,
  body.page-brands .posudion-brands-section,
  body.page-template-page-brands .pwb-az-listing,
  body:has(.pwb-az-listing.posudion-brands) .pwb-az-listing {
    max-width: 100%;
  }
  .posudion-brand-section {
    break-inside: avoid;
  }
}

/* Страница брендов: список с column-count (page-brands.php) */
.posudion-brands-list {
  column-gap: 25px;
}

.posudion-brands-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
  justify-content: flex-start;
}

.posudion-brands-alphabet__letter {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  text-decoration: none;
  color: #333;
}

.posudion-brands-alphabet__letter:hover,
.posudion-brands-alphabet__letter.is-active {
  background: var(--posudion-primary, #1a5d3a);
  border-color: var(--posudion-primary, #1a5d3a);
  color: #fff;
}

/* СКРЫВАЕМ КОЛИЧЕСТВО ТОВАРОВ */
.posudion-brand-card__count {
  display: none !important;
}

/* СЕТКА БРЕНДОВ - 5 колонок (только на странице "Все бренды") */
.page-template-page-brands .posudion-brand-section__items {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px 25px !important;
}

/* Карточка бренда - только на странице "Все бренды" */
.page-template-page-brands .posudion-brand-card {
  display: block !important;
  color: #1a5d3a !important;
  text-decoration: none !important;
  font-size: 15px;
  padding: 5px 0;
}

.page-template-page-brands .posudion-brand-card:hover {
  color: #1a5d3a !important;
  text-decoration: underline !important;
}

/* Мобильная: обрезка длинных названий с многоточием */
@media (max-width: 768px) {
  .page-template-page-brands .posudion-brand-card,
  .posudion-brands-list .posudion-brand-section a {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }
}

/* Заголовок секции (только на странице "Все бренды") */
.page-template-page-brands .posudion-brand-section__letter {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1a5d3a !important;
  margin: 25px 0 15px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #e5e7eb !important;
}

/* Адаптивность для posudion-brand-section__items (страница "Все бренды") */
@media (max-width: 1200px) {
  .page-template-page-brands .posudion-brand-section__items {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .page-template-page-brands .posudion-brand-section__items {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .page-template-page-brands .posudion-brand-section__items {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  body.page-template-page-brands .posudion-brands-page,
  body.page-template-page-brands .posudion-container,
  .pwb-az-listing.posudion-brands,
  .posudion-brands-page .posudion-page-header,
  .posudion-brands-page,
  .posudion-brands-page .posudion-container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  
  .posudion-brands-list {
    column-count: 3 !important;
    column-gap: 20px !important;
  }
  
  .page-template-page-brands .posudion-brand-section__items {
    gap: 10px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-template-page-brands .posudion-brand-section__items {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================================
   СТРАНИЦА КОЛЛЕКЦИЙ (как бренды — колонки по буквам)
   ============================================ */
.page-template-page-collections .posudion-collections-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.posudion-collections-list {
  column-gap: 25px;
  margin-top: 2rem;
}

/* Десктоп: отступы как на всём сайте (2rem, 1400px) — body.page сбрасывает padding */
@media (min-width: 769px) {
  body.posudion-has-collections #primary,
  body.posudion-has-collections #main,
  body.posudion-has-collections .posudion-collections-page,
  body.posudion-has-collections .posudion-container,
  body.page-collections #primary,
  body.page-collections #main,
  body.page-collections .posudion-collections-page,
  body.page-collections .posudion-container,
  body.page-template-page-collections #primary,
  body.page-template-page-collections #main,
  body.page-template-page-collections .posudion-collections-page,
  body.page-template-page-collections .posudion-container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  body.posudion-has-collections #primary,
  body.posudion-has-collections #main,
  body.posudion-has-collections .posudion-collections-page,
  body.page-collections #primary,
  body.page-collections #main,
  body.page-collections .posudion-collections-page,
  body.page-template-page-collections #primary,
  body.page-template-page-collections #main,
  body.page-template-page-collections .posudion-collections-page {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.posudion-has-collections .posudion-collections-list,
  body.page-collections .posudion-collections-list,
  body.page-template-page-collections .posudion-collections-list {
    column-count: 6 !important;
    column-gap: 32px !important;
  }
}

@media (max-width: 768px) {
  .posudion-collections-list {
    column-count: 3 !important;
    column-gap: 20px !important;
  }
}

/* ============================================
   POSUDION BRANDS - A-Z Listing
   ============================================ */

/* Навигация по буквам */
.posudion-brands-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.posudion-brands-nav__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: #374151;
  background: #fff;
  transition: all 0.2s ease;
}

.posudion-brands-nav__letter:hover {
  background: #1a5d3a;
  border-color: #1a5d3a;
  color: #fff;
}

/* Секция с буквой */
.posudion-brands-section {
  margin-bottom: 30px;
}

.posudion-brands-section__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a5d3a;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

/* Сетка брендов - 5 колонок */
.posudion-brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 25px;
}

.posudion-brands-grid__item {
  color: #1a5d3a;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.posudion-brands-grid__item:hover {
  color: #1a5d3a;
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .posudion-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .posudion-brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .posudion-brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
  }
  
  .posudion-brands-grid__item {
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }
  
  .posudion-brands-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .posudion-brands-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .posudion-brands-nav__letter {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .posudion-brands-section__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .posudion-brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 18px;
  }
  
  .posudion-brands-grid__item {
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }
  
  .posudion-brands-page,
  .posudion-brands-page .posudion-container,
  .pwb-az-listing.posudion-brands {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* Скрываем счётчики товаров у брендов */
.pwb-all-brands small,
.pwb-brands-col3 small,
.pwb-az-listing small,
.pwb-az-listing-col small,
/* Скрываем ссылки, которые содержат только число + товар */
a[href*="pwb-brand"]:not([href]):empty,
/* Скрываем элементы с классами счётчиков */
.brand-count,
.term-count,
.count,
.pwb-brand-count {
  display: none !important;
}

/* Переделываем сетку брендов PWB в 5 колонок */
.pwb-az-listing-row-in,
.pwb-brands-cols-outer {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px 20px !important;
}

.pwb-az-listing-col,
.pwb-brands-col3 {
  float: none !important;
  width: auto !important;
  padding: 5px 0 !important;
  margin: 0 !important;
}

.pwb-az-listing-col a,
.pwb-brands-col3 a {
  color: #1a5d3a !important;
  text-decoration: none !important;
  font-size: 15px;
}

.pwb-az-listing-col a:hover,
.pwb-brands-col3 a:hover {
  color: #1a5d3a !important;
  text-decoration: underline !important;
}

/* Стиль заголовков букв */
.pwb-az-listing-title,
.pwb-az-listing-row > p:first-child {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1a5d3a !important;
  margin: 25px 0 15px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #e5e7eb !important;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .pwb-az-listing-row-in,
  .pwb-brands-cols-outer {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .pwb-az-listing-row-in,
  .pwb-brands-cols-outer {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .pwb-az-listing-row-in,
  .pwb-brands-cols-outer {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .pwb-az-listing-row-in,
  .pwb-brands-cols-outer {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   БЕЙДЖИ
   ============================================ */
.posudion-badge--new {
  background: #1a5d3a !important;
  color: #fff !important;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================
   ЗАГРУЗКА
   ============================================ */
.posudion-loading {
  text-align: center;
  padding: 2rem;
}

.posudion-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: var(--posudion-primary, #1a5d3a);
  border-radius: 50%;
  animation: posudion-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes posudion-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.posudion-scroll-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  left: auto !important;
  top: auto !important;
  width: 50px;
  height: 50px;
  background: #1a5d3a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 99999 !important;
}

.posudion-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.posudion-scroll-top:hover {
  background: #155a35;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
  .posudion-category-page {
    grid-template-columns: 1fr;
  }
  
  .posudion-category-page__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .posudion-hero__title {
    font-size: 2rem;
  }
  
  .posudion-section-header__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .posudion-brands-alphabet__letter {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
}

/* ============================================
   СКРЫВАЕМ ДУБЛИРУЮЩИЕСЯ ЭЛЕМЕНТЫ
   ============================================ */

/* Скрываем стандартный счётчик WooCommerce (оставляем только русский) */
.woocommerce-result-count {
  display: none !important;
}

/* Скрываем SKU (артикул) на странице товара */
.product_meta,
.sku_wrapper,
.product_meta .sku_wrapper,
.woocommerce-product-details__short-description + .product_meta,
.single-product .product_meta {
  display: none !important;
}

/* ============================================
   ВКЛАДКИ ТОВАРА В ПРАВОЙ КОЛОНКЕ
   ============================================ */

/* Вкладки внутри summary */
.single-product .summary .woocommerce-tabs {
  margin-top: 25px;
  clear: both;
}

.single-product .summary .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 15px 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-bottom: 1px solid #e5e7eb;
}

.single-product .summary .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.single-product .summary .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 15px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.single-product .summary .woocommerce-tabs ul.tabs li a:hover {
  color: #1a5d3a;
}

.single-product .summary .woocommerce-tabs ul.tabs li.active a {
  color: #1a5d3a;
  border-bottom-color: #1a5d3a;
}

/* Мобильная: все вкладки в одну строку */
@media (max-width: 768px) {
  .single-product .summary .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 1px; /* подводка под border-bottom */
  }
  
  .single-product .summary .woocommerce-tabs ul.tabs li {
    flex-shrink: 0;
  }
  
  .single-product .summary .woocommerce-tabs ul.tabs li a {
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}

.single-product .summary .woocommerce-tabs .panel {
  padding: 15px 0;
}

.single-product .summary .woocommerce-tabs .panel h2 {
  font-size: 18px;
  margin: 0 0 10px 0;
  color: #1f2937;
}

.single-product .summary .woocommerce-tabs .panel p {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 10px;
}

/* Скрываем дублирующиеся табы после summary */
.single-product .woocommerce-tabs:not(.summary .woocommerce-tabs) {
  display: none !important;
}

/* Таблица характеристик товара */
.posudion-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.posudion-specs-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.posudion-specs-table tr:last-child {
  border-bottom: none;
}

.posudion-specs-table th {
  text-align: left;
  padding: 10px 15px 10px 0;
  color: #6b7280;
  font-weight: 500;
  width: 40%;
  vertical-align: top;
}

.posudion-specs-table td {
  padding: 10px 0;
  color: #1f2937;
  vertical-align: top;
}

/* Описание бренда */
.brand-description {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* ============================================
   ВЫРАВНИВАНИЕ СТРАНИЦ МАГАЗИНА ПО ХЕДЕРУ
   ============================================ */

/* Основной контейнер WooCommerce страниц */
.woocommerce-page .site-container,
.woocommerce .site-container,
.archive .site-container,
.single-product .site-container {
  max-width: 1400px !important;
  margin: 0 auto;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Выравнивание контента внутри Kadence */
.woocommerce-page .content-wrap,
.woocommerce .content-wrap,
.archive .content-wrap {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Заголовок страницы Shop */
.woocommerce-page .entry-hero-container-inner,
.woocommerce .entry-hero-container-inner,
.archive .entry-hero-container-inner {
  max-width: 1400px !important;
  margin: 0 auto;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Kadence hero layout fix */
.woocommerce-page .wp-site-blocks > header + *,
.woocommerce .wp-site-blocks > header + * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Kadence entry content */
.woocommerce-page .entry-content-wrap,
.woocommerce .entry-content-wrap,
.archive .entry-content-wrap {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Обычные страницы должны иметь padding */
/* .page — padding только в редакторе; .single — padding темы */
.single:not(.woocommerce-page) .entry-content-wrap {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

body.page .entry-content-wrap {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hero title section full width bg but content aligned */
.woocommerce-page .entry-hero-layout-standard,
.archive .entry-hero-layout-standard {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.woocommerce-page .entry-hero-layout-standard .entry-hero-container-inner,
.archive .entry-hero-layout-standard .entry-hero-container-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Content container alignment */
#inner-wrap > .site > .site-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Archive products grid container */
.woocommerce ul.products {
  max-width: 100%;
}

@media (max-width: 768px) {
  .woocommerce-page .site-container,
  .woocommerce .site-container,
  .archive .site-container,
  .single-product .site-container,
  #inner-wrap > .site > .site-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Страница товара: один уровень отступов — только у .content-container */
  body.single-product #primary,
  body.single-product .content-area,
  body.single-product main,
  body.single-product .entry.content-bg.entry-content-wrap,
  body.single-product .content-bg.entry-content-wrap.product {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .woocommerce-page .entry-hero-container-inner,
  .woocommerce .entry-hero-container-inner,
  .archive .entry-hero-container-inner,
  .woocommerce-page .entry-hero-layout-standard .entry-hero-container-inner,
  .archive .entry-hero-layout-standard .entry-hero-container-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ============================================
   ИЗОБРАЖЕНИЯ ТОВАРОВ - FIT BY LONGEST SIDE
   ============================================ */
/* Контейнер изображения - ФИКСИРОВАННАЯ ВЫСОТА для выравнивания названий */
.woocommerce ul.products li.product .posudion-product-card__image,
ul.products li.product .posudion-product-card__image {
  width: 100% !important;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fff !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

/* Изображение внутри - вписывается без обрезки */
.woocommerce ul.products li.product .posudion-product-card__image img,
ul.products li.product .posudion-product-card__image img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
ul.products li.product img.attachment-woocommerce_thumbnail {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* ============================================
   КАРТОЧКИ ТОВАРОВ - КАК В РАЗДЕЛЕ НОВИНКИ
   ============================================ */

/* Бренд товара - КРУПНЫЙ КАК В НОВИНКАХ */
.posudion-product-card__brand,
.woocommerce ul.products li.product .posudion-product-card__brand,
ul.products li.product .posudion-product-card__brand,
.woocommerce-page ul.products li.product .posudion-product-card__brand {
  display: block !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: #000000 !important;
  margin: 0 0 0.5rem 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Название товара */
.posudion-product-card__title,
.woocommerce ul.products li.product .posudion-product-card__title {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin: 0 0 0.75rem !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

/* Цена товара */
.posudion-product-card__price,
.woocommerce ul.products li.product .posudion-product-card__price {
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  color: #2C3E50 !important;
  margin-top: auto !important;
}

/* Контент карточки */
.posudion-product-card__content,
.woocommerce ul.products li.product .posudion-product-card__content {
  padding: 1.25rem !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Карточка товара - общие стили */
.posudion-product-card,
.woocommerce ul.products li.product.posudion-product-card {
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #F0F0F0 !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 400px !important;
}

.posudion-product-card:hover,
.woocommerce ul.products li.product.posudion-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  border-color: #1a5d3a !important;
}

/* Мобильная версия - широкие карточки в одну колонку */
@media (max-width: 768px) {
  /* Список товаров - одна колонка */
  .woocommerce ul.products,
  ul.products {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  /* Карточки - полная ширина */
  .woocommerce ul.products li.product,
  ul.products li.product,
  .posudion-product-card,
  .woocommerce ul.products li.product.posudion-product-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
  }
  
  /* Контейнер изображения */
  .woocommerce ul.products li.product .posudion-product-card__image,
  ul.products li.product .posudion-product-card__image {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }
}

/* ============================================
   WOOCOMMERCE - ЗЕЛЕНЫЙ БРЕНД ВМЕСТО СИНЕГО
   ============================================ */

/* Статус наличия */
.woocommerce .stock,
.woocommerce p.stock,
.woocommerce span.stock,
.single-product .stock,
.stock.in-stock,
.availability .stock {
  color: #1a5d3a !important;
}

/* Кнопка "В корзину" */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.single_add_to_cart_button,
.add_to_cart_button,
button.single_add_to_cart_button {
  background-color: #1a5d3a !important;
  border-color: #1a5d3a !important;
  color: #fff !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
  background-color: #145430 !important;
  border-color: #145430 !important;
  color: #fff !important;
}

/* Ссылки на бренды */
.woocommerce .product .brand a,
.woocommerce .brand-link,
.product_meta a,
.posted_in a,
.tagged_as a,
.pwb-single-product-brands a,
.pwb-brand-link,
a[href*="pwb-brand"],
a[href*="/brand/"],
.summary .brand a,
.summary a[href*="brand"],
.single-product .pwb-brands-in-loop a,
.single-product .summary a,
.woocommerce div.product div.summary a {
  color: #1a5d3a !important;
}

.woocommerce .product .brand a:hover,
.woocommerce .brand-link:hover,
.product_meta a:hover,
.posted_in a:hover,
.tagged_as a:hover,
.pwb-single-product-brands a:hover,
.pwb-brand-link:hover,
a[href*="pwb-brand"]:hover,
a[href*="/brand/"]:hover,
.summary .brand a:hover,
.summary a[href*="brand"]:hover,
.single-product .pwb-brands-in-loop a:hover,
.single-product .summary a:hover,
.woocommerce div.product div.summary a:hover {
  color: #145430 !important;
  text-decoration: underline !important;
}

/* ВАЖНО: Кнопки в карточке товара - белый текст */
.woocommerce div.product div.summary .single_add_to_cart_button,
.woocommerce div.product div.summary button.button,
.woocommerce div.product div.summary .cart button,
.woocommerce div.product form.cart button,
.single-product .summary button,
.single-product .summary .button,
.single-product form.cart .single_add_to_cart_button {
  color: #fff !important;
  background-color: #1a5d3a !important;
}

.woocommerce div.product div.summary .single_add_to_cart_button:hover,
.woocommerce div.product div.summary button.button:hover,
.woocommerce div.product div.summary .cart button:hover,
.woocommerce div.product form.cart button:hover,
.single-product .summary button:hover,
.single-product .summary .button:hover,
.single-product form.cart .single_add_to_cart_button:hover {
  color: #fff !important;
  background-color: #145430 !important;
}

/* Кнопки во вкладках товара (Бренд, Характеристики и т.д.) - УНИФИЦИРОВАННЫЕ */
.woocommerce-Tabs-panel a.button,
.woocommerce-Tabs-panel .button,
.wc-tab a.button,
.wc-tab .button,
#tab-brand a.button,
#tab-brand .button,
.panel a.button,
.woocommerce div.product .woocommerce-tabs a.button,
.woocommerce div.product .woocommerce-tabs .button,
.summary .woocommerce-tabs a.button {
  display: inline-block !important;
  padding: 12px 24px !important;
  background-color: #1a5d3a !important;
  color: #fff !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.woocommerce-Tabs-panel a.button:hover,
.woocommerce-Tabs-panel .button:hover,
.wc-tab a.button:hover,
.wc-tab .button:hover,
#tab-brand a.button:hover,
#tab-brand .button:hover,
.panel a.button:hover,
.woocommerce div.product .woocommerce-tabs a.button:hover,
.woocommerce div.product .woocommerce-tabs .button:hover,
.summary .woocommerce-tabs a.button:hover {
  background-color: #145430 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ============================================
   УНИФИКАЦИЯ СТИЛЕЙ КАРТОЧКИ ТОВАРА
   ============================================ */

/* Селектор количества - единый стиль */
.woocommerce div.product form.cart .quantity input[type="number"],
.woocommerce div.product form.cart .quantity .input-text,
.woocommerce .quantity input.qty {
  width: 60px !important;
  height: 44px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  background: #fff !important;
}

.woocommerce div.product form.cart .quantity input[type="number"]:focus,
.woocommerce .quantity input.qty:focus {
  border-color: #1a5d3a !important;
  outline: none !important;
}

/* Контейнер количества */
.woocommerce div.product form.cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 10px !important;
}

/* Кнопка "В корзину" на странице товара */
.woocommerce div.product form.cart .single_add_to_cart_button,
.single-product .cart button[type="submit"] {
  height: 44px !important;
  padding: 0 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 44px !important;
  background-color: #1a5d3a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.single-product .cart button[type="submit"]:hover {
  background-color: #145430 !important;
}

/* Ссылки внутри карточек товара */
.woocommerce ul.products li.product a,
.woocommerce-loop-product__link,
.product-card a {
  color: inherit;
}

.woocommerce ul.products li.product a:hover {
  color: #1a5d3a;
}

/* Цена и скидки */
.woocommerce .price ins,
.woocommerce .price .amount,
.woocommerce-Price-amount {
  color: #1f2937;
}

/* WooCommerce сообщения */
.woocommerce-message,
.woocommerce-info {
  border-top-color: #1a5d3a !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: #1a5d3a !important;
}

/* WooCommerce ссылки */
.woocommerce a,
.woocommerce .woocommerce-loop-product__title a {
  color: inherit;
}

/* Kadence тема - переопределение синих цветов */
.wp-block-button__link,
.button.primary,
.btn-primary {
  background-color: #1a5d3a !important;
  border-color: #1a5d3a !important;
}

.wp-block-button__link:hover,
.button.primary:hover,
.btn-primary:hover {
  background-color: #145430 !important;
  border-color: #145430 !important;
}

/* ============================================
   ФИНАЛЬНЫЕ ПЕРЕОПРЕДЕЛЕНИЯ - БРЕНДОВЫЙ ЗЕЛЁНЫЙ
   ============================================ */

/* Кнопка Каталог в хедере */
.posudion-catalog-btn,
button.posudion-catalog-btn,
.posudion-header .posudion-catalog-btn {
  background: #1a5d3a !important;
  background-color: #1a5d3a !important;
  color: #fff !important;
}

.posudion-catalog-btn:hover,
button.posudion-catalog-btn:hover,
.posudion-header .posudion-catalog-btn:hover {
  background: #145430 !important;
  background-color: #145430 !important;
  color: #fff !important;
}

/* Бейджи "Новинка" */
.posudion-badge--new,
.onsale,
span.onsale,
.woocommerce span.onsale {
  background: #1a5d3a !important;
  background-color: #1a5d3a !important;
  color: #fff !important;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ - ОТСТУП ОТ ХЕДЕРА
   ============================================ */
/* Небольшой отступ для основного контейнера на страницах товаров */
.single-product #content,
.single-product .site-content,
.single-product #primary,
.single-product .content-area,
.single-product main {
  padding-top: 0.5rem !important;
}

.woocommerce-breadcrumb,
.posudion-breadcrumbs,
nav.woocommerce-breadcrumb {
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Для страниц товаров */
.single-product .woocommerce-breadcrumb,
.single-product .posudion-breadcrumbs {
  margin-top: 0.5rem !important;
  padding-top: 0 !important;
}

/* ============================================
   БРЕНД НА СТРАНИЦЕ ТОВАРА (SINGLE PRODUCT)
   ============================================ */
/* Скрываем автоматический вывод бренда от Perfect Brands (дубликат) */
.single-product .pwb-product-brand,
.single-product .pwb-brand-link,
.single-product .pwb-single-product-brands,
.summary .pwb-product-brand,
.summary .pwb-brand-link,
.summary .pwb-single-product-brands,
a[title="View brand"] {
  display: none !important;
}

/* Бренд сверху: крупный, зелёный, кликабельный */
.posudion-product-brand {
  margin: 0 0 0.25rem 0 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

.posudion-product-brand a {
  color: #1a5d3a !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.posudion-product-brand a:hover {
  color: #145430 !important;
  text-decoration: underline !important;
}

/* Название товара снизу: мелкое, чёрное */
.single-product .summary .product_title {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #1f2937 !important;
  margin: 0 0 1rem 0 !important;
  line-height: 1.4 !important;
}

/* ============================================
   СТРАНИЦЫ БРЕНДОВ - СКРЫВАЕМ ДУБЛИРУЮЩЕЕСЯ ОПИСАНИЕ
   ============================================ */
/* Описание бренда на странице бренда — полное, без обрезки, выравнивание по правому краю */
.posudion-brand-header__description,
.posudion-brand-header__description p {
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
  display: block !important;
  text-align: right !important;
}

/* Описание бренда от темы Kadence на архиве бренда (tax-pwb-brand) — выравнивание по правому краю */
body.tax-pwb-brand .archive-description,
body.tax-pwb-brand .archive-description p {
  text-align: right !important;
}

/* Скрываем описание от плагина Perfect Brands (pwb-brand-description) */
body.tax-product_brand .pwb-brand-description,
body.tax-pwb-brand .pwb-brand-description,
body.tax-product_brand .pwb-brand-banner-cont,
body.tax-pwb-brand .pwb-brand-banner-cont,
body.tax-product_brand .pwb-before-loop,
body.tax-pwb-brand .pwb-before-loop,
.woocommerce-products-header .pwb-brand-description,
.woocommerce-products-header .pwb-brand-banner-cont,
header.woocommerce-products-header > p,
.woocommerce-products-header > p {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ссылки "Все бренды", "Все коллекции", "Смотреть все" */
.posudion-section-header__link,
a.posudion-section-header__link {
  color: #1a5d3a !important;
}

.posudion-section-header__link:hover,
a.posudion-section-header__link:hover {
  color: #145430 !important;
  text-decoration-color: #145430 !important;
}

/* Переменные из customizer - принудительно зелёные */
[style*="--posudion-accent"] {
  --posudion-accent: #1a5d3a !important;
}

[style*="--posudion-primary"] {
  --posudion-primary: #1a5d3a !important;
}

/* ============================================
   ЦВЕТ ПОДЧЁРКИВАНИЯ - ВСЕГДА ЗЕЛЁНЫЙ
   ============================================ */

/* Глобально для всех ссылок с hover underline */
a:hover {
  text-decoration-color: currentColor !important;
}

/* Карточки брендов и коллекций */
.posudion-brand-card,
.posudion-collection-card {
  color: #333 !important;
}

.posudion-brand-card:visited,
.posudion-brand-card:visited .posudion-brand-card__name,
.posudion-collection-card:visited,
.posudion-collection-card:visited .posudion-collection-card__name {
  color: #333 !important;
}

.posudion-brand-card:hover,
.posudion-collection-card:hover {
  text-decoration-color: #1a5d3a !important;
  color: #1a5d3a !important;
}

.posudion-brand-card:visited:hover,
.posudion-collection-card:visited:hover {
  color: #1a5d3a !important;
}

/* PWB бренды */
.pwb-az-listing-col a:hover,
.pwb-brands-col3 a:hover,
a[href*="pwb-brand"]:hover,
a[href*="/brand/"]:hover {
  text-decoration-color: #1a5d3a !important;
}

/* Все ссылки на сайте - подчёркивание зелёное */
.woocommerce a:hover,
.summary a:hover,
.product a:hover {
  text-decoration-color: #1a5d3a !important;
}
