/* ARMANIPLAST-PASS-003 — product-detail gallery/zoom extras. Narges compiled CSS remains the base. */
.ap-pdp-gallery-stage {
    position: relative;
}
.ap-pdp-gal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
}
.ap-pdp-gal-prev {
    inset-inline-start: 0.4rem;
}
.ap-pdp-gal-next {
    inset-inline-end: 0.4rem;
}
#imgShow {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: min(32rem, 70vh);
    background-color: #f6f3ef;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    touch-action: pan-y;
}
#imgShow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.imgSelector.product-detail-thumbnails {
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    padding: 4px 0 8px;
    margin-top: 12px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
}
.imgSelector.product-detail-thumbnails button,
.imgSelector.product-detail-thumbnails a {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.imgSelector.product-detail-thumbnails img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}
.imgSelector.product-detail-thumbnails [aria-current="true"] {
    outline: 2px solid #f5821f;
    outline-offset: 2px;
}
.imgSelector li {
    border: 2px solid transparent;
    border-radius: 10px;
    flex: 0 0 auto;
}
.imgSelector li.active {
    border-color: #f5821f;
}
#imgShow.zoom {
    background-repeat: no-repeat;
}
.product-detail-price-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.35rem;
}
#productGalleryModal .product-gallery-modal-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
#productGalleryModal .modal-dialog {
    max-width: min(52rem, 96vw);
    margin: 1rem auto;
}
#productGalleryModal .modal-content {
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}
#productGalleryModal .modal-body {
    padding: .5rem 1rem 1rem;
}
#productGalleryModal .modal-body > .position-relative {
    min-height: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    max-height: 72vh;
}
#productGalleryMainImg {
    max-height: 72vh !important;
    max-width: 100%;
    width: auto !important;
    height: auto;
    object-fit: contain !important;
}
#productGalleryModal .ap-gallery-nav {
    cursor: pointer;
    z-index: 2;
}
#productGalleryModal .product-gallery-modal-close,
#productGalleryCloseBtn {
    cursor: pointer;
}
#productGalleryModal .product-gallery-thumbnails {
    border: none !important;
    padding: 8px 0 0;
    margin: 8px auto 0;
    background: transparent;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    max-width: 100%;
}
#productGalleryModal .product-gallery-thumb {
    width: 56px !important;
    height: 56px !important;
    cursor: pointer;
    border: 2px solid transparent;
}
#productGalleryModal .product-gallery-thumb.is-on,
#productGalleryModal .product-gallery-thumb[aria-current="true"] {
    border-color: #f5a623;
}
#productGalleryModal .modal-footer {
    border: 0;
    padding-top: .35rem;
}
