/* === GENEL STİLLER VE FONT AYARLARI === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --header-bg-color: #ffffff;
    --header-text-color: #1c1e21;
    --border-color: #e4e6eb;
    --link-color: #1877f2;
    --subtle-text-color: #606770;
    --button-green-bg: #42b72a;
    --button-red-bg: #dc3545;
}

/* === BİRLEŞTİRİLMİŞ BUTON STİLLERİ === */
/* Tüm butonlar için ortak temel stil */
.button,
.order-button,
.action-button,
.nav-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.button:hover,
.order-button:hover,
.action-button:hover,
.nav-button:hover {
    opacity: 0.85;
}

.price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.discounted-price {
    color: #007bff;
    font-weight: bold;
}

.price-container-view {
    display: flex;
    align-items: center;
}

/* === CHECKOUT SAYFASI TASARIMI === */

.checkout-layout {
    display: flex;
    gap: 40px;
}
.checkout-form-container {
    flex: 2;
}
.checkout-summary-container {
    flex: 1;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 50px;
}
.checkout-summary-container h3 { margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.summary-item { display: flex; align-items: center; gap: 15px; margin: 15px 0; }
.summary-item img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }
.summary-item .item-details { flex-grow: 1; font-size: 0.9em; }
.summary-item .item-price { font-weight: 600; }
.checkout-form fieldset { border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 20px 20px 20px; margin-bottom: 25px; }
.checkout-form legend { font-weight: 600; padding: 0 10px; }
.address-columns { display: flex; gap: 20px; }
.address-col { flex: 1; }
.coupon-container { margin-top: 20px; border-top: 1px solid #3a3a3a; padding-top: 20px; }
        #coupon-input-area .form-group { display: flex; gap: 10px; align-items: center; }
        #coupon-message p { margin-top: 10px; padding: 10px; border-radius: 5px; }
        .discount-row { color: #28a745; font-weight: bold; }

.agreement-box, .checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px;
    border-radius: 6px;
    background-color: var(--bg-color);
}
.agreement-box label, .checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9em;
    font-weight: normal;
    cursor: pointer;
    color: var(--text-color);
}
.agreement-box label a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s;
}
.agreement-box label a:hover {
    color: var(--link-color);
    text-decoration: none;
}
.agreement-box input[type="checkbox"],
.checkbox-group input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; border: 2px solid var(--subtle-text-color);
    border-radius: 4px; cursor: pointer; position: relative;
    flex-shrink: 0; transition: all 0.2s;
}
.agreement-box input[type="checkbox"]:checked::before,
.checkbox-group input[type="checkbox"]:checked::before {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.agreement-box input[type="checkbox"]:checked::before,
.checkbox-group input[type="checkbox"]:checked::before {
    content: '\2713'; display: block; color: white;
    font-size: 14px; font-weight: 900; text-align: center; line-height: 18px;
}
.hidden { display: none !important; }

@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column;
    }
    .checkout-form-container {
        order: 2; /* Formu üste al */
    }
    .checkout-summary-container {
        order: 1; /* Özeti alta al */
        position: relative;
        top: 0;
    }
    }

