/* ==========================================================================
   SMART REELS FRONTEND STYLES - ALL TEMPLATES
   Modern, Classic, Overlay, and Title Only layouts
   ========================================================================== */

:root {
    /* Primary Colors */
    --smart-play-bg: #FF4D6D;
    --smart-play-ring: #00C853;
    --smart-primary: #F5004F;
    --smart-overlay: rgba(0, 0, 0, 0.7);
    --smart-white: #ffffff;
    --smart-dark: #1a1a1a;
    --smart-gray: #6b7280;
    --smart-light-gray: #f3f4f6;

    /* Spacing */
    --smart-gap: 16px;
    --smart-radius: 16px;
    --smart-radius-sm: 8px;

    /* Shadows */
    --smart-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --smart-shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --smart-shadow-hard: 0 15px 50px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --smart-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --smart-transition-fast: all 0.15s ease-out;
}

/* ==========================================================================
   GRID-PARENT FIX (all templates)
   WooCommerce's block-based Add to Cart form ("form.cart") is a CSS grid
   container whose column track is auto-sized. Grid "auto" tracks size
   themselves off a child's max-content width - if our carousel content
   wants to be wide, the column itself grows to match, and min-width: 0 on
   our item alone doesn't stop that (it only affects the item's own floor,
   not the track's auto-sizing algorithm). Slick then measures that
   inflated width and sizes every slide from it.
   width: 1px removes the element from intrinsic/max-content sizing
   calculations entirely (an explicit value, unlike "auto"), and
   min-width: 100% then stretches it back to fill the track once that
   track has been sized correctly, independent of our content.
   !important is required here: .smart-reels-playlist.modern/.classic/
   .overlay/.title_only each already set width: 100% and, being two-class
   selectors, outrank this plain one-class selector regardless of source
   order - without !important this rule is silently never applied.
   ========================================================================== */

.smart-reels-playlist {
    width: 1px !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.smart-reels-carousel {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* ==========================================================================
   MODERN PLAYLIST CONTAINER
   ========================================================================== */

.smart-reels-playlist.modern {
    margin: 30px 0;
    width: 100%;
    position: relative;
}

.smart-reels-playlist.modern .smart-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.smart-reels-playlist.modern .smart-playlist-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--smart-dark);
    margin: 0;
}

/* ==========================================================================
   MODERN REEL CARD
   ========================================================================== */

.smart-reel-card-modern {
    position: relative;
    border-radius: var(--smart-radius);
    overflow: hidden;
    background: var(--smart-white);
    transition: var(--smart-transition);
    cursor: pointer;
}

.smart-reel-card-modern:hover {
    /* No transform or box-shadow on hover */
}

/* Card Thumbnail */
.smart-reel-card-modern .card-thumbnail {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.smart-reel-card-modern .card-thumbnail img,
.smart-reel-card-modern .card-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.smart-reel-card-modern:hover .card-thumbnail img,
.smart-reel-card-modern:hover .card-thumbnail video {
    transform: scale(1.05);
}

/* ==========================================================================
   MODERN PLAY BUTTON - Red with Green Ring
   ========================================================================== */

.smart-play-btn-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--smart-transition);
    cursor: pointer;

    /* Green outer ring */
    background: var(--smart-play-ring);
    padding: 4px;
}

.smart-play-btn-modern::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--smart-play-bg);
    border-radius: 50%;
    transition: var(--smart-transition);
}

.smart-play-btn-modern svg {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    fill: var(--smart-white);
    margin-left: 3px; /* Visual centering */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.smart-reel-card-modern:hover .smart-play-btn-modern {
    transform: translate(-50%, -50%) scale(1.1);
}

.smart-play-btn-modern:hover::before {
    background: #FF2D55;
}

/* Pulse animation */
.smart-play-btn-modern::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--smart-play-ring);
    border-radius: 50%;
    opacity: 0;
    animation: playBtnPulse 2s ease-out infinite;
}

@keyframes playBtnPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ==========================================================================
   DISCOUNT BADGE
   ========================================================================== */

/* Arrow tag style discount badge - tag pointing right */
.smart-discount-badge {
    position: absolute;
    top: 12px;
    left: 10px;
    background: rgb(179, 0, 0);
    color: var(--smart-white);
    padding: 2px 14px 2px 10px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    border-radius: 5px 0 0 5px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 90% 50%, calc(100% - 12px) 100%, 0 100%);
}

.smart-discount-badge.sale {
    background: rgb(179, 0, 0);
}

/* ==========================================================================
   PRODUCT INFO OVERLAY (Bottom of Card)
   ========================================================================== */

.smart-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    padding: 60px 14px 14px;
    z-index: 3;
}

.smart-product-overlay-inner {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

/* Product Thumbnail */
.smart-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--smart-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--smart-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.smart-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.smart-product-details {
    flex: 1;
    min-width: 0;
}

.smart-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--smart-white);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Star Ratings */
.smart-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.smart-stars {
    display: flex;
    gap: 1px;
}

.smart-star {
    width: 12px;
    height: 12px;
    fill: #FFD700;
}

.smart-star.empty {
    fill: rgba(255, 255, 255, 0.3);
}

.smart-rating-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Price Display */
.smart-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smart-price-current {
    font-size: 14px;
    font-weight: 700;
    color: var(--smart-white);
}

