/* ============================================================
   PRODUCT MODAL PHOTO SLIDER
   Swipe on phones, arrows + dots on desktop.
   Load AFTER dashboard.css
   ============================================================ */

.pm-slider {
  position: relative;
  background: #f2f2f2;
}

.pm-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pm-track::-webkit-scrollbar { display: none; }

.pm-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  object-fit: cover;          /* use "contain" to show whole photos, uncropped */
  scroll-snap-align: center;
  cursor: zoom-in;
  user-select: none;
}

.pm-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
}

.pm-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.pm-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.pm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #0B1628;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;              /* hidden on touch screens; swiping is enough */
}
.pm-prev { left: 10px; }
.pm-next { right: 10px; }

@media (hover: hover) and (pointer: fine) {
  .pm-arrow { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-dot { transition: none; }
}
/* =========================================================
   PUBLIC STORE PRODUCT IMAGE SLIDER
========================================================= */

.store-product-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #F4F5F6;
}

.store-product-track {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.store-product-track::-webkit-scrollbar {
    display: none;
}

.store-product-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.store-product-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #0B1628;
    box-shadow: 0 4px 15px rgba(0,0,0,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.store-product-slider:hover .store-product-arrow {
    opacity: 1;
}

.store-product-arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.store-product-arrow.prev {
    left: 10px;
}

.store-product-arrow.next {
    right: 10px;
}

.store-product-dots {
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 5;
    pointer-events: none;
}

.store-product-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: width .2s ease, background .2s ease;
}

.store-product-dot.active {
    width: 16px;
    border-radius: 999px;
    background: #FFFFFF;
}

.store-product-image-wrap .available-badge {
    z-index: 10;
}

/* Hide arrows on touch devices until needed */
@media (hover: none) {
    .store-product-arrow {
        opacity: .95;
    }
}

@media (max-width: 750px) {
    .store-product-arrow {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .store-product-arrow.prev {
        left: 7px;
    }

    .store-product-arrow.next {
        right: 7px;
    }

    .store-product-dots {
        bottom: 7px;
    }
}
/* =========================================================
   PRODUCT MODAL IMAGE SLIDER
========================================================= */

.pm-slider {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #FAF8F6;
}

.pm-track {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pm-track::-webkit-scrollbar {
    display: none;
}

.pm-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: zoom-in;
}

.pm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #0B1628;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}

.pm-prev {
    left: 12px;
}

.pm-next {
    right: 12px;
}

.pm-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.pm-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    cursor: pointer;
}

.pm-dot.active {
    width: 18px;
    border-radius: 999px;
    background: #fff;
}