#viewer-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #f0f0f0;
    /* Sahne yüklenene kadar gri */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

@media (max-width:500px) {
    #viewer-container {
        height: 50vh;
    }
}

/* iOS Safari ve Desteklenmeyen Cihazlar için Sahte Tam Ekran Modu */
#viewer-container.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    max-height: none !important;
}

/* Tam Ekran Konfigüratör Formu (Yandan Açılan Panel) */
.fs-active-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 355px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1%;
    padding-top: 60px !important;
    z-index: 1050;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
}

.fs-active-form.fs-config-hidden {
    transform: translateX(-110%);
}

@media (max-width: 768px) {
    .fs-active-form {
        width: 85%;
        max-width: 355px;
    }
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

/* Kontrol İpuçları */
.viewer-controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    user-select: none;
}

/* Renk Seçici */
.color-option {
    width: 45px;
    height: 45px;
    border-radius: 20%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.2s;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #333;
    box-shadow: 0 0 0 2px #f8793e;
    transform: scale(1.1);
}

/* Malzeme / Kapak Tipi Kartları */
.material-option {
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.material-option:hover {
    border-color: #f8793e;
}

.material-option.active {
    border-color: #f8793e;
    background-color: #fffbf8;
    font-weight: bold;
}

.material-img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

/* Fiyat Alanı */
.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: #f8793e;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
}

.gallery-item:hover {
    transform: scale(1.05);
}