/* Comparison owns its card geometry independently of catalog grid/list cards. */
.cmp-wrap { --cmp-card-height: 0px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; margin-bottom: 80px; }
.cmp-side, .cmp-content { width: 100%; max-width: none; min-width: 0; padding: 0; }
.cmp-content { position: relative; }
.cmp-cat { display: block; width: 100%; border: 0; border-radius: 10px; padding: 5px 10px; margin-bottom: 10px; background: transparent; color: #232323; text-align: left; font: 400 16px/24px Roboto, sans-serif; cursor: pointer; }
.cmp-cat:is(.active,:hover) { background: rgb(0 0 0 / 3%); }
.cmp-diff { display: flex; align-items: center; gap: 6px; margin: 12px 0; font: 400 15px/24px Roboto, sans-serif; }
.cmp-diff svg { display: none; }
.cmp-clear { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; color: #868686; font: 400 15px/24px Roboto, sans-serif; cursor: pointer; }
.cmp-clear img { width: 20px; height: 20px; }
.cmp-clear:hover { color: #232323; }
.cmp-side-menu-block { height: var(--cmp-card-height); }
.cmp-swiper { width: 100%; margin: 0; padding: 0; overflow: hidden; }
.cmp-swiper .swiper-slide { height: auto; display: flex; flex-direction: column; }
.cmp-col .gambit-product-item { position: relative; display: flex; flex-direction: column; min-height: var(--cmp-card-height); width: 100%; max-width: none; height: auto; margin: 0; padding: 0; }
.cmp-col .gambit-product-item-img { width: 100%; height: auto; aspect-ratio: 3 / 4; margin: 0 0 20px; }
.cmp-col .gambit-product-item-img a, .cmp-col .gambit-product-item-img img { display: block; width: 100%; height: 100%; max-height: none; }
.cmp-col .gambit-product-item-img img { object-fit: contain; }
.cmp-col .gambit-product-item-data-wrap { display: flex; flex: 1; flex-direction: column; min-width: 0; width: 100%; }
.cmp-col .gambit-product-item-title { margin: 0 0 20px; }
.cmp-col .gambit-product-item-title a { color: #232323; font: 500 16px/24px Roboto, sans-serif; text-decoration: none; overflow-wrap: anywhere; }
.cmp-col .gambit-product-item-info { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 8px; width: 100%; margin-top: auto; }
.cmp-col .gambit-product-item-prices { display: flex; flex: 0 0 auto; flex-direction: column; gap: 2px; width: auto; min-width: 0; margin: 0; }
.cmp-col .gambit-product-item-oldprice { position: static; inset: auto; transform: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: auto; margin: 0; color: #868686; font: 400 13px/18px Roboto, sans-serif; }
.cmp-col .gambit-product-item-oldprice > span:first-child { white-space: nowrap; text-decoration: line-through; }
.cmp-col .discount { flex: 0 0 auto; padding: 4px 6px; border-radius: 5px; background: #ff1e1e; color: #fff; font: 700 13px/18px Roboto, sans-serif; text-decoration: none; }
.cmp-col .gambit-product-item-newprice { margin: 0; color: #232323; white-space: nowrap; font: 600 20px/24px Roboto, sans-serif; }
.cmp-col .gambit-product-item-buttons { margin: 0; }
.cmp-col .gambit-product-item-buttons .addtocart { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; margin: 0; border: 1px solid #cdd5cf; border-radius: 8px; padding: 7px 15px; background: #fff; color: #303b33; white-space: nowrap; font: 500 14px/24px Roboto, sans-serif; box-sizing: border-box; }
.cmp-col .addtocart:is(:hover,:focus-visible) { border-color: #91b59b; background: #f1f7f3; color: #2d6943; }
.cmp-rm { position: absolute; top: 0; right: 0; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #dbdbdb; border-radius: 50%; background: #fff; color: #232323; padding: 3px; cursor: pointer; }
.cmp-rm:is(:hover,:focus-visible) { background: #fff; border-color: #04af53; color: #04af53; }
.cmp-rm svg { width: 24px; height: 24px; }
.cmp-col .empty-cell { display: none; }
.cmp-names { display: flex; flex-direction: column; }
.cmp-group, .cmp-cell-group { display: flow-root; margin: 32px 0 0; }
.cmp-wrap [data-rid][hidden], .cmp-wrap [data-cmp-group][hidden] { display: none; }
.cmp-group-title, .cmp-cell-group::before { display: block; min-height: var(--cmp-heading-height, 24px); margin: 0 0 16px; color: #232323; font: 600 20px/24px Roboto, sans-serif; }
.cmp-cell-group::before { content: ''; }
.cmp-row-name, .cmp-cell { box-sizing: border-box; min-height: 44px; padding: 10px 5px; font: 400 16px/24px Roboto, sans-serif; }
.cmp-row-name { color: #868686; }
.cmp-cell { color: #232323; overflow-wrap: anywhere; }
.cmp-cell.rating-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.cmp-cell .rv-cnt { margin-left: 3px; color: #868686; font: 400 15px/24px Roboto, sans-serif; }
.cmp-cell:hover, .cmp-row-name:hover { background: rgb(0 0 0 / 3%); }
.cmp-prev, .cmp-next { position: absolute; top: 180px; z-index: 3; width: 40px; height: 40px; border: 1px solid #dbdbdb; border-radius: 50%; background: #fff; color: #232323; font-size: 26px; cursor: pointer; }
.cmp-prev { left: 0; }.cmp-next { right: 0; }
.cmp-swiper .swiper-button-lock, .cmp-swiper .swiper-button-disabled { display: none; }
.cmp-wrap :is(a,button,input):focus-visible { outline: 2px solid #087d3c; outline-offset: 3px; }
@media (max-width: 1023px) {
 .cmp-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; }
 .cmp-side-menu-block { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; height: auto; }
 .cmp-side-cats { display: flex; width: 100%; overflow-x: auto; gap: 8px; }
 .cmp-cat { width: auto; flex: 0 0 auto; margin: 0; }
 .cmp-side .cmp-names { display: none; }
 .cmp-col .gambit-product-item-info { align-items: flex-start; }
 .cmp-cell-group::before { content: attr(data-label); font-size: 18px; }
 .cmp-cell::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #868686; font-size: 14px; line-height: 20px; }
 .cmp-cell.rating-cell::before { flex: 0 0 100%; }
 .cmp-prev, .cmp-next { top: 100px; }
}
@media (max-width: 479px) {
 .cmp-col .gambit-product-item-title a { font-size: 15px; line-height: 20px; }
 .cmp-col .gambit-product-item-oldprice { gap: 4px; font-size: 12px; }
 .cmp-col .discount { padding: 2px 4px; font-size: 11px; }
 .cmp-col .gambit-product-item-newprice { font-size: 18px; }
 .cmp-col .gambit-product-item-buttons .addtocart { width: 44px; padding: 8px; }
 .cmp-col .addtocart span { display: none; }
 .cmp-cell-group::before { font-size: 16px; }
}
