/* The product photo gallery's dots (partials/product/images), chosen 2026-11-30 from three looks each (the others:
   backups/product-dots-3-variants-2026-11-30.tar.gz): «Точки» — small grey dots, the current one a black pill — and
   the video's dot as a «▶ ВИДЕО» pill (the last slide is a Rutube video; .dot-video is set in pages/product.htm).
   The theme's rules (desktop.css / style_main.css «.product_thumb .owl-dots») have !important, hence the !important. */

.lfdots .owl-dots { gap: 10px; margin-top: 24px; }
.lfdots .owl-dots .owl-dot span { display: none; }
.lfdots .owl-dots .owl-dot:focus-visible { outline: 2px solid #b08d57; outline-offset: 3px; }

/* the photos' dots */
.lfdots .owl-dots .owl-dot:not(.dot-video) {
    width: 8px; height: 8px; margin-right: 0 !important; border: 0 !important; border-radius: 4px !important; background: #d6d2cb;
    transition: background-color .25s, width .25s;
}
.lfdots .owl-dots .owl-dot:not(.dot-video):hover { background: #8c8c8c; }
.lfdots .owl-dots .owl-dot.active:not(.dot-video) { width: 24px; background: #111; }

/* the video's dot: a small pill with a triangle and the word; black when the video is on */
.lfdots .owl-dots .owl-dot.dot-video {
    display: inline-flex !important; align-items: center; width: auto !important; height: 24px !important;
    margin: 0 0 0 4px !important; padding: 0 10px 0 22px !important;
    border: 1px solid #111 !important; border-radius: 12px !important; background-color: #fff !important;
    background-position: 8px center !important; background-repeat: no-repeat !important; background-size: 10px 10px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 0l9 5-9 5z' fill='%23111'/%3E%3C/svg%3E") !important;
    transition: border-color .2s, background-color .2s;
}
.lfdots .owl-dots .owl-dot.dot-video::after {
    content: 'Видео'; font-family: 'CenturyGothic', Arial, sans-serif; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
    color: #111; line-height: 1;
}
.lfdots .owl-dots .owl-dot.dot-video:hover { border-color: #b08d57 !important; }
.lfdots .owl-dots .owl-dot.dot-video.active {
    background-color: #111 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 0l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") !important;
}
.lfdots .owl-dots .owl-dot.dot-video.active::after { color: #fff; }

/* Before the carousel starts (owl.carousel.css has its «display: none» commented out, so all the photos stood in a
   column over the page): the first photo only, in its square, and the room for the dots — nothing moves when it starts */
.lfdots .owl-carousel:not(.owl-loaded) { padding-bottom: var(--lf-dots-h, 0px) !important; }   /* the theme: «#mall-add-to-cart .product_thumb { padding: 0 }» */
.lfdots .owl-carousel:not(.owl-loaded) > * + * { display: none; }
/* the first photo sized as the carousel will size it («.owl-carousel .owl-item img»: owl.carousel(.mob).css, desktop.css) */
.lfdots .owl-carousel:not(.owl-loaded) > img:first-child { display: block; width: 100%; object-fit: contain; }
@media (max-width: 767px) {
    .lfdots .owl-carousel:not(.owl-loaded) > img:first-child { height: auto; max-height: 300px; }
    /* the photos have width/height (2026-11-30): their height follows the width, as before */
    .lfdots .owl-carousel .owl-item img { height: auto; }
}
@media (min-width: 768px) {
    .lfdots .owl-carousel:not(.owl-loaded) > img:first-child { height: 450px; max-height: 450px; }
}
@media (min-width: 768px) and (max-width: 900px) {
    .lfdots .owl-carousel:not(.owl-loaded) > img:first-child { height: 350px; max-height: 350px; }
}

@media (prefers-reduced-motion: reduce) {
    .lfdots .owl-dots .owl-dot { transition: none !important; }
}
