.pdp-media-tabs .nav-link {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.pdp-media-tabs .nav-link.active {
    background: var(--main-600, #043729);
    border-color: var(--main-600, #043729);
    color: #fff;
}

.pdp-viewer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pdp-viewer-cta .btn-viewer-premium {
    border: 1px solid var(--main-600, #043729);
    color: var(--main-600, #043729);
    background: #fff;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.pdp-viewer-cta .btn-viewer-premium:hover {
    background: var(--main-600, #043729);
    color: #fff;
}

#pdp-viewer-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

#pdp-viewer-modal .modal-body {
    padding: 0;
    background: #f9fafb;
}

.pdp-viewer-stage {
    position: relative;
    width: 100%;
    min-height: min(70vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    overflow: hidden;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}

.pdp-viewer-stage img.pdp-viewer-frame {
    max-width: 100%;
    max-height: min(70vh, 520px);
    object-fit: contain;
    transition: transform 0.05s linear;
    transform-origin: center center;
}

.pdp-viewer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    z-index: 5;
}

.pdp-viewer-loading .spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #e5e7eb;
    border-top-color: var(--main-600, #043729);
    border-radius: 50%;
    animation: pdp-viewer-spin 0.8s linear infinite;
}

@keyframes pdp-viewer-spin {
    to { transform: rotate(360deg); }
}

.pdp-viewer-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.pdp-viewer-toolbar .hint {
    font-size: 0.8rem;
    color: #6b7280;
}

.pdp-viewer-toolbar .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pdp-viewer-toolbar button {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    color: #374151;
}

.pdp-viewer-toolbar button.active,
.pdp-viewer-toolbar button:hover {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
}

.pdp-viewer-error {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.pdp-viewer-error img {
    max-width: 180px;
    opacity: 0.7;
    margin-bottom: 1rem;
}

#pdp-viewer-modal model-viewer {
    width: 100%;
    height: min(70vh, 520px);
    background: #f9fafb;
}

@media (max-width: 767px) {
    .pdp-viewer-stage,
    #pdp-viewer-modal model-viewer {
        min-height: 55vh;
    }

    #pdp-viewer-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}
