/* ═══════════════════════════════════════════════════════════════
   catalog.css — CPT product + ACF, совместимо с Astra
   Цели:
   - Astra Customizer (Blog/Archive) влияет на типографику и radius
   - Внешний вид карточек как сейчас
   - Одинаковая высота карточек в ряду
════════════════════════════════════════════════════════════════ */

/* ── Переменные ─────────────────────────────────────────────── */
:root{
  --cat-accent:#f5a623;
  --cat-accent-dark:#d4871a;
  --cat-text:#333333;
  --cat-text-light:#666666;
  --cat-border:#e8e8e8;
  --cat-bg:#ffffff;
  --cat-bg-specs:#fafafa;
  --cat-price:#2eac41;
  --cat-radius:6px;

  --cat-shadow:0 8px 24px rgba(0,0,0,0.06);
  --cat-shadow-hover:0 16px 32px rgba(0,0,0,0.10);
  --cat-transition:0.25s ease;

  --cat-wb-color:#cb11ab;
  --cat-ozon-color:#005bff;
  --cat-yandex-color:#fc3f1d;
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE/TAX HEADER (Astra)
════════════════════════════════════════════════════════════════ */
body.post-type-archive-product .ast-archive-description,
body.tax-product_category .ast-archive-description{
  padding:0 0 24px;
  border-bottom:2px solid var(--cat-accent);
  margin-bottom:32px;
}
body.post-type-archive-product .page-title.ast-archive-title,
body.tax-product_category .page-title.ast-archive-title{
  margin:0 0 8px;
  color:var(--cat-text);
}
body.post-type-archive-product .ast-archive-description p,
body.tax-product_category .ast-archive-description p{
  margin:0;
  color:var(--cat-text-light);
}

/* ═══════════════════════════════════════════════════════════════
   CARD (Astra wrappers)
   ВАЖНО:
   - Радиус НЕ задаём сами. Astra Customizer применит его к своим обёрткам.
   - Весь “вид карточки” переносим на .ast-article-inner
════════════════════════════════════════════════════════════════ */

/* Сам article без оформления (чтобы не спорить с Astra radius) */
.catalog-card{
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
  display:block;
}

/* Оформление карточки — на ast-article-inner (Astra обычно сюда вешает radius) */
.catalog-card .ast-article-inner{
  background:var(--cat-bg);
  border:1px solid var(--cat-border);
  box-shadow:var(--cat-shadow);
  overflow:hidden;

  display:flex;
  flex-direction:column;
  height:100%;

  transition:box-shadow 0.3s ease, transform 0.3s ease;
}

.catalog-card:hover .ast-article-inner{
  box-shadow:var(--cat-shadow-hover);
  transform:translateY(-4px);
}

/* Сброс возможных внутренних отступов Astra */
.catalog-card .post-content{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:0;
}
.catalog-card .ast-blog-featured-section{ margin:0; }
.catalog-card .post-thumb{ margin:0; }

/* Featured image wrapper, на который Astra тоже может вешать radius */
.catalog-card .post-thumb-img-content{
  width:100%;
  overflow:hidden;
  aspect-ratio: 16 / 9;
}

/* твой класс остаётся как “крючок” */
.catalog-card__image-link{
  display:block;
  text-decoration:none;
}
.catalog-card__image img,
.catalog-card .post-thumb-img-content img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  transition:transform 0.4s ease;
}
.catalog-card:hover .post-thumb-img-content img{
  transform:scale(1.04);
}

/* Placeholder */
.catalog-card__image--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#bbb;
  font-size:0.875rem;
  min-height:200px;
}
.catalog-card__image--placeholder .catalog-card__image-link{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:inherit;
  text-decoration:none;
}

/* Body */
.catalog-card__body{
  flex:1;
  padding:16px;
}