/* CHECKOUT MOBİL UYUMLULUK */
@media (max-width: 992px) {
    .checkout-layout {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .checkout-summary-container {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }
    .address-columns {
        flex-direction: column;
        gap: 0;
    }
}

/* --- Butonlara Renklerini Veren Özel Kurallar --- */

/* Varsayılan, Mavi Butonlar */
.button,
.action-button,
.nav-button {
    background-color: var(--link-color);
}

/* Yeşil Buton (genellikle sipariş için kullanılır) */
.order-button {
    background-color: var(--button-green-bg);
    width: 100%;
}

/* Kırmızı Buton (silme veya iptal işlemleri için) */
.button-red {
    background-color: var(--button-red-bg);
}

/* Tam genişlik yapmak için ek yardımcı sınıf */
.button-full-width {
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode {
    --bg-color: #18191a;
    --text-color: #e4e6eb;
    --card-bg-color: #242526;
    --header-bg-color: #242526;
    --header-text-color: #e4e6eb;
    --border-color: #3a3b3c;
    --link-color: #4599ff;
    --subtle-text-color: #b0b3b8;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    transition: background-color 0.2s, color 0.2s;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

.content {
    background-color: var(--card-bg-color);
    padding: 30px 40px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

/* === HEADER (TÜM SAYFALAR İÇİN ORTAK) === */
.site-header {
    background-color: var(--header-bg-color);
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Bu gölge PC'de çizgi gibi görünüyor olabilir, eğer sorun devam ederse kaldırabilirsiniz */
    padding: 0 20px;
    top: 0;
    z-index: 1001;
    border-bottom: 1px solid var(--border-color); /* Bu, header'ın altındaki ince çizgidir */
    position: relative;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1158px;
    margin: 0 auto;
    height: 70px;
}
/* YENİ EKLENEN KURAL: Masaüstünde hamburger menü butonunu gizle */
.mobile-nav-toggle {
    display: none;
}

.logo a {
    font-size: 24px;
    font-weight: 600;
    color: var(--header-text-color);
    text-decoration: none;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-nav a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.main-nav a:hover {
    background-color: rgba(0,0,0,0.05);
}
#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--subtle-text-color);
    padding: 5px;
    line-height: 1;
}

/* === FOOTER STİLLERİ === */

.site-footer {
    background-color: #1c1e21; /* Koyu tema arkaplanı */
    color: #aeb4bc; /* Açık gri metin rengi */
    padding: 50px 0 20px 0; /* Üst, sağ, alt, sol dolgu */
    font-size: 15px;
    margin-top: 60px; /* Üstteki içerikle arasına boşluk koyar */
    border-top: 4px solid var(--link-color); /* Belirgin bir ayırıcı çizgi ekler */
    flex-shrink: 0; /* Sticky footer için: küçülmesini engelle */
}

.footer-content {
    display: grid; /* Izgara düzenini kullan */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Esnek sütunlar */
    gap: 40px; /* Sütunlar arası boşluk */
    margin-bottom: 40px; /* Alt boşluk */
    max-width: 1200px; /* Maksimum genişlik */
    margin-left: auto; /* Ortala */
    margin-right: auto; /* Ortala */
    padding: 0 20px; /* Yanlarda boşluk */
}

.footer-section {
    padding-bottom: 20px; /* Her bölümün altına varsayılan boşluk */
}

/* Her bölümün sonuna ayırıcı çizgi ekle, sonuncu hariç (mobil için) */
.footer-section:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px; /* Çizgi ile bir sonraki bölüm arasında boşluk */
    padding-bottom: 20px; /* İçerik ile çizgi arasında boşluk */
}
/* Masaüstünde ayırıcıları kaldır (çünkü grid düzeni yeterli) */
@media (min-width: 993px) {
    .footer-section:not(:last-child) {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff; /* Beyaz başlıklar */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em; /* Başlık boyutunu ayarla */
}

.footer-section.about p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #aeb4bc; /* Metin rengi */
}

/* Sosyal Medya İkonları */
.social-links {
    display: flex;
    justify-content: flex-start; /* Varsayılan olarak sola hizalı */
    gap: 10px; /* İkonlar arası boşluk */
    margin-top: 15px; /* Başlıkla ikonlar arasına boşluk */
}
.social-links a {
    display: inline-flex; /* İkonları ortalamak için */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #3a3b3c; /* Koyu gri arkaplan */
    color: #ffffff; /* Beyaz ikon */
    border-radius: 50%; /* Yuvarlak ikonlar */
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
}
.social-links a:hover {
    background-color: var(--link-color); /* Tema rengine dönüş */
    transform: translateY(-3px);
}

/* Footer Linkleri */
.footer-section.links ul {
    list-style: none; /* Liste işaretlerini kaldır */
    padding: 0;
    margin: 0;
}
.footer-section.links li {
    margin-bottom: 10px; /* Linkler arası boşluk */
}
.footer-section.links a {
    color: #aeb4bc; /* Link rengi */
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-section.links a:hover {
    color: #ffffff; /* Üzerine gelince beyaz */
    padding-left: 5px; /* Hafif kaydırma efekti */
}

/* Bülten Formu */
.newsletter-form { /* Footer HTML'inizde <form> etiketi bu sınıfa sahip olmalı */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Input ve buton arasına boşluk */
}
.footer-email-input {
    width: 100%;
    padding: 12px; /* Daha iyi dokunma alanı */
    border-radius: 6px; /* Daha yumuşak köşeler */
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.1); /* Hafif şeffaf arkaplan */
    color: #ffffff; /* Beyaz metin */
    box-sizing: border-box;
    font-size: 1em;
}
.footer-email-input::placeholder {
    color: rgba(255,255,255,0.6); /* Placeholder rengi */
}
.footer-submit-btn {
    width: 100%;
    padding: 12px; /* Daha iyi dokunma alanı */
    border: none;
    border-radius: 6px;
    background-color: var(--link-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    font-size: 1.1em; /* Buton yazısını büyüt */
}
.footer-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
}

/* En Alt Copyright Bölümü */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #3a3b3c; /* Daha ince bir üst çizgi */
    font-size: 0.9em;
    color: #606770; /* Daha açık gri */
}

/* Footer Logosu ve SVG Stilleri (Footer ile ilgili olanlar) */
.footer-logo-img { max-height: 50px; margin-bottom: 15px; } /* Footer logosu boyutu */
/* Eğer SVG logoyu footer'da kullanıyorsanız */
.footer-section.about .logo-link-svg { display: inline-block; height: 40px; }
.footer-section.about .site-logo-svg { height: 100%; width: auto; }
/* SVG içindeki parçaların renkleri (tema ile uyumlu) */
.footer-section.about .site-logo-svg .logo-part-dark { fill: #1c1e21; }
.footer-section.about .site-logo-svg .logo-part-accent { fill: var(--link-color); }
/* Karanlık mod için SVG renkleri (eğer footer da karanlık moda göre değişiyorsa) */
body.dark-mode .footer-section.about .site-logo-svg .logo-part-dark { fill: #ffffff; }
body.dark-mode .footer-section.about .site-logo-svg .logo-part-accent { fill: var(--link-color); }


/* === MOBİL UYUMLULUK AYARLARI (Sadece Footer için Ek Ayarlamalar) === */

@media (max-width: 992px) {
    .footer-content {
        gap: 30px; /* Mobil cihazlarda daha az boşluk */
        text-align: center; /* İçerik sütunlarını ortala */
        padding: 0 15px; /* Yan boşlukları azalt */
    }
    .footer-section h3,
    .footer-section h4 {
        text-align: center; /* Başlıkları ortala */
        font-size: 1.1em; /* Mobil için başlıkları küçült */
    }
    .footer-section.about p {
        text-align: center; /* Hakkımızda metnini ortala */
    }
    .social-links {
        justify-content: center; /* Sosyal ikonları ortala */
    }
    .footer-section.links ul {
        text-align: center; /* Link listesini ortala */
    }
    .footer-section.links li {
        margin-bottom: 8px; /* Mobil linkler arası boşluğu azalt */
    }
    .newsletter-form { /* footerdaki bülten formu */
        align-items: center; /* Form öğelerini ortala */
    }
    .footer-email-input,
    .footer-submit-btn {
        max-width: 300px; /* Mobil form elemanlarının çok genişlemesini engelle */
    }
    /* Mobil ayırıcı çizgi: Sadece mobil görünümde section'lar arasına çizgi ekler */
    .footer-section:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    /* Masaüstünde ayırıcıları kaldır (çünkü grid düzeni yeterli) */
    @media (min-width: 993px) { /* Bu kural mobil bloğun içinde olduğu için tekrar tanımlanıyor */
        .footer-section:not(:last-child) {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 15px 0;
    }
    .footer-content {
        gap: 20px;
        padding: 0 10px;
    }
    .footer-section:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.08); /* Daha hafif ayırıcı */
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    .footer-section h3,
    .footer-section h4 {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .footer-email-input,
    .footer-submit-btn {
        padding: 10px;
        font-size: 1em;
    }
    .footer-bottom {
        font-size: 0.8em;
        padding-top: 15px;
        margin-top: 15px;
    }
}

/* === BİLDİRİM BALONU === */
.main-nav .cart-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.main-nav .notification-badge {
    background-color: #e41e3f;
    color: white;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* === FORM ALANLARI (GÜNCELLENMİŞ) === */

.form-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
    max-width: 500px;
    padding: 30px 40px;
    text-align: center;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--subtle-text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}
.hidden-file-input {
    display: none !important; /* Bu satırı güncelledik */
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: var(--link-color);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 10px;
}

.form-group button:hover {
    opacity: 0.9;
}

.form-footer {
    margin-top: 20px;
    font-size: 14px;
}

.form-footer a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

/* === TABLO STİLLERİ === */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}
thead th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--subtle-text-color);
    border-bottom: 2px solid var(--border-color);
}
tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
tr:last-child td {
    border-bottom: none;
}

/* === MİKTAR BUTONLARI === */
.quantity-form {
            display: flex;
            align-items: center;
            justify-content: center; /* Butonları hücre içinde ortala */
            gap: 8px;
        }
        .quantity-form button {
            width: 30px;
            height: 30px;
            border: 1px solid #444;
            background-color: #3a3a3e;
            color: #fff;
            cursor: pointer;
            border-radius: 50%; /* Yuvarlak butonlar */
            font-size: 18px;
            line-height: 1;
            padding: 0;
        }
        .quantity-form input {
            width: 40px;
            text-align: center;
            border: none;
            background-color: transparent;
            color: #fff;
            font-size: 1.1em;
            font-weight: bold;
        }

/* === ÜRÜN KARTLARI === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--card-bg-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.discount-badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background-color: var(--button-red-bg);
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}
.product-image-container {
    width: 100%;
    height: 230px;
    background-color: #f0f2f5;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}
.product-content .description {
    color: var(--subtle-text-color);
    font-size: 0.9em;
    flex-grow: 1;
    margin-bottom: 15px;
}
.product-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    margin-top: auto;
}
.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}
.original-price {
    text-decoration: line-through;
    color: var(--subtle-text-color);
    font-size: 1.1em;
}
.capsule-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.capsule-header-info img {
    width: 100px !important; /* Bu satırı güncelledik */
    height: 100px !important; /* Bu satırı güncelledik */
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--link-color);
}
.file-previews-container {
    max-height: 300px; /* İstediğiniz maksimum yüksekliği buraya ayarlayın (örneğin 300px) */
    overflow-y: auto; /* Dikey kaydırmayı aktif eder */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Dosya önizlemeleri için grid düzeni */
    gap: 10px; /* Önizlemeler arasındaki boşluk */
    padding: 10px;
    border: 1px solid #ccc; /* İsteğe bağlı: bir çerçeve ekleyebilirsiniz */
    background-color: #18191a; /* İsteğe bağlı: bir arka plan rengi ekleyebilirsiniz */
}

.file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    background-color: #242526;
	height: 100px;
    box-sizing: border-box;
    overflow: hidden; /* İçeriğin taşımasını engeller */
    position: relative; /* Sil butonu için konumlandırma bağlamı */
}

.file-preview-thumbnail {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain; /* Görselin boyutlarına sığacak şekilde ölçeklenmesi */
}

.file-preview-video,
.file-preview-audio {
    max-width: 100%;
    height: auto;
}

.file-icon-large {
    font-size: 2em;
    margin-bottom: 5px;
	color: #4599ff;
}
.product-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.product-title-link:hover {
    color: var(--link-color);
}

.file-type-name {
    font-size: 0.8em;
	padding: 2px;
	color: white;
	text-decoration: none; 
}

.file-size-display {
    font-size: 0.7em;
    color: #777;
}

.file-download-button,
.delete-file-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.file-download-button:hover,
.delete-file-button:hover {
    opacity: 1;
    color: #d9534f; /* Sil butonuna hover efekti */
}

.delete-file-button {
    left: 5px;
    right: auto;
    color: #d9534f;
}

.file-preview-text {
    font-size: 0.7em;
    overflow: auto;
    max-height: 70px;
    width: 90%;
    margin-top: 5px;
    border: 1px solid #eee;
    padding: 5px;
    text-align: left;
    white-space: pre-wrap; /* Satırları otomatik kaydırır */
}

