/* ── Shared Media Modal ─────────────────────────────────────────────────────── */

.mm-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.mm-modal.mm-open { opacity: 1; pointer-events: all; }

.mm-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,14,8,.85);
  backdrop-filter: blur(8px);
}

.mm-box {
  position: relative; z-index: 1;
  width: min(740px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: #131A0D;
  border: .5px solid rgba(255,255,255,.13);
  border-radius: 24px;
  display: flex; flex-direction: column;
  transform: translateY(18px) scale(.97);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.mm-modal.mm-open .mm-box { transform: none; }

/* ── Slider ─────────────────────────────────────────────────────────────────── */

.mm-slider {
  position: relative;
  background: #08100a;
  border-radius: 24px 24px 0 0;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.mm-slider.mm-no-media { display: none; }

/* Clips only the sliding track — buttons/dots are outside this element */
.mm-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.mm-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.mm-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; }

.mm-video-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #08100a;
  pointer-events: none;
}
.mm-video-placeholder svg { opacity: .3; }

.mm-media {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}

/* ── Arrows ─────────────────────────────────────────────────────────────────── */

.mm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(14,20,9,.72);
  backdrop-filter: blur(8px);
  border: .5px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: #EEF2E8;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  z-index: 2;
}
.mm-arrow:hover {
  background: rgba(212,168,37,.15);
  border-color: rgba(212,168,37,.28);
  color: #D4A825;
}
.mm-prev { left: .85rem; }
.mm-next { right: .85rem; }
.mm-arrow[hidden] { display: none; }

/* ── Dots ───────────────────────────────────────────────────────────────────── */

.mm-dots {
  position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .45rem; z-index: 2;
}
.mm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.mm-dot.mm-dot-active { background: #D4A825; transform: scale(1.35); }

/* ── Content ────────────────────────────────────────────────────────────────── */

.mm-content { padding: 1.75rem 2rem 2.25rem; }

.mm-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem; font-weight: 700; line-height: 1.3;
  color: #EEF2E8;
  margin: 0 0 .75rem;
}

.mm-text {
  font-size: .9rem; color: #8A9E70;
  line-height: 1.75; white-space: pre-wrap; margin: 0;
}

/* ── Close ──────────────────────────────────────────────────────────────────── */

.mm-close {
  position: absolute; top: .9rem; right: .9rem;
  width: 36px; height: 36px;
  background: rgba(14,20,9,.75);
  backdrop-filter: blur(8px);
  border: .5px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: #EEF2E8;
  font-size: 1.2rem; line-height: 1;
  cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.mm-close:hover { border-color: rgba(212,168,37,.28); color: #D4A825; }

/* ── Product info footer ─────────────────────────────────────────────────────── */

.mm-product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: .5px solid rgba(255,255,255,.08);
}

.mm-pi-power {
  font-size: .75rem;
  color: #8A9E70;
  margin-bottom: .2rem;
}

.mm-pi-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #D4A825;
}
.mm-pi-price span {
  font-family: 'Manrope', sans-serif;
  font-size: .75rem;
  font-weight: 500;
}

.mm-pi-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
}

.mm-pi-stock {
  font-size: .75rem;
  font-weight: 600;
}
.mm-pi-stock.in-stock  { color: #7BC67A; }
.mm-pi-stock.out-stock { color: #8A9E70; }

.mm-pi-order-btn {
  background: #D4A825;
  color: #0E1409;
  border: none;
  border-radius: 100px;
  padding: .6rem 1.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.mm-pi-order-btn:hover { background: #F0C842; transform: translateY(-1px); }