/* Заголовок — Astra управляет font-size через .entry-title */
.catalog-card__title{
  margin:0 0 6px;
  line-height:1.3;
}
.catalog-card__title a{
  color:var(--cat-text);
  text-decoration:none;
  transition:color var(--cat-transition);
}
.catalog-card__title a:hover{ color:var(--cat-accent); }

/* Мета/таксономия — Astra может управлять через Blog/Archive settings */
.entry-meta{ margin:0 0 10px; }
.entry-meta .ast-terms-link{
  color:var(--cat-accent);
  text-decoration:none;
  border-bottom:1px dotted rgba(245,166,35,0.6);
}
.entry-meta .ast-terms-link:hover{ border-bottom-style:solid; }

/* Chips */
.catalog-card__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 0;
}
.chip{
  background:#f0f0f0;
  border-radius:30px;
  padding:4px 12px;
  font-size:0.8rem;
  color:#333;
  border:1px solid #ddd;
  transition:background 0.2s;
}
.chip:hover{ background:#e0e0e0; }

/* Extra specs */
.catalog-card__extra-specs{
  display:none;
  margin-top:12px;
  padding:12px;
  background:#f9f9f9;
  border-radius:8px;
  font-size:0.85rem;
  border:1px solid #eee;
}
.extra-spec-item{ display:flex; margin-bottom:6px; line-height:1.4; }
.extra-spec-label{ font-weight:600; min-width:120px; color:#555; }
.extra-spec-value{ color:#222; }

/* Toggle */
.catalog-card__toggle-specs{
  background:none;
  border:none;
  color:var(--cat-accent);
  font-size:0.9rem;
  font-weight:600;
  cursor:pointer;
  padding:8px 0 0;
  text-decoration:underline dotted;
  transition:color 0.2s;
}
.catalog-card__toggle-specs:hover,
.catalog-card__toggle-specs:focus{
  color:var(--cat-accent-dark);
  text-decoration:underline;
  background:none;
}

/* Footer */
.catalog-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-top:1px solid var(--cat-border);
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
}
.catalog-card__price{
  font-size:1.2rem;
  font-weight:700;
  color:var(--cat-price);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════ */
.catalog-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border-radius:30px;
  font-size:0.9rem;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  border:none;
  transition:all var(--cat-transition);
  line-height:1.2;
  white-space:nowrap;
}
.catalog-btn--primary{
  background:linear-gradient(135deg,var(--cat-accent) 0%,#f7b731 100%);
  color:#fff;
}
.catalog-btn--primary:hover{
  background:linear-gradient(135deg,var(--cat-accent-dark) 0%,#f1a21a 100%);
  color:#fff;
  transform:translateY(-1px);
}
.catalog-btn--wb{ background:var(--cat-wb-color); color:#fff; }
.catalog-btn--wb:hover{ background:#a50d8c; color:#fff; }
.catalog-btn--ozon{ background:var(--cat-ozon-color); color:#fff; }
.catalog-btn--ozon:hover{ background:#0043cc; color:#fff; }
.catalog-btn--yandex{ background:var(--cat-yandex-color); color:#fff; }
.catalog-btn--yandex:hover{ background:#d93518; color:#fff; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION (Astra)
════════════════════════════════════════════════════════════════ */
body.post-type-archive-product .ast-pagination,
body.tax-product_category .ast-pagination{
  margin:20px 0 40px;
}
body.post-type-archive-product .ast-pagination .page-numbers,
body.tax-product_category .ast-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 10px;
  border:1px solid var(--cat-border);
  border-radius:4px;
  margin:2px;
  color:var(--cat-text);
  text-decoration:none;
  font-size:0.9rem;
  transition:all var(--cat-transition);
}
body.post-type-archive-product .ast-pagination .page-numbers.current,
body.post-type-archive-product .ast-pagination .page-numbers:hover,
body.tax-product_category .ast-pagination .page-numbers.current,
body.tax-product_category .ast-pagination .page-numbers:hover{
  background:var(--cat-accent);
  border-color:var(--cat-accent);
  color:#fff;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE PRODUCT (scoped) — оставляю твою стилизацию
════════════════════════════════════════════════════════════════ */
body.single-product .product-single__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  padding:32px 0 60px;
  align-items:start;
}
@media (max-width:900px){
  body.single-product .product-single__inner{
    grid-template-columns:1fr;
    gap:32px;
  }
}

body.single-product .product-slider__main{
  position:relative;
  background:#f5f5f5;
  border-radius:var(--cat-radius);
  overflow:hidden;
  margin-bottom:10px;
  aspect-ratio:1/1;
}
body.single-product .product-slider__main-item{ display:none; width:100%; height:100%; }
body.single-product .product-slider__main-item.is-active{
  display:flex; align-items:center; justify-content:center;
}
body.single-product .product-slider__main-item img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.tara-single__right-text {
  font-size: 16px;
  line-height: 1.4;
}
.tara-single__right-text ul {
  padding-left: 0;
  margin: 0;
}
body.single-product .product-slider__arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:10;
  background:rgba(255,255,255,0.9);
  border:1px solid var(--cat-border);
  padding:0 0 5px 0;
  width:36px; height:36px;
  border-radius:50%;
  font-size:1.1rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all var(--cat-transition);
  color:var(--cat-text);
}
body.single-product .product-slider__arrow:hover{
  background:var(--cat-accent);
  color:#fff;
  border-color:var(--cat-accent);
}
body.single-product .product-slider__arrow--prev{ left:10px; }
body.single-product .product-slider__arrow--next{ right:10px; }

body.single-product .product-slider__thumbs{ display:flex; gap:8px; flex-wrap:wrap; }
body.single-product .product-slider__thumb{
  width:70px; height:70px;
  border:2px solid var(--cat-border);
  border-radius:4px;
  overflow:hidden;
  cursor:pointer;
  transition:border-color var(--cat-transition);
  flex-shrink:0;
}
body.single-product .product-slider__thumb:hover,
body.single-product .product-slider__thumb.is-active{ border-color:var(--cat-accent); }
body.single-product .product-slider__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
body.single-product .product-slider__no-image{
  aspect-ratio:1/1;
  background:#f0f0f0;
  border-radius:var(--cat-radius);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#bbb;
}

body.single-product .product-single__title{
  font-size:clamp(1.4rem, 3vw, 2rem);
  font-weight:700;
  color:var(--cat-text);
  margin:0 0 8px;
  line-height:1.25;
}
body.single-product .product-single__volume{
  display:inline-block;
  border:1px solid var(--cat-border);
  padding:4px 14px;
  border-radius:4px;
  font-size:0.9rem;
  color:var(--cat-text-light);
  margin-bottom:16px;
}
body.single-product .product-single__price{
  font-size:2rem;
  font-weight:700;
  color:var(--cat-price);
  margin-bottom:4px;
}
body.single-product .product-single__divider{
  border:none;
  border-top:1px solid var(--cat-border);
  margin:20px 0;
}
body.single-product .product-single__description{
  font-size:0.95rem;
  line-height:1.7;
  color:var(--cat-text-light);
}
body.single-product .product-single__description p{ margin-bottom:14px; }

body.single-product .product-single__specs{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:0.9rem;
}
body.single-product .product-single__spec-row{
  display:flex;
  gap:8px;
  padding:6px 0;
  border-bottom:1px solid var(--cat-border);
}
body.single-product .product-single__spec-row:last-child{ border-bottom:none; }
body.single-product .product-single__spec-label{
  font-weight:700;
  color:var(--cat-text);
  min-width:220px;
  flex-shrink:0;
}
body.single-product .product-single__spec-value{ color:var(--cat-text-light); }
@media (max-width:600px){
  body.single-product .product-single__spec-label{ min-width:140px; }
}

body.single-product .product-single__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:24px 0 20px;
}
body.single-product .product-single__back-link{
  display:inline-block;
  font-size:0.875rem;
  color:var(--cat-text-light);
  text-decoration:none;
  margin-top:8px;
  transition:color var(--cat-transition);
}
body.single-product .product-single__back-link:hover{ color:var(--cat-accent); }

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════════════ */
.lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox[hidden]{ display:none; }
.lightbox__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.88);
  cursor:pointer;
}
.lightbox__content{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:16px;
  max-width:95vw;
  max-height:95vh;
  padding:20px;
}
.lightbox__img-wrap{
  max-width:80vw;
  max-height:90vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox__img-wrap img{
  max-width:80vw;
  max-height:90vh;
  object-fit:contain;
  border-radius:4px;
  display:block;
}
.lightbox__close{
  position:fixed;
  top:16px;
  right:20px;
  padding:0 0 10px 0;
  background:rgba(255,255,255,0.15);
  border:none;
  color:#fff;
  font-size:2rem;
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background var(--cat-transition);
  z-index:2;
  line-height:1;
}
.lightbox__close:hover{ background:var(--cat-accent); }
.lightbox__arrow{
  background:rgba(255,255,255,0.15);
  border:none;
  color:#fff;
  font-size:1.6rem;
  padding:0 0 10px 0;
  width:48px;
  height:48px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background var(--cat-transition);
  flex-shrink:0;
}
.lightbox__arrow:hover{ background:var(--cat-accent); }
@media (max-width:600px){
  .lightbox__arrow{ display:none; }
  .lightbox__img-wrap img{ max-width:95vw; }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════════ */
.catalog-modal{
  position:fixed;
  inset:0;
  z-index:99998;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.catalog-modal[hidden]{ display:none; }
.catalog-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
  cursor:pointer;
}
.catalog-modal__window{
  position:relative;
  z-index:1;
  background:#fff;
  border-radius:10px;
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
  width:100%;
  max-width:560px;
  max-height:90vh;
  overflow-y:auto;
  animation:modalSlideIn 0.28s ease;
}
@keyframes modalSlideIn{
  from{ opacity:0; transform:translateY(-20px) scale(0.97); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
.catalog-modal__close{
  position:absolute;
  top:12px;
  right:14px;
  background:none;
  border:none;
  font-size:1.8rem;
  color:#999;
  cursor:pointer;
  line-height:1;
  padding:4px;
  transition:color var(--cat-transition);
}
.catalog-modal__close:hover,
.catalog-modal__close:focus{
  color:var(--cat-text);
  background:none;
}
.catalog-modal__title{
  font-size:1.15rem;
  font-weight:700;
  padding:20px 48px 16px 20px;
  margin:0;
  border-bottom:2px solid var(--cat-accent);
  color:var(--cat-text);
}
.catalog-modal__body{ padding:20px; }

.catalog-modal__product-preview{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px;
  background:#f9f9f9;
  border-radius:var(--cat-radius);
  margin-bottom:20px;
  border:1px solid var(--cat-border);
}
.catalog-modal__product-image-wrap{
  width:80px;
  height:80px;
  flex-shrink:0;
  border-radius:4px;
  overflow:hidden;
  background:#eee;
}
.catalog-modal__product-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.catalog-modal__product-title{
  font-weight:600;
  color:var(--cat-text);
  font-size:0.95rem;
  margin:0 0 6px;
}
.catalog-modal__product-price{
  font-weight:700;
  color:var(--cat-price);
  font-size:1.1rem;
  margin:0;
}

.catalog-modal__form-wrap .wpcf7-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.catalog-modal__form-wrap .wpcf7-form p{ margin:0; }

.catalog-modal__form-wrap input[type="text"],
.catalog-modal__form-wrap input[type="email"],
.catalog-modal__form-wrap input[type="tel"],
.catalog-modal__form-wrap textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--cat-border);
  border-radius:var(--cat-radius);
  font-size:0.95rem;
  color:var(--cat-text);
  transition:border-color var(--cat-transition);
  box-sizing:border-box;
  font-family:inherit;
}
.catalog-modal__form-wrap input:focus,
.catalog-modal__form-wrap textarea:focus{
  outline:none;
  border-color:var(--cat-accent);
  box-shadow:0 0 0 3px rgba(245,166,35,0.15);
}
.catalog-modal__form-wrap input[type="submit"],
.catalog-modal__form-wrap .wpcf7-submit{
  background:var(--cat-accent);
  color:#fff;
  border:none;
  padding:13px 28px;
  border-radius:var(--cat-radius);
  font-size:1rem;
  font-weight:600;
  cursor:pointer;
  transition:background var(--cat-transition);
  align-self:flex-start;
  font-family:inherit;
}
.catalog-modal__form-wrap input[type="submit"]:hover,
.catalog-modal__form-wrap .wpcf7-submit:hover{
  background:var(--cat-accent-dark);
}
.catalog-modal__form-wrap .wpcf7-acceptance label{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:0.825rem;
  color:var(--cat-text-light);
  cursor:pointer;
  line-height:1.4;
}
.catalog-modal__form-wrap .wpcf7-acceptance input[type="checkbox"]{
  width:16px;
  height:16px;
  flex-shrink:0;
  margin-top:2px;
  accent-color:var(--cat-accent);
}
.catalog-modal__form-wrap input[type="hidden"]{ display:none; }
.catalog-modal__form-wrap .wpcf7-not-valid-tip{
  font-size:0.8rem;
  color:#e53e3e;
}
.catalog-modal__form-wrap .wpcf7-response-output{
  margin:8px 0 0;
  padding:10px 14px;
  border-radius:var(--cat-radius);
  font-size:0.875rem;
  border:none;
}
.catalog-modal__form-wrap .wpcf7-mail-sent-ok{
  background:#f0fff4;
  color:#276749;
  border-left:3px solid #2eac41;
}
.catalog-modal__form-wrap .wpcf7-mail-sent-ng,
.catalog-modal__form-wrap .wpcf7-validation-errors,
.catalog-modal__form-wrap .wpcf7-spam-blocked{
  background:#fff5f5;
  color:#c53030;
  border-left:3px solid #e53e3e;
}

/* ═══════════════════════════════════════════════════════════════
   FIX: одинаковая высота карточек в ряду (Astra grid/float)
════════════════════════════════════════════════════════════════ */
body.post-type-archive-product #primary .ast-row,
body.tax-product_category     #primary .ast-row{
  display:flex !important;
  flex-wrap:wrap;
  align-items:stretch !important;
}
body.post-type-archive-product #primary .ast-row > article.catalog-card.ast-grid-common-col,
body.tax-product_category     #primary .ast-row > article.catalog-card.ast-grid-common-col{
  float:none !important;
  flex:0 0 auto;
  align-self:stretch !important;
}

.tara-tabs__nav{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	margin: 0 0 20px;
}
.tara-tabs__btn{
	padding:10px 14px;
	border:1px solid rgba(0,0,0,.15);
	border-radius:10px;
	background:#fff;
	cursor:pointer;
}
.tara-tabs__btn.is-active{
	border-color: rgba(0,0,0,.35);
	font-weight:600;
}
.catalog-grid{
	display:grid;
	width:100%;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap:16px;
}
/* Подрубрики — фиксированные 3 колонки (как карточки товаров по умолчанию) */
.catalog-grid--terms{
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width:900px){
	.catalog-grid--terms{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:600px){
	.catalog-grid--terms{ grid-template-columns: 1fr; }
}
.catalog-grid--terms .catalog-term-card{
	display:block;
	padding:16px;
	background:#f5f5f5;
	border:1px solid rgba(0,0,0,.12);
	border-radius:16px;
	text-decoration:none;
	transition:box-shadow var(--cat-transition), transform var(--cat-transition);
}
.catalog-grid--terms .catalog-term-card:hover{
	box-shadow:var(--cat-shadow-hover);
	transform:translateY(-2px);
}
.catalog-term-card__title{ font-weight:700; font-size:1rem; color:var(--cat-text); }
.catalog-term-card__desc{ opacity:.75; margin-top:6px; font-size:0.875rem; color:var(--cat-text-light); }
.catalog-more{ margin-top:20px; }

/* Карточка подрубрики с картинкой (Канистры → дочерние) */
.catalog-term-card__image{
  width:100%;
  overflow:hidden;
  border-radius:calc(var(--cat-radius) - 2px);
  margin-bottom:12px;
  background:#fff;
}
.catalog-term-card__image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  transition:transform 0.4s ease;
}
.catalog-term-card:hover .catalog-term-card__image img{
  transform:scale(1.04);
}
.catalog-term-card__image--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ccc;
  font-size:0.8rem;
}
/* Мета-чипсы — каждый на новой строке */
.catalog-term-card__meta{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
}
.catalog-term-card__chip{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  background:#f0f0f0;
  border:1px solid #e0e0e0;
  border-radius:20px;
  padding:4px 12px;
  font-size:0.82rem;
  color:#555;
}
.catalog-term-card__chip--accent{
  background:rgba(245,166,35,0.12);
  border-color:rgba(245,166,35,0.4);
  color:var(--cat-accent-dark);
}

/* ═══════════════════════════════════════════════════════════════
   PATCH: применяем стили product к Tara (CPT tara + taxonomy tara_category)
   Причина: у тебя всё заскоуплено под body.single-product и archive-product.
════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   ARCHIVE/TAX HEADER (Astra) — для Tara
────────────────────────────────────────────── */
body.post-type-archive-tara .ast-archive-description,
body.tax-tara_category .ast-archive-description{
  padding:0 0 24px;
  border-bottom:2px solid var(--cat-accent);
  margin-bottom:32px;
}
body.post-type-archive-tara .page-title.ast-archive-title,
body.tax-tara_category .page-title.ast-archive-title{
  margin:0 0 8px;
  color:var(--cat-text);
}
body.post-type-archive-tara .ast-archive-description p,
body.tax-tara_category .ast-archive-description p{
  margin:0;
  color:var(--cat-text-light);
}

/* ──────────────────────────────────────────────
   FIX: одинаковая высота карточек в ряду — для Tara
   (если где-то используешь ast-row + grid)
────────────────────────────────────────────── */
body.post-type-archive-tara #primary .ast-row,
body.tax-tara_category     #primary .ast-row{
  display:flex !important;
  flex-wrap:wrap;
  align-items:stretch !important;
}
body.post-type-archive-tara #primary .ast-row > article.catalog-card.ast-grid-common-col,
body.tax-tara_category     #primary .ast-row > article.catalog-card.ast-grid-common-col{
  float:none !important;
  flex:0 0 auto;
  align-self:stretch !important;
}

/* ──────────────────────────────────────────────
   SINGLE Tara — копия блока body.single-product
   (иначе слайдер не скрывает неактивные слайды)
────────────────────────────────────────────── */
body.single-tara .product-single__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  padding:32px 0 60px;
  align-items:start;
}
@media (max-width:900px){
  body.single-tara .product-single__inner{
    grid-template-columns:1fr;
    gap:32px;
  }
}

body.single-tara .product-slider__main{
  position:relative;
  background:#f5f5f5;
  border-radius:var(--cat-radius);
  overflow:hidden;
  margin-bottom:10px;
  aspect-ratio:1/1;
}
body.single-tara .product-slider__main-item{ display:none; width:100%; height:100%; }
body.single-tara .product-slider__main-item.is-active{
  display:flex; align-items:center; justify-content:center;
}
body.single-tara .product-slider__main-item img{
  width:100%; height:100%; object-fit:cover; display:block;
}
body.single-tara .product-slider__arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:10;
  background:rgba(255,255,255,0.9);
  border:1px solid var(--cat-border);
  padding:0 0 5px 0;
  width:36px; height:36px;
  border-radius:50%;
  font-size:1.1rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all var(--cat-transition);
  color:var(--cat-text);
}
body.single-tara .product-slider__arrow:hover{
  background:var(--cat-accent);
  color:#fff;
  border-color:var(--cat-accent);
}
body.single-tara .product-slider__arrow--prev{ left:10px; }
body.single-tara .product-slider__arrow--next{ right:10px; }

