@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Header Styles */
.header-container {
   margin-top: 20px;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px 40px;
   background: transparent;
   z-index: 2000;
}

/* Logo ve Sol Kısım */
.logo {
    width: 180px;
    margin-top: -10px;
}

.left-section {
    gap: 40px; 
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

/* Menu Items */
.menu-items {
    margin: 0 auto;
    display: flex;
    gap: 30px;
    font-family: 'Montserrat', sans-serif;
}

.menu-item {
   font-size: 18px;
   text-decoration: none;
   transition: all 0.3s ease;
}

.menu-item.active {
   color: #000;
   font-weight: 700;
}

.menu-item.inactive {
   color: rgba(0, 0, 0, 0.5);
   font-weight: 400;
}

.viewer-controls {
   position: fixed;
   bottom: 40px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 20px; /* Önceki 40px yerine 20px'e düşürdük */
}

.viewer-controls .control-button {
   width: 140px;
   height: 60px;
   border: none;
   background: none !important;
   cursor: pointer;
   padding: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   /* Tüm gölge efektlerini kaldır */
   box-shadow: none !important;
   -webkit-box-shadow: none !important;
   text-shadow: none !important;
   /* Buton'un doğal davranışlarını engelle */
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   outline: none !important;
}

.viewer-controls .control-button img {
   width: 48px;
   height: 48px;
   opacity: 0.6;
   filter: brightness(0);
   transition: opacity 0.3s ease;
   /* Resim için tüm gölgeleri kaldır */
   box-shadow: none !important;
   -webkit-box-shadow: none !important;
   /* Arka planı tamamen temizle */
   background: none !important;
}

/* Aktif buton stili */
.viewer-controls .control-button.active img {
   opacity: 1;
}

/* Çizgi - ikona daha yakın */
/* Çizgi için gölgesiz stil */
.viewer-controls .control-button::before {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 25px;
   height: 1.5px;
   background: #000;
   opacity: 0;
   /* Çizgi için tüm gölgeleri kaldır */
   box-shadow: none !important;
   -webkit-box-shadow: none !important;
}

/* Metin için gölgesiz stil */
.viewer-controls .control-button::after {
   content: attr(data-name);
   position: absolute;
   bottom: -20px;
   left: 50%;
   transform: translateX(-50%);
   font-family: 'Montserrat', sans-serif;
   font-size: 11px;
   color: #000;
   opacity: 0;
   white-space: nowrap;
   /* Metin için tüm gölgeleri kaldır */
   text-shadow: none !important;
   background: none !important;
   box-shadow: none !important;
   -webkit-box-shadow: none !important;
}

/* Aktif buton yazı ve çizgi */
.viewer-controls .control-button.active::before,
.viewer-controls .control-button.active::after {
   opacity: 1;
}



/* Üst Menü Kontrolleri */
.right-menu {
   display: flex;
   align-items: center;
   gap: 20px;
}

.right-menu-button {
   padding: 10px 20px;
   border-radius: 25px;
   border: none;
   background: #000;
   color: #fff;
   font-size: 16px;
   cursor: pointer;
   font-family: 'Montserrat', sans-serif;
}

.right-menu .icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    /* Gölgeleri kaldır */
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none !important;
}

/* Ses Kontrol */
.right-menu .sound-toggle {
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-menu .sound-toggle img {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.right-menu .sound-toggle .hidden {
    opacity: 0;
    pointer-events: none;
}

/* Dark Mode */
.dark-mode {
    background: #1a1a1a;
    color: #fff;
}

.dark-mode svg {
    color: #fff;
}

.dark-mode .sound-toggle img {
    filter: invert(1);
}

/* Dark Mode güncellemeleri */
.dark-mode {
    background: #1a1a1a;
    color: #fff;
}

/* İkonları eşitle ve dark mode'da beyaz yap */
.right-menu .icon-button img {
    width: 24px !important;
    height: 24px !important;
    transition: all 0.3s ease;
}

/* Dark mode'da tüm ikonları beyaz yap */
.dark-mode .right-menu .icon-button img,
.dark-mode .right-menu .sound-toggle img,
.dark-mode .cart-button img {
    filter: brightness(0) invert(1) !important;
    width: 24px !important;
    height: 24px !important;
}

/* Sepet ikonu için özel stil */
.right-menu .cart-button img {
    width: 24px !important;
    height: 24px !important;
}

/* Buton container'larını eşitle */
.right-menu .icon-button,
.right-menu .sound-toggle,
.right-menu .cart-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Dark mode'da çıkış butonu */
.dark-mode .right-menu-button {
    background: #fff;
    color: #1a1a1a;
}

/* Model seçici popup stil - güncellenmiş versiyon */
.model-selector {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4); /* Daha şeffaf beyaz arka plan */
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1000;
    width: auto;
    border: 2px solid rgba(0, 0, 0, 0.3); /* Gri kenarlık */
    backdrop-filter: blur(10px); /* Bulanık efekt artırıldı */
}

/* Model seçenekleri - gölge kaldırıldı */
.model-option {
    width: 80px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none !important; /* Gölgeyi kaldır */
}

.model-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none; /* Filtreyi kaldırdık */
}

