﻿/* ===== WooCommerce -> С‚РІРѕСЏ СЃРµС‚РєР° ===== */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 1020px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

.woocommerce ul.products li.product {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== РЈР±РёСЂР°РµРј Р»РёС€РЅРµРµ РѕС„РѕСЂРјР»РµРЅРёРµ Woo РЅР° СЃСЃС‹Р»РєР°С… РІ РєР°СЂС‚РѕС‡РєРµ ===== */
.woocommerce ul.products li.product a {
  text-decoration: none;
  color: inherit;
}

/* ===== РљРЅРѕРїРєРё (РЅР° РІСЃСЏРєРёР№ СЃР»СѓС‡Р°Р№ вЂ” РІРґСЂСѓРі РіРґРµ-С‚Рѕ РІС‹РІРѕРґСЏС‚СЃСЏ) ===== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border: 0;
  border-radius: 999px;
  height: 44px;
  padding: 0 1.15rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
}

.woocommerce a.button:active,
.woocommerce button.button:active {
  transform: translateY(0);
}

/* ===== РџРѕР»СЏ Woo ===== */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="search"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: inherit;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  outline: 2px solid rgba(35, 98, 63, 0.2);
  border-color: var(--primary);
}

/* ===== РџР°РіРёРЅР°С†РёСЏ ===== */
.woocommerce nav.woocommerce-pagination ul {
  border: 0;
  display: flex;
  gap: 0.4rem;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #e8f1eb;
  color: var(--primary);
  border-color: #d7e8de;
}

/* ===== РљР»РёРєР°Р±РµР»СЊРЅР°СЏ РєР°СЂС‚РѕС‡РєР°: stretched-link ===== */
.dog-card {
  position: relative;
}

/* Р›РёРЅРє РЅР°РєСЂС‹РІР°РµС‚ РІСЃСЋ РєР°СЂС‚РѕС‡РєСѓ Рё РЅР°С…РѕРґРёС‚СЃСЏ РЎР’Р•Р РҐРЈ РєРѕРЅС‚РµРЅС‚Р° */
.dog-card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 3;          /* Р±С‹Р»Рѕ 1 */
  display: block;      /* С‡С‚РѕР±С‹ РЅРµ Р±С‹Р»Рѕ "С‚РѕРЅРєРѕР№ РїРѕР»РѕСЃС‹" РёР·-Р·Р° inline */
  border-radius: var(--radius-lg);
}

/* РљРѕРЅС‚РµРЅС‚ РЅРёР¶Рµ РѕРІРµСЂР»РµСЏ (РѕРЅ РІРёР·СѓР°Р»СЊРЅРѕ РІРёРґРµРЅ, РЅРѕ РєР»РёРєРё РёРґСѓС‚ РІ СЃСЃС‹Р»РєСѓ) */
.dog-card__image,
.dog-card__body,
.dog-card__footer {
  position: relative;
  z-index: 1;          /* Р±С‹Р»Рѕ 2 */
}

/* Р’РёРґРёРјР°СЏ РѕР±РІРѕРґРєР° РїСЂРё С‚Р°Р±-РЅР°РІРёРіР°С†РёРё */
.dog-card:focus-within {
  outline: 2px solid rgba(35, 98, 63, 0.25);
  outline-offset: 2px;
}

/* РџРѕРґСЃРІРµС‚РєР° вЂњРџРѕРґСЂРѕР±РЅРµРµвЂќ РїСЂРё hover РєР°СЂС‚РѕС‡РєРё Рё РїСЂРё С„РѕРєСѓСЃРµ */
.dog-card .button--ghost {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.dog-card:hover .button--ghost,
.dog-card:focus-within .button--ghost {
  background: rgba(35, 98, 63, 0.08);
  border-color: rgba(35, 98, 63, 0.22);
  transform: translateY(-1px);
}

/* РќР° С‚Р°С‡-СѓСЃС‚СЂРѕР№СЃС‚РІР°С… РЅРµ РїРѕР»Р°РіР°С‚СЊСЃСЏ РЅР° hover */
@media (hover: none) {
  .dog-card:hover .button--ghost {
    transform: none;
  }
}

/* РЈРІР°Р¶Р°С‚СЊ prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .dog-card {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* ===== Р“Р»Р°РІРЅР°СЏ: РєР°СЂС‚РѕС‡РєРё РїРѕСЂРѕРґ ===== */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 1020px) {
  .breed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .breed-grid {
    grid-template-columns: 1fr;
  }
}

