/* CUSTOM LIGHTBOX WIDGET */

.wc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wc-lightbox.active {
    display: flex;
    opacity: 1;
}

.wc-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wc-lightbox.active .wc-lightbox-content {
    transform: scale(1);
}

.wc-lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    user-select: none;
    background: #111;
}

.wc-lightbox-info {
    text-align: center;
    margin-top: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

.wc-lightbox-caption {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wc-lightbox-counter {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

/* Conversion CTA */
.wc-lightbox-cta {
    margin-top: 25px;
    animation: wa-bounce 2s infinite ease-in-out;
}

.wc-lightbox-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
}

.wc-lightbox-btn-wa:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.wc-lightbox-btn-wa b {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@keyframes wa-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Controls */
.wc-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: 0.3s;
    line-height: 1;
}

.wc-lightbox-close:hover {
    transform: rotate(90deg);
    color: #ff4d4d;
}

.wc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    left: 0;
}

.wc-lightbox-btn {
    pointer-events: auto;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.wc-lightbox-btn:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

.wc-lightbox-prev { margin-left: -80px; }
.wc-lightbox-next { margin-right: -80px; }

@media (max-width: 1200px) {
    .wc-lightbox-prev { margin-left: -20px; }
    .wc-lightbox-next { margin-right: -20px; }
}

@media (max-width: 768px) {
    .wc-lightbox-nav {
        position: relative;
        top: auto;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        gap: 40px;
        pointer-events: auto;
    }
    .wc-lightbox-prev, .wc-lightbox-next { margin: 0; }
    .wc-lightbox-btn { width: 50px; height: 50px; }
    .wc-lightbox-cta { margin-top: 15px; }
    .wc-lightbox-btn-wa { font-size: 0.9rem; padding: 10px 20px; }
}

/* Loading Spinner */
.wc-lightbox-loading {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wc-spin 1s linear infinite;
    display: none;
    z-index: 10001;
}

@keyframes wc-spin {
    to { transform: rotate(360deg); }
}

.wc-lightbox.loading .wc-lightbox-loading {
    display: block;
}
