/* --- 1. BASE FRONTEND LAYOUTS (GRID, CAROUSEL, STORIES) --- */
.wooclipshop-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: var(--wcs-container-padding, 15px);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wooclipshop-layout-grid {
    display: grid;
    gap: var(--wcs-item-gap, 15px);
}

.wooclipshop-layout-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--wcs-item-gap, 15px);
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.wooclipshop-layout-carousel::-webkit-scrollbar {
    display: none;
}

/* Base item - Snap for carousel */
.wooclipshop-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Widths based on columns */
.wooclipshop-cols-d-1.wooclipshop-layout-carousel .wooclipshop-item {
    flex: 0 0 100%;
}

.wooclipshop-cols-d-2.wooclipshop-layout-carousel .wooclipshop-item {
    flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 1)) / 2);
}

.wooclipshop-cols-d-3.wooclipshop-layout-carousel .wooclipshop-item {
    flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 2)) / 3);
}

.wooclipshop-cols-d-4.wooclipshop-layout-carousel .wooclipshop-item {
    flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 3)) / 4);
}

.wooclipshop-cols-d-5.wooclipshop-layout-carousel .wooclipshop-item {
    flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 4)) / 5);
}

.wooclipshop-cols-d-6.wooclipshop-layout-carousel .wooclipshop-item {
    flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 5)) / 6);
}

@media (max-width: 1024px) {
    .wooclipshop-cols-t-1.wooclipshop-layout-carousel .wooclipshop-item {
        flex: 0 0 100%;
    }

    .wooclipshop-cols-t-2.wooclipshop-layout-carousel .wooclipshop-item {
        flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 1)) / 2);
    }

    .wooclipshop-cols-t-3.wooclipshop-layout-carousel .wooclipshop-item {
        flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 2)) / 3);
    }
}

@media (max-width: 640px) {
    .wooclipshop-cols-m-1.wooclipshop-layout-carousel .wooclipshop-item {
        flex: 0 0 100%;
    }

    .wooclipshop-cols-m-2.wooclipshop-layout-carousel .wooclipshop-item {
        flex: 0 0 calc((100% - (var(--wcs-item-gap, 15px) * 1)) / 2);
    }
}

/* Root positioning for Arrows */
.wooclipshop-root {
    position: relative;
    width: 100%;
}

.wooclipshop-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

.wooclipshop-carousel-arrow {
    width: var(--wcs-arrow-size, 44px);
    height: var(--wcs-arrow-size, 44px);
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--wcs-arrow-color, #000);
}

.wooclipshop-carousel-arrow .dashicons,
.wooclipshop-carousel-arrow svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: block;
}

.wooclipshop-carousel-arrow:hover {
    transform: scale(1.1);
    background: #000;
    color: #fff;
}

.wooclipshop-carousel-arrow:active {
    transform: scale(0.95);
}

/* Modern Dots Styling */
@media (min-width: 1025px) {
    .wooclipshop-carousel-dots {
        display: none !important;
    }
}

.wooclipshop-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wooclipshop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wooclipshop-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--wcs-dot-color, #000);
}

.wooclipshop-item {
    position: relative;
    border-radius: var(--wcs-card-radius, 12px);
    overflow: hidden;
    background: #000;
    aspect-ratio: 9/16;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scroll-snap-align: start;
}

.wooclipshop-item:hover {
    transform: scale(1.02);
}

.wooclipshop-media-wrapper {
    width: 100%;
    height: 100%;
}

