/* ==========================================================================
   Product Details View Scoped CSS - Gallery, Specs & Sticky CTA Bar
   ========================================================================== */

/* Main Gallery Image */
.product-hero-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: var(--theme-card-radius, 1.25rem);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.product-hero-image-box img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-hero-image-box:hover img {
    transform: scale(1.08);
}

/* Horizontal Thumbnail Strip on Mobile */
.product-thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}

.product-thumb-btn {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0.25rem;
    background: #ffffff;
    shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-thumb-btn.is-active,
.product-thumb-btn:hover {
    border-color: var(--theme-primary, #4f46e5);
    transform: scale(1.05);
}

/* Sticky Bottom Add-To-Cart Bar (Mobile Only) */
#stickyMobileBuyBar {
    position: fixed;
    bottom: 64px; /* Right above Mobile Bottom App Nav */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    padding: 0.625rem 1rem;
    z-index: 42;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -4px 15px rgba(15, 23, 42, 0.08);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s;
}

#stickyMobileBuyBar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    #stickyMobileBuyBar {
        display: none !important;
    }
}