/* === SEPET SAYFASI (cart.php) === */
.cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Üstten başla hizalamaya */
}
.cart-items {
    flex: 2; /* Ürünler kısmına daha fazla yer ver */
}
.cart-summary {
    flex: 1; /* Özet kısmına daha az yer ver */
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}
.cart-summary h3 { margin-top: 0; }
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-product-cell img { width: 110px; height: 110px; border-radius: 6px; object-fit: cover; }
.cart-product-cell .product-info strong { font-size: 10px; }
.cart-product-cell .product-info small { color: var(--subtle-text-color); }
.remove-link { color: var(--button-red-bg); text-decoration: none; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.summary-row.total { font-weight: bold; font-size: 1.2em; padding-top: 15px; }
/* Sepet Boş Mesajı */
.empty-cart-message {
    text-align: center; padding: 20px; background-color: var(--card-bg-color);
    border-radius: 8px; border: 1px solid var(--border-color); margin-top: 30px;
}
.empty-cart-message p { margin-bottom: 15px; font-size: 1.1em; color: var(--text-color); }
.empty-cart-message .start-shopping-button {
    width: auto; display: inline-block; padding: 10px 20px; text-decoration: none;
    font-size: 1em;
}
/* Sipariş Onayla Butonu (PC Boyutu) */
.proceed-checkout-button {
    background-color: var(--button-green-bg); color: white; padding: 15px 40px;
    text-align: center; display: block; text-decoration: none; border-radius: 8px;
    font-weight: 600; font-size: 1.0em; transition: opacity 0.2s, transform 0.2s;
    width: auto;
    box-sizing: border-box;
    margin-top: 20px; /* Özete üst boşluk */
}
.proceed-payment-button {
    background-color: var(--button-green-bg); color: white; padding: 15px 112px;
    text-align: center; display: block; text-decoration: none; border-radius: 8px;
    font-weight: 600; font-size: 1.0em; transition: opacity 0.2s, transform 0.2s;
    width: auto;
    box-sizing: border-box;
    margin-top: 20px; /* Özete üst boşluk */
}
.proceed-checkout-button:hover { opacity: 0.9; }
}


/* === ÜRÜN DETAY SAYFASI === */
.product-view-layout {
    display: flex;
    gap: 40px;
}
/* Ortalama Puan ve Yorum Sayısı Özeti Stili */
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 15px 0;
}
.product-rating-summary .stars-display .star {
    font-size: 1.1em;
    color: #ccc;
}
.product-rating-summary .stars-display .star.filled {
    color: #f39c12;
}
.product-rating-summary .review-count-text {
    font-size: 0.9em;
    color: var(--subtle-text-color);
}
.product-gallery {
    flex: 1;
}
.main-image-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.thumbnail-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--link-color);
}
.product-details {
    flex: 1;
}
.product-description {
    line-height: 1.6;
    color: var(--subtle-text-color);
}
.price-container-view {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.price-container-view .original-price {
    font-size: 1.2em;
    text-decoration: line-through;
    color: var(--subtle-text-color);
}
.price-container-view .discounted-price {
    font-size: 2em;
    font-weight: 600;
    color: var(--link-color);
}

/* === YORUMLAR VE PUANLAMA (NİHAİ DÜZENLEME) === */

.reviews-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
/* === YORUM SLIDER STİLLERİ === */

.reviews-slider {
    width: 100%;
    padding: 10px 0 40px 0;
    position: relative;
}

.reviews-slider .swiper-slide {
    height: auto;
}

.reviews-slider .review-card {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reviews-slider .review-comment {
    flex-grow: 1;
}

.reviews-slider .swiper-button-next,
.reviews-slider .swiper-button-prev {
    color: var(--link-color);
    top: 50%;
    transform: translateY(-50%);
    width: 27px;
    height: 44px;
}

.reviews-slider .swiper-button-next {
    right: -10px;
}
.reviews-slider .swiper-button-prev {
    left: -10px;
}

.reviews-slider .swiper-button-next::after,
.reviews-slider .swiper-button-prev::after {
    font-size: 24px;
    font-weight: 900;
}

@media (max-width: 640px) {
    .reviews-slider .swiper-button-next,
    .reviews-slider .swiper-button-prev {
        display: none;
    }
}

.reviews-slider .swiper-pagination-bullet {
    background: var(--subtle-text-color);
}

.reviews-slider .swiper-pagination-bullet-active {
    background: var(--link-color);
}

/* Yorum Ekleme Formu */
.review-form-container {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}
.review-form-container h4 {
    margin-top: 0;
}

/* Puanlama Satırının Kendisi */
.star-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.star-rating > label {
    margin-bottom: 0;
    flex-shrink: 0;
    font-weight: 600;
}

.star-rating .stars {
    display: inline-block;
    direction: rtl;
}

.star-rating input[type="radio"] {
    display: none;
}

/* Yıldızların Kendisi (★) */
.star-rating .stars label {
    display: inline-block;
    font-size: 1.6em;
    color: #ccc;
    cursor: pointer;
    padding: 0 1px;
    transition: color 0.2s ease-in-out;
}

.star-rating .stars input:checked ~ label,
.star-rating .stars label:hover,
.star-rating .stars label:hover ~ label {
    color: #f39c12;
}

/* Mevcut Yorum Kartları */
.review-card {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.review-card:last-child { border-bottom: none; }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.review-author { font-weight: 600; }
.review-date { font-size: 0.9em; color: var(--subtle-text-color); }

.review-rating .star {
    font-size: 1.1em;
    color: #ccc;
}
.review-rating .star.filled {
    color: #f39c12;
}

.review-comment {
    margin-top: 10px;
    line-height: 1.5;
}

/* Ortalama Puan ve Yorum Sayısı Özeti Stili */
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 15px 0;
}
.product-rating-summary .stars-display .star {
    font-size: 1.1em;
    color: #ccc;
}
.product-rating-summary .stars-display .star.filled {
    color: #f39c12;
}
.product-rating-summary .review-count-text {
    font-size: 0.9em;
    color: var(--subtle-text-color);
}

/* === PROFİL SAYFASI === */
.profile-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.profile-nav {
    flex: 1;
    max-width: 220px;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}
.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 100px;
}
.profile-nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--subtle-text-color);
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 5px;
    border: 1px solid transparent;
}
.profile-nav a.active,
.profile-nav a:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
}
.profile-content {
    flex: 3;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}
.address-columns {
    display: flex;
    gap: 20px;
}
.address-col {
    flex: 1;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-slider {
    width: 100%;
    height: 400px;
    margin: 30px auto;
    border-radius: 10px;
    background-color: var(--bg-color);
}
.hero-slider .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { color: var(--link-color); }
.hero-slider .swiper-pagination-bullet-active { background-color: var(--link-color); }

/* === KAPSÜL GÖRÜNTÜLEME SAYFASI (view_capsule.php) === */

.view-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.capsule-visual-main {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.view-container h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.view-container .message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    background-color: var(--bg-color);
    font-weight: 500;
}

/* Geri Sayım Sayacı Stilleri */
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    font-weight: 600;
}
.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 80px;
}
.countdown-block .value {
    font-size: 2.8em;
    color: var(--link-color);
    line-height: 1.1;
}
.countdown-block .label {
    font-size: 0.9em;
    color: var(--subtle-text-color);
    text-transform: uppercase;
}

/* Açılmış Kapsül İçerik Bölümleri */
.capsule-content-section {
    text-align: left;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.capsule-content-section h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Fotoğraf Galerisi Slider */
.gallery-slider {
    width: 100%;
    height: 450px;
}
.gallery-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-slider .swiper-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;

}

/* === SSS SAYFASI (MODERN AKORDİYON TASARIMI) === */

.faq-container {
    max-width: 850px;
    margin: 40px auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: var(--card-bg-color);
    border: none;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-color);
}

.faq-question .faq-icon {
    font-size: 1em;
    color: var(--subtle-text-color);
    transition: transform 0.3s ease-in-out;
}

/* Aktif (açık) olan sorunun stilleri */
.faq-question.active {
    color: var(--link-color);
}
.faq-question.active .faq-icon {
    transform: rotate(180deg);
    color: var(--link-color);
}

/* Cevap bölümü */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: var(--bg-color);
}

.faq-answer-content {
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer-content p {
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--subtle-text-color);
    margin: 0;
}

/* === NASIL ÇALIŞIR SAYFASI (YENİ MODERN TASARIM) === */

.how-it-works-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Sayfa kaydırıldıkça görünecek */
.how-it-works-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Her ikinci bölümün sırasını değiştir (resim-sağda, metin-solda) */
.how-it-works-section:nth-child(even) .how-it-works-image {
    order: 2;
}

.how-it-works-image {
    text-align: center;
}

.how-it-works-image i {
    font-size: 8em;
    color: var(--link-color);
    opacity: 0.8;
}

