/* Add custom CSS styles below /* ================================================================
   Rukn Al-Ahtraf — 360° Product View + Reels
   Paste this ENTIRE file into Salla Dashboard → Online Store →
   Advanced Customization → "Customize using CSS"

   This only styles NEW elements the companion JavaScript file creates
   (floating buttons + a popup viewer). It does not touch or override
   your current theme's existing styles, so it's safe on top of any
   active theme.
   ================================================================ */

/* Floating action buttons (bottom corner of every product page) */
.rkn-fab-group {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rkn-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a3a44;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: 'Tajawal', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.rkn-fab:hover { background: #0d4a57; }
.rkn-fab--reels { background: #c9a24a; }
.rkn-fab--reels:hover { background: #b8913f; }

/* Popup / modal overlay */
.rkn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rkn-modal-overlay[hidden] { display: none; }
.rkn-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  position: relative;
}
.rkn-modal__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* 360° viewer */
.rkn-360 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.rkn-360.is-dragging { cursor: grabbing; }
.rkn-360__frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.rkn-360__hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: opacity 0.25s ease;
}

/* Reels viewer */
.rkn-reels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}
.rkn-reels__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
}
.rkn-reels__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rkn-reels__toggle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.rkn-reels__item.is-playing .rkn-reels__toggle { opacity: 0; }
.rkn-reels__item:hover .rkn-reels__toggle,
.rkn-reels__item.is-playing:hover .rkn-reels__toggle { opacity: 1; }