+ <script> блок за catalog/view/theme/tk_design_1/template/product/category.twig.
  Слага се ПРЕДИ реда с {# zg_hidep #} (списъка с продуктите), а на картата
  <div class="product-card product-card--layout--grid"> се добавя клас zg-card2.
  Сега е включен само за product_id 7801 (тест); за всички гуми класът се слага без условие
  и правилата се ограничават с :has(.filter-group-season).
  Автоматично прилагане/връщане: ~/zg_alt/zg_card2t.php --apply / --revert
#}
<style>
/* zg_card2 */
/* zg_card2 global */
body .product-card.zg-card2.zg-card2{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-self:flex-start!important;height:auto!important;min-height:0!important;background:#fff;border-radius:14px}
body .product-card.zg-card2.zg-card2>*,body .product-card.zg-card2.zg-card2 .product-card__link>*{flex-grow:0!important}
body .product-card.zg-card2.zg-card2 .product-card__info{padding:8px 12px 0!important;order:2;flex:0 0 auto!important;min-height:0!important}
body .product-card.zg-card2.zg-card2 .product-card__meta{display:none!important}
body .product-card.zg-card2.zg-card2 .product-card__name{padding:0!important;flex:0 0 auto!important;min-height:0!important}
body .product-card.zg-card2.zg-card2 .product-card__name>div{display:flex!important;flex-direction:column!important}
body .product-card.zg-card2.zg-card2 .product-card__name-text{order:1;display:block!important;margin:0 0 8px!important}
body .product-card.zg-card2.zg-card2 .zg2-title{display:block;font-size:16px;font-weight:600;line-height:1.2;text-transform:uppercase;color:#111}
body .product-card.zg-card2.zg-card2 .zg2-size{display:block;font-size:14px;font-weight:400;line-height:1.3;color:#333;margin-top:3px}
body .product-card.zg-card2.zg-card2 .product-card__badges{order:2;position:static!important;display:grid!important;grid-template-columns:auto 1px minmax(0,1fr);grid-template-rows:auto auto auto;gap:5px 9px;align-items:center;margin:0 -4px 10px!important;padding:8px 8px!important;border-radius:10px;background:#f1f2f5}
body .product-card.zg-card2.zg-card2 .product-card__badges>*{margin:0!important}
body .product-card.zg-card2.zg-card2 .tag-badge-row{display:flex!important;align-items:center;width:100%;margin:0!important}
body .product-card.zg-card2.zg-card2 .tag-badge-icon{width:20px;height:20px;margin:0 3px 0 0!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter{flex:1;width:auto!important;min-width:0!important;max-width:none!important;height:26px;line-height:26px!important;padding:0 2px!important;margin:0!important;text-align:center;overflow:hidden;font-size:13px!important;font-weight:800!important;letter-spacing:0!important;box-sizing:border-box;border-radius:0;color:#111!important;-webkit-transform:none!important;transform:none!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter:before,body .product-card.zg-card2.zg-card2 .tag-badge--filter:after{display:none!important;content:none!important}
body .product-card.zg-card2.zg-card2 .tag-badge-row.filter-group-season{grid-column:1;grid-row:1;width:auto;justify-self:start}
body .product-card.zg-card2.zg-card2 .product-card__badges:before{content:'';grid-column:2;grid-row:1/4;align-self:stretch;width:1px;margin:3px 0;background:#d3d6dc;display:block}
body .product-card.zg-card2.zg-card2 .zg2-brand{grid-column:1;grid-row:2/4;width:0;min-width:calc(100% + 17px);margin-left:-8px!important;align-self:center;text-align:center;font-style:italic;font-weight:900;font-size:15px;color:#1b3d8f;text-transform:uppercase;border-bottom:3px solid #ffd200;padding-bottom:2px;justify-self:start}
body .product-card.zg-card2.zg-card2 .tag-badge-row.filter-group-eu-fuel{grid-column:3;grid-row:1}
body .product-card.zg-card2.zg-card2 .tag-badge-row.filter-group-eu-wet{grid-column:3;grid-row:2}
body .product-card.zg-card2.zg-card2 .tag-badge-row.filter-group-eu-noise-db{grid-column:3;grid-row:3}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-season{background:#8fd27f!important;border-radius:6px;flex:0 0 auto!important;padding:0 7px!important;font-size:10.5px!important;letter-spacing:-.1px!important;text-transform:uppercase}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-noise-db{background:#d3d6dc!important;border-radius:6px;font-size:13px!important;font-weight:800!important;white-space:nowrap;text-transform:none!important;padding:0 2px!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel,body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-wet{clip-path:polygon(0 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,0 100%)!important;text-align:center;padding:0 9px 0 2px!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel.filter-a{background:#00a651!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel.filter-b{background:#50b848!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel.filter-c{background:#bfd730!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel.filter-d{background:#ffd200!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel.filter-e{background:#fdb913!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel.filter-f{background:#f37021!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel.filter-g{background:#ed1c24!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-wet.filter-a{background:#1a7de0!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-wet.filter-b{background:#4a9be6!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-wet.filter-c{background:#7ab8ee!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-wet.filter-d{background:#a3d0f3!important}
body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-wet.filter-e{background:#c6e1f7!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__footer{order:3;display:flex!important;align-items:stretch;gap:8px;padding:0 8px 12px!important;margin:0!important;min-height:0!important;height:auto!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__prices{box-sizing:border-box;flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;background:#f1f2f5;border-radius:8px;height:32px;min-height:32px;padding:0 6px!important;margin:0!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__price{font-size:17px!important;font-weight:500!important;color:#111;white-space:nowrap;line-height:1!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__addtocart-icon{box-sizing:border-box!important;flex:1 1 0;min-width:0;height:32px!important;min-height:32px;display:flex!important;align-items:center;justify-content:center;border-radius:8px;margin:0!important;padding:0 6px!important}
@media (max-width:480px){body .product-card.zg-card2.zg-card2 .tag-badge-row.filter-group-season .tag-badge-icon{width:16px;height:16px}body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-season{font-size:9.5px!important;letter-spacing:-.3px!important}}
@media (max-width:420px){body .product-card.zg-card2.zg-card2 .zg2-brand{min-width:calc(100% + 12px);margin-left:-6px!important}body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__price{font-size:clamp(14px,4.3vw,18px)!important}body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__addtocart-icon{padding:0 2px!important}body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__prices{padding:0 2px!important}body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__addtocart-icon svg{width:16px;height:16px}body .product-card.zg-card2.zg-card2 .product-card__badges{column-gap:6px!important;padding:8px 6px!important}body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-season{font-size:9px!important;letter-spacing:-.3px!important;padding:0 4px!important}body .product-card.zg-card2.zg-card2 .tag-badge-row:not(.filter-group-season) .tag-badge-icon{width:16px;height:16px;margin-right:2px!important}body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-fuel,body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-wet{padding:0 7px 0 1px!important}body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-noise-db{font-size:12px!important;padding:0 1px!important}}
@media (max-width:380px){body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-eu-noise-db{font-size:11.5px!important;letter-spacing:-.3px!important}body .product-card.zg-card2.zg-card2 .tag-badge-row.filter-group-season .tag-badge-icon{display:none!important}}
@media (max-width:767.98px){body .product-card.zg-card2.zg-card2 .tag-badge-row.filter-group-season .tag-badge-icon{display:none!important}body .product-card.zg-card2.zg-card2 .tag-badge--filter.filter-group-season{font-size:10.5px!important}}
body .product-card.zg-card2.zg-card2 .zg2-brand.zg2-logo{border:0;padding:0;line-height:0}
body .product-card.zg-card2.zg-card2 .zg2-brand img{display:block;margin:0 auto;max-width:100%;height:54px;width:auto;mix-blend-mode:multiply}

/* ===== v2: еднакви височини, фиксирана кутия, цветове на сезона, лога ===== */
body .products-list__item:has(>.product-card.zg-card2),body .block-products-carousel__cell:has(>.product-card.zg-card2){display:flex!important;flex-direction:column}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2{align-self:stretch!important;flex:1 1 auto!important;height:auto!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__info{flex:1 1 auto!important;display:flex!important;flex-direction:column!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__name{flex:1 1 auto!important;display:flex!important;flex-direction:column!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__name>div{flex:1 1 auto!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges{margin-top:auto!important;min-height:102px;box-sizing:border-box;align-content:center;grid-template-columns:minmax(88px,auto) 1px minmax(0,1fr)}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge--filter.filter-group-season{width:calc(6.762em + 14px)!important;min-width:calc(6.762em + 14px)!important;max-width:calc(6.762em + 14px)!important;flex:0 0 calc(6.762em + 14px)!important;box-sizing:border-box!important;text-align:center;white-space:nowrap}
@media (max-width:420px){body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge--filter.filter-group-season{width:calc(6.762em + 8px)!important;min-width:calc(6.762em + 8px)!important;max-width:calc(6.762em + 8px)!important;flex:0 0 calc(6.762em + 8px)!important;box-sizing:border-box!important;text-align:center;white-space:nowrap}}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge--filter.filter-group-season[data-zgs=v]{background:#8fd27f!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge--filter.filter-group-season[data-zgs=l]{background:#ffd84d!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge--filter.filter-group-season[data-zgs=z]{background:#8cc8f5!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge-row:not(.filter-group-season){width:100%!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge--filter:not(.filter-group-season){flex:1 1 0%!important;width:auto!important;min-width:0!important;max-width:none!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges .zg2-brand{grid-column:1!important;grid-row:2/4!important;width:0!important;min-width:100%!important;margin:0!important;justify-self:stretch!important;align-self:center!important;height:46px;display:flex!important;align-items:center;justify-content:center;border:0!important;padding:0!important;font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges .zg2-brand img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;mix-blend-mode:multiply}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;row-gap:7px;justify-items:center;align-content:center}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)):before{display:none!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)) .tag-badge-row.filter-group-season{grid-column:1!important;grid-row:1!important;justify-self:center!important;width:auto!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)) .zg2-brand{grid-column:1!important;grid-row:2!important;width:70%!important;min-width:0!important;justify-self:center!important;max-width:150px;border-top:1px solid #d3d6dc!important;padding-top:7px!important;height:52px}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)):not(:has(.filter-group-season)) .zg2-brand{grid-row:1!important;border-top:0!important;padding-top:0!important;width:70%!important;min-width:0!important;justify-self:center!important;height:52px}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)):not(:has(.filter-group-season)):not(:has(.zg2-brand)){display:none!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:has(.filter-group-season):not(:has(.zg2-brand)):has(:is(.filter-group-eu-fuel,.filter-group-eu-wet,.filter-group-eu-noise-db)) .tag-badge-row.filter-group-season{grid-row:1/4!important;align-self:center!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:has(.zg2-brand):not(:has(.filter-group-season)):has(:is(.filter-group-eu-fuel,.filter-group-eu-wet,.filter-group-eu-noise-db)) .zg2-brand{grid-row:1/4!important;align-self:center!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:has(.filter-group-eu-fuel):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)) .tag-badge-row.filter-group-eu-fuel{grid-row:1/4!important;align-self:center!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:has(.filter-group-eu-wet):not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-noise-db)) .tag-badge-row.filter-group-eu-wet{grid-row:1/4!important;align-self:center!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:has(.filter-group-eu-noise-db):not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)) .tag-badge-row.filter-group-eu-noise-db{grid-row:1/4!important;align-self:center!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:has(.filter-group-eu-fuel):has(.filter-group-eu-wet):not(:has(.filter-group-eu-noise-db)) .tag-badge-row.filter-group-eu-wet{grid-row:3!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:has(.filter-group-eu-wet):has(.filter-group-eu-noise-db):not(:has(.filter-group-eu-fuel)) .tag-badge-row.filter-group-eu-wet{grid-row:1!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-season)):not(:has(.zg2-brand)):has(:is(.filter-group-eu-fuel,.filter-group-eu-wet,.filter-group-eu-noise-db)){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-season)):not(:has(.zg2-brand)):has(:is(.filter-group-eu-fuel,.filter-group-eu-wet,.filter-group-eu-noise-db)):before{display:none!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-season)):not(:has(.zg2-brand)):has(:is(.filter-group-eu-fuel,.filter-group-eu-wet,.filter-group-eu-noise-db)) .tag-badge-row{grid-column:1!important;grid-row:auto!important;align-self:auto!important}
@media (max-width:767.98px){body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge-row.filter-group-season{width:100%!important;justify-self:stretch!important}body .product-card.zg-card2.zg-card2.zg-card2.zg-card2 .tag-badge-row.filter-group-season .tag-badge--filter.filter-group-season{width:100%!important;min-width:0!important;max-width:none!important;flex:1 1 auto!important}}
/* филтър отстрани: шум като на картата */
#tk_filters #tk_filters .zg-fdb,#tk_filters .filter-item .zg-fdb{display:inline-block!important;position:relative;background:#d3d6dc!important;color:#000!important;font-weight:800!important;font-size:15px!important;line-height:1.2!important;padding:4px 14px!important;border-radius:6px!important;clip-path:none!important;transform:none!important;min-width:76px;text-align:center}
#tk_filters .filter-item .zg-fdb:before,#tk_filters .filter-item .zg-fdb:after{display:none!important;content:none!important}
/* статуси (Изчерпан/Промо/Ново) - горе вляво върху картата */
body .product-card.zg-card2{position:relative}
body .product-card.zg-card2 .zg2-flags{position:absolute;top:10px;left:10px;z-index:4;display:flex;flex-direction:column;align-items:flex-start;gap:4px;pointer-events:none}
body .product-card.zg-card2 .zg2-flags .tag-badge{position:static!important;margin:0!important}
/* филтър: шум по-малък */
#tk_filters .filter-item .zg-fdb{font-size:13px!important;padding:2px 10px!important;min-width:62px!important;border-radius:5px!important}
/* страница на продукт: "Оцени продукта" вдясно от звездите (десктоп), оценката след него */
@media (min-width:768px){
body .product__rating{gap:6px 10px!important}
body .product__rating>div:first-child{order:1}
body .product__rating .rating-hint-desktop{order:2}
body .product__rating .product__rating-label{order:3}
}

/* НЕ-гуми: цена + Купи като при гумите */
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__footer{margin-top:auto!important;display:flex!important;align-items:stretch;gap:8px;padding:0 8px 12px!important;margin:0!important;min-height:0!important;height:auto!important}
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__prices{box-sizing:border-box;flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;background:#f1f2f5;border-radius:8px;height:32px;min-height:32px;padding:0 6px!important;margin:0!important}
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__price{font-size:17px!important;font-weight:500!important;color:#111;white-space:nowrap;line-height:1!important}
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__addtocart-icon{box-sizing:border-box!important;flex:1 1 0;min-width:0;height:32px!important;min-height:32px;display:flex!important;align-items:center;justify-content:center;border-radius:8px;margin:0!important;padding:0 6px!important}
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__price{font-size:clamp(14px,4.3vw,18px)!important}
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__addtocart-icon{padding:0 2px!important}
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__prices{padding:0 2px!important}
body .product-card.zg-foot.zg-foot.zg-foot.zg-foot .product-card__addtocart-icon svg{width:16px;height:16px}
/* телефон: само сезон + лого - лентата е същата дължина като при пълните карти */
@media (max-width:767.98px){
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)) .tag-badge-row.filter-group-season{width:56%!important;min-width:0!important;justify-self:center!important}
body .product-card.zg-card2.zg-card2.zg-card2.zg-card2.zg-card2 .product-card__badges:not(:has(.filter-group-eu-fuel)):not(:has(.filter-group-eu-wet)):not(:has(.filter-group-eu-noise-db)) .zg2-brand{width:56%!important;max-width:none!important}
}
