/* Three stable rows; only the middle description participates in the hover effect. */
.products .product .product-inner.kt-card {
    display: grid !important;
    grid-template-rows: 160px minmax(190px, 1fr) auto;
    gap: 12px;
    padding: 10px 12px 14px !important;
    height: 100%;
    min-width: 0;
    isolation: isolate;
}
.kt-card > div { min-width: 0; }
.products .kt-card .kt-card__media { position: relative; display: grid; place-items: center; }
.products .kt-card .kt-card__media > a { display: block; width: 100%; height: 100%; margin: 0; }
.products .kt-card .kt-card__media img { display: block; width: 100%; height: 160px; max-height: 160px; margin: 0; object-fit: contain; }
.products .kt-card .kt-card__media .onsale { top: -10px; left: -12px; }
.products .kt-card .kt-card__body { position: relative; }
.products .kt-card .kt-card__copy { transition: filter .18s ease, opacity .18s ease; }
.products .kt-card .kt-card__copy h2 { margin: 8px 0 20px; }
.products .kt-card .kt-card__tools {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden; transition: opacity .18s ease;
}
:is(body, #content_product) .products .product .kt-card .kt-card__tools > .kt-card__tool {
    display: flex !important; position: static !important; inset: auto !important;
    align-items: center; justify-content: flex-start; gap: 9px;
    width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 42px;
    margin: 0 !important; padding: 3px 6px !important; transform: none !important;
    border: 0 !important; border-radius: 0; box-shadow: none !important;
    background: transparent !important; color: #13543d !important;
    font: 600 13px/1.35 Arial, sans-serif; text-align: left; text-decoration: none;
    opacity: 1 !important; visibility: visible !important;
}
.products .kt-card .kt-card__tool::before, .products .kt-card .kt-card__tool::after { display: none !important; }
.products .kt-card .kt-card__tool:hover .kt-card__tool-icon { border-color: #078450; background: #edf8f2; }
.products .kt-card .kt-card__tool:hover .kt-card__tool-text { text-decoration: underline; }
.products .kt-card .kt-card__tool-text { white-space: nowrap; }
.kt-card__tool svg, .kt-card__watch svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.products .kt-card .kt-card__tool-icon {
    position: static; display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: 0 0 34px;
    border: 1px solid #b8d3c6; border-radius: 7px; background: #fff;
}
.products .kt-card .kt-card__tool-icon::before { margin: 0; }
.products .kt-card .kt-card__footer { display: flex; flex-direction: column; gap: 8px; }
.products .kt-card .kt-card__badges { min-height: 25px; }
.products .kt-card .kt-card__badges .kt-cmfx-offer-badges { margin: 0; padding: 0; }
.products .kt-card .kt-card__price { display: flex; align-items: flex-end; justify-content: center; min-height: 48px; }
.products .product .kt-card .kt-card__price .price,
#content_product .products .product .kt-card .kt-card__price .price {
    position: static; display: block; width: 100%; margin: 0 !important; padding: 0;
    text-align: center; line-height: 1.5;
}
.products .kt-card .kt-card__actions { display: grid; grid-template-columns: minmax(0, 1fr); height: 44px; }
.products .kt-card .kt-card__actions--watch { grid-template-columns: minmax(0, 1fr) 44px; gap: 7px; }
.products .product .kt-card .kt-card__actions > a,
.products .product .kt-card .kt-card__actions > button,
.products .product .kt-card .kt-card__actions > .ktoutofstock {
    position: static !important; inset: auto !important; transform: none !important;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; min-width: 0; height: 44px; min-height: 44px;
    margin: 0 !important; padding: 6px !important; border: 1px solid #078450; border-radius: 7px;
    background: #078450; color: #fff !important; font: 600 13px/1.25 Arial, sans-serif;
    text-align: center; text-decoration: none; box-shadow: none;
}
.products .product .kt-card .kt-card__actions > .ktoutofstock { background: #fff1e8; border-color: #f2d7c4; color: #9b3c0b !important; }
.products .kt-card .ktoutofstock::before, .products .kt-card .ktoutofstock::after { display: none; }
.products .product .kt-card .kt-card__actions > .kt-card__watch { background: #fff; color: #087354 !important; cursor: pointer; }
.products .product .kt-card .kt-card__actions > .kt-card__watch.is-requested { background: #e6f4ec; }
.products .kt-card .added_to_cart { font-size: 11px; }
.products .kt-card a:focus-visible, .products .kt-card button:focus-visible { outline: 2px solid #087354; outline-offset: 3px; }
@media (hover: hover) {
    .products .kt-card:hover .kt-card__copy,
    .products .kt-card:has(.kt-card__media a:focus-visible, .kt-card__tools:focus-within) .kt-card__copy { filter: blur(3px); opacity: .4; }
    .products .kt-card:hover .kt-card__tools,
    .products .kt-card:has(.kt-card__media a:focus-visible, .kt-card__tools:focus-within) .kt-card__tools { opacity: 1; visibility: visible; }
}
@media (hover: none) {
    .products .kt-card .kt-card__body { display: flex; flex-direction: column; gap: 14px; }
    .products .kt-card .kt-card__tools { position: static; order: 2; opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
    .products .kt-card .kt-card__copy, .products .kt-card .kt-card__tools { transition: none; }
}
/* FastCart provides the cart view; keep the purchase row stable after Woo's AJAX response. */
.products .product .kt-card .kt-card__actions > .added_to_cart { display: none !important; }
