/**
 * VideoKing product gallery and above-the-fold product styling.
 * Loaded after the legacy theme bundle so the customization stays isolated.
 */

body.single-product {
  --vk-brand-primary: #4f63f6;
  --vk-brand-secondary: #c23a8e;
  --vk-brand-gradient: linear-gradient(135deg, #4f63f6 0%, #c23a8e 100%);
  --vk-ink: #151515;
  --vk-muted: #626b78;
  --vk-line: #dde3ec;
  --vk-soft: #f7f8fb;
  --vk-surface: #ffffff;
  --vk-radius-sm: 6px;
  --vk-radius-md: 8px;
  --vk-focus-ring: 0 0 0 3px rgba(79, 99, 246, 0.2);
}

body.single-product .single-product {
  color: var(--vk-ink);
}

body.single-product .single-product .product_title,
body.single-product .single-product .price,
body.single-product .single-product button,
body.single-product .single-product input {
  font-family: inherit;
}

/* Product page widgets mirrored from videoking.cz. */
body.single-product .shop_sidebar .widget {
  margin-bottom: 20px;
}

body.single-product .shop_sidebar .dgwt-wcas-search-wrapp {
  min-width: 0;
  max-width: none;
}

body.single-product .shop_sidebar .dgwt-wcas-sf-wrapp {
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-radius-md);
  background: var(--vk-soft);
}

body.single-product .shop_sidebar .dgwt-wcas-search-input {
  min-height: 46px;
}

body.single-product .vk-product-benefits {
  overflow: hidden;
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-radius-md);
  background: var(--vk-surface);
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.045);
}

body.single-product .vk-product-benefit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--vk-line);
}

body.single-product .vk-product-benefit:last-child {
  border-bottom: 0;
}

body.single-product .vk-product-benefit::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: '';
  background: var(--vk-brand-gradient);
  opacity: 0;
  transition: opacity 180ms ease;
}

body.single-product .vk-product-benefit:hover::before {
  opacity: 1;
}

body.single-product .vk-product-benefit img {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  margin: 0;
  object-fit: contain;
}

body.single-product .vk-product-benefit__copy {
  min-width: 0;
}

body.single-product .vk-product-benefit strong,
body.single-product .vk-product-benefit small {
  display: block;
}

body.single-product .vk-product-benefit strong {
  color: var(--vk-ink);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

body.single-product .vk-product-benefit small {
  margin-top: 3px;
  color: var(--vk-muted);
  font-size: 11px;
  line-height: 1.35;
}

body.single-product .vk-product-promo {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-radius-md);
  background: var(--vk-soft);
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.single-product .vk-product-promo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: '';
  background: var(--vk-brand-gradient);
  opacity: 0;
  transition: opacity 180ms ease;
}

body.single-product .vk-product-promo:hover,
body.single-product .vk-product-promo:focus-visible {
  border-color: var(--vk-brand-primary);
  outline: 0;
  box-shadow: var(--vk-focus-ring), 0 12px 28px rgba(21, 21, 21, 0.1);
  transform: translateY(-2px);
}

body.single-product .vk-product-promo:hover::after,
body.single-product .vk-product-promo:focus-visible::after {
  opacity: 1;
}

body.single-product .vk-product-promo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

body.single-product .single-product-images .images.single-images,
body.single-product .single-product-images .product_images,
body.single-product #product-images-carousel {
  position: relative;
  min-width: 0;
  width: 100%;
}

body.single-product #product-images-carousel {
  overflow: hidden;
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-radius-md);
  background: var(--vk-surface);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.045);
}

body.single-product #product-images-carousel .owl-stage-outer {
  border-radius: inherit;
}

body.single-product #product-images-carousel .owl-item img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--vk-surface);
}

body.single-product .product_summary_thumbnails_wrapper {
  min-width: 0;
}