.wooclipshop-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid UI Icons Logic */
.wooclipshop-grid-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.wooclipshop-grid-left,
.wooclipshop-grid-right {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.wooclipshop-icon-heart-grid,
.wooclipshop-icon-cart-grid {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stories Layout - HIDDEN ICONS AS REQUESTED */
.wooclipshop-layout-stories {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 15px 0;
}

.wooclipshop-layout-stories::-webkit-scrollbar {
    display: none;
}

.wooclipshop-layout-stories .wooclipshop-item {
    flex: 0 0 85px;
    height: 85px;
    border-radius: var(--wcs-story-border-radius, 50%);
    aspect-ratio: 1/1;
    border: 3px solid var(--wcs-story-border-color, #ff3b30);
    padding: 3px;
    background: transparent;
    transform: none;
}

.wooclipshop-layout-stories .wooclipshop-media-wrapper {
    border-radius: var(--wcs-story-border-radius, 50%);
    overflow: hidden;
}

.wooclipshop-layout-stories .wooclipshop-grid-ui {
    display: none !important;
}

/* Exact request: hide icons */


/* --- 2. EXACT SPLIT-SCREEN LIGHTBOX (LYVN.IN STYLE) --- */
.wooclipshop-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly lighter as per screenshot vibe */
    backdrop-filter: blur(15px);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wooclipshop-lightbox-overlay.active {
    display: block;
    opacity: 1;
}

/* Hide Mobile-only Elements by default (Desktop view) */
.wooclipshop-lb-close-btn-mobile,
.wooclipshop-info-close-mobile,
.wooclipshop-mobile-peek-card,
.wooclipshop-mobile-cart-btn {
    display: none;
}

/* Global Close Icon */
.wooclipshop-lightbox-close-global {
    position: fixed;
    top: 40px;
    right: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 1000010;
    width: 44px;
    height: 44px;
    background: #000;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    padding: 0 !important;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wooclipshop-lightbox-close-global:hover {
    transform: scale(1.1);
}

.wooclipshop-lightbox-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    /* Enable 3D space */
}

/* Neighbor Peeks - Modern Center Focus Carousel Style (Sharper Look) */
.wooclipshop-neighbor {
    position: absolute;
    top: 50%;
    width: 250px;
    height: 440px;
    border-radius: 0;
    /* Boxy look */
    overflow: hidden;
    opacity: 0.8;
    z-index: 5;
    background: #000;
    transition: opacity 0.5s ease;
    /* No scale transition */
    cursor: pointer;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    filter: brightness(0.7);
    /* Clear but slightly focused out */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wooclipshop-neighbor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wooclipshop-neighbor:hover {
    filter: brightness(1);
    opacity: 1;
    z-index: 15;
}

/* Hover effect removed */

.wooclipshop-neighbor.prev {
    right: calc(50% + 385px);
    left: auto;
    transform: translateY(-50%) scale(0.9);
}

.wooclipshop-neighbor.next {
    left: calc(50% + 385px);
    right: auto;
    transform: translateY(-50%) scale(0.9);
}

/* --- Dynamic Responsiveness for Sides --- */
@media (max-width: 1400px) {
    .wooclipshop-neighbor {
        width: 200px;
        height: 350px;
    }

    .wooclipshop-neighbor.prev {
        right: calc(50% + 365px);
    }

    .wooclipshop-neighbor.next {
        left: calc(50% + 365px);
    }
}

@media (max-width: 1150px) {
    .wooclipshop-neighbor {
        opacity: 0.4;
        /* Fade out more when tight */
        width: 160px;
        height: 280px;
    }

    .wooclipshop-neighbor.prev {
        right: calc(50% + 355px);
    }

    .wooclipshop-neighbor.next {
        left: calc(50% + 355px);
    }
}


/* Navigation Arrows - Floating Large Circles */
.wooclipshop-side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    padding: 0 !important;
    color: #fff;
    cursor: pointer;
    z-index: 1000030;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.wooclipshop-side-nav:hover {
    background: #fff;
    color: #000;
}

.wooclipshop-prev-video {
    left: 20px;
}

.wooclipshop-next-video {
    right: 20px;
}


/* Main Video+Product Container */
.wooclipshop-lightbox-split {
    display: flex;
    width: 690px;
    max-width: 95vw;
    height: 614px;
    min-height: 614px;
    background: transparent;
    border-radius: 0;
    /* Sharp Edges */
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease, background 0.3s;
    margin: 0 auto;
}

/* LEFT: Video Column */
.wooclipshop-lightbox-video-col {
    flex: 1;
    /* Stretch to fill half */
    height: 100%;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Split Screen Mode (Has Product) - Desktop Only */
@media (min-width: 901px) {
    .wooclipshop-lightbox-split {
        background: #fff;
    }

    /* If NO product (Video Only), force 9:16 aspect ratio */
    .wooclipshop-lightbox-split:not(.wooclipshop-has-product) {
        aspect-ratio: 9/16;
        width: auto;
    }

    .wooclipshop-lightbox-split:not(.wooclipshop-has-product) .wooclipshop-lightbox-video-col {
        flex: 100%;
        width: 100%;
    }
}

.wooclipshop-lightbox-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wooclipshop-lightbox-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
    /* On top of video */
}

.wooclipshop-lightbox-progress-bar {
    height: 100%;
    background: var(--wcs-primary-color, #000);
    width: 0;
}

/* Sound Button - Top Right of Video */
.wooclipshop-lightbox-video-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 150;
}

.wooclipshop-action-circle {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.wooclipshop-action-circle:hover {
    background: #000;
    transform: scale(1.05);
}

/* Ensure the sound icon span which holds the SVG doesn't collapse */
.wooclipshop-sound-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wooclipshop-mobile-cart-btn {
    display: none;
    /* JS will show this on mobile if needed */
}

/* Add spacing between icons on desktop if both are present */
.wooclipshop-lightbox-video-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wooclipshop-side-nav svg,
.wooclipshop-action-circle svg {
    width: 20px;
    height: 20px;
    display: block;
    /* Remove baseline gap */
    margin: 0;
}

/* RIGHT: Product Info Column */
.wooclipshop-lightbox-info-col {
    flex: 0 0 50%;
    width: 50%;
    background: #fff;
    display: none;
    flex-direction: column;
    overflow: hidden;
    /* clip outer container */
    position: relative;
    height: 100%;
}

/* When product is present, show the info col */
.wooclipshop-has-product .wooclipshop-lightbox-info-col {
    display: flex;
}

/* Top: 2-Column Gallery Grid */





/* Middle: Scrollable Content — hidden scrollbar */
.wooclipshop-product-details-content {
    flex: 1 1 auto;
    min-height: 0;
    /* CRITICAL: allows flex child to shrink below content size */
    padding: 20px;
    padding-bottom: 12px;
    /* No need for extra padding — footer is outside flow */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* Hide scrollbar — cross-browser */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE / Edge legacy */
}

.wooclipshop-product-details-content::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari / Opera */
}

/* Top: Gallery Carousel - Horizontal Scroll */
.wooclipshop-product-media-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    height: auto;
    cursor: grab;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    /* Firefox — thin visible scrollbar */
    scrollbar-color: #aaa transparent;
    /* Firefox — grey thumb, transparent track */
}

.wooclipshop-product-media-carousel::-webkit-scrollbar {
    height: 6px;
    display: block !important;
}

.wooclipshop-product-media-carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.wooclipshop-product-media-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.wooclipshop-product-media-carousel:active {
    cursor: grabbing;
}

.wooclipshop-lb-gallery-img {
    width: auto;
    min-width: 50%;
    /* At least half container for carousel feel */
    height: auto;
    /* Natural height — no constraint */
    max-height: 280px;
    /* Reasonable upper cap so it doesn't go too tall */
    object-fit: cover;
    border-right: 1px solid #fff;
    pointer-events: auto;
    -webkit-user-drag: none;
}

.wooclipshop-product-media-carousel.single-image {
    grid-template-columns: 1fr !important;
}

.wooclipshop-product-media-carousel.single-image .wooclipshop-lb-gallery-img {
    width: 100% !important;
    min-width: 100% !important;
    object-fit: contain;
    /* Ensure whole product is seen if single */
    background: #f9f9f9;
    /* Subtle bg for transparent pngs */
}

/* Title */
.wooclipshop-product-title {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    line-height: 1.3;
    margin-bottom: 12px;
    /* Increased space */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pricing */
.wooclipshop-product-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
    /* Monospace vibe in some designs, or clean sans */
    font-family: inherit;
}

.wooclipshop-current-price {
    font-size: 18px;
    font-weight: 800;
    color: #000;
}

.wooclipshop-compare-price {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
    font-weight: 400;
}

/* Sizes / Variants */
.wooclipshop-product-variants-section label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: #333;
}

.wooclipshop-variant-options {
    display: flex;
    flex-direction: column;
    /* each attribute on its own row */
    gap: 20px;
    /* Increased gap between rows */
    margin: 25px 0;
    /* Increased vertical margin */
}

.wooclipshop-var-row {
    margin-bottom: 10px;
}

.wooclipshop-var-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    /* Breathing room for chips */
    color: #333;
    text-transform: capitalize;
}

