/**
 * Public CSS v2.1 - Preview Cards (Portrait/Grid) & Modal w/ Share
 */

/* PREVIEW WRAPPER (Horizontal List) */
.vidshop-preview-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.vidshop-preview-swiper {
    width: 100%;
    padding-bottom: 20px;
    padding-left: 10px;
}

/* Portrait Card Style - Fixed Dimensions */
.vidshop-preview-card {
    width: 200px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    background: #000;
}

.vidshop-preview-card:hover {
    transform: scale(1.02);
}

.vidshop-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.vidshop-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* Force fill */
    display: block;
}

.vidshop-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 40%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.vidshop-play-btn-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.vidshop-play-btn-small .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.vidshop-card-stats {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* MODAL LIGHTBOX */
.vidshop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
}

.vidshop-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 5px;
}

.vidshop-modal-close .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.vidshop-modal-swiper {
    width: 100%;
    height: 100%;
}

.vidshop-modal-slide {
    width: 100%;
    height: 100%;
    background: #111;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vidshop-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vidshop-video {
    width: 100%;
    height: 100%;
    max-width: 500px;
    object-fit: cover;
}

/* GLASS PRODUCT OVERLAY */
.vidshop-product-overlay-glass {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    color: #fff;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vidshop-glass-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vidshop-glass-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.vidshop-glass-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.vidshop-glass-price {
    font-size: 13px;
    color: #fff !important;
    /* Force White */
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.vidshop-glass-actions {
    display: flex;
    gap: 10px;
}

.vidshop-btn-buy-now {
    flex: 1;
    background: #FF0050;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
}

.vidshop-btn-buy-now:hover {
    background: #D60043;
    color: #fff;
}

/* SIDEBAR ACTIONS */
.vidshop-sidebar {
    position: absolute;
    right: calc(50% - 240px);
    bottom: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 50;
}

@media(max-width: 600px) {
    .vidshop-sidebar {
        right: 10px;
    }
}

.vidshop-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.vidshop-action-btn .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.vidshop-action-btn .count {
    font-size: 12px;
    font-weight: 600;
}

/* Share Menu */
.vidshop-share-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 200;
    min-width: 140px;
}

.vidshop-share-menu::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: rotate(45deg);
}

.vidshop-share-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px;
    transition: background 0.1s;
    border-radius: 4px;
}

.vidshop-share-item:hover {
    background: #f0f0f0;
}

.vidshop-share-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #555;
}

/* Follow IG Button */
.vidshop-btn-follow-ig {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    text-decoration: none;
    width: fit-content;
    margin: 0 auto;
    /* Center it */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.vidshop-btn-follow-ig:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vidshop-btn-follow-ig .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Custom Small Grey Arrows */
.swiper-button-next.vidshop-preview-next,
.swiper-button-prev.vidshop-preview-prev {
    color: #888;
    /* Grey */
    width: 30px;
    height: 30px;
    /* Small */
}

.swiper-button-next.vidshop-preview-next::after,
.swiper-button-prev.vidshop-preview-prev::after {
    font-size: 20px;
    /* Smaller icon */
    font-weight: 900;
}

/* Card Product Info Overlay (Bottom Left) */
/* Mute Button */
.vidshop-mute-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 60;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
}

.vidshop-mute-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.vidshop-mute-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Card Product Info Overlay (Bottom Right) */
.vidshop-card-product-info {
    position: absolute;
    bottom: 15px;
    right: 10px !important;
    /* Force Right */
    left: auto !important;
    /* Override Left */
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
    flex-direction: row-reverse;
    /* [Price] [Image] | Edge */
}

.vidshop-card-prod-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.vidshop-card-prod-price {
    font-size: 11px;
    color: #fff !important;
    /* Force White Container */
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 4px;
    text-align: right;
}

/* DEEP TARGETING FOR WHITE PRICE */
.vidshop-card-prod-price bdi,
.vidshop-card-prod-price span,
.vidshop-card-prod-price .woocommerce-Price-amount,
.vidshop-card-prod-price .woocommerce-Price-currencySymbol {
    color: #ffffff !important;
}

.vidshop-card-prod-price small {
    font-weight: 400;
    opacity: 1;
    font-size: 10px;
    display: block;
    color: #f0f0f0 !important;
}

/* Button Animations */
.vidshop-action-btn.like-btn .dashicons,
.vidshop-action-btn.share-btn .dashicons {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vidshop-action-btn.like-btn:active .dashicons,
.vidshop-action-btn.share-btn:active .dashicons {
    transform: scale(1.4);
}

.vidshop-action-btn.like-btn:hover .dashicons {
    color: #ff4d4d;
}

.vidshop-action-btn.like-btn.liked .dashicons {
    color: #ff4d4d;
    /* Red when liked */
}