/* «Хиты продаж» (home, product page) and «Коллекция» (product page): the catalog's «Карточки» look
   (catalog-variants.css .lfc-c2) without its icons and «В корзину» bar. The category sliders (.cat-slider)
   keep their own pictures and share only the arrows */

/* every card the full width of its carousel cell (the theme centred them at their own text's width) */
.owl-carousel.slider:not(.cat-slider) .slide { align-items: stretch !important; justify-content: flex-start !important; width: 100% !important; height: 100%; margin: 0 !important; padding: 0 7px; }
/* the cards of a row are equally tall, their content starts at the top */
.owl-carousel.slider:not(.cat-slider) .owl-stage { display: flex; margin: 0 auto; }  /* a short carousel («Коллекция» of 2–3) sits in the middle */
.owl-carousel.slider:not(.cat-slider) .owl-item { display: flex; }
/* one width for every card (the cell's, at most 260px), centred in a wider cell */
.owl-carousel.slider:not(.cat-slider) .slide .category_item {
    flex: 1 0 auto; justify-content: flex-start !important;
    width: 100%; max-width: 260px !important; margin-left: auto; margin-right: auto;
}
.owl-carousel.slider:not(.cat-slider) .slide .category_item {
    --ink: #111; --muted: #6b6b6b; --line: #e9e6e1;
    display: flex; flex-direction: column; align-items: stretch; min-width: 0 !important; margin-bottom: 1em; padding: 18px 18px 22px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: none; text-align: center; overflow: hidden;
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
    transition: box-shadow .25s, border-color .25s;
}
.owl-carousel.slider:not(.cat-slider) .slide .category_item:hover { border-color: #d8d2c8; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.owl-carousel.slider:not(.cat-slider) .slide .category_item a { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; }
/* the photo: a square the width of the card, whatever the photo's own width */
.owl-carousel.slider:not(.cat-slider) .slide .category_item a .thumb {
    display: flex; align-items: center; justify-content: center; width: 100%; height: auto !important; aspect-ratio: 1;
    margin: 0; overflow: hidden; background: none;
}
.owl-carousel.slider:not(.cat-slider) .slide .category_item a .thumb img {
    width: auto !important; max-width: 78% !important; max-height: 78% !important; object-fit: contain; mix-blend-mode: multiply;
    transition: transform .4s ease;
}
.owl-carousel.slider:not(.cat-slider) .slide .category_item:hover a .thumb img { transform: scale(1.05); }
.owl-carousel.slider:not(.cat-slider) .slide .category_item a .brands {
    margin: 12px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.owl-carousel.slider:not(.cat-slider) .slide .category_item a .name { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.owl-carousel.slider:not(.cat-slider) .slide .category_item a .price { margin: 8px 0 0; font-size: 16px; color: var(--ink); }
.owl-carousel.slider:not(.cat-slider) .slide .category_item a .price * { font-size: inherit; }
.owl-carousel.slider:not(.cat-slider) .slide .category_item .card-discount { top: 16px; left: 16px; width: 38px; height: 38px; }

/* the arrows: round buttons with a thin border and a drawn chevron (the theme's next.png / prev.png are hidden) */
/* at the card's middle: the carousel is the card plus its 1em (13px) margin below; the theme's own nudges down
   (owl.theme 10px, «.roww» 40px on phones) are dropped */
.owl-carousel.slider:not(.cat-slider) .owl-nav { top: calc(50% - 6.5px); height: 0; margin-top: 0 !important; }
.owl-carousel.slider .owl-nav button.owl-prev,
.owl-carousel.slider .owl-nav button.owl-next {
    position: absolute; top: 0; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: -22px 0 0; padding: 0 !important;
    border: 1px solid #e9e6e1 !important; border-radius: 50%; background: #fff !important; color: #111;
    box-shadow: 0 6px 18px rgba(0,0,0,.06); cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.owl-carousel.slider .owl-nav button.owl-prev { left: -64px; right: auto; }
.owl-carousel.slider .owl-nav button.owl-next { right: -64px; left: auto; }
.owl-carousel.slider .owl-nav button img { display: none; }
.owl-carousel.slider .owl-nav button::before {
    content: ''; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
}
.owl-carousel.slider .owl-nav button.owl-next::before { transform: translateX(-2px) rotate(45deg); }
.owl-carousel.slider .owl-nav button.owl-prev::before { transform: translateX(2px) rotate(-135deg); }
.owl-carousel.slider .owl-nav button:hover { background: #111 !important; border-color: #111 !important; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.owl-carousel.slider .owl-nav button:focus { outline: none; }
.owl-carousel.slider .owl-nav button:focus-visible { box-shadow: 0 0 0 3px rgba(17,17,17,.15); }
.owl-carousel.slider .owl-nav button.disabled { opacity: .35; cursor: default; }

@media (max-width: 767px) {
    .owl-carousel.slider:not(.cat-slider) .slide .category_item { padding: 12px 12px 16px; }
    .owl-carousel.slider:not(.cat-slider) .slide .category_item a .brands { font-size: 11px; }
    .owl-carousel.slider:not(.cat-slider) .slide .category_item a .name { font-size: 14px; }
    .owl-carousel.slider:not(.cat-slider) .slide .category_item a .price { font-size: 15px; }
    .owl-carousel.slider .owl-nav button.owl-prev, .owl-carousel.slider .owl-nav button.owl-next { width: 34px; height: 34px; margin-top: -17px; }
    .owl-carousel.slider .owl-nav button.owl-prev { left: -20px; }
    .owl-carousel.slider .owl-nav button.owl-next { right: -20px; }
    .owl-carousel.slider .owl-nav button::before { width: 7px; height: 7px; }
}

/* the category sliders on the home page (.cat-slider: «Женщинам», «Мужчинам»…): the same round arrows, at the middle of
   their row of category pictures */
.owl-carousel.slider.cat-slider .owl-nav { top: 50%; height: 0; margin-top: 0 !important; }
