/* MyLatso storefront v2 — 2026-11-15. Native cart, SKU and checkout are unchanged. */
.ml-storefront-v2 {
  --ml-ink: #18252f;
  --ml-muted: #526471;
  --ml-blue: #0878bf;
  --ml-line: #d9e3e9;
  width: 100%;
  color: var(--ml-ink);
}
.ml-storefront-v2 *, .ml-storefront-v2 *::before, .ml-storefront-v2 *::after { box-sizing: border-box; }
.ml-v2-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ml-v2-hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; align-items: center; margin-top: 32px; padding: 42px; border: 1px solid var(--ml-line); border-radius: 24px; background: #eef6fb; }
.ml-v2-eyebrow { color: #38637e; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ml-v2-hero h1 { margin: 16px 0 20px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; color: var(--ml-ink); }
.ml-v2-hero p { max-width: 480px; margin: 0 0 24px; color: var(--ml-muted); font-size: 16px; line-height: 1.6; }
.ml-v2-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border: 1px solid var(--ml-blue); border-radius: 10px; background: var(--ml-blue); color: #fff !important; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none !important; }
.ml-v2-action:hover { background: #055d95; border-color: #055d95; }
.ml-storefront-v2 a:focus-visible, .ml-storefront-v2 button:focus-visible { outline: 3px solid #d38a00; outline-offset: 4px; }
.ml-v2-hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; min-width: 0; }
.ml-v2-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.ml-v2-hero-media img:last-child { margin-top: 28px; }
.ml-v2-section { margin-top: 44px; margin-bottom: 44px; scroll-margin-top: 120px; }
.ml-v2-section h2 { margin: 0 0 8px; color: var(--ml-ink); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.ml-v2-section-intro { margin: 0 0 24px; color: var(--ml-muted); line-height: 1.5; }
.ml-v2-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ml-v2-category { display: block; overflow: hidden; min-width: 0; border: 1px solid var(--ml-line); border-radius: 16px; background: #fff; color: var(--ml-ink); text-decoration: none !important; }
.ml-v2-category:hover { border-color: var(--ml-blue); color: var(--ml-blue); }
.ml-v2-category img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.ml-v2-category span { display: block; padding: 15px 16px; font-weight: 700; line-height: 1.4; }
.ml-v2-catalog-link { display: inline-block; margin-top: 18px; color: #075d91; font-weight: 700; text-underline-offset: 4px; }
.ml-v2-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; margin-bottom: 36px; }
.ml-v2-fact { min-width: 0; padding: 20px; border: 1px solid var(--ml-line); border-radius: 14px; line-height: 1.5; }
.ml-v2-fact strong { display: block; margin-bottom: 5px; color: var(--ml-ink); font-size: 16px; }
.ml-v2-fact span { color: var(--ml-muted); font-size: 14px; }
.ml-v2-native { margin-top: 20px; margin-bottom: 32px; }
.ml-v2-native .blocks__item { padding-top: 24px; padding-bottom: 24px; background: transparent; border: 0; }
.ml-v2-native .blocks__title { color: var(--ml-ink); font-size: 30px; line-height: 1.25; }
.ml-v2-native .blocks__description { max-width: 720px; color: var(--ml-muted); line-height: 1.5; }
.ml-v2-help { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 32px; border-radius: 20px; background: #153143; color: #fff; }
.ml-v2-help h2 { color: #fff; }
.ml-v2-help p { margin: 10px 0 0; color: #d3e0e9; line-height: 1.6; }
.ml-v2-help .ml-v2-action { flex-shrink: 0; background: #fff; border-color: #fff; color: #153143 !important; }
main.product #js-product-form .product-cart { border: 1px solid #d9e3e9; border-radius: 18px; box-shadow: none; background: #fff; }
main.product .ml-delivery-note { width: 100%; margin: 10px 0 0; padding: 18px; border: 1px solid #c9deed; border-radius: 12px; background: #f3f8fc; color: #29465a; font-size: 14px; line-height: 1.6; }
main.product .ml-delivery-note strong { display: block; margin-bottom: 4px; color: #18252f; font-size: 16px; }
main.product .ml-delivery-note a { display: inline-block; margin-top: 8px; color: #075d91; text-decoration: underline; text-underline-offset: 3px; }
main.product .ml-product-layout > .ml-buy-again { border-color: #d9e3e9; background: #eef6fb; }
@media (max-width: 900px) {
  .ml-v2-hero { gap: 24px; padding: 28px; }
  .ml-v2-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ml-v2-wrap { width: calc(100% - 32px); }
  .ml-v2-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; padding: 24px; }
  .ml-v2-hero h1 { font-size: 34px; }
  .ml-v2-hero p { font-size: 15px; }
  .ml-v2-hero-media img { aspect-ratio: 1.15; }
  .ml-v2-hero-media img:last-child { margin-top: 12px; }
  .ml-v2-section { margin-top: 32px; margin-bottom: 32px; }
  .ml-v2-section h2, .ml-v2-native .blocks__title { font-size: 25px; }
  .ml-v2-section-intro { margin-bottom: 18px; font-size: 14px; }
  .ml-v2-categories { gap: 10px; }
  .ml-v2-category img { aspect-ratio: 1.35; }
  .ml-v2-category span { padding: 12px; font-size: 14px; }
  .ml-v2-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; margin-bottom: 24px; }
  .ml-v2-fact { padding: 16px; }
  .ml-v2-fact strong { display: inline; margin-right: 6px; }
  .ml-v2-help { display: block; padding: 24px; }
  .ml-v2-help .ml-v2-action { display: flex; margin-top: 20px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-storefront-v2 * { scroll-behavior: auto !important; }
}

/* MyLatso dark-theme contrast repair — 2026-11-16.
   Scoped to the active theme; no layout, cart or payment logic changes. */
html[data-up-theme="dark"] { color-scheme: dark; }
html[data-up-theme="light"] { color-scheme: light; }
html[data-up-theme="dark"] .ml-storefront-v2 {
  --ml-ink: #f0f4f8;
  --ml-muted: #b9c8d4;
  --ml-blue: #176da5;
  --ml-line: #455766;
}
html[data-up-theme="dark"] .ml-v2-hero { background: #182c3a; }
html[data-up-theme="dark"] .ml-v2-eyebrow { color: #a8d8fa; }
html[data-up-theme="dark"] .ml-v2-category {
  background: #25343f;
  color: var(--ml-ink);
}
html[data-up-theme="dark"] .ml-v2-category:hover {
  border-color: #8fd1ff;
  color: #c8e9ff;
}
html[data-up-theme="dark"] .ml-v2-catalog-link { color: #8fd1ff; }
html[data-up-theme="dark"] .ml-v2-catalog-link:hover { color: #c8e9ff; }
html[data-up-theme="dark"] .ml-v2-fact { background: #252e36; }
html[data-up-theme="dark"] main.product #js-product-form .product-cart {
  background: #25343f;
  border-color: #455766;
  color: #f0f4f8;
}
html[data-up-theme="dark"] .product-cart__order-by-phone a { color: #c8e9ff; }
html[data-up-theme="dark"] main.product .ml-product-layout > .ml-buy-again {
  background: #182c3a;
  border-color: #455766;
  color: #f0f4f8;
}
html[data-up-theme="dark"] .ml-buy-again__name,
html[data-up-theme="dark"] .ml-buy-again__price { color: #f0f4f8; }
html[data-up-theme="dark"] main.product .ml-delivery-note {
  background: #182c3a;
  border-color: #455766;
  color: #b9c8d4;
}
html[data-up-theme="dark"] main.product .ml-delivery-note strong { color: #f0f4f8; }
html[data-up-theme="dark"] main.product .ml-delivery-note a { color: #a8d8fa; }
html[data-up-theme="dark"] .products__skus,
html[data-up-theme="dark"] .products__sku,
html[data-up-theme="dark"] .pr-top__skus,
html[data-up-theme="dark"] .breadcrumbs__link,
html[data-up-theme="dark"] .up-checkout-order__contact-text.gray,
html[data-up-theme="dark"] footer .gray,
html[data-up-theme="dark"] footer a { color: #b9c8d4; }
html[data-up-theme="dark"] .wa-form .wa-field .wa-name { color: #b9c8d4; }
html[data-up-theme="dark"] .wa-form input::placeholder,
html[data-up-theme="dark"] .wa-order-form-wrapper input::placeholder,
html[data-up-theme="dark"] .wa-order-cart-wrapper input::placeholder { color: #b9c8d4; opacity: 1; }
html[data-up-theme="dark"] input.wa-checkbox[name="auth[service_agreement]"]:not(:checked) {
  border-color: #a5b4c0;
}
html[data-up-theme="dark"] .btn-theme,
html[data-up-theme="dark"] .button-catalog__btn {
  --up-btn-bg: #176da5;
  --up-btn-bg-hover: #115781;
  --up-btn-bg-active: #0e496f;
  background-color: #176da5;
  color: #fff;
}
html[data-up-theme="dark"] .btn-theme:hover:not(:disabled):not(.up-preloader),
html[data-up-theme="dark"] .button-catalog__btn:hover:not(:disabled):not(.up-preloader) {
  background-color: #115781;
  color: #fff;
}
html[data-up-theme="dark"] :is(.btn-theme, .button-catalog__btn):focus-visible {
  outline: 3px solid #a8d8fa;
  outline-offset: 3px;
}
/* Native checkout/auth buttons have their own stronger stylesheet rules. */
html[data-up-theme="dark"] :is(.js-use-coupon, .js-submit-order-button, input.wa-login-submit):not(:disabled):not(.up-preloader) {
  background-color: #176da5 !important;
  color: #fff !important;
}
html[data-up-theme="dark"] :is(.js-use-coupon, .js-submit-order-button, input.wa-login-submit):hover:not(:disabled):not(.up-preloader) {
  background-color: #115781 !important;
  color: #fff !important;
}
html[data-up-theme="dark"] :is(.js-use-coupon, .js-submit-order-button, input.wa-login-submit):active:not(:disabled):not(.up-preloader) {
  background-color: #0e496f !important;
}
html[data-up-theme="dark"] :is(.js-use-coupon, .js-submit-order-button, input.wa-login-submit):focus-visible {
  outline: 3px solid #a8d8fa !important;
  outline-offset: 3px !important;
}


/* MyLatso desktop header: use the existing compact panel, never a second clone. */
@media (min-width: 1180px) {
  .header-fix.js-header-fix.mylatso-desktop-pinned {
    opacity: 1;
    overflow: visible;
    visibility: visible;
    z-index: 100;
  }
}


/* Keep the original row from showing behind the pinned compact navigation. */
@media (min-width: 1180px) {
  body:has(> .header-fix.mylatso-desktop-pinned) > header.header {
    visibility: hidden;
  }
}

/* MyLatso Lynk900 mobile gallery dots */
@media(max-width:767px){
    form#js-product-form:has(.pr-images__swiper a[href*="/products/21/38/53821/images/"]) .pr-images__wrap{margin-bottom:56px;}
    form#js-product-form:has(.pr-images__swiper a[href*="/products/21/38/53821/images/"]) .pr-images__wrap>.pr-images__pagin.bottom{
        top:100%;bottom:auto;margin-top:8px;
    }
}

    

/* ===== MyLatso — живые отзывы с Wildberries ===== */
.ml-wb-reviews{max-width:var(--up-wrap-width,1200px);margin:24px auto 48px;padding:24px 16px;background:#ffffff;border-radius:16px;}
.ml-wb-reviews__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 20px;margin-bottom:16px;}
.ml-wb-reviews__head h2{margin:0;font-size:1.4rem;line-height:1.2;}
.ml-wb-reviews__stat{display:flex;align-items:center;gap:8px;}
.ml-wb-stars{color:#d5d5d5;font-size:16px;letter-spacing:2px;white-space:nowrap;}
.ml-wb-star.on{color:#f5a623;}
.ml-wb-reviews__avg{font-size:1.1rem;}
.ml-wb-reviews__count{color:#777;font-size:.92rem;}
.ml-wb-reviews__list,.ml-wb-reviews__hidden{display:flex;flex-direction:column;gap:14px;}
.ml-wb-review{background:#f7f7f7;border-radius:12px;padding:14px 16px;}
.ml-wb-review__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px;}
.ml-wb-review__author{font-weight:600;}
.ml-wb-review__date{color:#999;font-size:.85rem;margin-left:auto;}
.ml-wb-review__text{white-space:pre-line;line-height:1.5;}
.ml-wb-extra{margin-top:6px;font-size:.92rem;color:#555;}
.ml-wb-photos{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap;}
.ml-wb-photo img{width:72px;height:72px;object-fit:cover;border-radius:8px;display:block;}
.ml-wb-more{margin-top:16px;}
@media (max-width:600px){
  .ml-wb-reviews{margin:16px auto 32px;}
  .ml-wb-review__date{margin-left:0;width:100%;}
}

.ml-single-media .ml-wb-reviews{max-width:none;width:100%;margin:12px 0 0;padding:16px;}