.how-it-works-text .step-number {
    display: inline-block;
    background-color: var(--link-color);
    color: white;
    padding: 5px 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.how-it-works-text h2 {
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 15px;
}

.how-it-works-text p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--subtle-text-color);
}

/* ... (Mevcut GENEL STİLLER, BUTONLAR, CHECKOUT, HEADER, FOOTER, KAPSÜL YÖNETİM vs.) ... */

/* === KAPSÜL GÖRÜNTÜLEYİCİ SAYFASI (view_capsule.php) STİLLERİ === */

/* Genel kapsayıcı ve ortalama için */
.content-centered-page {
    min-height: calc(100vh - 100px); /* Ekranı ortalamak için */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.content-narrow {
    max-width: 600px; /* İçeriği daralt */
    width: 100%;
    margin: auto; /* Ortalamak için */
    padding: 30px;
}

/* Hata/Boş/Kilitli Mesaj Kutuları */
.view-error-message,
.view-empty-message,
.locked-capsule-message {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.view-error-message h2,
.view-empty-message h2,
.locked-capsule-message h1 {
    font-size: 2.2em;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 15px;
}
.view-error-message p,
.view-empty-message p,
.locked-capsule-message p {
    font-size: 1.1em;
    color: var(--subtle-text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.view-error-message .button,
.view-empty-message .button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1em;
}
/* Kilitli kapsül sayfasındaki buton */
.locked-capsule-message .button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1em;
    width: auto; /* Kapsayıcının %100'ü olmasın */
    display: inline-block; /* Margin auto için */
}


/* Kilitli Kapsül Geri Sayım Sayfası */
.countdown-heading {
    font-size: 1.2em;
    margin-top: 30px;
    color: var(--text-color);
}
#countdown.countdown-blocks-container { /* manage_my_capsule'da kullandığımız stil */
    display: flex;
    justify-content: center;
    gap: 15px; /* Bloklar arası boşluk */
    margin: 20px 0;
    font-weight: 600;
    flex-wrap: wrap; /* YENİ: Blokların alt satıra geçmesini sağla */
}
#countdown .countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 80px;
    box-sizing: border-box; /* YENİ: Padding'i genişliğe dahil et */
}
#countdown .countdown-block .value {
    font-size: 2.8em;
    color: var(--link-color);
    line-height: 1.1;
}
#countdown .countdown-block .label {
    font-size: 0.9em;
    color: var(--subtle-text-color);
    text-transform: uppercase;
}

* === TAM EKRAN GALERİ STİLLERİ (view_capsule.php için ÖZEL) === */
body.capsule-view-page {
    --bg-color: #121212; /* Galeride arka planı tamamen siyah yap */
    --text-color: #e4e6eb;
    --card-bg-color: #242526;
    --header-bg-color: rgba(0,0,0,0.7); /* Header'ı yarı saydam yap */
    --header-text-color: #e4e6eb;
    --border-color: #3a3b3c;
    --link-color: #4599ff;
    --subtle-text-color: #b0b3b8;
    background-color: #121212;
    overflow: hidden; /* Sayfada scroll bar çıkmasını engeller */
}

.fullscreen-gallery-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: center; color: white; z-index: 999; background-color: #000;
}

.gallery-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    position: relative; z-index: 20; width: 100%; flex-shrink: 0;
}
.gallery-header h1 {
    font-size: 1.5em; margin: 0; color: white; text-shadow: 0 0 5px rgba(0,0,0,0.5);
    flex-grow: 1; /* YENİ: Başlığın genişlemesini sağlar */
    text-align: center; /* YENİ: Başlığı ortalar */
}
.gallery-header .close-gallery-btn {
    font-size: 2em; color: white; text-decoration: none; opacity: 0.8; transition: opacity 0.2s;
    background: none; border: none; cursor: pointer; line-height: 1; padding: 5px;
}
.gallery-header .close-gallery-btn:hover { opacity: 1; }

/* Ana Swiper Slider Alanı (Görselin kendisi) */
.gallery-main-swiper {
    width: 100%; height: calc(100% - 170px); /* Header (70px) + Thumbs Container (yaklaşık 100px padding + height) = 170px boşluk */
    margin-top: 0; flex-grow: 1; position: relative; z-index: 10;
}
.gallery-main-swiper .swiper-slide {
    display: flex; justify-content: center; align-items: center;
    padding: 20px; box-sizing: border-box; background-color: #000;
}
/* KAPAK FOTOĞRAFI için galeri içinde stil */
.capsule-cover-gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}
.gallery-main-swiper .swiper-slide img, .gallery-main-swiper .swiper-slide video, .gallery-main-swiper .swiper-slide audio {
    max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px;
}
.gallery-main-swiper .swiper-slide video, .gallery-main-swiper .swiper-slide audio { min-width: 50%; }

/* Metin Önizleme Stilleri */
.text-preview {
    background-color: rgba(0,0,0,0.5); padding: 20px; border-radius: 8px;
    max-width: 80%; max-height: 100%; overflow: auto; font-family: monospace;
    font-size: 1.1em; line-height: 1.5; color: #f0f0f0;
    white-space: pre-wrap; word-wrap: break-word;
}
/* Desteklenmeyen Dosya Önizlemesi */
.unsupported-preview {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: rgba(0,0,0,0.5); padding: 20px; border-radius: 8px;
    color: var(--subtle-text-color); font-size: 1.2em; max-width: 80%; height: 80%;
}
.unsupported-preview p { margin-bottom: 20px; }
.download-direct-button {
    background-color: var(--link-color); color: white; padding: 10px 20px;
    border-radius: 6px; text-decoration: none; font-weight: 600;
}
.download-direct-button:hover { opacity: 0.9; }

/* Swiper Navigasyon Okları */
.gallery-main-swiper .swiper-button-next, .gallery-main-swiper .swiper-button-prev {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 15;
    color: white; text-shadow: 0 0 5px rgba(0,0,0,0.8); font-size: 2.5em;
    cursor: pointer; background-color: rgba(0,0,0,0.3); border-radius: 50%; padding: 10px;
}
.gallery-main-swiper .swiper-button-prev { left: 10px; }
.gallery-main-swiper .swiper-button-next { right: 10px; }


/* Thumbnail Galerisi */
.gallery-thumbs-container {
    position: relative; z-index: 30; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px 20px; box-sizing: border-box; display: flex; flex-direction: column;
}
.download-actions-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: white; }
.download-actions-bar label input[type="checkbox"] { margin-right: 8px; width: 18px; height: 18px; vertical-align: middle; cursor: pointer; }
.download-selected-btn {
    background-color: var(--link-color); color: white; border: none;
    padding: 8px 15px; border-radius: 5px; cursor: pointer;
    transition: background-color 0.2s; font-weight: 600;
}
.download-selected-btn:disabled { background-color: #555; cursor: not-allowed; opacity: 0.6; }
.gallery-thumbs-swiper { height: 100px; }
.gallery-thumbs-swiper .swiper-slide {
    width: 90px; height: 90px; opacity: 0.5; transition: opacity 0.3s, border-color 0.3s;
    cursor: pointer; border-radius: 6px; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center; border: 2px solid transparent; box-sizing: border-box;
}
.gallery-thumbs-swiper .swiper-slide-thumb-active { opacity: 1; border-color: var(--link-color); }
.gallery-thumbs-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
/* KAPAK FOTOĞRAFI THUMBNAIL İÇİN YENİ STİL */
.capsule-cover-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px; /* Thumbnail ile aynı yuvarlaklık */
}
.gallery-thumbs-swiper .file-icon { font-size: 2.5em; color: var(--subtle-text-color); }
.thumb-checkbox {
    position: absolute; top: 5px; left: 5px; z-index: 10; width: 20px; height: 20px; cursor: pointer;
}
/* === MOBİL UYUMLULUK AYARLARI (view_capsule.php için özel) === */

