/* Shared carousel navigation — icon-only chevrons in side gutters (Newegg-style) */

.mg-ui-v2 .mg-store-carousel-shell {
  position: relative;
  padding-inline: clamp(22px, 1.8vw, 30px);
  overflow: visible;
}

.mg-ui-v2 .mg-store-carousel-shell__viewport {
  position: relative;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-carousel-shell--sm {
  padding-inline: clamp(18px, 1.4vw, 24px);
}

.mg-ui-v2 .mg-store-carousel-shell--flush {
  padding-inline: 0;
}

.mg-ui-v2 .mg-store-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    color var(--store-ease);
}

.mg-ui-v2 .mg-store-carousel-shell:hover .mg-store-carousel-nav,
.mg-ui-v2 .mg-store-carousel-shell:focus-within .mg-store-carousel-nav {
  opacity: 1;
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-carousel-nav--prev {
  left: 0;
}

.mg-ui-v2 .mg-store-carousel-nav--next {
  right: 0;
}

.mg-ui-v2 .mg-store-carousel-nav__icon {
  width: clamp(20px, 1.6vw, 24px);
  height: clamp(20px, 1.6vw, 24px);
  stroke-width: 2.25;
}

.mg-ui-v2 .mg-store-carousel-nav:hover,
.mg-ui-v2 .mg-store-carousel-nav:focus-visible {
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-carousel-nav:focus-visible {
  outline: 2px solid var(--store-brand);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 991px) {
  .mg-ui-v2 .mg-store-carousel-shell:not(.mg-store-home-hero__carousel-shell) {
    padding-inline: clamp(20px, 5vw, 26px);
  }

  .mg-ui-v2 .mg-store-carousel-shell:not(.mg-store-home-hero__carousel-shell) .mg-store-carousel-nav {
    width: 44px;
    height: 44px;
    opacity: 0.88;
    pointer-events: auto;
  }

  .mg-ui-v2 .mg-store-home-hero__carousel-shell .mg-store-home-hero__nav.mg-store-carousel-nav {
    width: 44px;
    height: 44px;
    opacity: 0.92;
    pointer-events: auto;
  }
}