.smart-price-original {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

/* ==========================================================================
   MODERN GRID LAYOUT
   ========================================================================== */

.smart-reels-grid.modern {
    display: grid;
    gap: var(--smart-gap);
    width: 100%;
}

.smart-reels-grid.modern[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.smart-reels-grid.modern[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.smart-reels-grid.modern[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.smart-reels-grid.modern[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.smart-reels-grid.modern[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

/* Masonry Effect (optional) */
.smart-reels-grid.modern.masonry .smart-reel-card-modern:nth-child(4n+1) {
    grid-row: span 2;
}

/* ==========================================================================
   CAROUSEL READY STATE - shared across modern/classic/overlay/title_only
   Slick's loop-clone setup and breakpoint resolution can visibly resize
   slides right after construction; stay hidden until it reports itself
   fully settled.
   ========================================================================== */

.smart-reels-carousel .smart-carousel-track {
    opacity: 0;
}

.smart-reels-carousel .smart-carousel-track.smart-carousel-ready {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* ==========================================================================
   CAROUSEL GUTTER - shared across all templates
   Slick has no native "space between slides" option like Swiper's
   spaceBetween. The standard way to fake it: padding on every slide makes
   the gap, and a matching negative margin on the track cancels the extra
   padding at the very first/last slide so the row still sits flush with
   the carousel's own outer edges instead of adding unwanted outer margin.
   ========================================================================== */

.smart-reels-carousel .smart-carousel-track.slick-slider {
    margin: 0 -8px;
}

.smart-reels-carousel .smart-carousel-slide {
    padding: 0 8px;
    box-sizing: border-box;
}

/* ==========================================================================
   MODERN CAROUSEL LAYOUT - Slick Integration
   ========================================================================== */

.smart-reels-carousel.modern {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.smart-reels-carousel.modern .smart-carousel-slide {
    height: auto;
    outline: none;
}

/* Carousel slides render at a consistent, uniform size */
.smart-reels-carousel.modern .slick-slide.slick-current {
    z-index: 2;
}

/* Carousel Navigation Arrows */
.smart-carousel-nav-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--smart-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: var(--smart-transition);
}

.smart-carousel-nav-modern:hover {
    background: var(--accent-color, var(--smart-primary));
    color: var(--smart-white);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.smart-carousel-nav-modern:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.smart-carousel-nav-modern.prev {
    left: 12px;
}

.smart-carousel-nav-modern.next {
    right: 12px;
}

.smart-carousel-nav-modern svg {
    width: 20px;
    height: 20px;
}

/* Carousel Pagination - Slick renders this as <ul class="smart-carousel-pagination"><li><button></button></li>...</ul> */
.smart-carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.smart-carousel-pagination li {
    display: flex;
    margin: 0;
}

.smart-carousel-pagination li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: var(--smart-transition);
}

.smart-carousel-pagination li.slick-active button {
    background: var(--accent-color, var(--smart-primary));
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   VIDEO PREVIEW ON HOVER
   ========================================================================== */

.smart-reel-card-modern .card-video-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.smart-reel-card-modern .card-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-reel-card-modern:hover .card-video-preview {
    opacity: 1;
}

/* Autoplay Video - Always show video, hide cover image */
.autoplay-video-enabled .card-video-preview.active {
    opacity: 1 !important;
}

.autoplay-video-enabled .card-thumbnail > img {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */

.smart-reel-card-modern.loading .card-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .smart-reels-grid.modern[data-columns="5"],
    .smart-reels-grid.modern[data-columns="6"] {
        grid-template-columns: repeat(3, 1fr);
    }

    .smart-carousel-nav-modern {
        width: 40px;
        height: 40px;
    }

    .smart-carousel-nav-modern.prev { left: 8px; }
    .smart-carousel-nav-modern.next { right: 8px; }
}

@media (max-width: 768px) {
    .smart-reels-grid.modern[data-columns="3"],
    .smart-reels-grid.modern[data-columns="4"],
    .smart-reels-grid.modern[data-columns="5"],
    .smart-reels-grid.modern[data-columns="6"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .smart-play-btn-modern {
        width: 50px;
        height: 50px;
    }

    .smart-play-btn-modern svg {
        width: 20px;
        height: 20px;
    }

    .smart-product-overlay {
        padding: 40px 12px 12px;
    }

    .smart-product-thumb {
        width: 40px;
        height: 40px;
    }

    .smart-product-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .smart-reels-grid.modern {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .smart-reel-card-modern .card-thumbnail {
        aspect-ratio: 9 / 12;
    }

    .smart-carousel-nav-modern {
        display: none;
    }
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.smart-reel-card-modern:focus-visible {
    outline: 3px solid var(--smart-primary);
    outline-offset: 3px;
}

.smart-carousel-nav-modern:focus-visible {
    outline: 3px solid var(--smart-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .smart-reel-card-modern,
    .smart-carousel-nav-modern,
    .smart-play-btn-modern {
        transition: none;
    }

    .smart-play-btn-modern::after {
        animation: none;
    }

    @keyframes shimmer {
        0%, 100% { transform: translateX(0); }
    }
}

/* ==========================================================================
   QUICK ADD TO CART BUTTON ON CARD
   ========================================================================== */

.smart-quick-cart-btn {
    position: absolute;
    bottom: 80px;
    padding: 0;
    right: 12px;
    width: 40px;
    height: 40px;
    background: var(--smart-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--smart-transition);
    opacity: 0;
    transform: translateY(10px);
}

.smart-reel-card-modern:hover .smart-quick-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.smart-quick-cart-btn:hover {
    background: var(--smart-primary);
    color: var(--smart-white);
    transform: scale(1.1);
}

.smart-quick-cart-btn svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.smart-quick-cart-btn.added {
    background: #00C853;
    color: var(--smart-white);
}

.smart-quick-cart-btn.smart-loading-quick {
    pointer-events: none;
}

.smart-quick-cart-btn.smart-loading-quick svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   CLASSIC TEMPLATE STYLES
   Premium E-Commerce Design - Nordstrom/Sephora/Apple Store inspired
   Elegant, professional, warm neutrals with refined interactions
   ========================================================================== */

:root {
    /* Classic Template Colors */
    --classic-gold: #D4AF37;
    --classic-gold-light: #F5E6B8;
    --classic-charcoal: #2D2D2D;
    --classic-warm-white: #FAFAFA;
    --classic-border: rgba(0, 0, 0, 0.08);
    --classic-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --classic-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Classic Playlist Container */
.smart-reels-playlist.classic {
    margin: 40px 0;
    width: 100%;
}

.smart-reels-playlist.classic .smart-playlist-header {
    margin-bottom: 28px;
    text-align: center;
}

.smart-reels-playlist.classic .smart-playlist-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--classic-charcoal);
    margin: 0;
}

/* Classic Card Container */
.smart-reel-card-classic {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--classic-warm-white);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid var(--classic-border);
}

.smart-reel-card-classic:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Classic Thumbnail */
.smart-reel-card-classic .card-thumbnail {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
}

.smart-reel-card-classic .card-thumbnail img,
.smart-reel-card-classic .card-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.smart-reel-card-classic:hover .card-thumbnail img,
.smart-reel-card-classic:hover .card-thumbnail video {
    transform: scale(1.03);
}

/* Classic Play Button - Frosted glass with gold accent */
.smart-play-btn-classic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.smart-play-btn-classic::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.smart-reel-card-classic:hover .smart-play-btn-classic::before {
    opacity: 1;
}

.smart-play-btn-classic svg {
    width: 24px;
    height: 24px;
    fill: var(--classic-charcoal);
    margin-left: 3px;
    transition: all 0.3s ease;
}

.smart-reel-card-classic:hover .smart-play-btn-classic {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.smart-reel-card-classic:hover .smart-play-btn-classic svg {
    fill: var(--classic-gold);
}

/* Pulse animation on hover */
.smart-reel-card-classic:hover .smart-play-btn-classic::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--classic-gold);
    border-radius: 50%;
    animation: classicPulse 1.5s ease-out infinite;
}

@keyframes classicPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Classic Card Info Section (Below Thumbnail) */
.smart-card-info-classic {
    padding: 20px;
    background: var(--classic-warm-white);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.smart-card-info-classic .product-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--classic-charcoal);
    margin: 0 0 10px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Classic Star Rating - Refined gold stars */
.smart-card-info-classic .rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.smart-card-info-classic .stars {
    display: flex;
    gap: 2px;
}

.smart-card-info-classic .star {
    width: 14px;
    height: 14px;
    fill: var(--classic-gold);
    filter: drop-shadow(0 1px 1px rgba(212, 175, 55, 0.3));
}

.smart-card-info-classic .star.empty {
    fill: none;
    stroke: var(--classic-gold);
    stroke-width: 1.5px;
    opacity: 0.5;
}

.smart-card-info-classic .rating-count {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* Classic Price Row - Two column layout */
.smart-card-info-classic .product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.smart-card-info-classic .price-current {
    font-size: 18px;
    font-weight: 600;
    color: var(--classic-charcoal);
    letter-spacing: -0.3px;
}

.smart-card-info-classic .price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.smart-card-info-classic .discount-tag {
    background: linear-gradient(135deg, #FDF2F2 0%, #FECACA 100%);
    color: #B91C1C;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Classic Add to Cart Button - Elegant expanding button */
.smart-cart-btn-classic {
    width: 100%;
    padding: 14px 20px;
    background: var(--classic-charcoal);
    color: var(--smart-white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.smart-cart-btn-classic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.smart-cart-btn-classic:hover::before {
    left: 100%;
}

.smart-cart-btn-classic:hover {
    background: var(--classic-gold);
    color: var(--classic-charcoal);
}

.smart-cart-btn-classic svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.smart-cart-btn-classic:hover svg {
    transform: scale(1.1);
}

/* Classic Video Preview */
.smart-reel-card-classic .card-video-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.smart-reel-card-classic .card-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-reel-card-classic:hover .card-video-preview {
    opacity: 1;
}

/* Classic Grid */
.smart-reels-grid.classic {
    display: grid;
    gap: 28px;
    width: 100%;
}

.smart-reels-grid.classic[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.smart-reels-grid.classic[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.smart-reels-grid.classic[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.smart-reels-grid.classic[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.smart-reels-grid.classic[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

/* Classic Carousel */
.smart-reels-carousel.classic {
    position: relative;
    width: 100%;
    padding: 20px 0 50px;
}

.smart-reels-carousel.classic .smart-carousel-slide {
    outline: none;
    transition: opacity 0.4s ease;
}

.smart-reels-carousel.classic .slick-slide:not(.slick-active) {
    opacity: 0.6;
}

/* ==========================================================================
   OVERLAY TEMPLATE STYLES
   Clean E-commerce Design with Frosted Glass Product Card
   Minimal, product-focused with glassmorphism effect
   ========================================================================== */

:root {
    /* Overlay Template Colors */
    --overlay-card-bg: rgba(255, 255, 255, 0.50);
    --overlay-card-blur: 10px;
    --overlay-text-dark: #1a1a1a;
    --overlay-text-muted: #666666;
    --overlay-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Overlay Playlist Container */
.smart-reels-playlist.overlay {
    margin: 40px 0;
    width: 100%;
}

.smart-reels-playlist.overlay .smart-playlist-header {
    margin-bottom: 24px;
}

.smart-reels-playlist.overlay .smart-playlist-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--smart-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

/* Overlay Card Container */
.smart-reel-card-overlay {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.smart-reel-card-overlay:hover {
    /* No transform or box-shadow on hover */
}

/* Overlay Thumbnail */
.smart-reel-card-overlay .card-thumbnail {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #0a0a0a;
}

.smart-reel-card-overlay .card-thumbnail img,
.smart-reel-card-overlay .card-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.smart-reel-card-overlay:hover .card-thumbnail img,
.smart-reel-card-overlay:hover .card-thumbnail video {
    transform: scale(1.03);
}

/* Overlay Play Button - Minimal, appears on hover */
.smart-play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.smart-reel-card-overlay:hover .smart-play-btn-overlay {
    opacity: 1;
}

.smart-play-btn-overlay svg {
    width: 24px;
    height: 24px;
    fill: var(--smart-white);
    margin-left: 3px;
}

.smart-play-btn-overlay:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.08);
}

/* Frosted Glass Product Card - Bottom of thumbnail */
.smart-overlay-content {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: var(--overlay-card-bg);
    backdrop-filter: blur(var(--overlay-card-blur));
    -webkit-backdrop-filter: blur(var(--overlay-card-blur));
    border-radius: 12px;
    padding: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--overlay-shadow);
    transition: all 0.3s ease;
}


/* Product Thumbnail in the card */
.smart-overlay-content .product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.smart-overlay-content .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.smart-overlay-content .product-details {
    flex: 1;
    min-width: 0;
}

.smart-overlay-content .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--overlay-text-dark);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.smart-overlay-content .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--overlay-text-dark);
    margin: 0;
}

.smart-overlay-content .price-original {
    font-size: 12px;
    color: var(--overlay-text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

/* Hide old product-meta structure */
.smart-overlay-content .product-meta {
    display: none;
}

/* Overlay Discount Badge - Clean pill style */
.smart-discount-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF3B30;
    color: var(--smart-white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 5;
}

/* Remove flame emoji */
.smart-discount-overlay::before {
    display: none;
}

/* Overlay Add to Cart - Inside the product card */
.smart-overlay-cart-btn {
    width: 36px;
    height: 36px;
    background: var(--smart-dark);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: static;
    opacity: 1;
    transform: none;
}

.smart-overlay-cart-btn:hover {
    background: var(--smart-primary);
}

.smart-overlay-cart-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--smart-white);
}

/* Video Preview */
.smart-reel-card-overlay .card-video-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.smart-reel-card-overlay .card-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-reel-card-overlay:hover .card-video-preview {
    opacity: 1;
}

/* Overlay Grid */
.smart-reels-grid.overlay {
    display: grid;
    gap: 20px;
    width: 100%;
}

.smart-reels-grid.overlay[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.smart-reels-grid.overlay[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.smart-reels-grid.overlay[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.smart-reels-grid.overlay[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.smart-reels-grid.overlay[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

/* Overlay Carousel */
.smart-reels-carousel.overlay {
    position: relative;
    width: 100%;
    padding: 20px 0 50px;
}

.smart-reels-carousel.overlay .smart-carousel-slide {
    outline: none;
    transition: opacity 0.4s ease;
}

/* ==========================================================================
   TITLE ONLY TEMPLATE STYLES
   Editorial/Gallery Design - Pinterest/Behance/Vogue inspired
   Minimalist, typography-focused, content-first with elegant transitions
   ========================================================================== */

:root {
    /* Title Only Template Colors */
    --title-only-text: #1a1a1a;
    --title-only-muted: #6b6b6b;
    --title-only-bg: #ffffff;
    --title-only-accent: #000000;
    --title-only-hover-bg: rgba(0, 0, 0, 0.03);
}

/* Title Only Playlist Container */
.smart-reels-playlist.title_only {
    margin: 50px 0;
    width: 100%;
}

.smart-reels-playlist.title_only .smart-playlist-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.smart-reels-playlist.title_only .smart-playlist-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--title-only-text);
    margin: 16px auto 0;
}

.smart-reels-playlist.title_only .smart-playlist-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--title-only-text);
    margin: 0;
}

/* Title Only Card Container */
.smart-reel-card-title-only {
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.smart-reel-card-title-only:hover {
    /* No transform on hover */
}

/* Title Only Thumbnail */
.smart-reel-card-title-only .card-thumbnail {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle desaturation by default, full color on hover */
.smart-reel-card-title-only .card-thumbnail img,
.smart-reel-card-title-only .card-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: saturate(0.85);
}

.smart-reel-card-title-only:hover .card-thumbnail img,
.smart-reel-card-title-only:hover .card-thumbnail video {
    transform: scale(1.02);
    filter: saturate(1);
}

/* Subtle vignette overlay */
.smart-reel-card-title-only .card-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.smart-reel-card-title-only:hover .card-thumbnail::before {
    opacity: 1;
}

/* Title Only Play Button - Ultra minimal thin line */
.smart-play-btn-title_only,
.smart-play-btn-title-only {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.smart-reel-card-title-only:hover .smart-play-btn-title_only,
.smart-reel-card-title-only:hover .smart-play-btn-title-only {
    opacity: 1;
}

.smart-play-btn-title_only svg,
.smart-play-btn-title-only svg {
    width: 16px;
    height: 16px;
    fill: var(--smart-white);
    margin-left: 2px;
    transition: all 0.3s ease;
}

.smart-reel-card-title-only:hover .smart-play-btn-title_only,
.smart-reel-card-title-only:hover .smart-play-btn-title-only {
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border-color: transparent;
}

.smart-reel-card-title-only:hover .smart-play-btn-title_only svg,
.smart-reel-card-title-only:hover .smart-play-btn-title-only svg {
    fill: var(--smart-white);
}

/* Alternative: Small centered triangle (no circle) */
.smart-reel-card-title-only.minimal-play .smart-play-btn-title_only,
.smart-reel-card-title-only.minimal-play .smart-play-btn-title-only {
    width: auto;
    height: auto;
    border: none;
    background: none;
}

.smart-reel-card-title-only.minimal-play .smart-play-btn-title_only svg,
.smart-reel-card-title-only.minimal-play .smart-play-btn-title-only svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Duration badge (optional) */
.smart-reel-card-title-only .duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.smart-reel-card-title-only:hover .duration-badge {
    opacity: 1;
}

/* Title Only - Title Section - Editorial typography */
.smart-title-only-info {
    padding: 16px 0 8px;
    text-align: left;
}

.smart-title-only-info .reel-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--title-only-text);
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.smart-reel-card-title-only:hover .smart-title-only-info .reel-title {
    color: var(--title-only-muted);
}

/* Serif font option for editorial feel */
.smart-reels-playlist.title_only.serif-style .smart-title-only-info .reel-title {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
}

/* Modern sans option */
.smart-reels-playlist.title_only.modern-style .smart-title-only-info .reel-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Video Preview */
.smart-reel-card-title-only .card-video-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.smart-reel-card-title-only .card-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-reel-card-title-only:hover .card-video-preview {
    opacity: 1;
}

/* Title Only Grid - Clean spacing */
.smart-reels-grid.title_only {
    display: grid;
    gap: 32px;
    width: 100%;
}

.smart-reels-grid.title_only[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.smart-reels-grid.title_only[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.smart-reels-grid.title_only[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.smart-reels-grid.title_only[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.smart-reels-grid.title_only[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

/* Masonry-like varied heights (optional class) */
.smart-reels-grid.title_only.masonry .smart-reel-card-title-only:nth-child(3n+1) .card-thumbnail {
    aspect-ratio: 3 / 4;
}

.smart-reels-grid.title_only.masonry .smart-reel-card-title-only:nth-child(3n+2) .card-thumbnail {
    aspect-ratio: 4 / 5;
}

.smart-reels-grid.title_only.masonry .smart-reel-card-title-only:nth-child(3n+3) .card-thumbnail {
    aspect-ratio: 1 / 1;
}

/* Title Only Carousel */
.smart-reels-carousel.title_only {
    position: relative;
    width: 100%;
    padding: 20px 0 50px;
}

.smart-reels-carousel.title_only .smart-carousel-slide {
    outline: none;
    transition: opacity 0.4s ease;
}

.smart-reels-carousel.title_only .slick-slide:not(.slick-active) {
    opacity: 0.5;
}

/* ==========================================================================
   RESPONSIVE STYLES FOR ALL TEMPLATES
   ========================================================================== */

/* Large Desktop */
@media (max-width: 1280px) {
    .smart-reels-grid.classic[data-columns="6"],
    .smart-reels-grid.overlay[data-columns="6"],
    .smart-reels-grid.title_only[data-columns="6"] {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop */
@media (max-width: 1024px) {
    .smart-reels-grid.classic[data-columns="5"],
    .smart-reels-grid.classic[data-columns="6"],
    .smart-reels-grid.overlay[data-columns="5"],
    .smart-reels-grid.overlay[data-columns="6"],
    .smart-reels-grid.title_only[data-columns="5"],
    .smart-reels-grid.title_only[data-columns="6"] {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Classic adjustments */
    .smart-reels-playlist.classic .smart-playlist-title {
        font-size: 24px;
    }

    /* Overlay adjustments */
    .smart-play-btn-overlay {
        width: 64px;
        height: 64px;
    }

    /* Title Only adjustments */
    .smart-reels-grid.title_only {
        gap: 24px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .smart-reels-grid.classic[data-columns="3"],
    .smart-reels-grid.classic[data-columns="4"],
    .smart-reels-grid.classic[data-columns="5"],
    .smart-reels-grid.classic[data-columns="6"],
    .smart-reels-grid.overlay[data-columns="3"],
    .smart-reels-grid.overlay[data-columns="4"],
    .smart-reels-grid.overlay[data-columns="5"],
    .smart-reels-grid.overlay[data-columns="6"],
    .smart-reels-grid.title_only[data-columns="3"],
    .smart-reels-grid.title_only[data-columns="4"],
    .smart-reels-grid.title_only[data-columns="5"],
    .smart-reels-grid.title_only[data-columns="6"] {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Classic Tablet */
    .smart-play-btn-classic {
        width: 56px;
        height: 56px;
    }

    .smart-play-btn-classic svg {
        width: 20px;
        height: 20px;
    }

    .smart-card-info-classic {
        padding: 16px;
    }

    .smart-card-info-classic .product-name {
        font-size: 14px;
    }

    .smart-card-info-classic .price-current {
        font-size: 16px;
    }

    .smart-cart-btn-classic {
        padding: 12px 16px;
        font-size: 12px;
    }

    /* Overlay Tablet */
    .smart-play-btn-overlay {
        width: 52px;
        height: 52px;
    }

    .smart-play-btn-overlay svg {
        width: 20px;
        height: 20px;
    }

    .smart-overlay-content {
        padding: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        gap: 10px;
    }

    .smart-overlay-content .product-thumb {
        width: 48px;
        height: 48px;
    }

    .smart-overlay-content .product-name {
        font-size: 13px;
    }

    .smart-overlay-content .price {
        font-size: 14px;
    }

    .smart-overlay-cart-btn {
        width: 32px;
        height: 32px;
    }

    .smart-overlay-cart-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Title Only Tablet */
    .smart-reels-playlist.title_only .smart-playlist-title {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .smart-title-only-info .reel-title {
        font-size: 13px;
    }

    .smart-play-btn-title_only,
    .smart-play-btn-title-only {
        width: 48px;
        height: 48px;
    }

    .smart-reels-grid.title_only {
        gap: 20px;
    }

}

/* Mobile */
@media (max-width: 480px) {
    /* All templates single column */
    .smart-reels-grid.classic,
    .smart-reels-grid.overlay,
    .smart-reels-grid.title_only {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Classic Mobile */
    .smart-reel-card-classic .card-thumbnail {
        aspect-ratio: 4 / 5;
    }

    .smart-play-btn-classic {
        width: 52px;
        height: 52px;
    }

    .smart-card-info-classic {
        padding: 14px;
    }

    .smart-card-info-classic .product-name {
        font-size: 15px;
    }

    .smart-card-info-classic .product-price-row {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .smart-reels-playlist.classic .smart-playlist-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    /* Overlay Mobile */
    .smart-reel-card-overlay {
        border-radius: 16px;
    }

    .smart-reel-card-overlay .card-thumbnail {
        aspect-ratio: 9 / 14;
    }

    .smart-play-btn-overlay {
        width: 48px;
        height: 48px;
    }

    .smart-play-btn-overlay svg {
        width: 18px;
        height: 18px;
    }

    .smart-overlay-content {
        padding: 8px;
        bottom: 8px;
        left: 8px;
        right: 8px;
        gap: 8px;
        border-radius: 10px;
    }

    .smart-overlay-content .product-thumb {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }

    .smart-overlay-content .product-name {
        font-size: 12px;
    }

    .smart-overlay-content .price {
        font-size: 13px;
    }

    .smart-overlay-cart-btn {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .smart-overlay-cart-btn svg {
        width: 14px;
        height: 14px;
    }

    .smart-discount-overlay {
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 4px;
    }

    /* Title Only Mobile */
    .smart-reel-card-title-only .card-thumbnail {
        aspect-ratio: 4 / 5;
    }

    .smart-reels-playlist.title_only .smart-playlist-header::after {
        width: 30px;
    }

    .smart-title-only-info {
        padding: 12px 0 6px;
    }

    .smart-title-only-info .reel-title {
        font-size: 14px;
    }

    .smart-play-btn-title_only,
    .smart-play-btn-title-only {
        width: 44px;
        height: 44px;
    }

    .smart-play-btn-title_only svg,
    .smart-play-btn-title-only svg {
        width: 14px;
        height: 14px;
    }

    .smart-reels-grid.title_only {
        gap: 16px;
    }

    /* Disable complex animations on mobile for performance */
    .smart-play-btn-overlay::before {
        display: none;
    }

    .smart-play-btn-classic::before,
    .smart-play-btn-classic::after {
        display: none;
    }
}

/* ==========================================================================
   CAROUSEL NAVIGATION FOR ALL TEMPLATES
   ========================================================================== */

/* Classic Carousel Navigation */
.smart-reels-carousel.classic .smart-carousel-nav-modern {
    background: var(--classic-warm-white);
    border: 1px solid var(--classic-border);
    box-shadow: var(--classic-shadow);
}

.smart-reels-carousel.classic .smart-carousel-nav-modern:hover {
    background: var(--classic-gold);
    border-color: var(--classic-gold);
    color: var(--classic-charcoal);
}

.smart-reels-carousel.classic .smart-carousel-pagination li.slick-active button {
    background: var(--classic-gold);
}

/* Overlay Carousel Navigation */
.smart-reels-carousel.overlay .smart-carousel-nav-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--smart-white);
}

.smart-reels-carousel.overlay .smart-carousel-nav-modern:hover {
    background: var(--overlay-accent);
    border-color: var(--overlay-accent);
}

.smart-reels-carousel.overlay .smart-carousel-pagination li button {
    background: rgba(255, 255, 255, 0.3);
}

.smart-reels-carousel.overlay .smart-carousel-pagination li.slick-active button {
    background: var(--overlay-accent);
}

/* Title Only Carousel Navigation - Minimal */
.smart-reels-carousel.title_only .smart-carousel-nav-modern {
    background: var(--smart-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 40px;
    height: 40px;
}

.smart-reels-carousel.title_only .smart-carousel-nav-modern:hover {
    background: var(--title-only-text);
    border-color: var(--title-only-text);
    color: var(--smart-white);
}

.smart-reels-carousel.title_only .smart-carousel-pagination li button {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.15);
}

.smart-reels-carousel.title_only .smart-carousel-pagination li.slick-active button {
    background: var(--title-only-text);
    width: 20px;
    border-radius: 3px;
}

/* ==========================================================================
   ACCESSIBILITY FOR ALL TEMPLATES
   ========================================================================== */

/* Focus states */
.smart-reel-card-classic:focus-visible {
    outline: 3px solid var(--classic-gold);
    outline-offset: 3px;
}

.smart-reel-card-overlay:focus-visible {
    outline: 3px solid var(--overlay-accent);
    outline-offset: 3px;
}

.smart-reel-card-title-only:focus-visible {
    outline: 3px solid var(--title-only-text);
    outline-offset: 3px;
}

.smart-cart-btn-classic:focus-visible,
.smart-overlay-cart-btn:focus-visible {
    outline: 3px solid var(--smart-primary);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .smart-reel-card-classic,
    .smart-reel-card-overlay,
    .smart-reel-card-title-only,
    .smart-play-btn-classic,
    .smart-play-btn-overlay,
    .smart-play-btn-title_only,
    .smart-play-btn-title-only,
    .smart-overlay-content,
    .smart-cart-btn-classic,
    .smart-overlay-cart-btn {
        transition: none !important;
    }

    .smart-reel-card-classic .card-thumbnail img,
    .smart-reel-card-overlay .card-thumbnail img,
    .smart-reel-card-title-only .card-thumbnail img {
        transition: none !important;
    }

    .smart-play-btn-overlay::before,
    .smart-play-btn-classic::after,
    .smart-discount-overlay {
        animation: none !important;
    }

    @keyframes classicPulse {
        0%, 100% { transform: scale(1); opacity: 0; }
    }

    @keyframes overlayRingSpin {
        0%, 100% { transform: rotate(0deg); }
    }

    @keyframes overlayBadgePulse {
        0%, 100% { transform: scale(1); }
    }
}

/* ==========================================================================
   OVERLAY ICON POSITION STYLES
   Supports: center, top-left, top-right, bottom-left, bottom-right
   ========================================================================== */

/* Default position is center - already handled by default styles */

/* Top Left Position */
.smart-play-btn-modern.position-top-left,
.smart-play-btn-classic.position-top-left,
.smart-play-btn-overlay.position-top-left,
.smart-play-btn-title_only.position-top-left,
.smart-play-btn-title-only.position-top-left {
    top: 16px;
    left: 16px;
    right: auto;
    bottom: auto;
    transform: none;
}

.smart-reel-card-modern:hover .smart-play-btn-modern.position-top-left,
.smart-reel-card-classic:hover .smart-play-btn-classic.position-top-left,
.smart-reel-card-overlay:hover .smart-play-btn-overlay.position-top-left {
    transform: scale(1.1);
}

/* Top Right Position */
.smart-play-btn-modern.position-top-right,
.smart-play-btn-classic.position-top-right,
.smart-play-btn-overlay.position-top-right,
.smart-play-btn-title_only.position-top-right,
.smart-play-btn-title-only.position-top-right {
    top: 16px;
    right: 16px;
    left: auto;
    bottom: auto;
    transform: none;
}

.smart-reel-card-modern:hover .smart-play-btn-modern.position-top-right,
.smart-reel-card-classic:hover .smart-play-btn-classic.position-top-right,
.smart-reel-card-overlay:hover .smart-play-btn-overlay.position-top-right {
    transform: scale(1.1);
}

/* Bottom Left Position */
.smart-play-btn-modern.position-bottom-left,
.smart-play-btn-classic.position-bottom-left,
.smart-play-btn-overlay.position-bottom-left,
.smart-play-btn-title_only.position-bottom-left,
.smart-play-btn-title-only.position-bottom-left {
    bottom: 16px;
    left: 16px;
    top: auto;
    right: auto;
    transform: none;
}

/* For overlay template, position above the product card */
.smart-reel-card-overlay .smart-play-btn-overlay.position-bottom-left {
    bottom: 100px;
}

.smart-reel-card-modern:hover .smart-play-btn-modern.position-bottom-left,
.smart-reel-card-classic:hover .smart-play-btn-classic.position-bottom-left,
.smart-reel-card-overlay:hover .smart-play-btn-overlay.position-bottom-left {
    transform: scale(1.1);
}

/* Bottom Right Position */
.smart-play-btn-modern.position-bottom-right,
.smart-play-btn-classic.position-bottom-right,
.smart-play-btn-overlay.position-bottom-right,
.smart-play-btn-title_only.position-bottom-right,
.smart-play-btn-title-only.position-bottom-right {
    bottom: 16px;
    right: 16px;
    top: auto;
    left: auto;
    transform: none;
}

/* For overlay template, position above the product card */
.smart-reel-card-overlay .smart-play-btn-overlay.position-bottom-right {
    bottom: 100px;
}

.smart-reel-card-modern:hover .smart-play-btn-modern.position-bottom-right,
.smart-reel-card-classic:hover .smart-play-btn-classic.position-bottom-right,
.smart-reel-card-overlay:hover .smart-play-btn-overlay.position-bottom-right {
    transform: scale(1.1);
}

/* Center Position (explicit class - same as default) */
.smart-play-btn-modern.position-center,
.smart-play-btn-classic.position-center,
.smart-play-btn-overlay.position-center,
.smart-play-btn-title_only.position-center,
.smart-play-btn-title-only.position-center {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.smart-reel-card-modern:hover .smart-play-btn-modern.position-center,
.smart-reel-card-classic:hover .smart-play-btn-classic.position-center,
.smart-reel-card-overlay:hover .smart-play-btn-overlay.position-center {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   AUTOPLAY ON HOVER - ENHANCED VIDEO PREVIEW
   ========================================================================== */

/* Autoplay hover enabled - show video faster */
.hover-preview-enabled .card-video-preview.autoplay-hover {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hover-preview-enabled .smart-reel-card-modern:hover .card-video-preview.autoplay-hover,
.hover-preview-enabled .smart-reel-card-classic:hover .card-video-preview.autoplay-hover,
.hover-preview-enabled .smart-reel-card-overlay:hover .card-video-preview.autoplay-hover,
.hover-preview-enabled .smart-reel-card-title-only:hover .card-video-preview.autoplay-hover {
    opacity: 1;
}

/* Hide thumbnail image when video is playing on hover */
.hover-preview-enabled .smart-reel-card-modern:hover .card-thumbnail > img,
.hover-preview-enabled .smart-reel-card-classic:hover .card-thumbnail > img,
.hover-preview-enabled .smart-reel-card-overlay:hover .card-thumbnail > img,
.hover-preview-enabled .smart-reel-card-title-only:hover .card-thumbnail > img {
    opacity: 0;
}

/* Ensure video preview is properly positioned */
.card-video-preview.autoplay-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.card-video-preview.autoplay-hover video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   MOBILE ADJUSTMENTS FOR ICON POSITIONS
   ========================================================================== */

@media (max-width: 768px) {
    /* Smaller play buttons for corner positions on mobile */
    .smart-play-btn-modern.position-top-left,
    .smart-play-btn-modern.position-top-right,
    .smart-play-btn-modern.position-bottom-left,
    .smart-play-btn-modern.position-bottom-right,
    .smart-play-btn-classic.position-top-left,
    .smart-play-btn-classic.position-top-right,
    .smart-play-btn-classic.position-bottom-left,
    .smart-play-btn-classic.position-bottom-right,
    .smart-play-btn-overlay.position-top-left,
    .smart-play-btn-overlay.position-top-right,
    .smart-play-btn-overlay.position-bottom-left,
    .smart-play-btn-overlay.position-bottom-right {
        width: 44px;
        height: 44px;
    }

    .smart-play-btn-modern.position-top-left svg,
    .smart-play-btn-modern.position-top-right svg,
    .smart-play-btn-modern.position-bottom-left svg,
    .smart-play-btn-modern.position-bottom-right svg,
    .smart-play-btn-classic.position-top-left svg,
    .smart-play-btn-classic.position-top-right svg,
    .smart-play-btn-classic.position-bottom-left svg,
    .smart-play-btn-classic.position-bottom-right svg,
    .smart-play-btn-overlay.position-top-left svg,
    .smart-play-btn-overlay.position-top-right svg,
    .smart-play-btn-overlay.position-bottom-left svg,
    .smart-play-btn-overlay.position-bottom-right svg {
        width: 18px;
        height: 18px;
    }

    /* Reduce spacing from edges on mobile */
    .smart-play-btn-modern.position-top-left,
    .smart-play-btn-classic.position-top-left,
    .smart-play-btn-overlay.position-top-left {
        top: 12px;
        left: 12px;
    }

    .smart-play-btn-modern.position-top-right,
    .smart-play-btn-classic.position-top-right,
    .smart-play-btn-overlay.position-top-right {
        top: 12px;
        right: 12px;
    }

    .smart-play-btn-modern.position-bottom-left,
    .smart-play-btn-classic.position-bottom-left {
        bottom: 12px;
        left: 12px;
    }

    .smart-play-btn-modern.position-bottom-right,
    .smart-play-btn-classic.position-bottom-right {
        bottom: 12px;
        right: 12px;
    }

    /* Overlay template - position above product card */
    .smart-reel-card-overlay .smart-play-btn-overlay.position-bottom-left,
    .smart-reel-card-overlay .smart-play-btn-overlay.position-bottom-right {
        bottom: 85px;
    }
}

/* ==========================================================================
   CUSTOMIZABLE PLAY BUTTON STYLES (via CSS Variables)
   ========================================================================== */

/* Apply custom styles when CSS variables are set on parent */
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-modern,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-classic,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-overlay,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-title_only,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-title-only {
    width: var(--play-btn-size, 50px);
    height: var(--play-btn-size, 50px);
    background: var(--play-btn-bg, rgba(0,0,0,0.6));
    padding: 0;
}

.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-modern::before,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-classic::before,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-overlay::before {
    display: none;
}

.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-modern svg,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-classic svg,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-overlay svg,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-title_only svg,
.smart-reels-playlist[style*="--play-btn-bg"] .smart-play-btn-title-only svg {
    fill: var(--play-btn-color, #ffffff);
    width: calc(var(--play-btn-size, 50px) * 0.4);
    height: calc(var(--play-btn-size, 50px) * 0.4);
}

/* Animation: None */
.smart-reels-playlist.play-btn-animation-none .smart-play-btn-modern::after,
.smart-reels-playlist.play-btn-animation-none .smart-play-btn-classic::after,
.smart-reels-playlist.play-btn-animation-none .smart-play-btn-overlay::after,
.smart-reels-playlist.play-btn-animation-none .smart-play-btn-title_only::after,
.smart-reels-playlist.play-btn-animation-none .smart-play-btn-title-only::after {
    display: none;
    animation: none;
}

/* Animation: Pulse (default) */
.smart-reels-playlist.play-btn-animation-pulse .smart-play-btn-modern::after,
.smart-reels-playlist.play-btn-animation-pulse .smart-play-btn-classic::after,
.smart-reels-playlist.play-btn-animation-pulse .smart-play-btn-overlay::after,
.smart-reels-playlist.play-btn-animation-pulse .smart-play-btn-title_only::after,
.smart-reels-playlist.play-btn-animation-pulse .smart-play-btn-title-only::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--play-btn-bg, rgba(0,0,0,0.4));
    border-radius: 50%;
    animation: playBtnPulseCustom 2s ease-out infinite;
}

@keyframes playBtnPulseCustom {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Animation: Bounce */
.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-modern,
.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-classic,
.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-overlay,
.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-title_only,
.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-title-only {
    animation: playBtnBounce 2s ease-in-out infinite;
}

.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-modern::after,
.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-classic::after,
.smart-reels-playlist.play-btn-animation-bounce .smart-play-btn-overlay::after {
    display: none;
}

@keyframes playBtnBounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Animation: Glow */
.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-modern,
.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-classic,
.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-overlay,
.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-title_only,
.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-title-only {
    animation: playBtnGlow 2s ease-in-out infinite;
}

.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-modern::after,
.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-classic::after,
.smart-reels-playlist.play-btn-animation-glow .smart-play-btn-overlay::after {
    display: none;
}

@keyframes playBtnGlow {
    0%, 100% {
        box-shadow: 0 0 10px var(--play-btn-bg, rgba(0,0,0,0.4)),
                    0 0 20px var(--play-btn-bg, rgba(0,0,0,0.2));
    }
    50% {
        box-shadow: 0 0 20px var(--play-btn-bg, rgba(0,0,0,0.6)),
                    0 0 40px var(--play-btn-bg, rgba(0,0,0,0.4)),
                    0 0 60px var(--play-btn-bg, rgba(0,0,0,0.2));
    }
}

/* ==========================================================================
   CAROUSEL: NO TRANSFORM, ANYWHERE
   Every transform (scale/translate hover effects, pulse-ring animations,
   centering transforms) inside a carousel is removed. Fixed-size buttons
   that used to be centered via translate(-50%, -50%) are re-centered with
   inset + margin: auto instead, which needs no transform at all.
   ========================================================================== */

/* Exclude Slick's own structural elements: Slick positions/slides the
   carousel via an inline transform on .slick-track - nulling that would
   break the carousel's ability to slide at all. */
.smart-reels-carousel *:not(.smart-carousel-track):not(.slick-list):not(.slick-track):not(.slick-slide) {
    transform: none !important;
    animation: none !important;
}

/* Play buttons - modern / classic / overlay / title_only */
.smart-reels-carousel .smart-play-btn-modern,
.smart-reels-carousel .smart-play-btn-classic,
.smart-reels-carousel .smart-play-btn-overlay,
.smart-reels-carousel .smart-play-btn-title_only,
.smart-reels-carousel .smart-play-btn-title-only {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

/* Carousel nav arrows - vertically centered only (left/right come from .prev/.next) */
.smart-reels-carousel .smart-carousel-nav-modern {
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}

/* Quick add-to-cart button on hover - fade only, no slide-up */
.smart-reels-carousel .smart-quick-cart-btn {
    bottom: 80px;
}

.smart-reels-carousel .smart-reel-card-modern:hover .smart-quick-cart-btn {
    opacity: 1;
}
