/* Outer Container */
.athey-carousel-container-outer {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 100vw;
  overflow: hidden; padding: 20px 0; flex-direction: column;
}
.athey-carousel-container-outer h2 { width: 100%; }
.athey-mobile-title { display: none; }
@media (max-width: 768px) {
  .athey-desktop-title { display: none; }
  .athey-mobile-title { display: block; }
}

/* Inner Box */
.athey-shoppable-carousel {
  display: flex; gap: 15px; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important;
  padding: 10px 0; width: 100%; scrollbar-width: none; scroll-behavior: auto;
}
.athey-shoppable-carousel::-webkit-scrollbar { display: none; }

/* Fixed Arrow Buttons */
.athey-nav-btn {
  display: flex; position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; background: rgba(255,255,255,0.9); border-radius: 50%; 
  cursor: pointer; z-index: 10; align-items: center; justify-content: center; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.3); color: #333; transition: 0.3s; 
}
.athey-nav-btn:hover { background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.4); color: #28a745; }
.athey-nav-btn svg { width: 24px !important; height: 24px !important; fill: none !important; stroke: currentColor !important; }

/* Video Cards */
.athey-carousel-item {
  position: relative; min-width: 250px; height: 400px; overflow: hidden;
  cursor: pointer; background-color: #111; flex-shrink: 0; user-select: none; 
}
.athey-carousel-item.is-dragging { cursor: grabbing; }
.athey-preview-video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* Overlay & Text - HYPER SPECIFIC to beat Elementor */
.athey-carousel-container-outer .athey-product-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 30px 15px 15px 15px; display: flex; align-items: flex-end; pointer-events: none;
}
.athey-carousel-container-outer .athey-product-info h4 {
  margin: 0 0 5px 0 !important; font-size: 16px !important; line-height: 1.2 !important;
  color: #ffffff !important; text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important; font-weight: 600 !important;
}
.athey-carousel-container-outer .athey-product-info span {
  font-size: 14px !important; font-weight: bold !important; color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
}

/* -------------------------------------
   THEME LAYOUTS 
------------------------------------- */

/* 1. Reels Theme */
.athey-theme-reels .athey-carousel-item { width: 200px; aspect-ratio: 9/16; height: auto; scroll-snap-align: start; }
.athey-theme-reels .athey-shoppable-carousel { scroll-snap-type: x mandatory; }
.athey-theme-reels .athey-nav-prev { left: 10px; }
.athey-theme-reels .athey-nav-next { right: 10px; }
@media (max-width: 768px) { .athey-theme-reels .athey-carousel-item { width: 160px; min-width: 160px; } }

/* 2. Single Post Theme (Elementor-Proof Centering) */
.athey-theme-single h2 { display: none !important; }
.athey-theme-single .athey-shoppable-carousel {
  width: 320px !important; max-width: 100% !important; margin: 0 auto !important; 
  padding: 0 !important; scroll-snap-type: x mandatory !important; gap: 0 !important; overflow-x: auto !important;
}
.athey-theme-single .athey-carousel-item {
  flex: 0 0 100% !important; width: 100% !important; max-width: 320px !important;
  aspect-ratio: 9/16 !important; height: auto !important; scroll-snap-align: center !important; border-radius: 12px !important;
}
.athey-theme-single .athey-nav-prev { left: 50%; margin-left: -190px; }
.athey-theme-single .athey-nav-next { right: auto; left: 50%; margin-left: 150px; }

@media (max-width: 768px) {
  .athey-theme-single .athey-shoppable-carousel { width: 280px !important; }
  .athey-theme-single .athey-carousel-item { max-width: 280px !important; }
  .athey-theme-single .athey-nav-prev { margin-left: -160px; }
  .athey-theme-single .athey-nav-next { margin-left: 120px; }
}

/* 3. Highlight Slider Theme */
.athey-theme-highlight .athey-shoppable-carousel { scroll-snap-type: x mandatory !important; padding: 20px calc(50% - 150px) !important; align-items: center; }
.athey-theme-highlight .athey-carousel-item {
  flex: 0 0 300px; width: 300px; min-width: 300px; aspect-ratio: 9/16; height: auto;
  scroll-snap-align: center; opacity: 0.5; transform: scale(0.85); transition: transform 0.4s ease, opacity 0.4s ease;
}
.athey-theme-highlight .athey-carousel-item.is-center { opacity: 1 !important; transform: scale(1.05) !important; z-index: 2; box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.athey-theme-highlight .athey-nav-prev { left: 5%; }
.athey-theme-highlight .athey-nav-next { right: 5%; }
@media (max-width: 768px) {
  .athey-theme-highlight .athey-shoppable-carousel { padding: 20px calc(50% - 125px) !important; }
  .athey-theme-highlight .athey-carousel-item { flex: 0 0 250px; width: 250px; min-width: 250px; }
}

/* -------------------------------------
   MODAL POPUP 
------------------------------------- */
.athey-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100%;
  background: rgba(0, 0, 0, 0.95); z-index: 999999; justify-content: center; align-items: center;
}
.athey-modal-content {
  position: relative; width: 100%; max-width: 400px; height: 85vh; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.athey-main-video { width: 100%; height: 100%; object-fit: contain; background-color: #000; }
.athey-close-btn {
  position: absolute; top: 15px; right: 15px; color: white; font-size: 32px; font-weight: bold; cursor: pointer; z-index: 10; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* MUTE BUTTON ENFORCEMENT */
.athey-mute-btn {
  position: absolute; top: 15px; left: 15px; background: rgba(0, 0, 0, 0.5); color: white;
  border: none; border-radius: 50%; width: 40px; height: 40px;
  cursor: pointer; z-index: 10; display: flex !important; justify-content: center !important; align-items: center !important;
  backdrop-filter: blur(4px); transition: 0.3s ease;
}
.athey-mute-btn:hover { background: rgba(0, 0, 0, 0.8); }

/* SVG Image Toggle Logic */
.athey-mute-btn.is-muted .athey-icon-volume { display: none !important; }
.athey-mute-btn.is-muted .athey-icon-mute { display: block !important; }
.athey-mute-btn:not(.is-muted) .athey-icon-volume { display: block !important; }
.athey-mute-btn:not(.is-muted) .athey-icon-mute { display: none !important; }

/* Modal Product Card (Beat Elementor) */
.athey-modal-product-card {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; background: white;
  text-decoration: none !important; display: flex; padding: 12px; border-radius: 8px; align-items: center; justify-content: space-between; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
#atheyModalProductImage { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.athey-modal-product-card div { flex-grow: 1; padding: 0 12px; }
#atheyVideoModal .athey-modal-product-card h4 { margin: 0 !important; font-size: 15px !important; font-weight: bold !important; color: #111 !important; text-shadow: none !important;}
#atheyVideoModal .athey-modal-product-card span { font-size: 14px !important; color: #555 !important; margin-top: 4px !important; display: block !important; text-shadow: none !important;}
.athey-buy-btn { border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; }