.wooclipshop-chips-container {
    display: flex;
    flex-direction: row;
    /* Horizontal */
    flex-wrap: wrap;
    gap: 10px;
}

.wooclipshop-variant-chip {
    min-width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    /* Rounded for sizes */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    text-transform: uppercase;
    padding: 0 10px;
    /* Accommodate longer text */
}

.wooclipshop-variant-chip:hover {
    border-color: #000;
}

.wooclipshop-variant-chip.active {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 700;
}

.wooclipshop-selected-val {
    font-weight: 700;
    color: #000;
    margin-left: 5px;
}


/* Description */
.wooclipshop-product-description {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.wooclipshop-product-description h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

/* Description - Read More Logic */
.wooclipshop-description-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
}

.wooclipshop-read-more-btn {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
}

.wooclipshop-read-more {
    display: none;
    /* Hide read more if we want full text, or style it */
}

/* Fallback: Hide Dots if they appear */
.wooclipshop-gallery-dots {
    display: none !important;
}


/* --- Color Swatch Chip (circle only, no text) --- */
.wooclipshop-color-chip {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 0, 0, 0.12) !important;
    background: var(--swatch-color, #ccc) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    position: relative;
    /* CRITICAL for absolute centering */
    transition: box-shadow 0.15s !important;
}