body.single-product .product_thumbnails {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body.single-product .product_thumbnails .swiper-container,
body.single-product .product_thumbnails .swiper-wrapper {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
}

body.single-product .product_thumbnails .swiper-slide {
  box-sizing: border-box;
  overflow: hidden;
  height: auto !important;
  margin: 0 0 12px;
  padding: 2px !important;
  border: 0;
  border-radius: var(--vk-radius-md);
  background: var(--vk-line);
  box-shadow: none;
  opacity: 1 !important;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.single-product .product_thumbnails .swiper-slide:last-child {
  margin-bottom: 0;
  padding-bottom: 2px !important;
}

body.single-product .product_thumbnails .swiper-slide img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: var(--vk-surface);
  object-fit: contain;
}

body.single-product .product_thumbnails .vk-brand-thumbnail__link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 64px;
  padding: 12px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: var(--vk-surface);
  color: var(--vk-ink);
  text-align: center;
  text-decoration: none;
}

body.single-product .product_thumbnails .swiper-slide.vk-brand-thumbnail img.vk-brand-thumbnail__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

body.single-product .vk-brand-thumbnail__name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--vk-ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.single-product .product_thumbnails .vk-brand-thumbnail__link:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--vk-brand-primary), var(--vk-focus-ring);
}

body.single-product .product_thumbnails .swiper-slide:hover,
body.single-product .product_thumbnails .swiper-slide:focus-visible,
body.single-product .product_thumbnails .swiper-slide.is-vk-active,
body.single-product .product_thumbnails .swiper-slide[aria-current="true"] {
  background: var(--vk-brand-gradient);
}

body.single-product .product_thumbnails .swiper-slide:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(79, 99, 246, 0.13);
}

body.single-product .product_thumbnails .swiper-slide:focus-visible {
  outline: 0;
  box-shadow: var(--vk-focus-ring), 0 8px 22px rgba(194, 58, 142, 0.14);
}

body.single-product .product_thumbnails .swiper-slide.is-vk-active,
body.single-product .product_thumbnails .swiper-slide[aria-current="true"] {
  box-shadow: 0 8px 22px rgba(79, 99, 246, 0.16);
}

body.single-product .vk-gallery-thumb-controls {
  display: none;
}

body.single-product .product_images .product_image_zoom_button {
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--vk-ink);
  box-shadow: 0 5px 16px rgba(21, 21, 21, 0.09);
}

body.single-product .product_images .product_image_zoom_button i {
  line-height: 42px;
}

body.single-product .product_images .product_image_zoom_button:hover,
body.single-product .product_images .product_image_zoom_button:focus-visible {
  border-color: var(--vk-brand-primary);
  background: var(--vk-surface);
  color: var(--vk-brand-primary);
  box-shadow: var(--vk-focus-ring), 0 8px 20px rgba(194, 58, 142, 0.12);
}

body.single-product .product_images #product-images-carousel .owl-nav div.owl-prev,
body.single-product .product_images #product-images-carousel .owl-nav div.owl-next {
  top: 50%;
  width: 38px;
  padding: 12px 0;
  border: 1px solid var(--vk-line);
  border-radius: var(--vk-radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(21, 21, 21, 0.08);
  opacity: 0.84;
  transform: translateY(-50%);
}

body.single-product .product_images #product-images-carousel .owl-nav div.owl-prev {
  left: 14px;
}

body.single-product .product_images #product-images-carousel .owl-nav div.owl-next {
  right: 14px;
}

body.single-product .product_images #product-images-carousel .owl-nav div:hover {
  border-color: var(--vk-brand-primary);
  color: var(--vk-brand-primary);
  box-shadow: var(--vk-focus-ring), 0 8px 20px rgba(194, 58, 142, 0.12);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body.single-product .product_images #product-images-carousel .owl-nav div.owl-prev,
  body.single-product .product_images #product-images-carousel .owl-nav div.owl-next {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  body.single-product .product_images #product-images-carousel:hover .owl-nav div.owl-prev,
  body.single-product .product_images #product-images-carousel:hover .owl-nav div.owl-next,
  body.single-product .product_images #product-images-carousel:focus-within .owl-nav div.owl-prev,
  body.single-product .product_images #product-images-carousel:focus-within .owl-nav div.owl-next {
    visibility: visible;
    opacity: 0.84;
    pointer-events: auto;
  }

  body.single-product .product_images #product-images-carousel:hover .owl-nav div:hover,
  body.single-product .product_images #product-images-carousel:focus-within .owl-nav div:focus {
    opacity: 1;
  }
}

