/* Forestlab native mobile cards v1. Card-only presentation; no mock JS or invented labels.
Includes native cat-item and legacy image/product-details renderers. Native .hide/show state retained. */
@media (max-width:767px) {
html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image),
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) { display:grid!important;grid-template-columns:116px minmax(0,1fr)!important;grid-template-rows:140px 44px!important;gap:12px!important;padding:12px!important;width:100%!important;min-width:0!important;height:auto!important;min-height:196px!important;margin:0!important;border:0!important;border-radius:20px!important;background:#fff!important;box-shadow:none!important;position:relative!important;box-sizing:border-box!important;overflow:visible!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) *,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) * { box-sizing:border-box; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) > .cat-item-info,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) > .cat-item-info { display:contents!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-footer,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-footer { display:contents!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-info__charact,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-info__charact { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) > .cat-item-image,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) > .cat-item-image { grid-column:1!important;grid-row:1!important;position:relative!important;width:116px!important;height:116px!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:14px!important;overflow:hidden!important;float:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) > .cat-item-image > a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) > .cat-item-image > a { display:block!important;width:116px!important;height:116px!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:14px!important;overflow:hidden!important;background-size:cover!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image img,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image img { width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;border-radius:14px!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-info__link,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-info__link { grid-column:2!important;grid-row:1!important;align-self:start!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;max-height:57px!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;font-size:14px!important;font-weight:600!important;line-height:1.35!important;color:#1e1e1e!important;text-decoration:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price { grid-column:2!important;grid-row:1!important;align-self:end!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;position:static!important;line-height:1.2!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price-new,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price-new { display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;margin:0!important;padding:0!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price-value,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price-value { font-size:19px!important;font-weight:800!important;line-height:1.2!important;color:#1e1e1e!important;white-space:normal!important;overflow-wrap:anywhere; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price-new > svg,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-price-new > svg { flex:0 0 16px!important;width:16px!important;height:16px!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group { grid-column:1 / -1!important;grid-row:2!important;align-self:stretch!important;display:block!important;width:100%!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;position:static!important;float:none!important;opacity:1!important;visibility:visible!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group > .cart__btns,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group > .cart__btns { display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;width:100%!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;position:static!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter { flex:0 0 132px!important;width:132px!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:22px!important;background:#f2f3f2!important;position:static!important;float:none!important;z-index:auto!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter.show:not(.hide):not([hidden]),
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter.show:not(.hide):not([hidden]) { display:flex!important;align-items:center!important;justify-content:space-between!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter > a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter > a { display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;position:static!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter > input,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-counter > input { flex:1 1 0!important;width:32px!important;min-width:0!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#1e1e1e!important;text-align:center!important;font-size:16px!important;font-weight:700!important;opacity:1!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cart__btns > .cat-item-basket,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cart__btns > .cat-item-basket { flex:1 1 0!important;min-width:0!important;width:auto!important;height:44px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:22px!important;background:#45de6a!important;color:#1e1e1e!important;font-size:15px!important;font-weight:700!important;line-height:1.15!important;text-decoration:none!important;position:static!important;float:none!important;z-index:auto!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cart__btns > .cat-item-basket:not(.hide):not([hidden]),
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cart__btns > .cat-item-basket:not(.hide):not([hidden]) { display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-text,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket-text { font-size:14px!important;font-weight:700!important;line-height:1.15!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket svg,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-basket svg { flex:0 0 24px!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__labels,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__labels { position:absolute!important;top:6px!important;left:6px!important;right:6px!important;bottom:auto!important;z-index:2!important;width:auto!important;margin:0!important;padding:0!important;pointer-events:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-labels,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-labels { display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;margin:0!important;padding:0!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-labels .label,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-labels .label { max-width:104px!important;white-space:normal!important;padding:3px 6px!important;margin:0!important;border-radius:8px!important;font-size:10px!important;line-height:1.2!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons { display:flex!important;flex-direction:row!important;gap:4px!important;position:absolute!important;left:4px!important;bottom:4px!important;top:auto!important;right:auto!important;width:auto!important;height:36px!important;opacity:1!important;visibility:visible!important;transform:none!important;z-index:4!important;margin:0!important;padding:0!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons > div,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons > div { display:block!important;width:36px!important;height:36px!important;margin:0!important;padding:0!important;position:static!important;opacity:1!important;visibility:visible!important;transform:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons a { display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;margin:0!important;padding:0!important;opacity:1!important;visibility:visible!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons .button-wishlist-text,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons .button-wishlist-text { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons .button-compare-text,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .cat-item-image__icons .button-compare-text { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group .hide,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group .hide { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group [hidden],
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) .button-group [hidden] { display:none!important; }
}

/* Legacy native renderer: no DOM reconstruction, units and controls preserved. */
@media (max-width:767px) {

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image),
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) { display:grid!important;grid-template-columns:116px minmax(0,1fr)!important;grid-template-rows:140px 44px!important;gap:12px!important;padding:12px!important;width:100%!important;min-width:0!important;height:auto!important;min-height:196px!important;margin:0!important;border:0!important;border-radius:20px!important;background:#fff!important;box-shadow:none!important;position:relative!important;box-sizing:border-box!important;overflow:visible!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) *,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) * { box-sizing:border-box; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image { grid-column:1!important;grid-row:1!important;position:relative!important;width:116px!important;height:116px!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:14px!important;overflow:hidden!important;float:none!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > a.has-second-image,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > a.has-second-image { display:block!important;width:116px!important;height:116px!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:14px!important;overflow:hidden!important;background-size:cover!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .price,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .price { grid-column:2!important;grid-row:1!important;align-self:end!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;position:static!important;line-height:1.2!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .price,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .price { font-size:19px!important;font-weight:800!important;line-height:1.2!important;color:#1e1e1e!important;white-space:normal!important;overflow-wrap:anywhere; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group { grid-column:1 / -1!important;grid-row:2!important;align-self:stretch!important;display:block!important;width:100%!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;position:static!important;float:none!important;opacity:1!important;visibility:visible!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group > .cart__btns,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group > .cart__btns { display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;width:100%!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;position:static!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter { flex:0 0 132px!important;width:132px!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:22px!important;background:#f2f3f2!important;position:static!important;float:none!important;z-index:auto!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter.show:not(.hide):not([hidden]),
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter.show:not(.hide):not([hidden]) { display:flex!important;align-items:center!important;justify-content:space-between!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter > a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter > a { display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;position:static!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter > input,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .counter > input { flex:1 1 0!important;width:32px!important;min-width:0!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#1e1e1e!important;text-align:center!important;font-size:16px!important;font-weight:700!important;opacity:1!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .cart__btns > :is(.button-one,.button-basket),
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .cart__btns > :is(.button-one,.button-basket) { flex:1 1 0!important;min-width:0!important;width:auto!important;height:44px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:22px!important;background:#45de6a!important;color:#1e1e1e!important;font-size:15px!important;font-weight:700!important;line-height:1.15!important;text-decoration:none!important;position:static!important;float:none!important;z-index:auto!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .cart__btns > :is(.button-one,.button-basket):not(.hide):not([hidden]),
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .cart__btns > :is(.button-one,.button-basket):not(.hide):not([hidden]) { display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .cart__btns > a svg,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .cart__btns > a svg { flex:0 0 24px!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group .hide,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group .hide { display:none!important; }



html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group [hidden],
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group [hidden] { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .product-details,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .product-details { display:contents!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .blocks_products,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .blocks_products { display:contents!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .product_info,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .product_info { display:contents!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .caption,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .caption { display:contents!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes { display:contents!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .description,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .description { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attribute_c,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attribute_c { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .product-details > .name,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .product-details > .name { grid-column:2!important;grid-row:1!important;align-self:start!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;max-height:57px!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;font-size:14px!important;font-weight:600!important;line-height:1.35!important;text-align:left!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .product-details > .name > a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .product-details > .name > a { font:inherit!important;color:#1e1e1e!important;text-decoration:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image img,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image img { width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;border-radius:14px!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .price,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .price { grid-column:2!important;grid-row:1!important;align-self:end!important;font-size:19px!important;font-weight:800!important;line-height:1.2!important;text-align:left!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .wishlist,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .wishlist { display:block!important;position:absolute!important;top:88px!important;left:16px!important;right:auto!important;bottom:auto!important;width:36px!important;height:36px!important;z-index:4!important;margin:0!important;padding:0!important;opacity:1!important;visibility:visible!important;transform:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .wishlist > a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .wishlist > a { display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;border-radius:18px!important;background:rgba(29,29,29,.8)!important;color:#fff!important;margin:0!important;padding:0!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .wishlist .button-wishlist-text,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .wishlist .button-wishlist-text { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .compare,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .compare { display:block!important;position:absolute!important;top:88px!important;left:56px!important;right:auto!important;bottom:auto!important;width:36px!important;height:36px!important;z-index:4!important;margin:0!important;padding:0!important;opacity:1!important;visibility:visible!important;transform:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .compare > a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .compare > a { display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;border-radius:18px!important;background:rgba(29,29,29,.8)!important;color:#fff!important;margin:0!important;padding:0!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .compare .button-compare-text,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .attributes > .compare .button-compare-text { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .labels,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .labels { position:absolute!important;left:6px!important;top:6px!important;right:6px!important;z-index:2!important;margin:0!important;padding:0!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .labels .label,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .labels .label { display:inline-block!important;max-width:104px!important;white-space:normal!important;padding:3px 6px!important;margin:0 0 4px!important;border-radius:8px!important;font-size:10px!important;line-height:1.2!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .quickview-button,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .quickview-button { position:absolute!important;left:0!important;right:0!important;top:48px!important;bottom:auto!important;z-index:3!important;margin:0!important;opacity:1!important;visibility:visible!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .quickview-button > a,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) > .image > .quickview-button > a { display:flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;height:auto!important;padding:3px 4px!important;border-radius:10px!important;font-size:10px!important;line-height:1.2!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group .hide,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group .hide { display:none!important; }

html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group [hidden],
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb:has(> .image) .button-group [hidden] { display:none!important; }
}
@media(max-width:767px){
html.iforest-native-mobile-cards body .main-products.main-products{row-gap:10px!important;background-color:#f2f2f2!important;border-radius:20px}
html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb .cat-item-info__link,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb .cat-item-info__link{height:auto!important;flex:none!important;max-height:57px!important;line-height:1.35!important}
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb .cat-item-basket.js-button-one:not(.hide):after{content:'В корзину';display:inline!important;font:500 15px/1.2 Stolzl,sans-serif;color:#1e1e1e}
html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb .cat-item-basket.js-button-one:not(.hide):after{content:'В корзину';display:inline!important;font:500 15px/1.2 Stolzl,sans-serif;color:#1e1e1e}
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb .cat-item-basket.js-button-one:before{content:none!important}
html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb .cat-item-price-old,
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb .cat-item-price-old{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px!important;margin:4px 0 0!important;padding:0!important;font-size:12px!important;line-height:1.2!important}
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb .cat-item-price-old-value{font-size:12px!important;background:#f2f3f2;border-radius:6px;padding:2px 4px;color:#888}
html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb .cat-item-price-percent{font-size:12px!important;background:#fff200!important;color:#e0201b!important;border-radius:6px;padding:2px 4px}
}
@media(max-width:767px){
html.iforest-native-mobile-cards body #content#content .main-products,html.iforest-native-mobile-cards body .iforest-home-selection .main-products{row-gap:10px!important}
html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb.product-thumb:has(.cat-item-price-old),html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb.product-thumb:has(.cat-item-price-old),html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb.product-thumb:has(.price-old){grid-template-rows:140px 44px!important}
html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb .cat-item-basket.js-button-one:not(.hide):after,html.iforest-native-mobile-cards body .main-products-item.main-products-item:not(.iforest-related-card) .product-thumb .cat-item-basket.js-button-one:not(.hide):after{position:static!important;opacity:1!important;visibility:visible!important;inset:auto!important;width:auto!important;height:auto!important;background:none!important;border:0!important;padding:0!important;margin:0!important;transform:none!important;box-shadow:none!important;text-shadow:none!important;white-space:nowrap!important}
html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(>.image) .name,html.iforest-native-mobile-cards body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(>.image) .name a{height:auto!important;max-height:57px!important;min-height:0!important;white-space:normal!important;font-size:14px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
}

/* iforest-mobile-desktop-typography: native desktop font, size and regular weight */
@media(max-width:767px){
html.iforest-native-mobile-cards body :is(#content#content .product-grid-item:not(.iforest-related-card),.main-products-item.main-products-item:not(.iforest-related-card)) .product-thumb.product-thumb :is(.cat-item-info__link,.name,.name a){font-family:Stolzl,sans-serif!important;font-size:14px!important;font-weight:400!important;line-height:1.43!important;max-height:61px!important}
html.iforest-native-mobile-cards body :is(#content#content .product-grid-item:not(.iforest-related-card),.main-products-item.main-products-item:not(.iforest-related-card)) .product-thumb.product-thumb :is(.cat-item-price-new,.cat-item-price-value,.price,.price-new){font-family:Stolzl,sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:24px!important}
html.iforest-native-mobile-cards body :is(#content#content .product-grid-item:not(.iforest-related-card),.main-products-item.main-products-item:not(.iforest-related-card)) .product-thumb.product-thumb :is(.cat-item-price-old-value,.price-old){font-weight:400!important}
}
/* Append after the existing native mobile card rules. */
@media (max-width: 767px) {
  html.iforest-native-mobile-cards.iforest-catalog-listing body #content#content .product-grid-item:not(.iforest-related-card) {
    width:100%!important; max-width:100%!important; flex-basis:100%!important;
  }
  html.iforest-native-mobile-cards.iforest-catalog-listing body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb:has(> .cat-item-image) {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto auto!important;
    gap:12px!important; padding:0 0 14px!important;
  }
  html.iforest-native-mobile-cards.iforest-catalog-listing body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb > .cat-item-image {
    grid-row:1!important; width:100%!important; height:auto!important;
    aspect-ratio:3/2; border-radius:20px!important;
  }
  html.iforest-native-mobile-cards.iforest-catalog-listing body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb > .cat-item-image > a {
    width:100%!important; height:100%!important; border-radius:0!important;
  }
  html.iforest-native-mobile-cards.iforest-catalog-listing body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb .cat-item-info__link {
    grid-column:1!important; grid-row:2!important; margin:4px 16px 0!important;
    display:block!important; max-height:none!important; overflow-wrap:anywhere;
  }
  html.iforest-native-mobile-cards.iforest-catalog-listing body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb .cat-item-price {
    grid-column:1!important; grid-row:3!important; margin:0 16px!important;
  }
  html.iforest-native-mobile-cards.iforest-catalog-listing body #content#content .product-grid-item:not(.iforest-related-card) .product-thumb .button-group {
    grid-row:4!important; margin:0 16px!important; width:auto!important;
  }
}

/* Одинаковая мобильная плитка в разделах каталога, акциях, поиске и у производителей. */
@layer previewPurchase {
  @media (max-width:767px) {
    html.iforest-catalog-listing .container-1440.iforest-specials-page {
      width:100%!important;max-width:100%!important;margin-inline:auto!important;
    }
    .iforest-specials-page > .cat-sub {
      box-sizing:border-box!important;width:100%!important;padding-inline:20px!important;margin-top:12px!important;
    }
    .iforest-specials-page #content .main-products {padding-top:0!important;margin:24px 0!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb .button-group {
      grid-column:1 / -1!important;grid-row:4!important;justify-self:stretch!important;
      width:auto!important;max-width:none!important;margin:0 16px!important;padding:0!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .button-group .cart {
      display:flex!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .button-group .counter {display:none!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > :is(.cat-item-basket,.button):not(.hide):not([hidden]) {
      display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;
      flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:44px!important;height:auto!important;
      margin:0!important;padding:12px!important;box-sizing:border-box!important;border:0!important;border-radius:24px!important;
      background:#41f86a!important;color:#111!important;font:500 15px/1.3 Stolzl,sans-serif!important;cursor:pointer!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > .cat-item-basket.button-basket:not(.hide):not([hidden]),:is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > .button.button-basket:not(.hide):not([hidden]){background:#111!important;color:white!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > :is(.cat-item-basket,.button) :is(svg,i),
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > .button-one:has(.forest-mobile-cart-label) .button-cart-text,
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > :is(.cat-item-basket,.button)::before,
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > :is(.cat-item-basket,.button)::after {display:none!important;content:none!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart :is(.cat-item-basket-text,.forest-mobile-cart-label,.button-basket .button-cart-text) {
      display:inline!important;font:inherit!important;color:inherit!important;
    }
    /* В прежней разметке поиска фото, название и цена имеют другие имена классов. */
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb:has(> .image) {
      grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:12px!important;
      padding:0 0 14px!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb > .image,
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb > .image > a {
      grid-column:1!important;grid-row:1!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb > .image {border-radius:20px!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-details .name,
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-details .price {
      grid-column:1!important;grid-row:2!important;margin:4px 16px 0!important;max-height:none!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-details .price {grid-row:3!important;margin-top:0!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb:has(> .cat-item-image) .cat-item-price {
      align-items:flex-start!important;text-align:left!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-package {align-self:flex-start!important}
  }
}
@layer previewPurchase {
  @media(max-width:767px) {
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price {
      display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:flex-start!important;gap:4px 8px!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-new,
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-old {
      width:auto!important;flex:0 0 auto!important;align-items:center!important;margin:0!important;
    }
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-value {font:500 17px/1.3 Stolzl,sans-serif!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-old {gap:5px!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) :is(.cat-item-price-old-value,.cat-item-price-percent) {font-size:12px!important;line-height:18px!important}
    :is(html.iforest-catalog-listing .main-products, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-package {order:1!important;flex-basis:100%!important;margin:0!important;font-size:13px!important}
  }
}
/* Мобильная плитка каталога. Скидка и состояние корзины задаются данными Битрикса. */
@layer previewPurchase {
  @media (max-width:767px) {
    html.iforest-catalog-listing .cat-sub #content .main-products.product-grid {
      width:calc(100% + 24px)!important;max-width:none!important;margin-inline:-12px!important;row-gap:16px!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb.product-thumb-section {
      --floor-ink:#212630;--floor-mute:#6d7481;
      box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;
      gap:0!important;padding:clamp(14px,4vw,20px) clamp(14px,4vw,20px) 25px!important;background:white!important;
      border:1px solid #e8e3da!important;border-radius:26px!important;box-shadow:0 6px 16px rgba(65,49,20,.075)!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb-section > :is(.cat-item-image,.image) {
      position:relative!important;grid-area:1 / 1!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;
      aspect-ratio:1.38!important;overflow:hidden!important;padding:0!important;margin:0!important;border-radius:17px!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb-section > :is(.cat-item-image,.image) > .has-second-image,
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb-section .has-second-image img.first-image {
      width:100%!important;height:100%!important;max-height:none!important;display:block!important;aspect-ratio:auto!important;
      border-radius:0!important;object-fit:cover!important;object-position:center!important;opacity:1!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__labels {top:10px!important;left:10px!important;right:auto!important;max-width:calc(100% - 20px)!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-labels {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-labels .label {
      display:inline-flex!important;max-width:100%!important;width:max-content!important;margin:0!important;padding:5px 12px!important;border-radius:24px!important;
      background:#272929!important;color:#45f173!important;font:500 10px/1.3 Stolzl,sans-serif!important;white-space:normal!important;text-align:left!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-labels .label-inverted {background:#148844!important;color:white!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons {
      position:absolute!important;inset:auto 6px 6px auto!important;display:flex!important;flex-direction:row!important;gap:5px!important;width:auto!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons :is(.wishlist,.compare,a,svg) {width:35px!important;height:35px!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons a:not(.izbr-active):not(.sr-active) svg > rect {fill:#fff!important;fill-opacity:.96!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons a:not(.izbr-active):not(.sr-active) path {stroke:#353d46!important;stroke-width:1.6!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons .compare a {position:relative!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons .compare svg path {visibility:hidden!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons a .floor-adjust-symbol {display:block!important;color:#353d46!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons a .floor-adjust-symbol :is(rect,circle) {fill:currentColor!important;fill-opacity:1!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-image__icons a.sr-active .floor-adjust-symbol {color:white!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb-section :is(.cat-item-info__link,.product-details .name) {
      grid-area:2 / 1!important;display:block!important;margin:16px 0 0!important;padding:0!important;min-height:0!important;max-height:none!important;
      white-space:normal!important;color:var(--floor-ink)!important;font:400 15px/1.45 Stolzl,sans-serif!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .forest-card-model {display:block;font-weight:600;margin-top:3px}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb-section :is(.cat-item-price,.product-details .price) {
      grid-area:3 / 1!important;margin:21px 0 0!important;padding:0 0 10px!important;border-bottom:1px solid #e8e3da!important;
      color:var(--floor-ink)!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-value,
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-details .price {font:600 clamp(21px,5.7vw,25px)/1.2 Stolzl,sans-serif!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price:has(.cat-item-price-old) .cat-item-price-value,
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-details .price-new {color:#c92131!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-price-package {color:var(--floor-mute)!important;margin:11px 0 0!important;font:400 12px/1.45 Stolzl,sans-serif!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb-section .button-group {grid-area:4 / 1!important;margin:16px 0 0!important}
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > :is(.cat-item-basket,.button):not(.hide):not([hidden]) {
      color:#fff!important;font:600 16px/1.3 Stolzl,sans-serif!important;min-height:48px!important;border-radius:30px!important;
      background:linear-gradient(105deg,#13af50,#10873c)!important;box-shadow:0 4px 9px rgba(14,145,62,.17)!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart > .button-basket:not(.hide):not([hidden]) {
      background:#111!important;color:white!important;box-shadow:none!important;
    }
    :is(html.iforest-catalog-listing #content .product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cart :is(.js-button-one,.button-one) .forest-mobile-cart-label::before {
      content:"";display:inline-block;width:19px;height:19px;margin-right:8px;vertical-align:-3px;background:currentColor;
      mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h3l3.2 12.5h11.3L22 7H6' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='20' r='2'/%3E%3Ccircle cx='18' cy='20' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
    }
  }
}
/* Плитки разделов каталога. Табличный вид и мобильная сетка используют свои шаблоны. */
@layer previewPurchase {
  @media (min-width:768px) {
    :is(html.iforest-catalog-listing #content .main-products.product-grid, .iforest-home-products, .forest-card-rail, .iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .product-thumb-section:has(> .cat-item-image) {
      --tile-ink:#212630;
      box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
      width:100%!important;height:100%!important;min-width:0!important;
      padding:clamp(12px,1.15vw,18px)!important;margin:0!important;gap:0!important;
      background:#fff!important;border:1px solid #e8e3da!important;border-radius:24px!important;
      box-shadow:0 6px 16px rgba(65,49,20,.075)!important;
      & > .cat-item-image {
        position:relative!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;
        aspect-ratio:1.38!important;border-radius:16px!important;overflow:hidden!important;margin:0!important;
      }
      & .has-second-image, & .has-second-image img.first-image {
        display:block!important;width:100%!important;height:100%!important;max-height:none!important;
        object-fit:cover!important;object-position:center!important;border-radius:0!important;
      }
      & .cat-item-image__labels {inset:10px auto auto 10px!important;max-width:calc(100% - 20px)!important}
      & .cat-item-labels {display:flex!important;flex-flow:column nowrap!important;align-items:flex-start!important;gap:5px!important}
      & .cat-item-labels .label {
        width:max-content!important;max-width:100%!important;padding:5px 12px!important;margin:0!important;border-radius:24px!important;
        background:#272929!important;color:#45f173!important;font:500 11px/1.3 Stolzl,sans-serif!important;
      }
      & .cat-item-labels .label-inverted {background:#148844!important;color:white!important}
      & .cat-item-image__icons {
        display:flex!important;visibility:visible!important;opacity:1!important;position:absolute!important;
        inset:auto 8px 8px auto!important;flex-direction:row!important;gap:6px!important;z-index:3!important;width:auto!important;
      }
      & .cat-item-image__icons :is(.wishlist,.compare,a,svg) {width:35px!important;height:35px!important}
      & .cat-item-image__icons a:not(.izbr-active):not(.sr-active) svg > rect {fill:#fff!important;fill-opacity:.96!important}
      & .cat-item-image__icons a:not(.izbr-active):not(.sr-active) path {stroke:#353d46!important;stroke-width:1.6!important}
      & .cat-item-image__icons .compare svg path {visibility:hidden!important}
      & .cat-item-image__icons .floor-adjust-symbol {display:block!important;color:#353d46}
      & .cat-item-image__icons .floor-adjust-symbol :is(rect,circle) {fill:currentColor!important;fill-opacity:1!important}
      & .cat-item-image__icons a.sr-active .floor-adjust-symbol {color:white!important}
      & .cat-item-info {display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;padding:0!important;margin:0!important}
      /* Краткие характеристики доступны от названия. Наведение на фотографию оставляет видимым рисунок пола. */
      & .cat-item-info .cat-item-info__charact {
        position:absolute!important;inset:auto 0 100% 0!important;z-index:4!important;height:auto!important;max-height:180px!important;overflow:auto!important;
        display:flex!important;visibility:hidden!important;opacity:0!important;transform:none!important;clip-path:none!important;
        padding:10px 12px!important;background:white!important;border:1px solid #e8e3da!important;border-radius:12px!important;
        box-shadow:0 4px 12px #28201818!important;transition:opacity .15s,visibility 0s .16s!important;
      }
      & .cat-item-info:has(.cat-item-info__link:is(:hover,:focus-visible),.cat-item-info__charact:is(:hover,:focus-within)) .cat-item-info__charact {
        visibility:visible!important;opacity:1!important;transition-delay:0s!important;
      }
      & .cat-item-info__link {
        display:block!important;margin:15px 0 17px!important;padding:0!important;min-height:0!important;max-height:none!important;height:auto!important;
        overflow:visible!important;white-space:normal!important;text-align:left!important;
        color:var(--tile-ink)!important;font:400 16px/1.4 Stolzl,sans-serif!important;
      }
      & .forest-card-model {display:block;font-weight:600;margin-top:3px}
      & .cat-item-footer {display:flex!important;flex-direction:column!important;align-items:stretch!important;margin:auto 0 0!important;gap:0!important;padding:0!important}
      & .cat-item-price {
        display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:flex-start!important;
        width:100%!important;min-width:0!important;gap:4px 8px!important;margin:0!important;padding:0 0 11px!important;
        border-bottom:1px solid #e8e3da!important;text-align:left!important;
      }
      & :is(.cat-item-price-new,.cat-item-price-old) {width:auto!important;flex:0 0 auto!important;align-items:center!important;margin:0!important}
      & .cat-item-price-value {color:var(--tile-ink)!important;font:600 clamp(20px,1.55vw,24px)/1.2 Stolzl,sans-serif!important}
      & .cat-item-price:has(.cat-item-price-old) .cat-item-price-value {color:#c92131!important}
      & .cat-item-price-old {gap:5px!important}
      & :is(.cat-item-price-old-value,.cat-item-price-percent) {font-size:12px!important;line-height:18px!important}
      & .cat-item-price-package {order:1!important;flex-basis:100%!important;margin:8px 0 0!important;color:#6d7481!important;font:400 13px/1.4 Stolzl,sans-serif!important}
      & .button-group, & .cart__btns {width:100%!important;max-width:none!important;min-width:0!important;position:static!important;padding:0!important}
      & .button-group {display:block!important;margin:14px 0 0!important}
      & .cart__btns {display:flex!important;margin:0!important}
      & .counter {display:none!important}
      & .cat-item-basket:not(.hide):not([hidden]) {
        display:flex!important;justify-content:center!important;align-items:center!important;box-sizing:border-box!important;
        flex:1 1 100%!important;width:100%!important;min-width:0!important;height:auto!important;min-height:46px!important;margin:0!important;padding:10px 12px!important;
        gap:8px!important;border:0!important;border-radius:26px!important;background:linear-gradient(105deg,#13af50,#10873c)!important;
        color:white!important;font:600 16px/1.3 Stolzl,sans-serif!important;box-shadow:0 4px 9px rgba(14,145,62,.17)!important;cursor:pointer!important;
      }
      & .cat-item-basket.button-basket:not(.hide):not([hidden]) {background:#111!important;color:white!important;box-shadow:none!important}
      & .cat-item-basket.hide {display:none!important}
      & .cat-item-basket :is(.cat-item-basket-text,.forest-mobile-cart-label) {display:inline!important;color:inherit!important;font:inherit!important}
      & .cat-item-basket:not(.button-basket) svg {width:19px!important;height:19px!important}
      & .cat-item-basket:not(.button-basket) svg path {stroke:currentColor!important}
      & .js-button-one:not(.button-basket) svg {display:none!important}
      & .js-button-one .forest-mobile-cart-label::before {
        content:"";display:inline-block;width:19px;height:19px;margin-right:8px;vertical-align:-3px;background:currentColor;
        mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h3l3.2 12.5h11.3L22 7H6' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='20' r='2'/%3E%3Ccircle cx='18' cy='20' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
      }
    }
  }
}

/* Полки сохраняют ширину слайда, которую рассчитывает карусель. */
@layer previewPurchase {
  .forest-card-rail .owl-wrapper {display:flex!important;align-items:stretch}
  .forest-card-rail .owl-item {flex:none;min-width:0}
  .forest-card-rail .owl-item > .main-products-item {display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:4px 6px 12px!important;box-sizing:border-box}
  :is(.iforest-home-products,.forest-card-rail,.iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-info__charact:empty {display:none!important}
  :is(.iforest-home-products,.forest-card-rail,.iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-info {position:relative}
  @media(max-width:767px) {
    :is(.iforest-home-products,.forest-card-rail,.iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) :is(.cat-item-info,.cat-item-footer) {display:contents!important}
    :is(.iforest-home-products,.forest-card-rail,.iforest-wishlist-grid:not(.iforest-wishlist-grid--table)) .cat-item-info__charact {display:none!important}
  }
}

/* Старые проценты ширины у элемента повторно сужали его внутри колонки CSS Grid. */
@layer previewPurchase {
  #content .forest-results-grid {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr))!important;gap:14px!important}
  #content .forest-results-grid::before, #content .forest-results-grid::after {display:none!important}
  #content .forest-results-grid > .main-products-item {box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important}
  @media(max-width:767px) {
    #content .forest-results-grid {grid-template-columns:minmax(0,1fr)!important}
  }
}