/* Standart Tablet ve Altı (max-width: 992px) */
@media (max-width: 992px) {
    /* view_capsule.php için genel mobil stil */
    .content-centered-page { padding: 15px; }
    .content-narrow { padding: 20px; }
    .view-error-message h2, .view-empty-message h2, .locked-capsule-message h1 { font-size: 1.8em; }
    .view-error-message p, .view-empty-message p, .locked-capsule-message p { font-size: 1em; }

    /* Galeri İçin */
    .gallery-main-swiper {
        height: calc(100% - 150px); /* Mobil header (60px) + thumbs (yaklaşık 90px) */
        margin-top: 60px; /* Mobil header yüksekliği */
    }
    .gallery-header { height: 60px; padding: 0 15px; }
    .gallery-header h1 { font-size: 1.2em; flex-grow: 1; text-align: center; } /* Mobil başlığı ortala */
    .gallery-header .close-gallery-btn { font-size: 1.5em; }
    .gallery-thumbs-container { padding: 10px 15px; }
    .gallery-thumbs-swiper { height: 80px; }
    .gallery-thumbs-swiper .swiper-slide { width: 70px; height: 70px; }
    .gallery-thumbs-swiper .file-icon { font-size: 2em; }
    .download-actions-bar { flex-direction: column; gap: 10px; align-items: center; margin-bottom: 10px; }
    .download-selected-btn { width: 100%; }
}

/* Telefonlar ve Küçük Tabletler (max-width: 768px) */
@media (max-width: 768px) {
    /* view_capsule.php galeri özel mobil stil */
    .fullscreen-gallery-container { flex-direction: column; }
    .gallery-main-swiper { height: calc(100% - 150px); margin-top: 60px; }
    .gallery-header { height: 60px; padding: 0 15px; }
    .gallery-header h1 { font-size: 1.2em; }
    .gallery-header .close-gallery-btn { font-size: 1.5em; }
    .gallery-thumbs-container { padding: 10px 15px; }
    .gallery-thumbs-swiper { height: 80px; }
    .gallery-thumbs-swiper .swiper-slide { width: 70px; height: 70px; }
    .gallery-thumbs-swiper .file-icon { font-size: 2em; }
    .gallery-main-swiper .swiper-button-next,
    .gallery-main-swiper .swiper-button-prev { display: none; } /* Okları mobilde gizle */
    .download-actions-bar { flex-direction: column; gap: 10px; align-items: center; margin-bottom: 10px; }
    .download-selected-btn { width: 100%; }
}

/* Çok Küçük Telefonlar (max-width: 480px) */
@media (max-width: 480px) {
    /* view_capsule.php galeri için çok küçük mobil stil */
    .gallery-main-swiper { height: calc(100% - 90px); margin-top: 50px; }
    .gallery-header { height: 50px; padding: 0 10px; }
    .gallery-thumbs-swiper { height: 70px; }
    .gallery-thumbs-swiper .swiper-slide { width: 60px; height: 60px; }
    .gallery-thumbs-swiper .file-icon { font-size: 1.5em; }
    .download-actions-bar label, .download-actions-bar button { font-size: 0.9em; padding: 8px 12px; }
}

/* === MOBİL UYUMLULUK AYARLARI (view_capsule.php ve manage_my_capsule.php için) === */

@media (max-width: 992px) {
    .content-centered-page {
        padding: 15px;
    }
    .content-narrow {
        padding: 20px;
    }
    .view-error-message h2,
    .view-empty-message h2,
    .locked-capsule-message h1 {
        font-size: 1.8em;
    }
    .view-error-message p,
    .view-empty-message p,
    .locked-capsule-message p {
        font-size: 1em;
    }

    /* Galeri İçin */
    .fullscreen-gallery-container {
        flex-direction: column;
    }
    .gallery-main-swiper {
        height: calc(100% - 150px); /* Mobil header (60px) + thumbs (yaklaşık 90px) */
        margin-top: 60px; /* Mobil header yüksekliği */
    }
    .gallery-header {
        height: 60px;
        padding: 0 15px;
    }
    .gallery-header h1 {
        font-size: 1.2em;
    }
    .gallery-header .close-gallery-btn {
        font-size: 1.5em;
    }

    .gallery-thumbs-container {
        padding: 10px 15px;
    }
    .gallery-thumbs-swiper {
        height: 80px;
    }
    .gallery-thumbs-swiper .swiper-slide {
        width: 70px;
        height: 70px;
    }
    .gallery-thumbs-swiper .file-icon {
        font-size: 2em;
    }
    .download-actions-bar {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
    }
    .download-selected-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* manage_my_capsule.php ve view_capsule.php için geri sayım stili */
    #countdown.countdown-blocks-container {
        gap: 10px;
        justify-content: space-around;
        padding: 0 10px;
    }
    #countdown .countdown-block {
        min-width: 60px;
        padding: 10px 15px;
        font-size: 0.9em;
    }
    #countdown .countdown-block .value {
        font-size: 2em;
    }
    #countdown .countdown-block .label {
        font-size: 0.8em;
    }
    .locked-capsule-message h1 {
        font-size: 1.8em;
    }
    .locked-capsule-message p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .gallery-main-swiper {
        height: calc(100% - 90px);
        margin-top: 50px;
    }
    .gallery-header {
        height: 50px;
        padding: 0 10px;
    }
    .gallery-thumbs-swiper {
        height: 70px;
    }
    .gallery-thumbs-swiper .swiper-slide {
        width: 60px;
        height: 60px;
    }
    .gallery-thumbs-swiper .file-icon {
        font-size: 1.5em;
    }
    .download-actions-bar label,
    .download-actions-bar button {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    /* manage_my_capsule.php ve view_capsule.php için geri sayım stili */
    #countdown.countdown-blocks-container {
        flex-direction: row;
        gap: 5px;
        padding: 0 5px;
    }
    #countdown .countdown-block {
        min-width: unset;
        flex: 1;
        padding: 5px 8px;
    }
    #countdown .countdown-block .value {
        font-size: 1.5em;
    }
    #countdown .countdown-block .label {
        font-size: 0.7em;
    }
    .locked-capsule-message h1 {
        font-size: 1.5em;
    }
    .locked-capsule-message p {
        font-size: 0.9em;
    }
}

