/* --- GENEL AYARLAR --- */
:root {
    --primary: #e63946; /* Canlı ama tok bir kırmızı */
    --primary-dark: #d62828;
    --text-dark: #1d3557;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}
.logo span { color: var(--primary); }

.nav-links a {
    color: var(--text-dark);
    margin-left: 25px;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links .btn-sm {
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* --- HERO BÖLÜMÜ --- */
.hero-section {
    background: url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* --- FEATURES --- */
.features {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
}
.feature-item h4 { font-size: 1rem; margin-bottom: 3px; }
.feature-item p { font-size: 0.85rem; color: var(--text-light); }


/* --- ÜRÜN LİSTESİ --- */
.products-section { padding: 60px 0; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ÜRÜN KARTI (Tıklanabilir Yapı) */
a.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    display: block;
}

a.product-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.image-box {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

/* Kartın üzerine gelince resim büyüsün */
a.product-card:hover .image-box img {
    transform: scale(1.05);
}

.card-details { padding: 20px; text-align: center; }

.card-details h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
}

.shipping-tag {
    font-size: 0.75rem;
    background: #e9f7ef;
    color: #27ae60;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Buton görünümlü div */
.btn-card {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

a.product-card:hover .btn-card {
    background: var(--text-dark);
    color: var(--white);
}

/* --- FOOTER --- */
footer {
    background: #f1f2f6;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- MOBİL İÇİN DÜZELTMELER (768px Altı) --- */
@media (max-width: 768px) {
    /* Navbar Düzeni: Logoyu üste, linkleri alta al */
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    /* Linkleri Ortala ve Yan Yana Diz */
    .nav-links {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 15px; /* Linkler arası boşluk */
    }

    /* Eski sol boşluğu sıfırla ve yazı boyutunu küçült */
    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    /* Butonu biraz küçült sığması için */
    .nav-links .btn-sm {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Diğer mobil ayarlar */
    .hero-content h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
}

/* --- SİPARİŞ SAYFASI ÖZEL --- */
.page-content { padding: 40px 20px; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.step-badge {
    background: var(--text-dark);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.form-row { display: flex; gap: 20px; }
.form-row .half { flex: 1; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: #444;
}

.modern-input, .modern-textarea, select.modern-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #eef0f3;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s;
    background: #fff;
}

.modern-input:focus, .modern-textarea:focus, select.modern-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

/* --- SELECT BOX (AÇILIR LİSTE) ÖZEL --- */
.select-wrapper { position: relative; }
.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}
select.modern-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* DOSYA YÜKLEME */
.input-file { display: none; }
.file-upload-box {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background: #fcfcfc;
    transition: all 0.3s;
}
.file-upload-box:hover { border-color: var(--primary); background: #fff; }

.file-label {
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--text-light);
}
.file-label i { font-size: 1.5rem; color: var(--primary); }
.file-name { margin-top: 10px; font-size: 0.85rem; font-weight: bold; }


/* CHECKBOX */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.custom-checkbox:hover { border-color: var(--primary); background: #fff; }
.custom-checkbox input { display: none; }

.checkmark {
    width: 22px; height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
}
.custom-checkbox input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}
.custom-checkbox input:checked ~ .checkmark::after {
    content: '✔';
    color: white;
    font-size: 14px;
    position: absolute; top: 0; left: 4px;
}
.cb-content { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.price-plus { color: var(--primary); font-weight: bold; font-size: 0.9rem; }


/* --- STICKY ÖZET --- */
.summary-column { position: sticky; top: 100px; }

.summary-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.product-preview {
    display: flex; gap: 15px; align-items: center;
    padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 20px;
}
.product-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }

.price-breakdown .row {
    display: flex; justify-content: space-between;
    margin-bottom: 10px; font-size: 0.95rem; color: #555;
}
.price-breakdown .total {
    border-top: 2px solid #eee;
    padding-top: 15px; margin-top: 15px;
    font-weight: 800; font-size: 1.4rem; color: var(--text-dark);
}
.extra-item { color: var(--primary) !important; font-size: 0.9rem; }

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 16px;
    border: none; border-radius: 8px;
    font-size: 1.1rem; font-weight: bold;
    cursor: pointer; margin-top: 20px;
    transition: all 0.3s;
}
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-2px); }

.security-badges {
    margin-top: 20px;
    display: flex; justify-content: center; gap: 15px;
    font-size: 0.8rem; color: #888;
}

/* SİPARİŞ SAYFASI MOBİL UYUMU (900px Altı) */
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    
    /* Özet sütununu doğal akışına bırak (EN ALTA) ve üstten boşluk ver */
    .summary-column { 
        position: static; 
        margin-top: 30px; 
    }
}

/* --- PROGRESS BAR --- */
.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}

.step { text-align: center; position: relative; z-index: 2; }

.step-num {
    width: 40px; height: 40px;
    background: #e0e0e0;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    margin: 0 auto 5px;
    transition: all 0.3s;
}

.step.active .step-num, .step.completed .step-num {
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(230, 57, 70, 0.2);
}

.step-text { font-size: 0.9rem; font-weight: 600; color: #888; }
.step.active .step-text { color: var(--text-dark); }

.line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: -20px 10px 0;
}
.line.active { background: var(--primary); }

/* --- ÖDEME YÖNTEMLERİ --- */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.payment-option input { display: none; }

.p-box {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

.p-box i { font-size: 2rem; color: #ccc; margin-bottom: 10px; }
.p-box span { font-weight: 600; font-size: 0.9rem; display: block; }
.p-box small { font-size: 0.75rem; color: #888; }

.payment-option input:checked + .p-box {
    border-color: var(--primary);
    background: #fff5f5;
}
.payment-option input:checked + .p-box i { color: var(--primary); }

@media (max-width: 600px) {
    .payment-methods { grid-template-columns: 1fr; }
    .p-box { flex-direction: row; justify-content: flex-start; gap: 15px; text-align: left; padding: 15px; }
    .p-box i { margin-bottom: 0; }
}

/* --- MODERN CHECKBOX KART TASARIMI --- */
.checkbox-card-wrapper {
    position: relative;
    margin-top: 5px;
}

/* Gerçek inputu gizle ama işlevini koru */
.checkbox-card-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Görünen Kart Tasarımı */
.custom-option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.custom-option-label:hover {
    border-color: #bdc3c7;
    background: #fcfcfc;
}

/* Seçili Olduğundaki Hali (Kırmızı Çerçeve) */
.checkbox-card-wrapper input[type="checkbox"]:checked + .custom-option-label {
    border-color: #e63946;
    background-color: #fff5f5;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.15);
}

/* İsim ve İkon Kısmı */
.opt-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

/* Seçilince İkonun Değişmesi */
.checkbox-card-wrapper input[type="checkbox"]:checked + .custom-option-label .opt-icon {
    background: #e63946;
    border-color: #e63946;
}

.opt-title {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.opt-price {
    font-weight: 700;
    color: #e63946;
    font-size: 1rem;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}