/* Temel Ayarlar ve Reset */
* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f6f8; display: flex; flex-direction: column; min-height: 100vh; }

/* Üst Menü (Header) */
header { background-color: #ff6600; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.logo { font-size: 24px; font-weight: bold; }
nav { display: flex; gap: 10px; }
nav button, nav .nav-link { background: none; border: 1px solid white; color: white; padding: 8px 15px; cursor: pointer; border-radius: 4px; font-size: 15px; transition: 0.2s; text-decoration: none; text-align: center; }
nav button:hover, nav .nav-link:hover { background-color: white; color: #ff6600; font-weight: bold; }

/* Ana İçerik (Esnek Alan) */
main { padding: 20px; max-width: 1200px; margin: 0 auto; flex: 1; width: 100%; display: flex; flex-direction: column; }

/* Kendin Tasarla Banner Alanı */
.hero-banner { background: linear-gradient(135deg, #ff6600, #ff9933); color: white; padding: 50px 20px; text-align: center; border-radius: 8px; margin-bottom: 40px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.hero-banner h1 { margin: 0 0 15px 0; font-size: 36px; }
.hero-banner p { font-size: 18px; margin-bottom: 25px; }
.hero-banner button { background: #333; color: #fff; border: none; padding: 15px 35px; font-size: 20px; font-weight: bold; border-radius: 30px; cursor: pointer; transition: 0.3s; }
.hero-banner button:hover { background: #000; transform: scale(1.05); }

/* =========================================
   KATEGORİ VE ALT KATEGORİ MENÜLERİ 
   ========================================= */
.kategori-konteyner { display: flex; flex-direction: column; align-items: center; margin-bottom: 25px; width: 100%; }

.ana-kategori-butonlari { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.kat-btn { padding: 10px 22px; font-weight: bold; font-size: 15px; border: 2px solid transparent; border-radius: 25px; cursor: pointer; background: #e0e0e0; color: #333; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.kat-btn:hover { background: #d0d0d0; transform: translateY(-2px); }
.kat-btn.aktif { background: #ff6600; color: white; box-shadow: 0 4px 8px rgba(255,102,0,0.3); }

.alt-kategori-butonlari { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; background: #fff; padding: 8px 15px; border-radius: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); border: 1px solid #eee; animation: fadeIn 0.3s ease-in-out; }
.alt-kat-btn { padding: 6px 18px; font-size: 14px; font-weight: 600; border: none; border-radius: 15px; cursor: pointer; background: transparent; color: #666; transition: all 0.2s ease; }
.alt-kat-btn:hover { background: #f0f0f0; color: #333; }
.alt-kat-btn.aktif { background: #444; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Ürün Listeleme Alanı (Grid Sistemi) */
#urun-listesi, #tasarim-urun-listesi { display: flex; flex-wrap: wrap; gap: 2%; }
.urun-kutu { border: 1px solid #ddd; padding: 15px; margin-bottom: 20px; width: 32%; text-align: center; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s; }
.urun-kutu:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.urun-kutu img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; margin-bottom: 15px; background-color: #f9f9f9; cursor: pointer; transition: 0.3s; }
.urun-kutu img:hover { transform: scale(1.02); opacity: 0.9; }
.urun-kutu h3 { margin: 0 0 10px 0; font-size: 18px; color: #333; }
.urun-kutu p { margin: 0 0 15px 0; font-size: 20px; color: #ff6600; font-weight: bold; }
.urun-kutu button { background-color: #ff6600; color: white; border: none; padding: 12px; width: 100%; cursor: pointer; border-radius: 4px; font-size: 16px; font-weight: bold; transition: 0.2s; }
.urun-kutu button:hover { background-color: #e65c00; }
.btn-hemen-al { background-color: #28a745 !important; }
.btn-hemen-al:hover { background-color: #218838 !important; }

/* Tasarım Modülü (Canvas ve Form) */
.tasarim-alani { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; width: 100%; }
.canvas-container-wrapper { border: 1px solid #ddd; background: #fafafa; box-shadow: 0 4px 8px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; border-radius: 8px; overflow: hidden; padding: 10px; }
.araclar { flex: 1; min-width: 300px; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.araclar h3 { margin-top: 0; color: #333; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.araclar label { display: block; font-weight: bold; margin-bottom: 5px; color: #444; }
.araclar input[type="text"], .araclar input[type="file"], .araclar input[type="email"], .araclar select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; }
.araclar button { width: 100%; padding: 12px; margin-bottom: 10px; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 15px; transition: 0.2s; }
.araclar button:hover { background-color: #555; }
.araclar button.btn-onay { background-color: #ff6600; font-size: 18px; font-weight: bold; padding: 15px; margin-top: 10px; }
.araclar button.btn-onay:hover { background-color: #e65c00; }
.araclar button.btn-sil { background-color: #dc3545; }
.araclar button.btn-sil:hover { background-color: #c82333; }

/* Alt Bilgi (Footer) */
footer { background-color: #333; color: white; text-align: center; padding: 25px 15px; width: 100%; font-size: 14px; margin-top: auto; }
footer a { display: inline-block; padding: 5px 0; }

/* =========================================
   LIGHTBOX (RESİM BÜYÜTME)
   ========================================= */
.lightbox { display: none; position: fixed; z-index: 1000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); overflow: auto; }
.lightbox-icerik { margin: auto; display: block; max-width: 90%; max-height: 75vh; object-fit: contain; border-radius: 8px; animation: zoom 0.3s; }
.lightbox-caption { margin: auto; display: block; width: 80%; max-width: 700px; text-align: center; color: #fff; padding: 15px 0; font-size: 20px; font-weight: bold; animation: zoom 0.3s; }
.lightbox .kapat { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.lightbox .kapat:hover, .lightbox .kapat:focus { color: #ff6600; text-decoration: none; cursor: pointer; }
.lightbox .onceki, .lightbox .sonraki { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 30px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; }
.lightbox .sonraki { right: 0; border-radius: 3px 0 0 3px; }
.lightbox .onceki { left: 0; }
.lightbox .onceki:hover, .lightbox .sonraki:hover { background-color: rgba(0,0,0,0.8); color: #ff6600; }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

/* =========================================
   MOBİL UYUM (RESPONSIVE TASARIM)
   ========================================= */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 12px; padding: 15px; text-align: center; }
    nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; }
    nav button, nav .nav-link { flex: 1; min-width: 30%; padding: 10px 5px; font-size: 14px; margin: 0; }
    
    main { padding: 15px 10px; }
    .hero-banner { padding: 30px 15px; }
    .hero-banner h1 { font-size: 26px; }
    .hero-banner p { font-size: 16px; }
    .hero-banner button { width: 100%; font-size: 18px; padding: 12px; }

    /* Kategori Mobil Düzenlemesi */
    .ana-kategori-butonlari { gap: 8px; }
    .kat-btn { padding: 8px 16px; font-size: 14px; flex: 1; min-width: 40%; text-align: center; }
    .alt-kategori-butonlari { width: 100%; justify-content: center; padding: 8px; }
    .alt-kat-btn { padding: 8px 12px; font-size: 13px; flex: 1; text-align: center; }
    
    #urun-listesi, #tasarim-urun-listesi { flex-direction: column; gap: 15px; }
    .urun-kutu { width: 100%; margin-bottom: 0; }
    
    .tasarim-alani { flex-direction: column; gap: 20px; }
    .araclar { padding: 15px; }
    
    footer div a { display: block !important; margin: 8px 0 !important; font-size: 15px; }
    footer p { margin-top: 15px; border-top: 1px solid #555; padding-top: 15px; }
    
    .lightbox .onceki, .lightbox .sonraki { font-size: 24px; padding: 12px; }
}