body.single-tara .product-slider__thumbs{ display:flex; gap:8px; flex-wrap:wrap; }
body.single-tara .product-slider__thumb{
  width:70px; height:70px;
  border:2px solid var(--cat-border);
  border-radius:4px;
  overflow:hidden;
  cursor:pointer;
  transition:border-color var(--cat-transition);
  flex-shrink:0;
}
body.single-tara .product-slider__thumb:hover,
body.single-tara .product-slider__thumb.is-active{ border-color:var(--cat-accent); }
body.single-tara .product-slider__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
body.single-tara .product-slider__no-image{
  aspect-ratio:1/1;
  background:#f0f0f0;
  border-radius:var(--cat-radius);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#bbb;
}

body.single-tara .product-single__title{
  font-size:clamp(1.4rem, 3vw, 2rem);
  font-weight:700;
  color:var(--cat-text);
  margin:0 0 8px;
  line-height:1.25;
}
body.single-tara .product-single__volume{
  display:inline-block;
  border:1px solid var(--cat-border);
  padding:4px 14px;
  border-radius:4px;
  font-size:0.9rem;
  color:var(--cat-text-light);
}
body.single-tara .product-single__divider{
  border:none;
  border-top:1px solid var(--cat-border);
  margin:20px 0;
}
body.single-tara .product-single__specs{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:0.9rem;
}
body.single-tara .product-single__spec-row{
  display:flex;
  gap:8px;
  padding:6px 0;
  border-bottom:1px solid var(--cat-border);
}
body.single-tara .product-single__spec-row:last-child{ border-bottom:none; }
body.single-tara .product-single__spec-label{
  font-weight:700;
  color:var(--cat-text);
  min-width:220px;
  flex-shrink:0;
}
body.single-tara .product-single__spec-value{ color:var(--cat-text-light); }
@media (max-width:600px){
  body.single-tara .product-single__spec-label{ min-width:140px; }
}