/* YENİ EKLENDİ: İndirme ve Seçim Butonları */
.download-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.download-actions-bar label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.download-actions-bar input[type="checkbox"] {
    margin-right: 8px;
}
.download-selected-btn {
    background-color: var(--link-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.download-selected-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* YENİ EKLENDİ: Thumbnail üzerindeki seçim kutusu */
.thumb-checkbox {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* === DİNAMİK SVG LOGO STİLLERİ === */

.logo-link-svg {
    display: inline-block;
    height: 40px;
}
.site-logo-svg {
    height: 100%;
    width: auto;
}

/* Aydınlık Mod Renkleri (Varsayılan) */
.site-logo-svg .logo-part-dark {
    fill: #1c1e21;
}
.site-logo-svg .logo-part-accent {
    fill: var(--link-color);
}

/* Karanlık Moda Geçildiğinde Renkler */
body.dark-mode .site-logo-svg .logo-part-dark {
    fill: #ffffff;
}
body.dark-mode .site-logo-svg .logo-part-accent {
    fill: var(--link-color);
}

/* YENİ: Mobil Bölücü İşareti için Stil */
.mobile-divider {
    display: block; /* Masaüstünde varsayılan olarak gizle */
    font-size: 24px; /* Boyutunu ayarlayın */
    color: var(--header-text-color); /* Tema rengiyle uyumlu olsun */
    margin: 0 10px; /* Logo ile menü arasında boşluk */
    line-height: 1; /* Dikey hizalama için */

    align-self: center; /* Flex içinde ortalamak için */
}

/* === GİRİŞ SAYFASI ŞİFREMİ UNUTTUM LİNKİ === */

.form-group .label-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.form-group .label-container label {
    margin-bottom: 0;
}

a.forgot-password-link {
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    color: var(--subtle-text-color);
    transition: color 0.2s;
}

a.forgot-password-link:hover {
    color: var(--link-color);
    text-decoration: underline;
}

/* === ÇEREZ ONAY BANNER'I === */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner p {
    margin: 0;
    color: var(--subtle-text-color);
    font-size: 0.95em;
}

.cookie-consent-banner a {
    color: var(--link-color);
    text-decoration: underline;
}

.cookie-accept-btn {
    padding: 10px 25px;
    background-color: var(--link-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
}

/* ================================================================
    MOBİL UYUMLULUK AYARLARI (UYGULAMA GÖRÜNÜMÜ)
================================================================ */

/* --- Geniş Tablet ve Altı (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* === MOBİL UYUMLULUK AYARLARI (cart.php için özel) === */

/* Standart Tablet ve Altı (max-width: 992px) */
@media (max-width: 992px) {
    /* Sepet Layout */
    .cart-layout {
        flex-direction: column; /* Ürünler üstte, Sipariş Özeti altta */
        gap: 30px;
    }
    .cart-summary {
        position: static; /* Sticky'yi kaldır */
        width: 100%; /* Tam genişlik */
        margin-top: 0;
        box-sizing: border-box;
        order: 2; /* Ürünlerden sonra gelsin */
    }
    .cart-items { order: 1; } /* Ürünler özetten önce gelsin */
    /* Sepet Tablosunu Mobil Kart Görünümüne Çevirme */
    .cart-items table {
        border: none; border-radius: 0; box-shadow: none; overflow: visible; margin-bottom: 0;
    }
    .cart-items thead { display: none; }
    .cart-items tr {
        display: block; margin-bottom: 15px; border: 1px solid var(--border-color);
        border-radius: 8px; background-color: var(--card-bg-color);
        padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }
    .cart-items tr:last-child { margin-bottom: 0; }
    .cart-items td {
        display: flex; justify-content: space-between; align-items: center;
        padding: 10px 0; border-bottom: 1px dashed var(--border-color); font-size: 1em;
    }
    .cart-items td:last-child { border-bottom: none; padding-bottom: 0; margin-top: 10px; justify-content: center; }
    .cart-items td::before {
        content: attr(data-label); font-weight: 600; color: var(--subtle-text-color);
        margin-right: 15px; flex-shrink: 0; min-width: 70px; /* Daha kompakt etiket */
    }
    .cart-items td:first-child { /* Ürün hücresi için - görsel ve metin yan yana */
        padding-top: 0; font-size: 1.1em; color: var(--text-color); font-weight: 600;
        border-bottom: 2px solid var(--link-color); margin-bottom: 10px;
        flex-direction: row; /* ÖNEMLİ: Görsel ve metni yan yana getirir */
        align-items: center; justify-content: flex-start; gap: 15px;
    }
    .cart-items td:first-child::before { display: none; }
    .cart-product-cell { display: flex; align-items: center; gap: 10px; width: 100%; }
    .cart-product-cell img { width: 50px; height: 50px; flex-shrink: 0; } /* Görseli küçült */
    .cart-product-cell .product-info { flex-grow: 1; }
    .cart-summary { padding: 20px; }
    .proceed-checkout-button { width: 100%; padding: 15px; font-size: 1.2em; }
	.proceed-payment-button { width: 100%; padding: 15px; font-size: 1.2em; }
	.quantity-form {
            display: flex;
            align-items: center;
            justify-content: center; /* Butonları hücre içinde ortala */
            gap: 8px;
        }
        .quantity-form button {
            width: 30px;
            height: 30px;
            border: 1px solid #444;
            background-color: #3a3a3e;
            color: #fff;
            cursor: pointer;
            border-radius: 50%; /* Yuvarlak butonlar */
            font-size: 18px;
            line-height: 1;
            padding: 0;
        }
        .quantity-form input {
            width: 40px;
            text-align: center;
            border: none;
            background-color: transparent;
            color: #fff;
            font-size: 1.1em;
            font-weight: bold;
        }



/* Telefonlar ve Küçük Tabletler (max-width: 768px) */
@media (max-width: 768px) {
    /* Sepet için daha küçük font ve boşluklar */
    .cart-items td {
        padding: 8px 0;
        font-size: 0.9em;
    }
    .cart-items td::before {
        min-width: 60px;
        margin-right: 10px;
    }
    .cart-summary {
        padding: 15px;
    }
    .proceed-checkout-button {
        padding: 12px;
        font-size: 1.1em;
    }
    /* Kaldır butonunu görünür ve düzgün yap */
    .cart-items .remove-link {
        display: inline-block; /* Görünür olmasını sağla */
        padding: 5px 10px; /* Daha küçük tıklama alanı */
        font-size: 0.85em; /* Yazı boyutunu küçült */
        text-align: center;
        text-decoration: none; /* Alt çizgiyi kaldır */
        color: var(--button-red-bg); /* Kırmızı renk */
    }
}

/* Çok Küçük Telefonlar (max-width: 480px) */
@media (max-width: 480px) {
    /* En küçük telefonlar için */
    .cart-items td {
        font-size: 0.85em;
    }
    .cart-items td::before {
        min-width: 50px;
        margin-right: 8px;
    }
    .cart-product-cell img {
        width: 40px;
        height: 40px;
    }
    .proceed-checkout-button {
        font-size: 1em;
        padding: 10px;
    }
    .empty-cart-message .start-shopping-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* --- Telefonlar ve Küçük Tabletler (max-width: 768px) --- */
@media (max-width: 768px) {

    /* MOBİLDE HER ZAMAN DARK MODE UYGULA */
    /* !important kullanarak temayı zorla, böylece değişkenler doğru atanır */
    body {
        --bg-color: #18191a !important;
        --text-color: #e4e6eb !important;
        --card-bg-color: #242526 !important;
        --header-bg-color: #242526 !important;
        --header-text-color: #e4e6eb !important; /* Header metin rengi açık olmalı */
        --border-color: #3a3b3c !important;
        --link-color: #4599ff !important;
        --subtle-text-color: #b0b3b8 !important;
    }

    /* LOGO RENK PROBLEMİ İÇİN EK KURAL */
    /* Mobil dark mode'da logonun renklerinin açık olmasını garanti eder */
    .site-logo-svg .logo-part-dark {
        fill: #ffffff !important; /* TRID yazısının beyaz olması için */
    }
    .site-logo-svg .logo-part-accent {
        fill: var(--link-color) !important; /* KEEP yazısı için mavi */
    }


    /* Genel Font ve Boşluk Ayarları */
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    .content { padding: 15px; }
    .page-container { padding: 0 10px 10px 10px; }


    /* HEADER VE HAMBURGER MENÜ */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        height: 60px;
        padding: 0 15px;
    }
    .mobile-nav-toggle {
        display: block; /* Hamburger butonunu göster */
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: relative;
        z-index: 1002;
    }
    .mobile-nav-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--header-text-color); /* Tema değişkeni kullanıldı */
        margin: 4px 0;
        transition: all 0.3s;
    }
    .mobile-nav-toggle.is-active .icon-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .mobile-nav-toggle.is-active .icon-bar:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.is-active .icon-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .main-nav {
        display: none; /* Varsayılan olarak menüyü gizle */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(24, 25, 26, 0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    .main-nav.is-open {
        display: flex; /* Açıldığında göster */
        opacity: 1;
        visibility: visible;
    }
    .main-nav a, .main-nav span {
        font-size: 1.8em;
        padding: 10px 0;
        color: white; /* Menü içindeki link rengi */
        text-decoration: none;
        transition: color 0.2s;
    }
    .main-nav a:hover, .main-nav span:hover {
        color: var(--link-color);
    }
    .main-nav .nav-button {
        padding: 15px 40px;
        font-size: 1.5em;
        background-color: var(--link-color);
        color: white !important;
    }
    #theme-toggle-btn {
        display: none; /* Tema butonu mobilde gizli */
    }


    /* ANA SAYFA SLIDER'INI GİZLE */
    .index-page .hero-slider {
        display: none;
    }

    /* Diğer Sayfalar için Mobil Ayarlar */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .how-it-works-section {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .how-it-works-section:nth-child(even) .how-it-works-image {
        order: unset;
    }
    .how-it-works-text h2 {
        font-size: 1.8em;
    }
    .how-it-works-text p {
        font-size: 1em;
    }
    /* process-flow-container eğer aktifse buradan kaldırılabilir, aksi halde eklenmeli. */
    /* .process-flow-container {
        flex-direction: column;
        gap: 20px;
    }
    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    } */
    .view-container {
        padding: 20px;
        margin: 20px auto;
    }
    .countdown-block {
        padding: 10px 15px;
        min-width: 60px;
    }
    .countdown-block .value {
        font-size: 2em;
    }
    .countdown-block .label {
        font-size: 0.8em;
    }
    .gallery-slider {
        height: 300px;
    }
    .faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .faq-answer-content {
        padding: 20px;
    }
    .cookie-consent-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    .cookie-consent-banner p {
        font-size: 0.9em;
    }
    .cookie-accept-btn {
        width: 100%;
    }
}

/* --- Çok Küçük Telefonlar (max-width: 480px) --- */
@media (max-width: 480px) {
    .main-nav a, .main-nav span {
        font-size: 1.5em;
    }
    .main-nav .nav-button {
        font-size: 1.2em;
        padding: 12px 30px;
    }
    .form-container {
        padding: 20px;
    }
    .how-it-works-image i {
        font-size: 6em;
    }
}

@media (max-width: 992px) {
    /* Genel ayarlamalar, eğer page-container veya content padding'leri çok genişse */
    .page-container {
        padding: 0 15px 15px 15px;
    }
    .content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* --- Tabloyu Mobil Cihazlarda Kart Görünümüne Çevirme --- */
    table {
        border: none; /* Tüm tablo çerçevesini kaldır */
        border-radius: 0;
        box-shadow: none;
        overflow: visible; /* Kaydırmayı engelle */
    }

    thead {
        display: none; /* Başlık satırını gizle */
    }

    tr {
        display: block; /* Her satırı bir blok (kart) gibi göster */
        margin-bottom: 20px; /* Her kart arasına boşluk */
        border: 1px solid var(--border-color); /* Kart çerçevesi */
        border-radius: 8px; /* Kart köşeleri */
        background-color: var(--card-bg-color); /* Kart arka planı */
        padding: 15px; /* Kart içi boşluk */
        box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Hafif gölge */
    }

    tr:last-child {
        margin-bottom: 0;
    }

    td {
        display: flex; /* Hücre içeriğini esnek kutu yap */
        justify-content: space-between; /* Etiket ve değeri yan yana, aralarında boşluk bırak */
        align-items: center; /* Dikeyde ortala */
        padding: 10px 0; /* Hücre içi boşluk */
        border-bottom: 1px dashed var(--border-color); /* Hafif ayırıcı çizgi */
        font-size: 1em;
    }

    td:last-child {
        border-bottom: none; /* Son hücrenin altındaki çizgiyi kaldır */
        padding-bottom: 0;
        margin-top: 10px; /* Son işlem butonuna üst boşluk */
        justify-content: center; /* İşlem butonunu ortala */
    }

    /* data-label kullanarak başlıkları gösterme */
    td::before {
        content: attr(data-label); /* data-label özniteliğindeki metni göster */
        font-weight: 600; /* Kalın yap */
        color: var(--subtle-text-color); /* Daha sönük renk */
        margin-right: 15px; /* Etiket ile içerik arasına boşluk */
        flex-shrink: 0; /* Etiketin küçülmesini engelle */
        min-width: 80px; /* Etiket için minimum genişlik, hizalamaya yardımcı olabilir */
    }

    /* Sadece ilk sütun (Kapsül Adı) özel stil */
    td:first-child {
        padding-top: 0;
        font-size: 1.1em; /* Kapsül adını biraz büyüt */
        color: var(--text-color);
        font-weight: 600;
        border-bottom: 2px solid var(--link-color); /* Daha belirgin alt çizgi */
        margin-bottom: 10px; /* Alttaki diğer bilgilere boşluk */
    }
    td:first-child::before {
        display: none; /* Kapsül adı için etiketi gizle, zira adı zaten ana başlık */
    }

    /* Durum ve Kalan Süre özel stili */
    td[data-label="Durum / Kalan Süre"] {
        flex-direction: column; /* Durum etiketi ve geri sayımı alt alta al */
        align-items: flex-start; /* Sola hizala */
        gap: 5px; /* Aralarındaki boşluğu ayarla */
    }
    td[data-label="Durum / Kalan Süre"]::before {
        margin-bottom: 5px; /* Başlık ile içerik arasına boşluk */
    }
    .countdown-container {
        width: 100%;
        align-items: flex-start; /* İçindeki elemanları sola hizala */
    }


    /* İşlem butonu (Yönet butonu) */
    .action-button {
        width: 100%; /* Mobil ekranda tam genişlikte */
        margin-top: 15px; /* Önceki içerikle arasına boşluk */
        padding: 12px 20px; /* Daha büyük dokunma alanı */
        font-size: 1.1em;
    }
    .order-button[style*="width: auto"] { /* "Alışverişe Başla" butonu için */
        width: 100% !important; /* Mesaj kutusu içindeki butonu tam genişlik yap */
    }

    /* Boş kapsül mesajı için buton stilini ayarla */
    .message.info .order-button {
        width: 100% !important;
        max-width: 250px; /* Maksimum genişlik vererek ortada kalmasını sağla */
        margin: 20px auto 0 auto; /* Üst boşluk ve ortalama */
    }
}

/* --- Çok Küçük Telefonlar (max-width: 480px) --- */
@media (max-width: 480px) {
    tr {
        padding: 10px; /* Daha küçük kart içi boşluk */
    }
    td {
        padding: 8px 0;
        font-size: 0.95em;
    }
    td::before {
        min-width: 70px; /* Etiket için daha küçük minimum genişlik */
        margin-right: 10px;
    }
}

@media (max-width: 992px) {
    .capsule-header-info {
        flex-direction: column; /* Alt alta hizala */
        text-align: center;
        gap: 10px;
    }
    .capsule-header-info img {
        width: 80px;
        height: 80px;
    }
	.hidden-file-input {
    display: none !important; /* Bu satırı güncelledik */
}
    .capsule-header-text h2 {
        font-size: 1.8em;
    }
    .capsule-header-text p {
        font-size: 0.9em;
    }
    .share-link-container {
        flex-direction: column; /* Dikey hizala */
        align-items: center;
        text-align: center;
        gap: 5px;
        font-size: 0.85em;
    }
    .share-link-container input[type="text"] {
        text-align: center; /* Input metnini ortala */
    }
    .section-heading {
        font-size: 1.5em;
        text-align: center;
    }
    .danger-zone, .reuse-container {
        padding: 15px;
        margin-top: 20px;
    }
    .danger-zone h3, .reuse-container h3 {
        font-size: 1.2em;
        text-align: center;
    }
    .danger-zone p, .reuse-container p {
        font-size: 0.9em;
        text-align: center;
    }

    /* Input[type="file"] wrapper'ı mobil için tam genişlik */
    .form-group .file-input-wrapper {
        width: 100%;
    }
    .form-group .file-input-button {
        width: 100%; /* Mobil butonu tam genişlik yap */
        border-radius: 6px; /* Köşeleri yuvarla */
        margin-top: 10px; /* Üste boşluk */
    }
    .form-group .file-input-text {
        display: none; /* Mobil'de "Dosya seçilmedi" yazısını gizle */
    }
    /* Birden fazla dosya inputu varsa */
    .form-group input[type="file"][multiple] + .file-input-button {
        /* Özel bir stil gerekirse */
    }

    /* Genel form butonları (Detayları Güncelle, Yükle, Kilitle) */
    .content form button[type="submit"] {
        width: 100%; /* Mobil'de tam genişlikte */
        padding: 12px;
        font-size: 1.1em;
        margin-top: 15px; /* Üste boşluk */
    }
    /* Özel kilitleme butonu */
    .danger-zone button[name="lock_capsule"] {
        margin-top: 15px !important; /* Önceki elemanla arasına boşluk */
    }
}

@media (max-width: 768px) {
    /* `kapsullerim.php`'deki genel tablo stilleri burada da geçerli olmalı
       ancak bu sayfadaki tabloların colspan'ları ve sütun sayıları farklı.
       Yüklenmiş Dosyalar tablosu için özel ayarlamalar: */
    
    /* Bu tablonun da kart görünümüne geçmesini sağlayalım */
    /* Tablonun kendisi */
    .content table {
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        margin-bottom: 20px; /* Alttaki diğer formlara boşluk */
    }
    /* Tablo başlıkları gizle */
    .content thead {
        display: none;
    }
    /* Her satır bir kart */
    .content tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background-color: var(--card-bg-color);
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }
    .content tr:last-child {
        margin-bottom: 0;
    }
    /* Her hücre için */
    .content td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-color);
        font-size: 0.95em;
    }
    .content td:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 5px;
        justify-content: center; /* İşlem (sil) linkini ortala */
    }
    /* data-label için */
    .content td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--subtle-text-color);
        margin-right: 10px;
        flex-shrink: 0;
        min-width: 60px; /* Daha küçük min-width */
    }
    /* İlk hücre için etiket gizleme */
    .content tr:not(.empty-row) td:first-child::before {
        display: block; /* Bu tablonun ilk hücresi "Dosya Adı" etiketi olmalı */
    }
    .content tr.empty-row td { /* "Henüz dosya yüklenmedi" satırı için */
        justify-content: center;
        text-align: center;
        font-weight: normal;
    }
    .content tr.empty-row td::before {
        content: none;
    }
}
@media (max-width: 992px) {
    /* ... (Mevcut mobil kapsül yönetimi stilleri) ... */

    .file-previews-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Mobil için daha küçük önizleme kartları */
        gap: 10px;
        padding: 8px;
    }

    .file-preview-item {
        min-height: 100px; /* Mobil için minimum yükseklik */
        padding: 8px;
    }

    .file-icon-large {
        font-size: 2.5em; /* Mobil için daha küçük ikon */
    }

    .file-type-name, .file-size-display {
        font-size: 0.7em; /* Mobil için yazı boyutunu küçült */
    }

    .delete-file-button {
        font-size: 1em; /* Mobil sil butonu boyutu */
    }
}

