/* ===== Wrapper ===== */
.pig-3829-wrap { width: 100%; font-family: inherit; }

/* ===== Main Image Area ===== */
.pig-3829-main-wrap {
    position: relative;
    width: 100%;
    height: 560px;
    background-color: #b5c9a1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pig-3829-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

/* ===== Zoom Hint ===== */
.pig-3829-zoom-hint {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
    color: #333;
}
.pig-3829-zoom-hint svg { width: 18px; height: 18px; }
.pig-3829-main-wrap:hover .pig-3829-zoom-hint { opacity: 1; }

/* ===== Best Seller Badge ===== */
.pig-3829-best-seller {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: #3d5a3e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10;
    display: inline-block;
    line-height: 1.2;
}

/* ===== Derm Tested Badge ===== */
.pig-3829-derm-badge {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 12px 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pig-3829-derm-sublabel {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888888;
    line-height: 1.2;
    display: block;
}
.pig-3829-derm-label {
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    line-height: 1.3;
    display: block;
}

/* ===== Thumbnails ===== */
.pig-3829-thumbs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pig-3829-thumb {
    width: 100px;
    height: 100px;
    background-color: #f0ede8;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pig-3829-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pig-3829-thumb:hover { opacity: 0.85; }
.pig-3829-thumb.pig-active { border-color: #3d5a3e; }

/* ===== Editor Placeholder ===== */
.pig-3829-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    background: transparent;
}
.pig-3829-placeholder-icon  { font-size: 64px; line-height: 1; }
.pig-3829-placeholder-text  { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; letter-spacing: 0.5px; }
.pig-3829-thumb-placeholder { font-size: 28px; line-height: 1; }
.pig-3829-no-image { padding: 20px; text-align: center; color: #888; font-size: 14px; background: #f5f5f5; border-radius: 8px; }

/* ===== LIGHTBOX ===== */
.pig-3829-lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    touch-action: none;
    overflow: hidden;
}
.pig-3829-lb-overlay.pig-lb-open { opacity: 1; }

/* Blurred backdrop using the current image */
.pig-3829-lb-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(28px) brightness(0.35) saturate(1.4);
    transform: scale(1.12);
    z-index: 0;
}

/* Dark tint layer on top of blur */
.pig-3829-lb-tint {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
    z-index: 1;
}

/* Main image area */
.pig-3829-lb-stage {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.pig-3829-lb-img {
    max-width: 82vw;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    transition: opacity 0.22s ease, transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: default;
    border-radius: 6px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}
.pig-3829-lb-img.pig-lb-fading { opacity: 0; }
.pig-3829-lb-img.pig-dragging  { cursor: grabbing; transition: none; }

/* Arrow buttons */
.pig-3829-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s;
    line-height: 1;
}
.pig-3829-lb-arrow:hover { background: rgba(255,255,255,0.28); }
.pig-3829-lb-arrow-prev { left: 20px; }
.pig-3829-lb-arrow-next { right: 20px; }
.pig-3829-lb-arrow:disabled { opacity: 0.25; cursor: default; }

/* Close button */
.pig-3829-lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    transition: background 0.2s;
}
.pig-3829-lb-close:hover { background: rgba(255,255,255,0.25); }

/* Counter */
.pig-3829-lb-counter {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-family: sans-serif;
    letter-spacing: 0.5px;
    z-index: 1000001;
    background: rgba(0,0,0,0.3);
    padding: 4px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Lightbox thumbnail strip */
.pig-3829-lb-strip {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 14px 20px;
    overflow-x: auto;
    max-width: 100vw;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}
.pig-3829-lb-strip::-webkit-scrollbar { display: none; }

.pig-3829-lb-strip-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}
.pig-3829-lb-strip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pig-3829-lb-strip-thumb:hover { opacity: 0.9; }
.pig-3829-lb-strip-thumb.pig-lb-active { border-color: #fff; opacity: 1; }

/* Zoom controls */
.pig-3829-lb-controls {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000001;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 30px;
    padding: 8px 18px;
}
.pig-3829-lb-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.pig-3829-lb-btn:hover { background: rgba(255,255,255,0.3); }
.pig-3829-lb-zoom-level { color: #fff; font-size: 13px; min-width: 44px; text-align: center; font-family: sans-serif; }
.pig-3829-lb-reset {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: sans-serif;
}
.pig-3829-lb-reset:hover { background: rgba(255,255,255,0.3); }
