/* ====================================================================
 * Pahtamash — раздел «Оборудование»: левый сайдбар групп + фикс карточек
 * Цвет акцента вынесен в переменную: смена темы (бирюза) — одна строка.
 * ==================================================================== */

:root{
  --pahta-side-accent:   #009A22; /* бренд-зелёный (как кнопки). Бирюза: #0E8C8C */
  --pahta-side-bg:       #1F1E1E; /* тёмная плашка */
  --pahta-side-bg-hover: #2c2b2b;
  --pahta-side-text:     #ffffff;
}

/* ---- Сайдбар ВЛЕВО (только ≥769px; ниже — нативный off-canvas «Filter» темы) ---- */
@media (min-width:769px){
  .industras-archive-product .col-full{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:34px;
  }
  .industras-archive-product .col-full > #primary.content-area{
    order:2;
    flex:1 1 0%;
    min-width:0;        /* не даём гриду распирать строку */
    width:auto;
  }
  .industras-archive-product .col-full > #secondary.widget-area{
    order:1;
    flex:0 0 28%;       /* шире: ~28% (3 карточки в остатке свободно) */
    max-width:28%;
    width:28%;
  }
}

/* ---- Список групп: тёмные плашки, активная — зелёная ---- */
.pahta-groups{margin:0 0 24px}
.pahta-groups__title{
  font-size:20px;font-weight:800;margin:0 0 14px;color:var(--pahta-side-bg);
}
.pahta-groups__list{list-style:none;margin:0;padding:0}
.pahta-groups__item{margin:0 0 8px}
.pahta-group{
  display:flex;align-items:center;gap:12px;     /* текст 1fr | бейдж auto */
  padding:13px 16px;
  background:var(--pahta-side-bg);
  color:var(--pahta-side-text);
  font-weight:700;font-size:14.5px;line-height:1.25;
  text-decoration:none;
  border-left:4px solid transparent;
  transition:background .15s ease,border-color .15s ease;
}
.pahta-group:hover,
.pahta-group:focus{
  background:var(--pahta-side-bg-hover);
  border-left-color:var(--pahta-side-accent);
  color:#fff;
}
.pahta-groups__item.is-active .pahta-group{
  background:var(--pahta-side-accent);
  color:#fff;
  border-left-color:#fff;
}
.pahta-group__name{
  flex:1 1 auto;min-width:0;          /* даём корректно переноситься (4 строки) */
  hyphens:none;                       /* без дефисного переноса */
  overflow-wrap:break-word;
  word-break:keep-all;                /* переносим по целым словам */
}
.pahta-group__count{
  flex:0 0 auto;align-self:center;    /* бейдж по центру вертикали, не налезает */
  font-size:12px;font-weight:600;
  background:rgba(255,255,255,.16);
  padding:2px 9px;border-radius:11px;min-width:26px;text-align:center;
}
.pahta-groups__item.is-active .pahta-group__count{background:rgba(255,255,255,.26)}

/* ---- Карточки одной высоты + кнопка «Оставить заявку» (4/3/1 кол) ---- */
ul.products{align-items:stretch}               /* ряды тянутся по высоте */
ul.products li.product{
  display:flex;flex-direction:column;height:100%;
  margin-bottom:30px;                          /* отступ снизу: зелёный не упирается в след. ряд */
}
/* flex-цепочка до кнопки, чтобы прижать её к низу карточки */
ul.products li.product .product-block,
ul.products li.product .product-caption{
  display:flex;flex-direction:column;flex:1 1 auto;
}
/* картинка ровная */
ul.products li.product .product-image img{
  width:100%;height:auto;display:block;
}
/* название — фикс под 2 строки (единая высота блока во всех колонках) */
ul.products li.product .woocommerce-loop-product__title{
  min-height:2.7em;line-height:1.35;margin:0 0 10px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
/* B) excerpt «Технические характеристики…» убираем из карточек на ВСЕХ брейкпоинтах
   → единый ритм фото → название → кнопка (как на десктопе) */
ul.products li.product .short-description{display:none !important}

/* кнопка: всегда у низа, по центру, на всю ширину, текст целиком.
   !important перекрывает inline-стили родительской кнопки (display/margin/width). */
ul.products li.product .product-caption .pahtamash-request-btn{
  margin-top:auto !important;
  display:flex !important;
  width:100% !important;
  align-items:center;justify-content:center;
  text-align:center;
  white-space:nowrap;            /* карточки шире (3-кол) → текст в 1 строку */
  min-height:46px;line-height:1.2;
  padding-left:12px;padding-right:12px;
  box-sizing:border-box;
}