@media (max-width: 480px) {
    .file-previews-container {
        grid-template-columns: repeat(2, 1fr); /* Çok küçük ekranlarda 2 sütun */
        gap: 8px;
        padding: 5px;
    }
    .file-preview-item {
        min-height: 90px;
        padding: 5px;
    }
    .file-icon-large {
        font-size: 2em;
    }
}
/* ... (Mevcut GENEL STİLLER ve KAPSÜL YÖNETİMİ STİLLERİ) ... */

/* Geri Sayım Sayacı Stilleri */
#countdown.countdown-blocks-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Bloklar arası boşluk */
    margin: 30px 0;
    font-weight: 600;
    flex-wrap: wrap; /* YENİ: Blokların alt satıra geçmesini sağla */
}
#countdown .countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 80px;
    box-sizing: border-box; /* YENİ: Padding'i genişliğe dahil et */
}
#countdown .countdown-block .value {
    font-size: 2.8em;
    color: var(--link-color);
    line-height: 1.1;
}
#countdown .countdown-block .label {
    font-size: 0.9em;
    color: var(--subtle-text-color);
    text-transform: uppercase;
}


/* ... (Mevcut MOBİL UYUMLULUK AYARLARI) ... */

@media (max-width: 768px) {
    /* ... (Diğer mobil stiller) ... */

    /* manage_my_capsule.php sayfasındaki geri sayım için */
    #countdown.countdown-blocks-container {
        gap: 10px; /* Mobil için daha az boşluk */
        justify-content: space-around; /* Blokları yay */
        padding: 0 10px; /* Yan boşluklar */
    }
    #countdown .countdown-block {
        min-width: 60px; /* Daha küçük mobil genişlik */
        padding: 10px 15px; /* Daha az padding */
        font-size: 0.9em; /* Genel yazı boyutunu küçült */
    }
    #countdown .countdown-block .value {
        font-size: 2em; /* Değerleri küçült */
    }
    #countdown .countdown-block .label {
        font-size: 0.8em; /* Etiketleri küçült */
    }
}

