/* ============================================================
   PRODUCT GALLERY - Five Star Health Global
   ============================================================ */

/* ---------- GALLERY WRAPPER ---------- */
.gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, 0.30));
    background: rgba(255, 255, 255, 0.04);
}

/* ---------- SLIDES ---------- */
.gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 300px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    animation: galleryFade 0.6s ease-in-out;
}

.gallery-slide:first-child {
    display: block;
}

@keyframes galleryFade {
    0% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---------- IMAGE ---------- */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- OVERLAY ---------- */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 20px;
    background: linear-gradient(to top, rgba(10, 46, 26, 0.92) 0%, transparent 100%);
    pointer-events: none;
}

.gallery-info {
    pointer-events: none;
}

.gallery-name {
    color: var(--white, #ffffff);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-category {
    color: var(--secondary-light, #87ceeb);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-description {
    color: var(--text-muted, #b0d0c0);
    font-size: 0.85rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- SHOP NOW BUTTON ---------- */
.gallery-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    pointer-events: auto;
    flex-wrap: wrap;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary, #3498db);
    color: var(--white, #ffffff);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition, all 0.3s ease);
    border: 2px solid var(--secondary, #3498db);
    text-decoration: none;
    cursor: pointer;
}

.shop-now-btn:hover {
    background: #2980b9;
    border-color: var(--secondary-light, #87ceeb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.shop-now-btn i {
    font-size: 0.9rem;
}

/* ---------- PRICE TAG ---------- */
.gallery-price {
    color: var(--white, #ffffff);
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- DOTS ---------- */
.gallery-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    border: 2px solid transparent;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.gallery-dot.active {
    background: var(--secondary-light, #87ceeb);
    border-color: var(--white, #ffffff);
    transform: scale(1.2);
}

/* ---------- ARROWS ---------- */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white, #ffffff);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.gallery-arrow:hover {
    background: var(--secondary, #3498db);
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow-left {
    left: 16px;
}

.gallery-arrow-right {
    right: 16px;
}

/* ---------- COUNTER ---------- */
.gallery-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white, #ffffff);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.gallery-counter #gallery-current {
    color: var(--secondary-light, #87ceeb);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .gallery-slides {
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }

    .gallery-overlay {
        padding: 20px 16px 14px;
    }

    .gallery-name {
        font-size: 1.1rem;
    }

    .gallery-category {
        font-size: 0.8rem;
    }

    .gallery-description {
        font-size: 0.75rem;
    }

    .shop-now-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .gallery-price {
        font-size: 1rem;
        padding: 4px 12px;
    }

    .gallery-dots {
        bottom: 70px;
        gap: 8px;
    }

    .gallery-dot {
        width: 10px;
        height: 10px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .gallery-arrow-left {
        left: 10px;
    }

    .gallery-arrow-right {
        right: 10px;
    }

    .gallery-counter {
        font-size: 0.75rem;
        padding: 4px 12px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-slides {
        aspect-ratio: 1 / 1;
        min-height: 150px;
    }

    .gallery-overlay {
        padding: 12px 10px 8px;
    }

    .gallery-name {
        font-size: 0.9rem;
    }

    .gallery-category {
        font-size: 0.65rem;
    }

    .gallery-description {
        display: none;
    }

    .gallery-buttons {
        gap: 10px;
        margin-top: 8px;
    }

    .shop-now-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .gallery-price {
        font-size: 0.85rem;
        padding: 3px 10px;
    }

    .gallery-dots {
        bottom: 55px;
        gap: 6px;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
    }

    .gallery-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .gallery-arrow-left {
        left: 6px;
    }

    .gallery-arrow-right {
        right: 6px;
    }
}

/* ---------- CONTAINER STYLING ---------- */
#product-gallery {
    margin: 40px 0;
}

.gallery-section-title {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-section-title h2 {
    color: var(--white, #ffffff);
    font-size: 2rem;
    margin-bottom: 8px;
}

.gallery-section-title p {
    color: var(--text-muted, #b0d0c0);
    font-size: 1.1rem;
}