body.single-product .single-product .owl-dots .owl-dot.active span,
body.single-product .single-product .owl-dots .owl-dot:hover span {
  background: var(--vk-brand-gradient);
}

body.single-product .product_infos .vkpe-box,
body.single-product .product_infos [class*="vkpe-"][class*="strip"] {
  border-color: var(--vk-line);
}

body.single-product .product_infos .vkpe-box::before,
body.single-product .product_infos [class*="vkpe-"][class*="strip"]::before {
  background: var(--vk-brand-gradient);
}

body.single-product .product_infos :is(a, button, input, select, [tabindex]):focus-visible {
  outline: 0;
  box-shadow: var(--vk-focus-ring);
}

body.single-product .product_infos form.cart {
  border-color: var(--vk-line);
  border-radius: var(--vk-radius-md);
  background: var(--vk-surface);
}

body.single-product .product_infos form.cart .quantity input:focus {
  border-color: var(--vk-brand-primary);
  box-shadow: inset 3px 0 0 var(--vk-brand-secondary), var(--vk-focus-ring);
}

body.single-product .product_infos form.cart .single_add_to_cart_button {
  border: 1px solid var(--vk-ink);
  background: var(--vk-ink);
  color: #fff;
  box-shadow: none;
}

body.single-product .product_infos form.cart .single_add_to_cart_button:hover,
body.single-product .product_infos form.cart .single_add_to_cart_button:focus-visible {
  border-color: var(--vk-brand-primary);
  background: var(--vk-ink);
  box-shadow: var(--vk-focus-ring), 0 9px 22px rgba(21, 21, 21, 0.15);
  transform: translateY(-1px);
}