body.single-tara .product-single__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:24px 0 20px;
}
body.single-tara .product-single__back-link{
  display:inline-block;
  font-size:0.875rem;
  color:var(--cat-text-light);
  text-decoration:none;
  margin-top:8px;
  transition:color var(--cat-transition);
}
body.single-tara .product-single__back-link:hover{ color:var(--cat-accent); }

/* Tabs — фикс под Astra (чтобы кнопки не наследовали стили темы) */
.tara-tabs__btn{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid rgba(0,0,0,.15);
  border-radius:30px;
  background:#fff;
  color:var(--cat-text);
  cursor:pointer;
  padding:10px 16px;
  font-weight:600;
  line-height:1.2;
}
.tara-tabs__btn.is-active{
  background:var(--cat-accent);
  border-color:var(--cat-accent);
  color:#fff;
}
.tara-tabs__btn:focus{ outline:none; box-shadow:0 0 0 3px rgba(245,166,35,.18); }

/* === FIX: Astra column-classes ломают нашу CSS-grid сетку === */
.catalog-grid > article,
.catalog-grid > article.ast-grid-common-col,
.catalog-grid > article[class*="ast-col-"]{
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0; /* важно, чтобы текст нормально переносился */
}

/* на всякий — чтобы содержимое карточки не сжималось странно */
.catalog-grid > article .ast-article-inner{
  height: 100%;
}