.wooclipshop-color-chip:hover {
    opacity: 0.9 !important;
}

.wooclipshop-color-chip.active {
    background: var(--swatch-color, #ccc) !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000 !important;
    border-color: transparent !important;
}

/* Checkmark/Tick Icon for active color swatch - FIXED Centering */
.wooclipshop-color-chip.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -65%) rotate(-45deg);
    /* Adjusted for perfect optical center */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Invert tick for light colors so it stays visible */
.wooclipshop-color-chip.active[title="White"]::after,
.wooclipshop-color-chip.active[title="white"]::after,
.wooclipshop-color-chip.active[title="Beige"]::after,
.wooclipshop-color-chip.active[title="beige"]::after,
.wooclipshop-color-chip.active[title="Yellow"]::after,
.wooclipshop-color-chip.active[title="yellow"]::after {
    border-color: #000;
}

.wcs-color-dot {
    display: none;
}

/* Cart Icon with Bubble */
.wooclipshop-cart-bubble-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border-radius: 50%;
    transition: background 0.2s;
    margin-left: 5px;
}

.wooclipshop-cart-bubble-btn:hover {
    background: #f5f5f5;
}

.wooclipshop-cart-count-bubble {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Footer Actions — sticky at bottom of info col via flex (not absolute) */
.wooclipshop-lightbox-footer {
    flex: 0 0 auto;
    /* Never shrink — always takes its natural height */
    width: 100%;
    min-height: 70px;
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    z-index: 50;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.wooclipshop-footer-btn {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    border-radius: 0;
    /* Boxy buttons */
}

.wooclipshop-footer-btn:hover {
    opacity: 0.8;
}

/* "More Info" -> Block button with border */
.wooclipshop-footer-btn.tertiary {
    background: transparent;
    border: none !important;
    color: #000;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.wooclipshop-footer-btn.tertiary:hover {
    background: #f5f5f5;
}

/* "Add to Cart" -> Primary Theme Color */
.wooclipshop-footer-btn.primary {
    flex: 1.5;
    background: var(--wcs-primary-color, #000);
    color: #fff;
    border: 1px solid var(--wcs-primary-color, #000);
}

/* Cart Icon Button */
.wooclipshop-cart-bubble-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #000;
    cursor: pointer;
    flex-shrink: 0;
}

.wooclipshop-cart-bubble-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.wooclipshop-cart-bubble-btn.success {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

.wooclipshop-cart-bubble-btn.success svg {
    transform: scale(1.2);
}

.wooclipshop-cart-count-bubble {
    display: none;
    /* Hide bubble count to match 'icon only' look of screenshot unless needed */
}

/* Quantity Wrapper */
.wooclipshop-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Square/Sharp per style */
    height: 36px;
    background: #fff;
    margin-right: 10px;
}

.wooclipshop-qty-btn {
    width: 28px;
    height: 100%;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.wooclipshop-qty-btn:hover {
    background: #f5f5f5;
}

.wooclipshop-qty-input {
    width: 35px !important;
    min-width: 35px !important;
    height: 100% !important;
    text-align: center !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: normal !important;
}

.wooclipshop-qty-input::-webkit-outer-spin-button,
.wooclipshop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Toast Notification */
#wooclipshop-ui-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#wooclipshop-ui-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Glassmorphism In-Video Card */
.wooclipshop-in-video-card {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 320px;
    height: 75px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--wcs-card-radius, 14px);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Hide glass card in Stories layout explicitly */
.wooclipshop-layout-stories .wooclipshop-in-video-card {
    display: none !important;
}

.wooclipshop-ivc-img {
    width: 36px;
    height: 55px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    background: #fff;
    display: block;
}


.wooclipshop-ivc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.wooclipshop-ivc-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wooclipshop-ivc-price {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    opacity: 0.8;
}

.wooclipshop-ivc-cart-btn {
    width: 36px;
    height: 36px;
    background: var(--wcs-ivc-cart-bg, #000);
    color: var(--wcs-ivc-cart-icon-color, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.wooclipshop-ivc-cart-btn:hover {
    transform: scale(1.1);
}

.wooclipshop-ivc-cart-btn svg {
    width: 18px;
    height: 18px;
}

.wooclipshop-ivc-cart-btn {
    width: 36px;
    height: 36px;
    background: var(--wcs-button-color, #ff3b30);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.wooclipshop-ivc-cart-btn:hover {
    transform: scale(1.1);
}

/* Ensure Mobile Peek is managed correctly */
.wooclipshop-mobile-peek-card {
    display: none;
}


/* --- MOBILE SPECIFIC UI --- */
/* --- MOBILE SPECIFIC UI --- */
@media (max-width: 900px) {

    .wooclipshop-lightbox-container {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
    }

    /* Hide Desktop-only Elements on Mobile */
    .wooclipshop-lightbox-close-global,
    .wooclipshop-side-nav {
        display: none !important;
    }

    /* Container for Split (Just a wrapper on mobile) */
    .wooclipshop-lightbox-split,
    .wooclipshop-lightbox-split.wooclipshop-has-product {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
        background: #000;
    }

    /* Video Column - Full Screen */
    .wooclipshop-lightbox-video-col {
        width: 100%;
        height: 100%;
        flex: 1 0 auto;
        position: absolute;
        /* Stacked behind info */
        top: 0;
        left: 0;
        z-index: 1;
    }

    .wooclipshop-lightbox-video-element,
    #wooclipshop-lightbox-video-slot,
    #wooclipshop-lightbox-video-slot video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        background: #000;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- MOBILE PEEK CARD (SHOP NOW) --- */
    .wooclipshop-mobile-peek-card {
        display: none;
        /* JS toggles this */
        position: absolute;
        bottom: 20px;
        left: 10px;
        right: 10px;
        z-index: 100;
        pointer-events: auto;
    }

    .peek-card-inner {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        display: flex;
        align-items: center;
        padding: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
        width: 100%;
        box-sizing: border-box;
    }

    .peek-thumb {
        width: 55px;
        height: 65px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 15px;
        background: #f0f0f0;
    }

    .peek-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        text-align: left;
    }

    .peek-title {
        color: #000;
        font-family: inherit;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        margin: 0 0 2px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.3px;
    }

    .peek-price {
        font-size: 14px;
        color: #000;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .peek-price del {
        color: #888;
        font-size: 11px;
        font-weight: 400;
    }

    .peek-shop-btn {
        background: #000;
        color: #fff;
        border: none;
        padding: 10px 20px;
        font-size: 11px;
        font-weight: 800;
        border-radius: 4px;
        /* Sharper rounded like design */
        text-transform: uppercase;
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
        flex-shrink: 0;
        margin-left: 10px;
    }

    .peek-shop-btn:active {
        transform: scale(0.96);
        background: #333;
    }


    /* --- PRODUCT INFO / SHEET --- */
    .wooclipshop-lightbox-info-col {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 200;
        flex-direction: column;
        overflow: hidden;
        /* Let inner content scroll, not the col itself */
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
    }

    .wooclipshop-lightbox-info-col.active {
        transform: translateY(0);
    }

    /* Close Button for Sheet - FORCED on Mobile info sheet */
    .wooclipshop-info-close-mobile {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        border-radius: 50%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 210;
        cursor: pointer;
        backdrop-filter: blur(5px);
    }

    /* Close Button for Video (Mobile) - REPOSITIONED PER REQUEST */
    .wooclipshop-lb-close-btn-mobile {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        border-radius: 50%;
        font-size: 20px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 150 !important;
        /* Below info sheet which is 200 */
        pointer-events: auto;
        cursor: pointer;
    }

    /* Floating Icons on Video (Sound, Cart) - REPOSITIONED PER REQUEST */
    .wooclipshop-lightbox-video-actions {
        position: absolute !important;
        top: auto !important;
        bottom: 130px !important;
        /* Above peek card */
        right: 15px !important;
        left: auto !important;
        z-index: 120 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        pointer-events: auto !important;
    }

    .wooclipshop-action-circle {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
        padding: 0 !important;
        color: #fff;
        position: relative;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .wooclipshop-mobile-cart-btn {
        display: flex !important;
        /* Force show in actions */
    }

    .wooclipshop-mobile-cart-btn .wooclipshop-cart-count-bubble {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ff3b30;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
    }

    /* Neighbor Peeks - Hide */
    .wooclipshop-neighbor {
        display: none !important;
    }

    .wooclipshop-side-nav {
        display: none !important;
    }

    .wooclipshop-lightbox-close-global {
        display: none !important;
    }
}

/* Column Helpers */
.wooclipshop-cols-d-1 {
    grid-template-columns: repeat(1, 1fr);
}

.wooclipshop-cols-d-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wooclipshop-cols-d-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wooclipshop-cols-d-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wooclipshop-cols-d-5 {
    grid-template-columns: repeat(5, 1fr);
}

.wooclipshop-cols-d-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1024px) {
    .wooclipshop-cols-t-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .wooclipshop-cols-t-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wooclipshop-cols-t-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .wooclipshop-cols-m-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .wooclipshop-cols-m-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* External Video Grid Overlays */
.has-external-video .wooclipshop-play-overlay {
    display: flex !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.has-external-video .wooclipshop-play-overlay::after {
    content: '\f161';
    font-family: dashicons;
    font-size: 50px;
    color: #fff;
    opacity: 0.8;
}

.wooclipshop-lightbox-iframe {
    background: #000;
}

/* --- ZOOM GALLERY OVERLAY --- */
.wooclipshop-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000020;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.wooclipshop-zoom-overlay.active {
    display: flex;
    opacity: 1;
}

.wooclipshop-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wooclipshop-zoom-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomFadeIn 0.3s ease-out;
}

@keyframes zoomFadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Zoom Controls */
.wooclipshop-zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.wooclipshop-zoom-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.wooclipshop-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
}

.wooclipshop-zoom-nav:hover {
    background: #fff;
    color: #000;
}

.wooclipshop-zoom-nav.prev {
    left: 40px;
}

.wooclipshop-zoom-nav.next {
    right: 40px;
}

/* Dots */
.wooclipshop-zoom-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.wooclipshop-zoom-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wooclipshop-zoom-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* --- POWERED BY BRANDING REPOSITIONING --- */
#wcs-branding-video,
#wcs-branding-info,
.wooclipshop-powered-by {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
    pointer-events: auto !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

#wcs-branding-video svg,
#wcs-branding-info svg,
.wooclipshop-powered-by svg {
    width: 13px !important;
    height: 13px !important;
    fill: #ffffff !important;
    margin: 0 !important;
    opacity: 1 !important;
}

/* Position in Info Column (Overlay on image) */
#wcs-branding-info {
    bottom: 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

/* --- GLOBAL SVG CENTERING OVERRIDE --- */
/* Common properties for all circular icon containers */
.wooclipshop-lightbox-close-global,
.wooclipshop-side-nav,
.wooclipshop-action-circle,
.wooclipshop-lb-close-btn-mobile,
.wooclipshop-info-close-mobile,
.wooclipshop-zoom-close,
.wooclipshop-zoom-nav {
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    padding: 0 !important;
}

/* Elements that are ALWAYS display:flex (like zoom gallery) */
.wooclipshop-zoom-close,
.wooclipshop-zoom-nav {
    display: flex !important;
}

/* Base style for action circles */
.wooclipshop-action-circle {
    display: flex;
    /* Default flex for centering logic */
}

/* Desktop-only: Only flex these on desktop */
@media (min-width: 901px) {

    .wooclipshop-lightbox-close-global,
    .wooclipshop-side-nav {
        display: flex !important;
    }

    /* Keep sound icon visible on desktop but strictly hide mobile cart */
    [data-action="sound"].wooclipshop-action-circle {
        display: flex !important;
    }

    .wooclipshop-mobile-cart-btn {
        display: none !important;
    }
}

/* Mobile-only: Only flex these on mobile */
@media (max-width: 900px) {

    .wooclipshop-lb-close-btn-mobile,
    .wooclipshop-info-close-mobile,
    .wooclipshop-mobile-cart-btn {
        display: flex !important;
    }
}

.wooclipshop-lightbox-overlay svg,
.wooclipshop-side-nav svg,
.wooclipshop-action-circle svg,
.wooclipshop-lb-close-btn-mobile svg,
.wooclipshop-info-close-mobile svg,
.wooclipshop-zoom-close svg,
.wooclipshop-zoom-nav svg {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#wcs-branding-video:hover,
#wcs-branding-info:hover,
.wooclipshop-powered-by:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    transform: translateX(-50%) translateY(-2px) !important;
}


/* Both hidden by default */
#wcs-branding-video,
#wcs-branding-info {
    display: none !important;
}

/* When JS adds .wcs-show, override to flex */
#wcs-branding-video.wcs-show,
#wcs-branding-info.wcs-show {
    display: flex !important;
}

/* Mobile Adjustments */
@media (max-width: 900px) {

    #wcs-branding-video.wcs-show,
    #wcs-branding-info.wcs-show {
        bottom: 15px !important;
        font-size: 9px !important;
        padding: 5px 10px !important;
    }
}