/* === PRODUCT GALLERY === */
.product-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.product-gallery-section {
    width: 100%;
}

.gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.gallery-media {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-fullscreen:active {
    transform: scale(0.95);
}

.gallery-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--glass-border);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.gallery-thumb:active {
    transform: scale(0.95);
}

.gallery-thumb.active {
    border-color: var(--gold);
}

.gallery-thumb img,
.gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb video {
    pointer-events: none;
}

/* Product Details */
.product-details-section {
    width: 100%;
}

.product-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.product-category {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Related Products */
.related-products {
    margin-top: 50px;
    margin-bottom: 30px;
}

.related-products h2 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Fullscreen mode adjustments */
.gallery-main:fullscreen .gallery-media,
.gallery-main:-webkit-full-screen .gallery-media {
    aspect-ratio: auto;
    height: 100vh;
}

.gallery-main:fullscreen .gallery-nav,
.gallery-main:-webkit-full-screen .gallery-nav {
    width: 50px;
    height: 50px;
}

.gallery-main:fullscreen .gallery-nav.prev,
.gallery-main:-webkit-full-screen .gallery-nav.prev {
    left: 20px;
}

.gallery-main:fullscreen .gallery-nav.next,
.gallery-main:-webkit-full-screen .gallery-nav.next {
    right: 20px;
}
