.seo-product-gallery {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  align-items: stretch !important;
}

.seo-product-gallery__stage {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f6f8f9);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  touch-action: pan-y;
}

.seo-product-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
  cursor: zoom-in;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.seo-product-gallery__image.is-switching {
  opacity: 0.22;
  transform: scale(0.992);
}

.seo-product-gallery__image:focus-visible,
.seo-product-gallery__nav:focus-visible,
.seo-product-gallery__thumb:focus-visible,
.seo-gallery-lightbox button:focus-visible {
  outline: 3px solid #9b6900;
  outline-offset: 3px;
}

.seo-product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  font: 900 25px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
}

.seo-product-gallery__nav:hover {
  background: #f5b800;
}

.seo-product-gallery__prev { left: 14px; }
.seo-product-gallery__next { right: 14px; }

.seo-product-gallery__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-width: 44px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16, 20, 24, 0.84);
  color: #fff;
  font: 800 12px/1 Inter, Arial, sans-serif;
  text-align: center;
  backdrop-filter: blur(6px);
}

.seo-product-gallery__brand {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.seo-product-gallery__brand img {
  display: block;
  width: 76px;
  height: 22px;
  object-fit: contain;
}

.seo-product-gallery__thumbs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 2px !important;
}

.seo-product-gallery__thumb {
  width: 100% !important;
  height: 84px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #dfe4ea;
  border-radius: 11px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.seo-product-gallery__thumb:hover {
  border-color: #9b6900;
  transform: translateY(-2px);
}

.seo-product-gallery__thumb[aria-current="true"] {
  border-color: #d89f00;
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.24);
}

.seo-product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seo-gallery-lock { overflow: hidden !important; }

.seo-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
}

.seo-gallery-lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.seo-gallery-lightbox__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.seo-gallery-lightbox__logo {
  width: 112px;
  height: 34px;
  padding: 3px 6px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.seo-gallery-lightbox__title {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-gallery-lightbox__close,
.seo-gallery-lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.seo-gallery-lightbox__close { font-size: 26px; }

.seo-gallery-lightbox__close:hover,
.seo-gallery-lightbox__nav:hover {
  background: #f5b800;
  color: #111827;
}

.seo-gallery-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  touch-action: pan-y;
}

.seo-gallery-lightbox__stage > img {
  width: auto;
  max-width: min(1100px, 100%);
  height: auto;
  max-height: calc(100vh - 150px);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.seo-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  font-size: 29px;
  transform: translateY(-50%);
}

.seo-gallery-lightbox__prev { left: 8px; }
.seo-gallery-lightbox__next { right: 8px; }

.seo-gallery-lightbox__count {
  min-height: 20px;
  color: #f5b800;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.seo-editorial-zoom { position: relative; cursor: zoom-in !important; }
.seo-editorial-zoom::after {
  content: "⤢";
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(16, 20, 24, 0.8);
  color: #fff;
  font: 800 20px/1 Arial, sans-serif;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
  pointer-events: none;
}
.seo-editorial-zoom img { cursor: zoom-in; }

@media (max-width: 640px) {
  .seo-product-gallery__image { padding: 8px; }
  .seo-product-gallery__prev { left: 8px; }
  .seo-product-gallery__next { right: 8px; }
  .seo-product-gallery__brand { left: 8px; top: 8px; }
  .seo-product-gallery__brand img { width: 64px; height: 20px; }
  .seo-product-gallery__counter { right: 8px; bottom: 8px; }
  .seo-product-gallery__thumb { height: 70px !important; }
  .seo-gallery-lightbox { gap: 8px; padding: 10px; }
  .seo-gallery-lightbox__stage > img { max-height: calc(100vh - 128px); border-radius: 8px; }
  .seo-gallery-lightbox__prev { left: 2px; }
  .seo-gallery-lightbox__next { right: 2px; }
  .seo-gallery-lightbox__logo { width: 86px; height: 30px; }
  .seo-gallery-lightbox__title { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-product-gallery__image,
  .seo-product-gallery__thumb,
  .seo-gallery-lightbox__close,
  .seo-gallery-lightbox__nav {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