@media (max-width: 480px) {
    #countdown.countdown-blocks-container {
        flex-direction: row; /* Gerekirse tek satırda kalmaya çalışsın */
        gap: 5px;
        padding: 0 5px;
    }
    #countdown .countdown-block {
        min-width: unset; /* Minimum genişliği kaldır */
        flex: 1; /* Esnekliği artır */
        padding: 5px 8px;
    }
    #countdown .countdown-block .value {
        font-size: 1.5em;
    }
    #countdown .countdown-block .label {
        font-size: 0.7em;
    }
}

/* === gizlilik-sozlesmesi.php VE benzeri statik sayfalar için Mobil Uyumluluk === */

/* Standart Tablet ve Altı (max-width: 992px) */
@media (max-width: 992px) {
    /* Genel mobil padding'ler ve içerik boşlukları (halihazırda var) */
    /* .page-container { padding: 0 15px 15px 15px; } */
    /* .content { padding: 20px; } */

    /* Gizlilik Sözleşmesi sayfası içerik ayarları */
    .content h2 { font-size: 2em; margin-bottom: 15px; }
    .content h4 { font-size: 1.1em; margin-top: 20px; margin-bottom: 10px; }
    .content p, .content ul li { font-size: 0.95em; line-height: 1.6; }
    .content ul { padding-left: 20px; } /* Liste girintisi */
}

/* Telefonlar ve Küçük Tabletler (max-width: 768px) */
@media (max-width: 768px) {
    /* Genel font ve boşluk ayarları (halihazırda var) */
    /* .content { padding: 15px; } */
    /* .page-container { padding: 0 10px 10px 10px; } */

    /* Gizlilik Sözleşmesi sayfası içerik ayarları */
    .content h2 { font-size: 1.8em; margin-bottom: 10px; }
    .content h4 { font-size: 1em; margin-top: 15px; margin-bottom: 8px; }
    .content p, .content ul li { font-size: 0.9em; line-height: 1.5; }
    .content ul { padding-left: 15px; }
}

/* Çok Küçük Telefonlar (max-width: 480px) */
@media (max-width: 480px) {
    /* Gizlilik Sözleşmesi sayfası içerik ayarları */
    .content h2 { font-size: 1.5em; }
    .content h4 { font-size: 0.9em; }
    .content p, .content ul li { font-size: 0.85em; }
}

/* === MOBİL UYUMLULUK AYARLARI (Tüm Uygulama için) === */

/* ... (Mevcut diğer @media (max-width: 1024px) stilleri) ... */

/* Standart Tablet ve Altı (max-width: 992px) */
@media (max-width: 992px) {
    /* ... (Mevcut diğer stiller) ... */

    /* Gizlilik, Çerez, Satış Politikası gibi statik içerik sayfaları */
    .content h2 { font-size: 2em; margin-bottom: 15px; } /* Başlıkları küçült */
    .content h4 { font-size: 1.1em; margin-top: 20px; margin-bottom: 10px; } /* Alt başlıkları küçült */
    .content p, .content ul li { font-size: 0.95em; line-height: 1.6; } /* Metinleri küçült */
    .content ul { padding-left: 20px; }

    /* Nasıl Çalışır Sayfası (how_it_works.php) */
    .how-it-works-hero { text-align: center; } /* Ortala */
    .how-it-works-hero h1 { font-size: 2.2em; margin-bottom: 10px; }
    .how-it-works-hero p { font-size: 1em; max-width: 100%; margin: 0 auto 30px auto; }
    .how-it-works-section {
        grid-template-columns: 1fr; /* Tek sütun yap */
        gap: 30px;
        text-align: center; /* İçeriği ortala */
        padding: 40px 0;
    }
    .how-it-works-section:nth-child(even) .how-it-works-image { order: unset; } /* Sırayı sıfırla */
    .how-it-works-image i { font-size: 6em; } /* İkonları küçült */
    .how-it-works-text { margin: 0 auto; max-width: 80%; } /* Metin bloğunu ortala */
    .how-it-works-text h2 { font-size: 1.8em; }
    .how-it-works-text p { font-size: 1em; }
    .how-it-works-text .step-number { font-size: 0.8em; padding: 3px 10px; }
}


/* Telefonlar ve Küçük Tabletler (max-width: 768px) */
@media (max-width: 768px) {
    /* ... (Mevcut diğer stiller) ... */

    /* Gizlilik, Çerez, Satış Politikası gibi statik içerik sayfaları */
    .content h2 { font-size: 1.6em; margin-bottom: 10px; }
    .content h4 { font-size: 1em; margin-top: 15px; margin-bottom: 8px; }
    .content p, .content ul li { font-size: 0.9em; line-height: 1.5; }
    .content ul { padding-left: 15px; }

    /* Nasıl Çalışır Sayfası (how_it_works.php) */
    .how-it-works-hero h1 { font-size: 1.8em; }
    .how-it-works-hero p { font-size: 0.9em; margin-bottom: 20px; }
    .how-it-works-section { padding: 30px 0; gap: 20px; }
    .how-it-works-image i { font-size: 5em; }
    .how-it-works-text h2 { font-size: 1.5em; }
    .how-it-works-text p { font-size: 0.9em; }
}


/* Çok Küçük Telefonlar (max-width: 480px) */
@media (max-width: 480px) {
    /* ... (Mevcut diğer stiller) ... */

    /* Gizlilik, Çerez, Satış Politikası gibi statik içerik sayfaları */
    .content h2 { font-size: 1.5em; }
    .content h4 { font-size: 0.9em; }
    .content p, .content ul li { font-size: 0.85em; }

    /* Nasıl Çalışır Sayfası (how_it_works.php) */
    .how-it-works-hero h1 { font-size: 1.5em; }
    .how-it-works-hero p { font-size: 0.85em; margin-bottom: 15px; }
    .how-it-works-image i { font-size: 4em; }
    .how-it-works-text h2 { font-size: 1.2em; }
    .how-it-works-text p { font-size: 0.8em; }
}

