.elementor-widget-molina-product-gallery {
  width: 100%;
}

.molina-product-gallery {
  --molina-gallery-bg: #eceae4;
  --molina-gallery-accent: #e08d16;
  --molina-gallery-dark: #241f1b;
  --molina-gallery-radius: 40px;
  width: 100%;
}

.molina-product-gallery__empty {
  margin: 0;
  padding: 24px;
  color: #8a8a84;
  text-align: center;
}

.molina-product-gallery__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 48px 56px 64px;
  border-radius: var(--molina-gallery-radius);
  background: var(--molina-gallery-bg);
  overflow: hidden;
}

.molina-product-gallery__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 11px 18px 12px;
  border-radius: var(--molina-gallery-radius) 0 16px 0;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.molina-product-gallery__badge--accent {
  background: var(--molina-gallery-accent);
}

.molina-product-gallery__badge--dark {
  background: var(--molina-gallery-dark);
}

.molina-product-gallery__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.molina-product-gallery__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.molina-product-gallery__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.molina-product-gallery__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  filter: none;
  user-select: none;
  -webkit-user-drag: none;
}

.molina-product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--molina-gallery-dark) !important;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.molina-product-gallery__arrow:hover,
.molina-product-gallery__arrow:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.molina-product-gallery__arrow--prev {
  left: 18px;
}

.molina-product-gallery__arrow--next {
  right: 18px;
}

.molina-product-gallery--single .molina-product-gallery__arrow,
.molina-product-gallery--single .molina-product-gallery__dots {
  display: none;
}

.molina-product-gallery__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.molina-product-gallery__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7b4ad !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-radius 0.2s ease;
}

.molina-product-gallery__dot.is-active {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--molina-gallery-accent) !important;
  transform: rotate(45deg);
}

@media (max-width: 767px) {
  .molina-product-gallery__stage {
    min-height: 380px;
    padding: 40px 44px 56px;
  }

  .molina-product-gallery__image {
    max-height: 280px;
  }

  .molina-product-gallery__arrow {
    width: 38px;
    height: 38px;
  }

  .molina-product-gallery__arrow--prev {
    left: 10px;
  }

  .molina-product-gallery__arrow--next {
    right: 10px;
  }
}
