/* Homepage 3D showcase — compact horizontal slider */

.tvcmsproduct3dhome.gs-3d-home-section {
    padding: 28px 0 24px;
    background: #fff;
}

.gs-3d-home-title-wrapper {
    margin-bottom: 16px;
}

.gs-3d-home-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gs-3d-home-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    min-width: 0;
}

.gs-3d-home-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.gs-3d-home-card {
    flex: 0 0 auto;
    /* Desktop: 5 cards across (4 gaps × 12px) */
    width: calc((100% - 48px) / 5);
    padding: 0 6px;
    box-sizing: border-box;
}

.gs-3d-home-media-wrap {
    position: relative;
}

.gs-3d-home-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 240px;
    overflow: hidden;
    background: #f4f4f4;
    text-decoration: none !important;
    color: inherit;
}

.gs-3d-home-viewer {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gs-3d-home-skeleton {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(110deg, #ececec 8%, #f7f7f7 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: gs-3d-home-shimmer 1.25s linear infinite;
    z-index: 1;
}

.gs-3d-home-media.is-loading .gs-3d-home-skeleton {
    animation-duration: 0.9s;
}

.gs-3d-home-media.is-ready .gs-3d-home-skeleton {
    display: none;
}

@keyframes gs-3d-home-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.gs-3d-home-viewer model-viewer,
.gs-3d-home-viewer .gs-3d-home-fallback,
.gs-3d-home-viewer .gs-3d-home-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f4f4f4;
    --poster-color: transparent;
    transition: opacity 0.25s ease;
}

.gs-3d-home-viewer model-viewer::part(default-ar-button) {
    display: none !important;
}

.gs-3d-home-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    line-height: 1.3;
    pointer-events: none;
}

.gs-3d-home-ar-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 7px;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
}

.gs-3d-home-ar-btn:hover,
.gs-3d-home-ar-btn:focus {
    background: #000;
}

.gs-3d-home-ar-btn svg {
    display: block;
}

.gs-3d-home-name {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #222;
    text-align: center;
    text-decoration: none !important;
    line-height: 1.35;
}

.gs-3d-home-name:hover,
.gs-3d-home-name:focus {
    color: #111;
    text-decoration: underline !important;
}

.gs-3d-home-nav {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.gs-3d-home-nav:hover,
.gs-3d-home-nav:focus {
    background: #111;
    border-color: #111;
    color: #fff;
}

.gs-3d-home-nav:disabled {
    opacity: 0.35;
    cursor: default;
    background: #fff;
    border-color: #eee;
    color: #999;
}

.gs-3d-home-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.gs-3d-home-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #ccc;
    cursor: pointer;
}

.gs-3d-home-dot.is-active {
    background: #111;
}

/* Desktop QR modal */
.gs-3d-ar-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gs-3d-ar-qr-modal[hidden] {
    display: none !important;
}

.gs-3d-ar-qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.gs-3d-ar-qr-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    padding: 28px 24px 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gs-3d-ar-qr-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #444;
    cursor: pointer;
}

.gs-3d-ar-qr-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.gs-3d-ar-qr-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #555;
}

.gs-3d-ar-qr-image-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.gs-3d-ar-qr-image {
    width: 220px;
    height: 220px;
    background: #f4f4f4;
}

.gs-3d-ar-qr-product {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #222;
}

body.gs-3d-ar-qr-open {
    overflow: hidden;
}

/* Mobile: hide entire "Ontdek in 3D" home card section (desktop unchanged) */
@media (max-width: 991px) {
    .tvcmsproduct3dhome.gs-3d-home-section,
    .gs-3d-home-section,
    .gs-3d-ar-qr-modal {
        display: none !important;
    }
}

/* Desktop shows all cards — hide carousel chrome */
@media (min-width: 992px) {
    .gs-3d-home-nav,
    .gs-3d-home-dots {
        display: none !important;
    }

    .gs-3d-home-track {
        transform: none !important;
    }
}