/* Hover efektini kaldır */
.model-option:hover,
.model-option:focus,
.model-option:active {
    background: transparent !important;
    box-shadow: none !important;
}

/* Kapatma butonu - gri kenarlıklı */
.close-button {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.4) !important;
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
    z-index: 9999; /* Yüksek z-index değeri ekledik */
}




/* Dark mode için güncellemeler */
.dark-mode .model-selector {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .close-button {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

/* Tüm gölgeleri kaldır */
.model-selector *,
.model-option *,
.close-button * {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Material selector stil */
.material-selector {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4); /* Şeffaf beyaz arka plan */
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1000;
    width: auto;
    border: 2px solid rgba(0, 0, 0, 0.3); /* Gri kenarlık */
    backdrop-filter: blur(10px);
}

/* Renk seçenekleri */
.color-option {
    width: 60px;
    height: 60px;
    border: none;
    background: transparent !important;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Tüm gölgeleri kaldır */
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.color-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    /* Gölge ve arka plan efektlerini kaldır */
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: none !important;
}

/* Kapatma butonu */
.material-selector .close-button {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.4);
    color: rgba(0, 0, 0, 0.5);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(10px);
}

/* Dark mode için */
.dark-mode .material-selector {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .material-selector .close-button {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

/* Şablon seçici stil */
.template-selector {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1000;
    width: auto;
    border: 2px solid rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Şablon seçenekleri */
.template-option {
    width: 80px;
    height: 50px;
    border: none;
    background: transparent !important;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.template-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    box-shadow: none !important;
    background: none !important;
}

/* Dark mode için */
.dark-mode .template-selector {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Metin ve Logo seçici ana container */
.text-logo-selector {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px; /* Elementler arası boşluğu azalt */
    width: fit-content;
    min-width: 450px; /* Minimum genişlik belirle */
    border: 2px solid rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 80px;
}

/* Logo upload alanı */
.logo-upload {
    width: 50px; /* Biraz küçült */
    height: 50px;
    flex-shrink: 0; /* Boyutunu koru */
}

.logo-upload img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Metin giriş alanı */
.text-input-area {
    position: relative;
    width: 200px; /* Genişliği azalt */
    height: 50px; /* Yüksekliği azalt */
    flex-shrink: 0; /* Boyutunu koru */
    margin-left: -10px; /* Sola yaklaştır */
}

.text-input-area img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.text-input-area textarea {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    resize: none;
    text-align: center;
    font-family: inherit;
    width: 90%;
    height: 80%;
    z-index: 1;
    outline: none;
    padding: 10px;
}

/* Font selector container */
.font-selector {
    position: relative;
    width: 120px;
    height: 45px;
    flex-shrink: 0;
    z-index: 1005;
}

/* Font area container */
.font-area {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: transparent;
}

/* Font background */
.font-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Font display */
.font-display {
    position: absolute;
    left: 12px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.8);
    z-index: 1006;
}

.font-area img:first-child {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Down button - font area içine taşındı */
.down-button {
    position: absolute;
    right: 8px; /* Sağ kenardan içeri */
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    cursor: pointer;
    z-index: 1006;
}

/* Font list */
.font-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 120px;
    max-height: 200px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow-y: auto;
    z-index: 1007;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Font option */
.font-option {
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
}

.font-option:hover {
    background: rgba(0, 0, 0, 0.05);
}



/* Font area içindeki input alanı */
.font-area input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Text area container'ı için margin */
.text-input-wrapper {
    margin-right: 25px; /* Sağdaki elementle mesafe */
}

.font-list div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.font-list div:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Overlay stil */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    pointer-events: none;
    text-align: center;
    color: #000;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    width: auto;
    min-width: 200px;
}

/* Kapatma butonu */
/* Kapatma butonu */
.text-logo-selector .close-button {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1004;
}

/* Scrollbar stilleri */
.font-list::-webkit-scrollbar {
    width: 8px;
}

.font-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.font-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.font-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Dark mode stilleri */
.dark-mode .text-logo-selector {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .font-list {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .font-list div {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .font-list div:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .text-input-area textarea {
    color: white;
}

.dark-mode .close-button {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .text-overlay {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Dark mode scrollbar */
.dark-mode .font-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .font-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode .font-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 3D Text Overlay stil */
.text-3d-overlay {
    pointer-events: none;
    white-space: nowrap;
    padding: 10px;
    background: transparent;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Logo 3D Overlay stil */
.logo-3d-overlay {
    position: absolute;
    pointer-events: none;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    z-index: 11;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
    perspective: 1000px;
}

/* Dark mode için */
.dark-mode .text-3d-overlay {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Metin rengi seçici stil */
.text-color-selector {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 15px 25px;
    display: none; /* Başlangıçta gizli olmalı */
    align-items: center;
    gap: 25px;
    z-index: 1000;
    width: auto;
    border: 2px solid rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Renk seçenekleri */
.text-color-option {
    width: 45px;
    height: 45px;
    border: none;
    background: transparent !important;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.text-color-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    box-shadow: none !important;
    background: none !important;
}

/* Dark mode için */
.dark-mode .text-color-selector {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Aksesuar seçici stil - genişletilmiş versiyon */
.accessory-selector {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 15px 40px; /* Padding'i artırdık */
    display: flex;
    align-items: center;
    gap: 40px; /* İkonlar arası boşluğu artırdık */
    z-index: 1000;
    width: auto;
    min-width: 300px; /* Minimum genişlik belirledik */
    border: 2px solid rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Aksesuar seçenekleri - grilik kaldırıldı */
.accessory-option {
    width: 80px; /* Genişletildi */
    height: 60px;
    border: none;
    background: transparent !important;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.accessory-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Seçili aksesuar stili - 
.accessory-option.selected {
    background: transparent !important;
}

/* Dark mode için güncellemeler */
.dark-mode .accessory-selector {
    background: rgba(26, 26, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .accessory-option.selected {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* HEADER TEMEL STİLLERİ */
.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 15px;
   background: transparent;
   position: fixed;
   width: 100%;
   top: 0;
   left: 0;
   z-index: 999999;
}

.left-section {
   display: flex;
   align-items: center;
   gap: 20px;
}

.logo {
   height: 40px;
}

.menu-items {
   display: flex;
   gap: 20px;
}

.menu-item {
   text-decoration: none;
   color: #000;
}

.menu-item.inactive {
   opacity: 0.5;
}

.right-menu {
   display: flex;
   align-items: center;
   gap: 15px;
}

.icon-button {
   background: none;
   border: none;
   padding: 5px;
   cursor: pointer;
}

.icon-button img {
   width: 24px;
   height: 24px;
}

.right-menu-button {
   padding: 8px 20px;
   background: #000;
   color: #fff;
   border: none;
   border-radius: 20px;
   cursor: pointer;
}

.menu-toggle {
   display: none;
}

@media screen and (max-width: 768px) {
    /* Temel Menu Stilleri */
    .menu-items {
        display: none;
    }

    .menu-items.active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 998;
    }

    /* Menu Toggle Button */
    .menu-toggle {
        display: block;
        order: -1;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
    }

    /* Sağ Menü Ayarları */
    .right-menu {
        gap: 8px;
    }

    .icon-button img {
        width: 30px;
        height: 30px;
    }

    .right-menu-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Hamburger Menu İkonu */
    .hamburger {
        display: block;
        width: 14px;
        height: 2px;
        background: #333;
        position: relative;
        transition: all 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 2px;
        background: #333;
        left: 0;
        transition: all 0.3s ease;
    }

    .hamburger::before { top: -4px; }
    .hamburger::after { bottom: -4px; }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* THREE.JS VIEWER MOBİL AYARLARI */
    .container {
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden;
    }
    
    .viewer-controls {
        position: fixed;
        bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 30px;
    }
    
    .viewer-controls .control-button {
        width: auto;  /* width'i auto yapıyoruz */
        height: auto; /* height'i auto yapıyoruz */
        padding: 5;   /* padding'i sıfırlıyoruz */
    }
    
    .viewer-controls .control-button img {
        width: 45px !important;  /* İkon boyutunu artırıyoruz */
        height: 45px !important; /* İkon boyutunu artırıyoruz */
        opacity: 0.6;
    }

    /* Aktif buton için opacity */
    .viewer-controls .control-button.active img {
        opacity: 1;
    }
    
    .text-input-area textarea {
        font-weight: 700;
        font-family: 'Arial';
    }

    .text-logo-selector {
        font-family: 'Arial';
        font-weight: 700;
    }

    .font-display {
        font-family: 'Arial';
        font-weight: 700;
    }

    /* POPUP VE SEÇİCİ STİLLERİ */
    /* POPUP VE SEÇİCİ STİLLERİ */
/* POPUP VE SEÇİCİ STİLLERİ */
.model-selector,
.material-selector,
.template-selector,
.text-logo-selector,
.text-color-selector,
.accessory-selector {
    position: fixed;
    width: 90%;
    min-width: auto;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px;  /* Normal padding */
    overflow-x: auto;
    white-space: nowrap;
    z-index: 1000;
}

/* CLOSE BUTTON - Pencereye sabit */
.popup-close {
    position: fixed !important;  /* Pencereye sabit */
    right: 20px !important;  /* Sağ kenardan mesafe */
    bottom: 170px !important; /* Alt butonların üstünde */
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 20px !important;
    color: #666 !important;
}

/* Close button içeriği */
.popup-close::before {
    content: "×";
    line-height: 1;
}

    /* Popup içerikleri */
    .model-selector .model-options,
    .material-selector .material-options,
    .template-selector .template-options,
    .text-logo-selector .text-logo-options,
    .text-color-selector,
    .accessory-selector .accessory-options {
        display: flex;
        overflow-x: auto;
        padding: 15px 20px;
        gap: 15px;
        align-items: center;
    }

    /* Renk Seçici Stilleri - Metin ve Materyal için ortak */
    .text-color-selector,
    .material-selector {
        display: flex;
        overflow-x: auto;
        padding: 15px 20px;
        gap: 15px;
        align-items: center;
    }

    .text-color-option,
    .material-selector .color-option {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 auto;
    }

    .text-color-option img,
    .material-selector .color-option img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Kapatma Butonu - Sabit Pozisyon */
    .model-selector .close-button,
    .material-selector .close-button,
    .template-selector .close-button,
    .text-logo-selector .close-button,
    .text-color-selector .close-button,
    .accessory-selector .close-button {
        position: fixed !important;
        top: auto !important;
        bottom: 140px !important;
        right: 15px !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 16px !important;
        padding: 0 !important;
        color: #666 !important;
        transform: none !important;
    }

    /* Dark Mode Stilleri */
    body.dark-mode .menu-items.active {
        background: #222;
    }

    body.dark-mode .menu-item {
        color: #fff;
    }

    body.dark-mode .menu-item.inactive {
        color: rgba(255, 255, 255, 0.5);
    }

    body.dark-mode .right-menu-button {
        background: #333;
        color: #fff;
    }

    body.dark-mode .icon-button img {
        filter: invert(1);
    }

    body.dark-mode .hamburger,
    body.dark-mode .hamburger::before,
    body.dark-mode .hamburger::after {
        background: #fff;
    }

    body.dark-mode .logo {
        filter: invert(1);
    }

    body.dark-mode .model-selector,
    body.dark-mode .material-selector,
    body.dark-mode .template-selector,
    body.dark-mode .text-logo-selector,
    body.dark-mode .text-color-selector,
    body.dark-mode .accessory-selector {
        background: #222;
        border-color: rgba(255,255,255,0.1);
    }

    body.dark-mode .close-button {
        background: #333 !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }
    
    /* Font selector için yeni stiller */

    /* Overlay arka plan */
    .font-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999999;
    }

    /* Font listesi */
    .font-list {
        display: none;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 80% !important;
        max-width: 280px !important;
        background: white !important;
        border-radius: 12px !important;
        padding: 10px 0 !important;
        z-index: 1000000 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }

    /* Font seçenekleri */
    .font-option {
        padding: 15px 20px !important;
        font-size: 16px !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        transition: background-color 0.2s ease;
    }

    .font-option:last-child {
        border-bottom: none !important;
    }

    .font-option:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Dark mode için stiller */
    .dark-mode .font-list {
        background: #222 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .dark-mode .font-option {
        color: #fff !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    .dark-mode .font-option:active {
        background-color: rgba(255, 255, 255, 0.05);
    }

    



}