/* Modern Reel - Frontend styles */
.modern-reel-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
}
.modern-reel-cta:hover {
    background: #f0f0f0;
}
.modern-reel-extra-ctas {
    display: none;
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    pointer-events: auto;
}
.modern-reel-cta-small {
    display: inline-block;
    background: rgba(255,255,255,.9);
    color: #000 !important;
    padding: 5px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}
.modern-reel-cta-small:hover {
    background: #fff;
}
.modern-reel-add-to-bag {
    background: #f0f0f0;
}
.modern-reel-buy-now {
    background: #ff2d55;
    color: #fff !important;
}
.modern-reel-buy-now:hover {
    background: #e0254b;
}

/* Menu trigger button */
.modern-reel-menu-trigger {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,.45);
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    pointer-events: auto;
    font-size: 14px;
    font-weight: 600;
}
.modern-reel-menu-trigger[data-pos="top-left"] { top: 12px; left: 12px; }
.modern-reel-menu-trigger[data-pos="top-right"] { top: 12px; right: 12px; }
.modern-reel-menu-trigger[data-pos="bottom-left"] { bottom: 48px; left: 12px; }
.modern-reel-menu-trigger[data-pos="bottom-right"] { bottom: 48px; right: 12px; }
.modern-reel-menu-trigger .menu-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
}
/* Bars */
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::before,
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::after,
.modern-reel-menu-trigger[data-style="bars"] .menu-icon {
    background: currentColor;
}
.modern-reel-menu-trigger[data-style="bars"] .menu-icon {
    background: none;
}
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::before,
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
}
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::before { top: 4px; }
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::after { bottom: 4px; }
.modern-reel-menu-trigger[data-style="bars"] .menu-icon span,
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::after { }
/* simpler bars via box-shadow */
.modern-reel-menu-trigger[data-style="bars"] .menu-icon {
    background: currentColor;
    height: 2px;
    margin-top: 8px;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::before,
.modern-reel-menu-trigger[data-style="bars"] .menu-icon::after { display: none; }

/* Dots */
.modern-reel-menu-trigger[data-style="dots"] .menu-icon {
    background: none;
}
.modern-reel-menu-trigger[data-style="dots"] .menu-icon::before {
    content: '';
    position: absolute;
    width: 4px; height: 4px;
    background: currentColor;
    border-radius: 50%;
    top: 7px; left: 0;
    box-shadow: 7px 0 0 currentColor, 14px 0 0 currentColor;
}

/* Grid */
.modern-reel-menu-trigger[data-style="grid"] .menu-icon {
    background: none;
}
.modern-reel-menu-trigger[data-style="grid"] .menu-icon::before {
    content: '';
    position: absolute;
    width: 4px; height: 4px;
    background: currentColor;
    border-radius: 1px;
    top: 2px; left: 2px;
    box-shadow: 6px 0 0 currentColor, 0 6px 0 currentColor, 6px 6px 0 currentColor, 12px 0 0 currentColor, 12px 6px 0 currentColor, 0 12px 0 currentColor, 6px 12px 0 currentColor, 12px 12px 0 currentColor;
}

/* Chevron */
.modern-reel-menu-trigger[data-style="chevron"] .menu-icon {
    background: none;
}
.modern-reel-menu-trigger[data-style="chevron"] .menu-icon::before {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    top: 3px; left: 4px;
}

/* Back to home */
.modern-reel-back-home {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(0,0,0,.45);
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.modern-reel-menu-sheet {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    visibility: hidden;
}
.modern-reel-menu-sheet.open {
    visibility: visible;
    pointer-events: auto;
}
.modern-reel-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    transition: opacity .25s ease;
}
.modern-reel-menu-sheet.open .modern-reel-menu-backdrop {
    opacity: 1;
}
.modern-reel-menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    border-radius: 16px 16px 0 0;
    max-height: 70%;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modern-reel-menu-sheet.open .modern-reel-menu-panel {
    transform: translateY(0);
}
.modern-reel-menu-handle {
    width: 36px;
    height: 4px;
    background: #555;
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
}
.modern-reel-menu-content {
    overflow-y: auto;
    padding: 8px 12px 16px;
    -webkit-overflow-scrolling: touch;
}
.modern-reel-menu-grid {
    display: grid;
    gap: 10px;
}
.modern-reel-menu-grid.cols-1 { grid-template-columns: 1fr; }
.modern-reel-menu-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.modern-reel-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 48px;
    box-sizing: border-box;
    transition: transform .1s;
}
.modern-reel-menu-item:active { transform: scale(.98); }
.modern-reel-menu-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.modern-reel-menu-item.text-only {
    background: transparent !important;
    padding: 8px 4px;
}
.modern-reel-menu-item.text-only img { display: none; }
.modern-reel-menu-panel.style-glass {
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.2);
}
.modern-reel-menu-panel.style-classic {
    background: #f5f5f5 !important;
    color: #222;
    border-top: 2px solid #ddd;
}
.modern-reel-menu-panel.style-classic .modern-reel-menu-handle {
    background: #aaa;
}
.modern-reel-menu-shortcode {
    grid-column: 1 / -1;
    padding: 8px 0;
}
.modern-reel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
}
.modern-reel-center-controls button {
    transition: opacity .3s ease;
}

/* Swipe transitions */
.modern-reel-media-wrap {
    will-change: transform, opacity;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}
.modern-reel-container.mr-swiping {
    pointer-events: none;
}
.modern-reel-wishlist.is-active{color:#ff2d55 !important;}