.breed-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 225, 219, 0.8);
  box-shadow: 0 22px 60px rgba(27, 38, 31, 0.08);
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.breed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Р Р°СЃС‚СЏРЅСѓС‚С‹Р№ Р»РёРЅРє: РєР»РёРєР°Р±РµР»СЊРЅР° РІСЃСЏ РєР°СЂС‚РѕС‡РєР° */
.breed-card__stretched {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.breed-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.breed-card__image.is-placeholder {
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  background: rgba(35, 98, 63, 0.08);
  color: var(--primary);
}

.breed-card__body {
  position: relative;
  z-index: 2;
  padding: 1.05rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.breed-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.breed-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breed-card .button--ghost {
  width: fit-content;
}

.breed-card:hover .button--ghost,
.breed-card:focus-within .button--ghost {
  background: rgba(35, 98, 63, 0.08);
  border-color: rgba(35, 98, 63, 0.22);
  transform: translateY(-1px);
}

/* ===== FIX: РєРЅРѕРїРєР° "РЎРјРѕС‚СЂРµС‚СЊ" РґРѕР»Р¶РЅР° РЅР°Р¶РёРјР°С‚СЊСЃСЏ РїРѕРІРµСЂС… stretched-link ===== */
/* РСЃРїРѕР»СЊР·СѓР№ РІ СЂР°Р·РјРµС‚РєРµ <a class="button button--ghost breed-card__cta" ...>РЎРјРѕС‚СЂРµС‚СЊ</a> */
.breed-card__cta {
  position: relative;
  z-index: 3;        /* РІС‹С€Рµ .breed-card__stretched (z-index:1) */
  pointer-events: auto;
}

/* ===== Р“Р»Р°РІРЅР°СЏ: РєР°СЂС‚РѕС‡РєРё РїРёС‚РѕРјРЅРёРєРѕРІ (Р±СЂРµРЅРґРѕРІ) ===== */
.kennel-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 1020px){
  .kennel-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .kennel-grid{ grid-template-columns: 1fr; }
}

.kennel-card{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(216, 225, 219, 0.8);
  box-shadow: 0 22px 60px rgba(27, 38, 31, 0.08);
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.kennel-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.kennel-card__stretched{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius: var(--radius-lg);
}

.kennel-card__image{
  width:100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display:block;
}

.kennel-card__image.is-placeholder{
  display:grid;
  place-items:center;
  font-size: 2.1rem;
  background: rgba(35,98,63,.08);
  color: var(--primary);
}

.kennel-card__body{
  position:relative;
  z-index:2;
  padding: 1.05rem 1.15rem 1.2rem;
  display:grid;
  gap: .55rem;
}

.kennel-card__body h3{
  margin:0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.kennel-card__meta{
  margin:0;
  color: var(--muted);
  font-size: .92rem;
}

/* РєРЅРѕРїРєР° РїРѕРІРµСЂС… РѕРІРµСЂР»РµСЏ */
.kennel-card__cta{
  position:relative;
  z-index:3;
  pointer-events:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  text-decoration:none;
}

/* ===== Woo Blocks (Product Collection / Product Grid) -> СЃС‚РёР»СЊ dog-card ===== */

/* РЎРµС‚РєР° Р±Р»РѕРєР° (РЅР° СЃР»СѓС‡Р°Р№, РµСЃР»Рё С‚РµРјР° РЅРµ РґРµР»Р°РµС‚ grid) */
.wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
@media (max-width: 1020px) {
  .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wc-block-product-template { grid-template-columns: 1fr; }
}

/* РљР°СЂС‚РѕС‡РєР° С‚РѕРІР°СЂР° Р±Р»РѕРєР° */
li.wc-block-product {
  list-style: none;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 225, 219, 0.8);
  box-shadow: 0 22px 60px rgba(27, 38, 31, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0 !important;
}

li.wc-block-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* РР·РѕР±СЂР°Р¶РµРЅРёРµ: РїСЂРёРІРѕРґРёРј Рє 4:3 cover */
li.wc-block-product .wc-block-components-product-image,
li.wc-block-product .wc-block-grid__product-image,
li.wc-block-product .wp-block-woocommerce-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
}

li.wc-block-product .wc-block-components-product-image img,
li.wc-block-product .wc-block-grid__product-image img,
li.wc-block-product .wp-block-woocommerce-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Р’РЅСѓС‚СЂРµРЅРЅРёРµ РѕС‚СЃС‚СѓРїС‹ РєР°Рє Сѓ dog-card__body */
li.wc-block-product > *:not(.wp-block-woocommerce-product-image) {
  margin-left: 1.15rem;
  margin-right: 1.15rem;
}

/* Р—Р°РіРѕР»РѕРІРѕРє (Сѓ С‚РµР±СЏ СЌС‚Рѕ wp-block-post-title) */
li.wc-block-product .wp-block-post-title {
  margin-top: 1.05rem;
  margin-bottom: 0.35rem;
  text-align: left !important;
  line-height: 1.2 !important;
  font-size: 1.05rem;
}
li.wc-block-product .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

/* Р¦РµРЅР° */
li.wc-block-product .wc-block-components-product-price,
li.wc-block-product .wc-block-grid__product-price {
  margin: 0 0 0.85rem 0;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
li.wc-block-product .wp-block-woocommerce-product-price {
  margin-bottom: 0.85rem !important;
  text-align: left !important;
}

/* РЈР±РёСЂР°РµРј Add to cart РІ Р±Р»РѕРєР°С… (РЅР° РІСЃСЏРєРёР№ СЃР»СѓС‡Р°Р№) */
li.wc-block-product .wp-block-woocommerce-product-button,
li.wc-block-product .wc-block-grid__product-add-to-cart,
li.wc-block-product .wp-block-button {
  display: none !important;
}

/* Р¤РѕРєСѓСЃ-РѕР±РІРѕРґРєР° */
li.wc-block-product:focus-within {
  outline: 2px solid rgba(35, 98, 63, 0.25);
  outline-offset: 2px;
}

/* (РћРїС†РёРѕРЅР°Р»СЊРЅРѕ) РЎРґРµР»Р°С‚СЊ РІСЃСЋ РєР°СЂС‚РѕС‡РєСѓ РєР»РёРєР°Р±РµР»СЊРЅРѕР№:
   Сѓ Р±Р»РѕРєР° СѓР¶Рµ РµСЃС‚СЊ СЃСЃС‹Р»РєРё РЅР° РєР°СЂС‚РёРЅРєСѓ Рё Р·Р°РіРѕР»РѕРІРѕРє вЂ” СЌС‚РѕРіРѕ РѕР±С‹С‡РЅРѕ РґРѕСЃС‚Р°С‚РѕС‡РЅРѕ.
   Р•СЃР»Рё С…РѕС‡РµС€СЊ вЂњРєР°Рє dog-card__stretched-linkвЂќ, СЃРєР°Р¶Рё вЂ” РґР°Рј РІР°СЂРёР°РЅС‚ С‡РµСЂРµР· JS/overlay. */
   
   /* РџРѕРґСЃРІРµС‚РєР° РєРЅРѕРїРєРё вЂњРџРѕРґСЂРѕР±РЅРµРµ/РЎРјРѕС‚СЂРµС‚СЊвЂќ РЅР° Р±Р»РѕРєРѕРІС‹С… РєР°СЂС‚РѕС‡РєР°С…, РµСЃР»Рё РіРґРµ-С‚Рѕ РµСЃС‚СЊ */
li.wc-block-product:hover .button--ghost,
li.wc-block-product:focus-within .button--ghost{
  background: rgba(35, 98, 63, 0.08);
  border-color: rgba(35, 98, 63, 0.22);
  transform: translateY(-1px);
}
/* ===== Р”РѕРї. РёРЅС„Рѕ РІРЅСѓС‚СЂРё Woo Blocks РєР°СЂС‚РѕС‡РєРё ===== */

/* РљРѕСЂРѕС‚РєРѕРµ РѕРїРёСЃР°РЅРёРµ */
li.wc-block-product .wp-block-woocommerce-product-summary,
li.wc-block-product .wc-block-components-product-summary{
  margin: 0 1.15rem .9rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: .92rem;
}

/* вЂњР§РёРїСЃС‹вЂќ РґР»СЏ РєР°С‚РµРіРѕСЂРёР№/С‚РµРіРѕРІ/Р±СЂРµРЅРґРѕРІ С‡РµСЂРµР· Post Terms */
li.wc-block-product .wp-block-woocommerce-product-categories-list,
li.wc-block-product .wp-block-woocommerce-product-tags-list,
li.wc-block-product .wp-block-post-terms{
  margin: 0 1.15rem .85rem;
}

li.wc-block-product .wp-block-woocommerce-product-categories-list ul,
li.wc-block-product .wp-block-woocommerce-product-tags-list ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

li.wc-block-product .wp-block-woocommerce-product-categories-list li,
li.wc-block-product .wp-block-woocommerce-product-tags-list li{
  margin: 0;
}

/* РЎСЃС‹Р»РєРё РєР°Рє chips */
li.wc-block-product .wp-block-woocommerce-product-categories-list a,
li.wc-block-product .wp-block-woocommerce-product-tags-list a,
li.wc-block-product .wp-block-post-terms a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(35, 98, 63, 0.1);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

/* Р Р°Р·РґРµР»РёС‚РµР»Рё Post Terms (РµСЃР»Рё РІС‹РІРѕРґРёС‚ С‡РµСЂРµР· Р·Р°РїСЏС‚СѓСЋ) */
li.wc-block-product .wp-block-post-terms__separator{
  display: none;
}

/* ===== РћСЃРЅРѕРІРЅР°СЏ РёРЅС„Р° РІРЅСѓС‚СЂРё Woo Blocks РєР°СЂС‚РѕС‡РєРё (РІСЃС‚Р°РІР»СЏРµС‚СЃСЏ JS) ===== */

/* РћС‚СЃС‚СѓРїС‹ РєР°Рє Сѓ dog-card__body */
li.wc-block-product .dog-card__body--blocks{
  padding: 0 1.15rem 1.25rem;
  display: grid;
  gap: .85rem;
}

/* Р’ Р±Р»РѕРєР°С… Сѓ РЅР°СЃ РЅРµС‚ .dog-card, РЅРѕ РєР»Р°СЃСЃС‹ .meta/.description СѓР¶Рµ РёР· styles.css вЂ”
   РѕРЅРё РіР»РѕР±Р°Р»СЊРЅС‹Рµ Рё РґРѕР»Р¶РЅС‹ СЂР°Р±РѕС‚Р°С‚СЊ. РќР° РІСЃСЏРєРёР№ СЃР»СѓС‡Р°Р№ РґРµР»Р°РµРј С‡СѓС‚РєР° РєРѕРјРїР°РєС‚РЅРµРµ: */
li.wc-block-product .meta{
  margin: 0;
}
li.wc-block-product .description{
  margin: 0;
}
li.wc-block-product .dog-card__footer{
  margin-top: auto;
}

.dog-card--link,
.breed-card--link,
.kennel-card--link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.dog-card--link:hover,
.breed-card--link:hover,
.kennel-card--link:hover{
  color:inherit;
  text-decoration:none;
}


/* =========================================================
   FIX: РєР°СЂС‚РѕС‡РєР° = СЃСЃС‹Р»РєР° (<a ...>) вЂ” С‡С‚РѕР±С‹ РЅРµ Р±С‹Р»Рѕ "РїРѕР»РѕСЃРєРё"
   Рё С‡С‚РѕР±С‹ С‚РµРјР° РЅРµ РґРµР»Р°Р»Р° СЃСЃС‹Р»РєСѓ inline/РїРѕРґС‡С‘СЂРєРЅСѓС‚РѕР№
========================================================= */
a.dog-card,
a.breed-card,
a.kennel-card{
  display: grid;
  text-decoration: none;
  color: inherit;
}
a.dog-card:hover,
a.breed-card:hover,
a.kennel-card:hover{
  text-decoration: none;
  color: inherit;
}

/* media wrapper С‡С‚РѕР±С‹ wpautop РЅРµ РІСЃС‚Р°РІР»СЏР» <p> РІРѕРєСЂСѓРі <img> */
.dog-card__media,
.breed-card__media,
.kennel-card__media{
  display:block;
}

/* РќР° РІСЃСЏРєРёР№ СЃР»СѓС‡Р°Р№: СЃС‚Р°СЂС‹Рµ overlay-СЌР»РµРјРµРЅС‚С‹ РѕС‚РєР»СЋС‡Р°РµРј */
.dog-card__stretched-link,
.dog-card__cta{
  display:none !important;
}

/* РћР±С‘СЂС‚РєРё СЌР»РµРјРµРЅС‚РѕРІ СЃРµС‚РєРё (РЅРµ РєРѕРЅС„Р»РёРєС‚СѓСЋС‚, РЅРѕ РїРѕРјРѕРіР°СЋС‚, РµСЃР»Рё wpautop С€Р°Р»РёС‚) */
.catalog-grid__item,
.breed-grid__item,
.kennel-grid__item{
  display:block;
}