@media only screen and (min-width: 991px) {
  body.single-product .single-product.with-sidebar .content-pos > .single-product-images.with_sidebar {
    width: 58%;
  }

  body.single-product .single-product.with-sidebar:not(.has-vk-empty-product-sidebar) .content-pos > .single-product-images.with_sidebar {
    width: 55%;
  }

  body.single-product .single-product.with-sidebar.has-vk-empty-product-sidebar .sidebar-pos {
    display: none !important;
  }

  body.single-product .single-product.with-sidebar.has-vk-empty-product-sidebar > .row > .content-pos {
    width: 100%;
    float: none;
  }

  body.single-product .single-product.with-sidebar .content-pos > .single-product-infos {
    width: 42%;
    padding-left: 42px;
  }

  body.single-product .single-product.with-sidebar:not(.has-vk-empty-product-sidebar) .content-pos > .single-product-infos {
    width: 45%;
    padding-left: 32px;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs {
    position: relative;
    display: block;
    box-sizing: border-box;
    padding-left: 99px;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs > .images.single-images {
    width: 100%;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs > .product_summary_thumbnails_wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 92px;
    min-width: 92px;
    height: auto;
    margin: 0;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs > .product_summary_thumbnails_wrapper > div {
    height: 100%;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs .product_thumbnails .swiper-container {
    margin-right: 0;
    margin-left: 0;
  }

  body.single-product .product_thumbnails .swiper-slide {
    float: none !important;
    width: 100% !important;
    height: min(92px, calc((100% - 48px) / 5)) !important;
  }

  body.single-product .product_thumbnails .swiper-wrapper {
    display: block !important;
  }

  body.single-product .product_thumbnails.has-vk-thumb-overflow {
    position: relative;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 40px;
  }

  body.single-product .product_thumbnails.has-vk-brand-thumbnail {
    --vk-fixed-brand-height: 31px;
    position: relative;
    box-sizing: border-box;
    padding-top: calc(var(--vk-fixed-brand-height) + 7px);
  }

  body.single-product .product_thumbnails.has-vk-brand-thumbnail.has-vk-thumb-overflow {
    --vk-fixed-brand-height: 31px;
    padding-top: calc(var(--vk-fixed-brand-height) + 7px);
    padding-bottom: 40px;
  }

  body.single-product .product_thumbnails .vk-brand-thumbnail.is-vk-fixed-brand {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 4;
    box-sizing: border-box;
    width: 100%;
    height: var(--vk-fixed-brand-height);
    aspect-ratio: 3 / 1;
    margin: 0;
    padding: 2px;
    overflow: hidden;
    border-radius: var(--vk-radius-md);
    background: var(--vk-line);
  }

  body.single-product .product_thumbnails .vk-brand-thumbnail.is-vk-fixed-brand .vk-brand-thumbnail__link {
    min-height: 0;
    padding: 2px 6px;
    overflow: hidden;
    aspect-ratio: auto;
  }

  body.single-product .product_thumbnails .vk-brand-thumbnail.is-vk-fixed-brand img.vk-brand-thumbnail__image {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  body.single-product .product_thumbnails.has-vk-thumb-overflow .swiper-container {
    height: 100% !important;
  }

  body.single-product .vk-gallery-thumb-controls {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 32px;
    pointer-events: none;
    z-index: 3;
  }

  body.single-product .vk-gallery-thumb-control[data-vk-thumb-prev],
  body.single-product .vk-gallery-thumb-control[data-vk-thumb-next] {
    position: static;
    left: auto;
    margin: 0;
    pointer-events: auto;
  }

  body.single-product .vk-gallery-thumb-control[data-vk-thumb-prev] {
    top: auto;
  }

  body.single-product .vk-gallery-thumb-control[data-vk-thumb-next] {
    bottom: auto;
  }

  body.single-product .vk-gallery-thumb-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--vk-line);
    border-radius: var(--vk-radius-sm);
    background: var(--vk-surface);
    color: var(--vk-muted);
    box-shadow: 0 4px 12px rgba(21, 21, 21, 0.06);
    cursor: pointer;
  }

  body.single-product .vk-gallery-thumb-control svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  body.single-product .vk-gallery-thumb-control:hover,
  body.single-product .vk-gallery-thumb-control:focus-visible {
    border-color: var(--vk-brand-primary);
    color: var(--vk-brand-primary);
    outline: 0;
    box-shadow: var(--vk-focus-ring);
  }

  body.single-product .vk-gallery-thumb-control:disabled {
    border-color: var(--vk-line);
    color: var(--vk-muted);
    box-shadow: none;
    opacity: 0.35;
    cursor: default;
  }

  body.single-product .product_thumbnails .swiper-slide img {
    height: 100%;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs .ribbon.newbadge {
    left: 115px;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs .vkpe-mfg-badges--single {
    left: 115px;
  }

  /* Optional desktop horizontal layout selected in Appearance > Product gallery. */
  body.single-product.vk-gallery-layout-horizontal .single-product-images.with_sidebar.has-vk-gallery-thumbs {
    display: flex;
    flex-direction: column;
    padding-left: 0;
  }

  body.single-product.vk-gallery-layout-horizontal .single-product-images.with_sidebar.has-vk-gallery-thumbs > .images.single-images {
    order: 1;
    width: 100%;
  }

  body.single-product.vk-gallery-layout-horizontal .single-product-images.with_sidebar.has-vk-gallery-thumbs > .product_summary_thumbnails_wrapper {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    order: 2;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 7px 0 0;
  }

  body.single-product.vk-gallery-layout-horizontal .single-product-images.with_sidebar.has-vk-gallery-thumbs > .product_summary_thumbnails_wrapper > div,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails .swiper-container,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails .swiper-wrapper {
    height: auto !important;
  }

  body.single-product.vk-gallery-layout-horizontal .product_thumbnails,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails.has-vk-brand-thumbnail,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails.has-vk-thumb-overflow,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails.has-vk-brand-thumbnail.has-vk-thumb-overflow {
    position: relative;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  body.single-product.vk-gallery-layout-horizontal .product_thumbnails.has-vk-thumb-overflow,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails.has-vk-brand-thumbnail.has-vk-thumb-overflow {
    padding-right: 79px;
  }

  body.single-product.vk-gallery-layout-horizontal .product_thumbnails .swiper-container {
    margin: 0;
    padding: 2px 3px;
    overflow: hidden;
  }

  body.single-product.vk-gallery-layout-horizontal .product_thumbnails .swiper-wrapper {
    display: flex !important;
  }

  body.single-product.vk-gallery-layout-horizontal .product_thumbnails .swiper-slide,
  body.single-product.vk-gallery-layout-horizontal .product_thumbnails .swiper-slide.vk-brand-thumbnail {
    float: left !important;
    flex: 0 0 92px;
    width: 92px !important;
    height: 92px !important;
    margin: 0 10px 0 0;
  }

  body.single-product.vk-gallery-layout-horizontal .product_thumbnails .vk-brand-thumbnail__link {
    min-height: 0;
    padding: 8px;
    aspect-ratio: 1 / 1;
  }

  body.single-product.vk-gallery-layout-horizontal .vk-gallery-thumb-controls {
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    width: 71px;
    height: 32px;
    transform: translateY(-50%);
  }

  body.single-product.vk-gallery-layout-horizontal .single-product-images.with_sidebar.has-vk-gallery-thumbs .ribbon.newbadge,
  body.single-product.vk-gallery-layout-horizontal .single-product-images.with_sidebar.has-vk-gallery-thumbs .vkpe-mfg-badges--single {
    left: 15px;
  }
}

@media only screen and (max-width: 990px) {
  body.single-product .single-product.with-sidebar .content-pos > .single-product-images.with_sidebar,
  body.single-product .single-product.with-sidebar .content-pos > .single-product-infos {
    width: 100%;
    float: none;
  }

  body.single-product .single-product.with-sidebar .content-pos > .single-product-infos {
    padding-left: 0;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs {
    display: flex;
    flex-direction: column;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs > .images.single-images {
    order: 1;
  }

  body.single-product .single-product-images.with_sidebar.has-vk-gallery-thumbs > .product_summary_thumbnails_wrapper {
    display: block !important;
    order: 2;
    width: 100%;
    margin: 12px 0 0;
  }

  body.single-product .product_thumbnails,
  body.single-product .product_thumbnails .swiper-container,
  body.single-product .product_thumbnails .swiper-wrapper {
    height: auto !important;
  }

  body.single-product .product_thumbnails .swiper-container {
    padding: 3px 3px 8px;
  }

  body.single-product .product_thumbnails .vk-brand-thumbnail__link {
    min-height: 0;
    padding: 6px;
  }

  body.single-product .product_thumbnails .swiper-slide {
    flex: 0 0 auto;
    margin: 0 10px 0 0;
  }

  body.single-product .single-product .owl-dots {
    bottom: 11px;
  }

  body.single-product .single-product .owl-dots .owl-dot span {
    width: 9px;
    height: 9px;
    margin: 5px 6px;
  }

  body.single-product .product_images .product_image_zoom_button {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
  }

  body.single-product .product_images .product_image_zoom_button i {
    line-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .product_thumbnails .swiper-slide,
  body.single-product .product_infos form.cart .single_add_to_cart_button {
    transition: none;
  }
}

/* VideoKing full-screen product gallery (Fresco lightbox) */
body.single-product .fr-overlay-background {
  background: rgba(8, 10, 15, 0.94) !important;
  backdrop-filter: blur(4px);
}

body.single-product .fr-window-skin-fresco .fr-content-background {
  background: #fff !important;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45) !important;
}

body.single-product .fr-window-skin-fresco .fr-side-outside,
body.single-product .fr-window-skin-fresco .fr-side-previous-outside,
body.single-product .fr-window-skin-fresco .fr-side-next-outside {
  position: fixed !important;
  top: 50% !important;
  width: 58px !important;
  height: 58px !important;
  margin-top: -58px !important;
  z-index: 4;
  opacity: 1 !important;
}

body.single-product .fr-window-skin-fresco .fr-side-previous-outside {
  left: 24px !important;
  right: auto !important;
}

body.single-product .fr-window-skin-fresco .fr-side-next-outside {
  right: 24px !important;
  left: auto !important;
}

body.single-product .fr-window-skin-fresco .fr-side-button {
  width: 58px !important;
  height: 58px !important;
  margin: 0 !important;
}

body.single-product .fr-window-skin-fresco .fr-side-button-background {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid var(--vk-line);
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.single-product .fr-window-skin-fresco .fr-side-button-icon {
  background-image: none !important;
  opacity: 1 !important;
}

body.single-product .fr-window-skin-fresco .fr-side-button-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid var(--vk-ink);
  border-right: 3px solid var(--vk-ink);
  transition: border-color 0.2s ease;
}

body.single-product .fr-window-skin-fresco .fr-side-previous .fr-side-button-icon::before {
  margin: -8px 0 0 -5px;
  transform: rotate(-135deg);
}

body.single-product .fr-window-skin-fresco .fr-side-next .fr-side-button-icon::before {
  margin: -8px 0 0 -11px;
  transform: rotate(45deg);
}

body.single-product .fr-window-skin-fresco .fr-side:not(.fr-side-disabled):hover .fr-side-button-background,
body.single-product .fr-window-skin-fresco .fr-side:focus-visible .fr-side-button-background {
  border-color: var(--vk-brand-secondary);
  box-shadow: 0 0 0 3px rgba(79, 99, 246, 0.3), 0 14px 38px rgba(0, 0, 0, 0.38);
  transform: scale(1.05);
}

body.single-product .fr-window-skin-fresco .fr-side:not(.fr-side-disabled):hover .fr-side-button-icon::before,
body.single-product .fr-window-skin-fresco .fr-side:focus-visible .fr-side-button-icon::before {
  border-color: var(--vk-brand-secondary);
}

body.single-product .fr-window-skin-fresco .fr-side-disabled {
  opacity: 0.38 !important;
}

body.single-product .fr-window-skin-fresco .fr-close-outside {
  position: fixed !important;
  top: 22px !important;
  right: 24px !important;
  width: 52px !important;
  height: 52px !important;
  z-index: 5;
  border-radius: 50%;
  outline: 0;
}

body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-background {
  top: 0 !important;
  left: 0 !important;
  width: 52px !important;
  height: 52px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid var(--vk-line);
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon {
  top: 0 !important;
  left: 0 !important;
  width: 52px !important;
  height: 52px !important;
  background-image: none !important;
  opacity: 1 !important;
}

body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon::before,
body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 16px;
  width: 20px;
  height: 3px;
  background: var(--vk-ink);
  border-radius: 3px;
}

body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon::before {
  transform: rotate(45deg);
}

body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon::after {
  transform: rotate(-45deg);
}

body.single-product .fr-window-skin-fresco .fr-close-outside:hover .fr-close-background,
body.single-product .fr-window-skin-fresco .fr-close-outside:focus-visible .fr-close-background {
  border-color: var(--vk-brand-secondary);
  box-shadow: 0 0 0 3px rgba(194, 58, 142, 0.28), 0 14px 38px rgba(0, 0, 0, 0.38);
  transform: scale(1.05);
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-side-previous-fullclick,
body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-side-next-fullclick {
  position: fixed !important;
  top: 50% !important;
  width: 48px !important;
  height: 48px !important;
  margin-top: -24px !important;
  z-index: 5;
  opacity: 1 !important;
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-side-previous-fullclick {
  left: 10px !important;
  right: auto !important;
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-side-next-fullclick {
  right: 10px !important;
  left: auto !important;
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-side-fullclick .fr-side-button,
body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-side-previous-fullclick .fr-side-button,
body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-side-next-fullclick .fr-side-button {
  width: 48px !important;
  height: 48px !important;
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-close-fullclick {
  display: block !important;
  position: fixed !important;
  top: 12px !important;
  right: 12px !important;
  width: 46px !important;
  height: 46px !important;
  z-index: 6;
  border-radius: 50%;
  outline: 0;
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-close-fullclick .fr-close-background {
  top: 0 !important;
  left: 0 !important;
  width: 46px !important;
  height: 46px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid var(--vk-line);
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-close-fullclick .fr-close-icon {
  top: 0 !important;
  left: 0 !important;
  width: 46px !important;
  height: 46px !important;
  background-image: none !important;
  opacity: 1 !important;
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-close-fullclick .fr-close-icon::before,
body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-close-fullclick .fr-close-icon::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 14px;
  width: 18px;
  height: 3px;
  background: var(--vk-ink);
  border-radius: 3px;
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-close-fullclick .fr-close-icon::before {
  transform: rotate(45deg);
}

body.single-product .fr-window-skin-fresco.fr-window-ui-fullclick .fr-close-fullclick .fr-close-icon::after {
  transform: rotate(-45deg);
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-fullclick > .fr-info {
  position: fixed !important;
  top: 13px !important;
  bottom: auto !important;
  left: 50% !important;
  width: auto !important;
  height: 42px !important;
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-fullclick > .fr-info .fr-info-background {
  background: rgba(21, 21, 21, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-fullclick > .fr-info .fr-info-padder {
  padding: 0 16px !important;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-fullclick > .fr-info .fr-caption {
  display: none !important;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-fullclick > .fr-info .fr-position {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 42px !important;
  text-align: center;
  letter-spacing: 0.05em;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside > .fr-info {
  position: fixed !important;
  top: 25px !important;
  left: 50% !important;
  width: auto !important;
  height: 44px !important;
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside > .fr-info .fr-info-background {
  background: rgba(21, 21, 21, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside > .fr-info .fr-info-padder {
  padding: 0 18px !important;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside > .fr-info .fr-position {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 44px !important;
  letter-spacing: 0.05em;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside .fr-position-outside {
  position: fixed !important;
  top: 25px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: auto !important;
  min-width: 58px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 42px !important;
  text-align: center;
  letter-spacing: 0.05em;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside .fr-position-outside .fr-position-background {
  background: rgba(21, 21, 21, 0.82) !important;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside .fr-position-outside .fr-position-text {
  color: #fff !important;
}

body.single-product .fr-window-skin-fresco .fr-thumbnails {
  background: rgba(8, 10, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

body.single-product .fr-window-skin-fresco .fr-thumbnail-wrapper {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28) !important;
}

body.single-product .fr-window-skin-fresco .fr-thumbnail-active .fr-thumbnail-wrapper {
  border-color: var(--vk-brand-primary);
  box-shadow: 0 0 0 2px var(--vk-brand-secondary), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

body.single-product .fr-window-skin-fresco .fr-thumbnail-active .fr-thumbnail-image,
body.single-product .fr-window-skin-fresco .fr-thumbnail-active:hover .fr-thumbnail-image {
  opacity: 1;
}

body.single-product .fr-window-skin-fresco .fr-side:focus-visible,
body.single-product .fr-window-skin-fresco .fr-close:focus-visible,
body.single-product .fr-window-skin-fresco .fr-thumbnail:focus-visible {
  outline: 3px solid rgba(79, 99, 246, 0.72);
  outline-offset: 4px;
}

@media only screen and (max-width: 700px) {
  body.single-product .fr-window-skin-fresco .fr-side-outside,
  body.single-product .fr-window-skin-fresco .fr-side-previous-outside,
  body.single-product .fr-window-skin-fresco .fr-side-next-outside {
    top: 50% !important;
    width: 48px !important;
    height: 48px !important;
    margin-top: -24px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-side-previous-outside {
    left: 10px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-side-next-outside {
    right: 10px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-side-button {
    width: 48px !important;
    height: 48px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-close-outside {
    top: 12px !important;
    right: 12px !important;
    width: 46px !important;
    height: 46px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-background,
  body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon {
    width: 46px !important;
    height: 46px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon::before,
  body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-icon::after {
    top: 22px;
    left: 14px;
    width: 18px;
  }

  body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside > .fr-info {
    top: 13px !important;
    height: 42px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside .fr-position-outside {
    top: 13px !important;
    min-width: 54px;
    padding: 0 14px !important;
    line-height: 40px !important;
  }

  body.single-product .fr-window-skin-fresco .fr-page.fr-ui-outside > .fr-info .fr-position {
    line-height: 42px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .fr-window-skin-fresco .fr-side-button-background,
  body.single-product .fr-window-skin-fresco .fr-close-outside .fr-close-background {
    transition: none;
  }
}
