* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- ÜST GERİ SAYIM BARI --- */
.top-alert-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #5c0100;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.timer-count {
    background-color: #fff;
    color: #5c0100;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-family: monospace;
    font-size: 15px;
}

/* --- CONTAINER (FORM KARTI) --- */
.container {
    width: 95%;
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    color: #2f6b3c;
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* --- YILDIZLI DEĞERLENDİRME --- */
.rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    background-color: #fff9e6;
    padding: 8px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #eee;
}
.stars { color: #f39c12; font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.rating-score { font-weight: bold; color: #333; white-space: nowrap; }
.review-count-text { color: #666; font-size: 13px; white-space: nowrap; }

/* --- RESİM WRAPPER VE STOK ROZETİ --- */
.image-wrapper {
    position: relative;
    margin-bottom: 12px;
    text-align: center;
}
.overlay-stock-badge {
    display: inline-block;
    margin-bottom: 12px;
    background-color: rgba(200, 145, 42, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #fff;
    white-space: nowrap;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.uploaded-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

/* --- STOK VE SOSYAL KANIT --- */
.stock-status-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}
.stock-warning {
    color: #d32f2f;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}
.blinking-dot {
    height: 10px; width: 10px; background-color: #d32f2f; border-radius: 50%;
    display: inline-block; animation: blinker 1s linear infinite;
}
@keyframes blinker { 50% { opacity: 0; } }
.social-proof-text {
    margin: 5px 0;
}
.live-viewer-count {
    font-weight: bold; color: #333; background: #fff; padding: 0 5px; border-radius: 3px; border: 1px solid #ddd;
}

/* --- NASIL SİPARİŞ VERİLİR --- */
.steps-container { margin-bottom: 25px; text-align: center; }
.steps-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }
.order-steps { display: flex; justify-content: space-between; gap: 10px; background-color: #f8f9fa; padding: 15px; border-radius: 10px; border: 1px dashed #ddd; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.step-icon { font-size: 28px; margin-bottom: 8px; background: #fff; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee; }
.step-text h4 { margin: 0; font-size: 13px; font-weight: bold; color: #222; }
.step-text p { margin: 2px 0 0; font-size: 11px; color: #666; line-height: 1.3; }

/* --- SIKÇA SORULAN SORULAR --- */
.faq-section {
    margin-top: 30px;
    border-top: 2px dashed #eee;
    padding-top: 20px;
}
.faq-header {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #2f6b3c;
}
.faq-question {
    font-weight: bold;
    color: #2f6b3c;
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-answer {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    padding-left: 5px;
}

/* --- FORM ELEMANLARI --- */
.form-group { margin-bottom: 20px; width: 100%; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; }
input[type="text"], input[type="tel"], textarea, select {
    width: 100%; padding: 14px; font-size: 16px; border: 1px solid #ddd; border-radius: 8px; background-color: #f9f9f9; transition: border-color 0.3s; font-family: inherit;
}
input[type="text"]:focus, input[type="tel"]:focus, textarea:focus, select:focus { border-color: #2f6b3c; outline: none; background-color: #fff; }
textarea { resize: vertical; }
.row2 { display: flex; gap: 10px; } .row2 .form-group { flex: 1; }

/* --- FORM UYARILARI --- */
.field-error { display: none; color: #c0392b; font-size: 13px; font-weight: 600; margin-top: 6px; }
.form-group.has-error input[type="text"],
.form-group.has-error input[type="tel"],
.form-group.has-error textarea { border-color: #c0392b; background-color: #fdf0ee; }
.form-group.has-error .field-error { display: block; }
.form-alert {
    display: none; align-items: flex-start; gap: 10px; background: #fdf0ee; border: 1px solid #f1b6ac;
    color: #c0392b; border-radius: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.form-alert.show { display: flex; }

/* --- ÜRÜN SEÇİMİ --- */
.product-selection { display: flex; flex-direction: column; gap: 8px; }
.product-card {
    border: 2px solid #eee; border-radius: 8px; padding: 20px 12px; display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 10px; cursor: pointer; transition: all 0.2s ease; background: #fff; position: relative;
}
.product-card:hover { border-color: #8bbf4d; }
.product-card.active { border-color: #2f6b3c; background: #f3f8ee; }
.product-card input[type="radio"] { margin: 0; transform: scale(1.2); accent-color: #2f6b3c; flex: none; }
.product-card .p-info { flex: 1 1 auto; min-width: 0; }
.product-card .p-info .p-name { font-weight: bold; font-size: 14px; color: #222; line-height: 1.25; }
.product-card .p-info .p-note { font-size: 11px; color: #6ba34a; font-weight: 700; margin-top: 1px; }
.product-card .p-price { text-align: right; flex: none; }
.product-card .p-price .now { font-weight: 800; font-size: 16px; color: #2f6b3c; white-space: nowrap; }
.product-card .p-price .old { font-size: 11px; color: #b3b3a0; text-decoration: line-through; white-space: nowrap; }
.product-card .ribbon { position: absolute; top: -9px; left: 14px; background: #c8912a; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }

/* --- ÖDEME --- */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.radio-group { display: flex; align-items: center; padding: 12px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; }
.radio-group.active { border-color: #2f6b3c; background: #f3f8ee; }
.radio-group input[type="radio"] { margin-right: 12px; width: 20px; height: 20px; accent-color: #2f6b3c; }

/* --- ÖZET --- */
.summary { background: #f3f8ee; border: 1px dashed #8bbf4d; border-radius: 12px; padding: 14px; margin: 16px 0; font-size: 14px; }
.summary .line { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .total { font-weight: 800; font-size: 17px; color: #2f6b3c; border-top: 1px solid #dfe0d2; margin-top: 6px; padding-top: 8px; }

/* --- BUTON --- */
.submit-btn {
    display: block; width: 100%; padding: 18px; background-color: #2f6b3c; color: white; border: none; border-radius: 8px; font-size: 20px; font-weight: bold; cursor: pointer; text-align: center; box-shadow: 0 4px 6px rgba(47,107,60,0.3); animation: pulse 2s infinite;
}
.submit-btn:hover { background-color: #1e4a28; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47,107,60, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(47,107,60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47,107,60, 0); }
}

.trust { display:flex; justify-content:center; gap:16px; margin-top:14px; font-size:12px; color:#7a8a72; }

/* --- SAĞ ÜST BİLDİRİM (POPUP) --- */
.custom-notification {
    position: fixed; top: 70px; right: 20px; background-color: #fff; border-left: 5px solid #2f6b3c; padding: 15px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 15px; z-index: 10000; max-width: 320px; transform: translateX(150%); transition: transform 0.5s ease-in-out; font-family: Arial, sans-serif;
}
.custom-notification.show { transform: translateX(0); }
.notif-img img { width: 50px; height: 50px; object-fit: cover; border-radius: 5px; }
.notif-content h4 { margin: 0 0 5px 0; font-size: 14px; color: #333; }
.notif-content p { margin: 0; font-size: 12px; color: #666; }
.notif-content span { color: #2f6b3c; font-weight: bold; font-size: 11px; }

/* --- YÜZEN "HEMEN SİPARİŞ VER" BUTONU --- */
.floating-order-btn {
    position: fixed;
    z-index: 9998;
    background-color: #2f6b3c;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 6px 20px rgba(47,107,60,0.4);
    transition: background-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.floating-order-btn:hover { background-color: #1e4a28; }
.floating-order-btn .cart-icon { color: #fff; flex: none; }

body.form-in-view .floating-order-btn,
body.form-in-view .floating-whatsapp-btn { display: none; }

.floating-whatsapp-btn {
    position: fixed;
    z-index: 9998;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    transition: background-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.floating-whatsapp-btn:hover { background-color: #1ebe57; }
.floating-whatsapp-btn .whatsapp-icon { fill: #fff; flex: none; }

.floating-whatsapp-badge {
    display: none;
    position: fixed;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    line-height: 0;
    background: transparent;
}
.floating-whatsapp-badge svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

body.form-in-view .floating-whatsapp-badge { display: none; }

@media (max-width: 899px) {
    .floating-order-btn {
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 14px 8px;
        font-size: 15px;
        border-radius: 0;
    }
    .floating-whatsapp-btn {
        display: none;
    }
    .floating-whatsapp-badge {
        display: flex;
        right: 10px;
        bottom: calc(56px + 10px);
        width: 52px;
        height: 52px;
    }
}

@media (min-width: 900px) {
    .floating-order-btn {
        right: 28px; bottom: 28px;
        padding: 16px 26px;
        font-size: 16px;
        border-radius: 50px;
    }
    .floating-whatsapp-btn {
        right: 28px; bottom: 92px;
        padding: 16px 26px;
        font-size: 16px;
        border-radius: 50px;
    }
    .floating-whatsapp-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container { margin: 10px; padding: 15px; width: 95%; }
    h1 { font-size: 20px; }
    .top-alert-bar { font-size: 12px; }
    .submit-btn { font-size: 18px; position: sticky; bottom: 10px; z-index: 100; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
    .custom-notification { top: 60px; right: 10px; max-width: 90%; }
    .order-steps { flex-wrap: wrap; }
    .step-item { flex: 1 1 45%; margin-bottom: 15px; }
    .overlay-stock-badge { font-size: 11px; padding: 6px 10px; }
    .product-card { padding: 8px 10px; gap: 8px; }
    .product-card .p-info .p-name { font-size: 13px; }
    .product-card .p-info .p-note { font-size: 10px; }
    .product-card .p-price .now { font-size: 15px; }
}

/* ============ DESKTOP / RESPONSIVE ============ */
@media (min-width: 900px) {
    .container { max-width: 720px; padding: 32px 34px; }
    h1 { font-size: 28px; }
    .submit-btn { padding: 20px; font-size: 21px; }
}
