/* =============================================================
   pages/product.css  —  Product Detail Page Styles
   Loaded only on product pages via @push('styles')
   ============================================================= */

/* ── Product Gallery ─────────────────────────────────────────── */
.prd-gallery-wrap {
    max-width: 100%;
}

.prd-main-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f8f8;
    cursor: zoom-in;
    border: 1px solid var(--line, #eee);
}

.prd-main-img {
    width: 100%;
    height: 440px;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
}

@media (max-width: 767.98px) {
    .prd-main-img {
        height: 300px;
    }
}

.prd-main-img-wrap:hover .prd-main-img {
    transform: scale(1.03);
}

/* Zoom icon */
.prd-zoom-btn {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--line, #eee);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.prd-zoom-btn:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

/* Thumbnail strip */
.prd-thumb-strip {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.prd-thumb-strip::-webkit-scrollbar {
    display: none;
}

.prd-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid var(--line, #eee);
    overflow: hidden;
    background: #f8f8f8;
    padding: 0;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
}

.prd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.prd-thumb:hover {
    border-color: var(--primary, #e53);
}

.prd-thumb.active {
    border-color: var(--primary, #e53);
    box-shadow: 0 0 0 3px rgba(229, 51, 51, .15);
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.prd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prd-lightbox[hidden] {
    display: none !important;
}

.prd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    cursor: zoom-out;
}

.prd-lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
}

.prd-lb-img {
    max-width: 82vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
    display: block;
    user-select: none;
    animation: lbFadeIn .2s ease;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
        transform: scale(.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.prd-lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.prd-lb-close:hover {
    background: rgba(255, 255, 255, .25);
}

.prd-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 2;
}

.prd-lb-nav:hover {
    background: rgba(255, 255, 255, .25);
}

.prd-lb-prev {
    left: 20px;
}

.prd-lb-next {
    right: 20px;
}

.prd-lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    background: rgba(0, 0, 0, .4);
    padding: 4px 14px;
    border-radius: 20px;
}