/* =====================================================================
   stil3 - "Stil 14" görünümü (premium / güven odaklı sipariş formu)
   Renkler theme-colors.css değişkenlerinden gelir (data-theme).
   ===================================================================== */

* { box-sizing: border-box; }

body.template-stil3 {
    margin: 0;
    padding: 0;
    background: #eef2f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

.template-stil3 a { text-decoration: none; color: inherit; }

.stil3-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 10px 90px;
}

/* ---------------- Header ---------------- */
.stil3-header {
    background: #fff;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    margin-bottom: 14px;
}

.stil3-security-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #111827, #1f2937);
    color: #fff;
    padding: 9px 12px;
    font-size: 12px;
    overflow: hidden;
}
.stil3-security-icon { flex: 0 0 auto; font-size: 14px; }
.stil3-security-marquee {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
}
.stil3-security-text {
    display: inline-block;
    padding-right: 60px;
    animation: stil3-marquee 18s linear infinite;
    will-change: transform;
}
@keyframes stil3-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.stil3-shop-strip {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 6px;
    padding: 9px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}
.stil3-shop-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}
.stil3-shop-item i { color: #f59e0b; }
.stil3-shop-item-status { position: relative; min-height: 18px; }
.stil3-status-text {
    position: absolute;
    left: 0; right: 0;
    opacity: 0;
}
.stil3-status-a { animation: stil3-status-a 4s infinite; }
.stil3-status-b { animation: stil3-status-b 4s infinite; }
@keyframes stil3-status-a { 0%,45% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes stil3-status-b { 0%,45% { opacity: 0; } 50%,95% { opacity: 1; } 100% { opacity: 0; } }
.stil3-shop-item-status i { color: #16a34a; position: relative; }

.stil3-scrolling-banner {
    display: block;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: var(--contrast-color, #fff);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-weight: 700;
    font-size: 13px;
}
.stil3-scrolling-text {
    display: inline-block;
    animation: stil3-marquee 16s linear infinite;
}
.stil3-scrolling-text span { display: inline-block; }

.stil3-media-link { display: block; }
.stil3-media-img { width: 100%; height: auto; display: block; }

/* ---------------- Geri Sayım ---------------- */
.stil3-countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 12px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}
.stil3-countdown-left { flex: 1 1 240px; }
.stil3-timer { display: flex; align-items: flex-start; gap: 6px; }
.stil3-timer-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    min-width: 56px;
}
.stil3-timer-item span { display: block; font-size: 24px; font-weight: 800; line-height: 1; }
.stil3-timer-item small { font-size: 10px; opacity: 0.7; }
.stil3-timer-sep { font-size: 22px; font-weight: 800; padding-top: 6px; }
.stil3-stock { margin-top: 10px; }
.stil3-stock-text { font-size: 12px; margin-bottom: 5px; }
.stil3-stock-count { color: #fbbf24; font-weight: 800; }
.stil3-stock-bar-bg { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.12); overflow: hidden; }
.stil3-stock-bar { height: 100%; width: 40%; background: linear-gradient(90deg, #ef4444, #f59e0b); border-radius: 8px; transition: width .4s; }
.stil3-countdown-right { flex: 1 1 220px; text-align: center; }
.stil3-countdown-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.stil3-countdown-sub { font-size: 12px; opacity: 0.75; margin-bottom: 10px; }
.stil3-countdown-btn {
    display: inline-block;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(239,68,68,0.35);
}

/* ---------------- Form ---------------- */
.stil3-form-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.stil3-form-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--contrast-color, #fff);
    text-align: center;
    padding: 16px 14px;
}
.stil3-form-header-text { display: block; font-size: 18px; font-weight: 800; }
.stil3-form-header-highlight {
    display: inline-block;
    margin-top: 6px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.stil3-conversion-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #0f172a;
    color: #fff;
}
.stil3-conversion-cell {
    text-align: center;
    padding: 10px 6px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stil3-conversion-cell:last-child { border-right: 0; }
.stil3-conversion-label { display: block; font-size: 11px; opacity: 0.7; }
.stil3-conversion-cell strong { font-size: 15px; font-weight: 800; }

.stil3-form { padding: 16px; }

.stil3-section { margin-bottom: 18px; }
.stil3-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #0f172a;
}
.stil3-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--contrast-color, #fff);
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
}
.stil3-step-flash { background: linear-gradient(135deg, #ef4444, #f97316); }

/* Paketler (form-yazili.php gelişmiş görünüm) */
.stil3-packages input[type="radio"][name="paket"] { display: none; }
.stil3-packages .product-element {
    display: block;
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .1s;
    background: #fff;
}
.stil3-packages input[type="radio"][name="paket"]:checked + .product-element {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
}
.stil3-packages .package-radio-mark {
    position: absolute;
    top: 14px; right: 14px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
}
.stil3-packages input[type="radio"][name="paket"]:checked + .product-element .package-radio-mark {
    border-color: var(--primary-color);
    background: radial-gradient(circle, var(--primary-color) 0 45%, #fff 50%);
}
.stil3-packages .package-bestseller {
    position: absolute;
    top: -10px; left: 14px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.stil3-packages .package-content { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stil3-packages .package-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.stil3-packages .package-title-count,
.stil3-packages .package-title { font-size: 15px; font-weight: 800; color: #0f172a; }
.stil3-packages .package-shipping-pill {
    background: var(--light-color);
    color: var(--secondary-color);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}
.stil3-packages .package-detail-grid,
.stil3-packages .package-optionals { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12px; color: #64748b; }
.stil3-packages .package-saving { margin-top: 6px; font-size: 12px; font-weight: 700; color: #16a34a; }
.stil3-packages .price-box { text-align: right; white-space: nowrap; }
.stil3-packages .price-amount { display: block; font-size: 20px; font-weight: 900; color: var(--primary-color); }
.stil3-packages .old-price { display: block; font-size: 12px; color: #94a3b8; text-decoration: line-through; }
.stil3-packages .package-discount {
    margin-top: 4px;
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}
.stil3-packages .package-description { font-size: 12px; color: #64748b; margin-top: 4px; }
.stil3-packages .shipping-info { margin-top: 4px; }
.stil3-packages .free-shipping { color: #16a34a; font-size: 11px; font-weight: 700; }
.stil3-packages .shipping-cost { color: #64748b; font-size: 11px; }

/* Görsel paket formu (form-gorsel.php) */
.stil3-packages .package-special-badge {
    position: absolute;
    top: -10px; left: 14px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: var(--contrast-color, #fff);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    z-index: 2;
}
.stil3-packages .package-visual-block {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}
.stil3-packages .package-visual-image { width: 100%; height: auto; display: block; }
.stil3-packages .package-visual-image-selected { display: none; }
.stil3-packages input[type="radio"][name="paket"]:checked + .product-element .package-visual-image-default { display: none; }
.stil3-packages input[type="radio"][name="paket"]:checked + .product-element .package-visual-image-selected { display: block; }
.stil3-packages .package-qty-badge {
    margin-top: 6px;
    display: inline-block;
    background: var(--light-color);
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}
.stil3-packages .package-details { text-align: right; }

/* Varyasyonlar */
.variations .row { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.variations [class*="col-"] { padding: 0 6px; }
.variations .col-6 { flex: 0 0 50%; max-width: 50%; }
.variations .form-group { margin-bottom: 10px; }
.variations .select-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: #475569; }

/* Upsell / Önerilen ürünler */
.stil3-upsell-section {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 14px;
}
.stil3-upsell-subtitle { font-size: 12px; color: #9a3412; margin: 0 0 12px; }
.stil3-upsell-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stil3-upsell-card {
    position: relative;
    background: #fff;
    border: 2px solid #fed7aa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}
.stil3-upsell-card.is-selected { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
.stil3-upsell-media { position: relative; }
.stil3-upsell-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    z-index: 2;
}
.stil3-upsell-img { width: 100%; height: 120px; object-fit: cover; display: block; cursor: zoom-in; }
.stil3-upsell-content { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stil3-upsell-title { font-size: 13px; font-weight: 700; margin: 0; color: #0f172a; line-height: 1.3; }
.stil3-upsell-price-line { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.stil3-upsell-old { font-size: 11px; color: #94a3b8; text-decoration: line-through; }
.stil3-upsell-new { font-size: 16px; font-weight: 900; color: #ea580c; }
.stil3-upsell-btn {
    border: 0;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    padding: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
}
.stil3-upsell-card.is-selected .stil3-upsell-btn { background: #16a34a; }

/* Form alanları */
.stil3-field { margin-bottom: 10px; }
.stil3-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.stil3-input {
    width: 100%;
    border: 1.5px solid #d1d8e0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    color: #1f2937;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.stil3-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12); }
.stil3-textarea { min-height: 72px; resize: vertical; }

.stil3-payments { display: flex; flex-direction: column; gap: 8px; }
.stil3-payment {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #d1d8e0;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, background .2s;
}
.stil3-payment input { accent-color: var(--primary-color); width: 18px; height: 18px; }
.stil3-payment:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--light-color);
}

/* Sepet özeti */
.stil3-cart-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.stil3-cart-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #475569; padding: 4px 0; }
.stil3-cart-row strong { color: #0f172a; }
.stil3-cart-total { border-top: 1px dashed #cbd5e1; margin-top: 6px; padding-top: 10px; font-size: 16px; }
.stil3-cart-total strong { color: var(--primary-color); font-size: 20px; font-weight: 900; }

.stil3-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 16px;
    font-size: 17px;
    font-weight: 800;
    color: var(--contrast-color, #fff);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(var(--primary-color-rgb), 0.3);
    animation: stil3-pulse 2.4s infinite;
}
@keyframes stil3-pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}
.stil3-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.stil3-trust-badges i { color: var(--primary-color); margin-right: 4px; }

/* ---------------- Yorumlar ---------------- */
.stil3-reviews {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    padding: 16px;
    margin-top: 14px;
}
.stil3-reviews-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stil3-reviews-score { text-align: right; }
.stil3-reviews-score strong { font-size: 24px; font-weight: 900; color: #0f172a; }
.stil3-reviews-score span { color: #f59e0b; margin-left: 6px; }
.stil3-reviews-score small { display: block; font-size: 11px; color: #94a3b8; }
.stil3-reviews-list { display: flex; flex-direction: column; gap: 12px; }
.stil3-review { display: flex; gap: 10px; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.stil3-review--hidden { display: none; }
.stil3-review-avatar {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.stil3-review-body { flex: 1; }
.stil3-review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stil3-review-top strong { font-size: 14px; color: #0f172a; }
.stil3-review-stars { color: #f59e0b; font-size: 13px; }
.stil3-review-date { font-size: 11px; color: #94a3b8; }
.stil3-review-body p { margin: 4px 0 0; font-size: 13px; color: #475569; line-height: 1.5; }
.stil3-reviews-empty { font-size: 13px; color: #94a3b8; text-align: center; padding: 14px; }
.stil3-review-more, .stil3-review-toggle {
    width: 100%;
    margin-top: 12px;
    border: 1.5px solid #d1d8e0;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    color: #334155;
}
.stil3-review-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.stil3-review-submit {
    border: 0;
    background: var(--primary-color);
    color: var(--contrast-color, #fff);
    border-radius: 10px;
    padding: 11px;
    font-weight: 800;
    cursor: pointer;
}
.stil3-review-message { font-size: 12px; }
.stil3-review-message.is-error { color: #dc2626; }
.stil3-review-message.is-success { color: #16a34a; }
.stil3-review-success { margin-top: 10px; font-size: 13px; color: #16a34a; font-weight: 600; }

/* ---------------- Görsel popup ---------------- */
.stil3-image-popup {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.stil3-image-popup[hidden] { display: none; }
.stil3-image-popup img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.stil3-image-popup-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: 0;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

/* ---------------- Sabit alt bar ---------------- */
.stil3-fixed-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 20px rgba(15,23,42,0.1);
    padding: 10px 14px;
    transform: translateY(0);
    transition: transform .25s;
}
.stil3-fixed-bar.is-hidden { transform: translateY(120%); }
.stil3-fixed-info { flex: 1; font-size: 18px; font-weight: 900; color: var(--primary-color); }
.stil3-fixed-btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
    color: var(--contrast-color, #fff);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .stil3-upsell-grid { grid-template-columns: 1fr 1fr; }
    .stil3-form-header-text { font-size: 16px; }
    .stil3-countdown-right { flex-basis: 100%; }
}
