/* =========================================================
   ScarcityPress v1.4 — Frontend Stilleri
   ---------------------------------------------------------
   YAPILAR:
   • 6 ortak tema: apple, fire, dark, elegant, minimal, urgent
   • Timer stilleri (4): classic, inline, stacked, compact
   • Stock stilleri (4): bar, badge, number, card
   • Social Proof stilleri (4): card, bordered, pill, flat
   ========================================================= */

:root {
    --sp-primary:   #007aff;
    --sp-secondary: #5856d6;
    --sp-bg:        #ffffff;
    --sp-text:      #1d1d1f;
    --sp-border:    #e5e7eb;
    --sp-shadow:    0 2px 8px rgba(0, 0, 0, 0.06);
    --sp-blur:      none;
    --sp-radius:    10px;
    --sp-font:      'Segoe UI', system-ui, -apple-system, sans-serif;
    --sp-urgent:    #ff1744;
    --sp-low:       #e67e22;
    --sp-good:      #27ae60;
}

/* =========================================================
   6 ORTAK TEMA — Tüm widget'larda aynı
   ========================================================= */

/* 🍎 Apple Cam */
.sp-theme-apple {
    --sp-primary:   #007aff;
    --sp-secondary: #5856d6;
    --sp-bg:        rgba(255, 255, 255, 0.65);
    --sp-text:      #1d1d1f;
    --sp-border:    rgba(255, 255, 255, 0.7);
    --sp-shadow:    0 10px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    --sp-blur:      blur(20px) saturate(180%);
}

/* 🔥 Ateş */
.sp-theme-fire {
    --sp-primary:   #ff6b35;
    --sp-secondary: #ff3f00;
    --sp-bg:        #1a0a00;
    --sp-text:      #ffffff;
    --sp-border:    rgba(255, 107, 53, 0.3);
    --sp-shadow:    0 6px 22px rgba(255, 63, 0, 0.28);
    --sp-blur:      none;
}

/* 🌙 Koyu */
.sp-theme-dark {
    --sp-primary:   #00ff88;
    --sp-secondary: #00cc6a;
    --sp-bg:        #0d0d0d;
    --sp-text:      #ffffff;
    --sp-border:    rgba(0, 255, 136, 0.2);
    --sp-shadow:    0 4px 18px rgba(0, 0, 0, 0.5);
    --sp-blur:      none;
}

/* 💎 Zarif */
.sp-theme-elegant {
    --sp-primary:   #c9a84c;
    --sp-secondary: #a8893d;
    --sp-bg:        #1c1610;
    --sp-text:      #f5e9c8;
    --sp-border:    rgba(201, 168, 76, 0.35);
    --sp-shadow:    0 6px 24px rgba(0, 0, 0, 0.35);
    --sp-blur:      none;
}

/* ⚡ Minimal */
.sp-theme-minimal {
    --sp-primary:   #111111;
    --sp-secondary: #333333;
    --sp-bg:        #ffffff;
    --sp-text:      #1a1a1a;
    --sp-border:    #e5e7eb;
    --sp-shadow:    0 2px 8px rgba(0, 0, 0, 0.06);
    --sp-blur:      none;
}

/* 🚨 Acil */
.sp-theme-urgent {
    --sp-primary:   #ff0000;
    --sp-secondary: #cc0000;
    --sp-bg:        #1a0000;
    --sp-text:      #ffffff;
    --sp-border:    rgba(255, 0, 0, 0.3);
    --sp-shadow:    0 4px 18px rgba(255, 0, 0, 0.35);
    --sp-blur:      none;
}

/* =========================================================
   TIMER — temel + 4 stil
   ========================================================= */
.sp-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: var(--sp-radius);
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    font-family: var(--sp-font);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-timer__label {
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.sp-timer__display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sp-timer__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: background 0.3s ease;
}

/* Light tema'lar için kontrastı tersine çevir */
.sp-theme-apple .sp-timer__block,
.sp-theme-minimal .sp-timer__block {
    background: rgba(0, 0, 0, 0.04);
}

.sp-timer__num {
    font-size: 30px;
    font-weight: 700;
    color: var(--sp-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.sp-timer__unit {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 4px;
}

.sp-timer__sep {
    font-size: 28px;
    font-weight: 700;
    color: var(--sp-primary);
    animation: sp-blink 1s infinite;
    line-height: 1;
}

/* ─── Timer Stilleri (4) ─────────────────────────────────── */

/* 🧱 classic — varsayılan, mevcut görüntü */
.sp-timer.sp-style-classic { /* defaults */ }

/* ➖ inline — yatay sade, tek satır */
.sp-timer.sp-style-inline {
    flex-direction: row;
    gap: 16px;
    padding: 14px 20px;
}
.sp-timer.sp-style-inline .sp-timer__label {
    margin: 0;
    border-right: 1px solid currentColor;
    padding-right: 14px;
    opacity: 0.7;
}
.sp-timer.sp-style-inline .sp-timer__display { gap: 4px; }
.sp-timer.sp-style-inline .sp-timer__block {
    flex-direction: row;
    gap: 4px;
    background: transparent;
    padding: 0;
    min-width: 0;
    align-items: baseline;
}
.sp-timer.sp-style-inline .sp-timer__num { font-size: 22px; }
.sp-timer.sp-style-inline .sp-timer__unit { font-size: 11px; margin-top: 0; opacity: 0.6; }
.sp-timer.sp-style-inline .sp-timer__sep { font-size: 22px; padding: 0 4px; }

/* 🔢 stacked — büyük rakamlar, dikkat çekici */
.sp-timer.sp-style-stacked {
    padding: 24px 28px;
    gap: 16px;
}
.sp-timer.sp-style-stacked .sp-timer__num { font-size: 56px; letter-spacing: -1px; }
.sp-timer.sp-style-stacked .sp-timer__block { min-width: 90px; padding: 14px 10px; }
.sp-timer.sp-style-stacked .sp-timer__sep { font-size: 50px; }
.sp-timer.sp-style-stacked .sp-timer__unit { font-size: 12px; letter-spacing: 1.5px; }

/* 📱 compact — mobile-first kompakt */
.sp-timer.sp-style-compact {
    padding: 10px 14px;
    gap: 6px;
}
.sp-timer.sp-style-compact .sp-timer__label { font-size: 12px; }
.sp-timer.sp-style-compact .sp-timer__num { font-size: 20px; }
.sp-timer.sp-style-compact .sp-timer__block { min-width: 42px; padding: 4px 3px; }
.sp-timer.sp-style-compact .sp-timer__sep { font-size: 20px; }
.sp-timer.sp-style-compact .sp-timer__unit { font-size: 9px; letter-spacing: 0.5px; }

/* ─── Acil mod ─── */
.sp-timer--urgent {
    box-shadow: 0 4px 24px rgba(255, 23, 68, 0.4);
    animation: sp-urgent-shake 0.5s infinite;
}
.sp-timer--urgent .sp-timer__num,
.sp-timer--urgent .sp-timer__sep { color: var(--sp-urgent) !important; }
.sp-timer--urgent .sp-timer__block {
    background: rgba(255, 23, 68, 0.15);
    animation: sp-urgent-pulse 0.6s infinite;
}

.sp-timer--expired {
    opacity: 0.5;
    filter: grayscale(100%);
    animation: none;
}
.sp-timer--expired .sp-timer__sep,
.sp-timer--expired .sp-timer__block { animation: none; }

.sp-disabled { cursor: not-allowed !important; filter: grayscale(50%); }

/* =========================================================
   POPUP — 4 şablon
   ========================================================= */
.sp-popup { position: static; }

.sp-popup__overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    z-index: 999998;
    cursor: pointer;
    animation: sp-fade-in 0.25s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.sp-popup__box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #222;
    padding: 36px 30px 28px;
    border-radius: 16px;
    max-width: 520px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 999999;
    animation: sp-popup-in 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    text-align: center;
    font-family: var(--sp-font);
}

.sp-popup__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.06);
    border: 0;
    font-size: 20px;
    cursor: pointer;
    color: #444;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.sp-popup__close:hover { background: rgba(0, 0, 0, 0.12); color: #000; }

.sp-popup__content { font-size: 16px; line-height: 1.55; }
.sp-popup__content h3 { margin: 0 0 12px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.sp-popup__content p { margin: 0 0 10px; }

.sp-popup__actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.sp-popup__used-msg {
    margin-top: 16px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: #888;
    font-size: 13px;
}

.sp-popup__second-chance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.sp-popup__second-chance:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sp-popup__second-chance:active { transform: translateY(0); }

/* Popup şablonları */
.sp-popup--classic .sp-popup__content h3 { color: #e74c3c; }
.sp-popup--classic .sp-popup__second-chance { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; }

.sp-popup--modern .sp-popup__box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.sp-popup--modern .sp-popup__close { background: rgba(255, 255, 255, 0.2); color: #fff; }
.sp-popup--modern .sp-popup__close:hover { background: rgba(255, 255, 255, 0.35); color: #fff; }
.sp-popup--modern .sp-popup__content { color: rgba(255, 255, 255, 0.95); }
.sp-popup--modern .sp-popup__content h3 { color: #fff; }
.sp-popup--modern .sp-popup__second-chance { background: #fff; color: #5b3aa8; }
.sp-popup--modern .sp-popup__used-msg { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.85); }

.sp-popup--urgent .sp-popup__box { background: linear-gradient(135deg, #ff4757 0%, #c44569 100%); color: #fff; }
.sp-popup--urgent .sp-popup__close { background: rgba(255, 255, 255, 0.2); color: #fff; }
.sp-popup--urgent .sp-popup__close:hover { background: rgba(255, 255, 255, 0.35); color: #fff; }
.sp-popup--urgent .sp-popup__content { color: rgba(255, 255, 255, 0.95); }
.sp-popup--urgent .sp-popup__content h3 { color: #fff; }
.sp-popup--urgent .sp-popup__second-chance { background: #fff; color: #c0392b; }
.sp-popup--urgent .sp-popup__used-msg { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.85); }

.sp-popup--soft .sp-popup__box { background: linear-gradient(135deg, #fce38a 0%, #f38181 100%); color: #2d3436; }
.sp-popup--soft .sp-popup__content h3 { color: #c0392b; }
.sp-popup--soft .sp-popup__second-chance { background: #2d3436; color: #fff; }

/* =========================================================
   STOCK — temel + 4 stil
   ========================================================= */
.sp-stock {
    padding: 14px 16px;
    border-radius: var(--sp-radius);
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    font-family: var(--sp-font);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sp-stock__text { font-size: 15px; margin-bottom: 8px; }

.sp-stock__count {
    color: var(--sp-primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0 4px;
    font-variant-numeric: tabular-nums;
}

.sp-stock__bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sp-theme-fire .sp-stock__bar,
.sp-theme-dark .sp-stock__bar,
.sp-theme-elegant .sp-stock__bar,
.sp-theme-urgent .sp-stock__bar { background: rgba(255, 255, 255, 0.12); }

.sp-stock__bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1s ease, background 0.5s ease;
    background: var(--sp-primary);
    border-radius: 4px;
}

.sp-stock__sold {
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.6;
    text-align: right;
}

.sp-stock__fraction {
    margin-top: 8px;
    font-size: 13px;
    color: var(--sp-text);
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-weight: 500;
}

.sp-stock__current { color: var(--sp-primary); font-weight: 700; font-size: 15px; }
.sp-stock__divider { margin: 0 2px; opacity: 0.5; }
.sp-stock__initial { opacity: 0.65; }
.sp-stock__suffix  { opacity: 0.55; font-weight: 400; }

/* ─── Stock Stilleri (4) ─────────────────────────────────── */

/* 📊 bar — varsayılan */
.sp-stock.sp-style-bar { /* defaults */ }

/* 🏷️ badge — pill rozet */
.sp-stock.sp-style-badge .sp-stock__count {
    display: inline-block;
    padding: 3px 12px;
    background: var(--sp-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
}

/* 🔢 number — sadece büyük sayı */
.sp-stock.sp-style-number { text-align: center; }
.sp-stock.sp-style-number .sp-stock__count {
    font-size: 32px;
    display: block;
    margin: 4px 0;
}
.sp-stock.sp-style-number .sp-stock__fraction { text-align: center; }

/* 🃏 card — büyük kart */
.sp-stock.sp-style-card {
    padding: 22px 20px;
    text-align: center;
    border-radius: 14px;
}
.sp-stock.sp-style-card .sp-stock__text { margin-bottom: 16px; font-size: 14px; opacity: 0.7; }
.sp-stock.sp-style-card .sp-stock__count {
    display: block;
    font-size: 52px;
    line-height: 1;
    margin: 6px 0;
    font-weight: 800;
    letter-spacing: -1px;
}
.sp-stock.sp-style-card .sp-stock__label-before,
.sp-stock.sp-style-card .sp-stock__label-after { display: block; }
.sp-stock.sp-style-card .sp-stock__bar { height: 10px; margin-top: 14px; }
.sp-stock.sp-style-card .sp-stock__fraction { text-align: center; margin-top: 10px; font-size: 14px; }

/* ─── Sold-out & Low ─── */
.sp-stock__soldout {
    color: #c0392b;
    font-weight: 700;
    font-size: 16px;
    padding: 8px 0;
    text-align: center;
}

.sp-stock--low {
    border-color: var(--sp-urgent);
    outline: 2px solid rgba(255, 23, 68, 0.35);
    outline-offset: 2px;
    animation: sp-stock-pulse 1.6s ease-in-out infinite;
}
.sp-stock--low .sp-stock__count,
.sp-stock--low .sp-stock__current {
    color: var(--sp-urgent);
}
.sp-stock--low::before {
    content: "⚠️ Az kaldı!";
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--sp-urgent);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-stock--out { opacity: 0.7; }

/* =========================================================
   SOCIAL PROOF — temel + 4 stil + 2 layout
   ========================================================= */
.sp-social-proof {
    font-family: var(--sp-font);
    font-size: 14px;
    color: var(--sp-text);
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    padding: 10px 14px;
    border-radius: var(--sp-radius);
    transition: background 0.3s, border-color 0.3s;
}

/* Layout: iki satır */
.sp-social-proof.sp-layout-two_rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Layout: tek satır slide */
.sp-social-proof.sp-layout-single_alternating {
    overflow: hidden;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.sp-social-proof__row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.sp-social-proof__row--alt { width: 100%; min-height: 22px; overflow: hidden; }

.sp-social-proof__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.sp-social-proof__dot--viewing { background: var(--sp-primary); animation: sp-pulse 2s infinite; }
.sp-social-proof__dot--cart    { background: var(--sp-secondary); animation: sp-pulse 2s infinite; animation-delay: 1s; }

.sp-social-proof__text {
    color: var(--sp-text);
    font-weight: 500;
}

.sp-social-proof__text--alt {
    display: inline-block;
    font-weight: 600;
    will-change: transform, opacity;
}

/* ─── Social Proof Stilleri (4) ──────────────────────────── */

/* 🃏 card — varsayılan kart */
.sp-social-proof.sp-style-card { /* default border + radius + shadow uygulanır */ }

/* 📏 bordered — sol kenar çubuğu */
.sp-social-proof.sp-style-bordered {
    border-left: 3px solid var(--sp-primary);
    background: linear-gradient(135deg, var(--sp-bg), var(--sp-bg));
}

/* 💊 pill — yuvarlatılmış */
.sp-social-proof.sp-style-pill {
    border-radius: 999px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
}
.sp-social-proof.sp-style-pill.sp-layout-two_rows {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
    padding: 10px 18px;
}

/* ⬜ flat — minimal, arkaplan yok */
.sp-social-proof.sp-style-flat {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ─── Slide animasyonları ─── */
.sp-anim-out-up   { animation: sp-slide-out-up   0.4s ease-in forwards; }
.sp-anim-in-up    { animation: sp-slide-in-up    0.4s ease-out; }
.sp-anim-out-down { animation: sp-slide-out-down 0.4s ease-in forwards; }
.sp-anim-in-down  { animation: sp-slide-in-down  0.4s ease-out; }

@keyframes sp-slide-out-up   { 0% { transform: translateY(0);     opacity: 1; } 100% { transform: translateY(-110%); opacity: 0; } }
@keyframes sp-slide-in-up    { 0% { transform: translateY(110%);  opacity: 0; } 100% { transform: translateY(0);     opacity: 1; } }
@keyframes sp-slide-out-down { 0% { transform: translateY(0);     opacity: 1; } 100% { transform: translateY(110%);  opacity: 0; } }
@keyframes sp-slide-in-down  { 0% { transform: translateY(-110%); opacity: 0; } 100% { transform: translateY(0);     opacity: 1; } }

/* =========================================================
   KARGO KESİM SAYACI — temel + 4 stil
   ========================================================= */
.sp-shipping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-radius: var(--sp-radius);
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    font-family: var(--sp-font);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.sp-shipping__icon { font-size: 1.25em; line-height: 1; }
.sp-shipping__text { font-weight: 600; }

.sp-shipping__countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--sp-primary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.sp-shipping--expired { opacity: 0.85; }

/* Banner */
.sp-shipping.sp-style-bar { width: 100%; }

/* Kart */
.sp-shipping.sp-style-card { flex-direction: column; gap: 6px; padding: 20px 24px; }
.sp-shipping.sp-style-card .sp-shipping__icon { font-size: 1.8em; }

/* Inline */
.sp-shipping.sp-style-inline {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 4px 0;
    font-size: 15px;
}

/* Şerit */
.sp-shipping.sp-style-ribbon {
    border-radius: 999px;
    padding: 8px 18px;
    background: var(--sp-primary);
    color: #fff;
    border-color: transparent;
}
.sp-shipping.sp-style-ribbon .sp-shipping__countdown {
    color: #fff;
    text-decoration: underline;
}

/* =========================================================
   TESLİMAT TARİHİ — temel + 4 stil
   ========================================================= */
.sp-delivery {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--sp-radius);
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    font-family: var(--sp-font);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    font-size: 15px;
    line-height: 1.4;
}

.sp-delivery__icon { font-size: 1.3em; line-height: 1; }
.sp-delivery__text { font-weight: 600; }
.sp-delivery__date { color: var(--sp-primary); font-weight: 800; }

/* Kart (varsayılan) */
.sp-delivery.sp-style-card { padding: 16px 20px; }

/* Inline */
.sp-delivery.sp-style-inline {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2px 0;
}

/* Rozet */
.sp-delivery.sp-style-badge {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    background: var(--sp-primary);
    color: #fff;
    border-color: transparent;
}
.sp-delivery.sp-style-badge .sp-delivery__date { color: #fff; }

/* Minimal */
.sp-delivery.sp-style-minimal {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-left: 3px solid var(--sp-primary);
    border-radius: 0;
    padding: 4px 0 4px 12px;
}

/* =========================================================
   SATIŞ HIZI — temel + 4 stil
   ========================================================= */
.sp-sales {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--sp-radius);
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    font-family: var(--sp-font);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.sp-sales__icon { font-size: 1.2em; line-height: 1; }
.sp-sales__count {
    color: var(--sp-primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    margin: 0 2px;
}

/* Rozet (varsayılan) */
.sp-sales.sp-style-badge { border-radius: 999px; padding: 6px 14px; }

/* Kart */
.sp-sales.sp-style-card { padding: 14px 18px; }

/* Inline */
.sp-sales.sp-style-inline {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2px 0;
}

/* Düz */
.sp-sales.sp-style-flat {
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 6px;
}

/* Sosyal kanıt — "satıldı" noktası */
.sp-social-proof__dot--sales { background: #ff6b35; animation: sp-pulse 2s infinite; animation-delay: 0.5s; }

/* =========================================================
   STOK — düşük stok aciliyet mesajı
   ========================================================= */
.sp-stock__urgency {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-urgent);
}

/* =========================================================
   GÜVEN ROZETLERİ — temel + 4 stil
   ========================================================= */
.sp-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 18px;
    border-radius: var(--sp-radius);
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    font-family: var(--sp-font);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
}

.sp-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}
.sp-trust__icon { font-size: 1.4em; line-height: 1; color: var(--sp-primary); }
.sp-trust__text { white-space: nowrap; }

/* Kutulu */
.sp-trust.sp-style-boxed {
    gap: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}
.sp-trust.sp-style-boxed .sp-trust__item {
    padding: 10px 16px;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
}

/* Izgara */
.sp-trust.sp-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    text-align: center;
}
.sp-trust.sp-style-grid .sp-trust__item { flex-direction: column; gap: 6px; justify-content: center; }
.sp-trust.sp-style-grid .sp-trust__icon { font-size: 1.8em; }

/* Minimal */
.sp-trust.sp-style-minimal {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 4px 0;
    gap: 14px;
}
.sp-trust.sp-style-minimal .sp-trust__item { font-size: 13px; font-weight: 500; }
.sp-trust.sp-style-minimal .sp-trust__text { opacity: 0.9; }

/* Yön: yatay (varsayılan) / dikey */
.sp-trust--horizontal { flex-direction: row; }
.sp-trust--vertical {
    flex-direction: column;
    align-items: stretch;
}
.sp-trust--vertical .sp-trust__item { justify-content: flex-start; }
.sp-trust--vertical.sp-style-grid { grid-template-columns: 1fr; }

/* =========================================================
   TIMER — sayfa üstü/altı sabit çubuk
   ========================================================= */
.sp-timer.sp-sticky-bar:not([data-preview="1"]) {
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    z-index: 99990;
    border-radius: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}
.sp-timer.sp-sticky-bar--top:not([data-preview="1"])    { top: 0; }
.sp-timer.sp-sticky-bar--bottom:not([data-preview="1"]) { bottom: 0; }

/* =========================================================
   YORUMLAR / YILDIZ — temel + 4 stil
   ========================================================= */
.sp-reviews {
    --sp-star: #f5a623;
    display: inline-block;
    padding: 14px 18px;
    border-radius: var(--sp-radius);
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    font-family: var(--sp-font);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    max-width: 100%;
}

.sp-reviews__summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-reviews__stars {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 2px;
    white-space: nowrap;
}
.sp-reviews__stars-bg   { color: rgba(128, 128, 128, 0.3); }
.sp-reviews__stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--sp-star); }
.sp-reviews__rating     { font-weight: 800; font-size: 20px; }
.sp-reviews__rating-max { opacity: 0.55; font-size: 14px; }
.sp-reviews__count      { opacity: 0.8; font-size: 14px; }
.sp-reviews__stars--sm  { font-size: 14px; letter-spacing: 1px; }

/* Inline */
.sp-reviews.sp-style-inline {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2px 0;
}
.sp-reviews.sp-style-inline .sp-reviews__stars,
.sp-reviews.sp-style-inline .sp-reviews__rating { font-size: 16px; }

/* Liste */
.sp-reviews.sp-style-list { display: block; }
.sp-reviews__list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.sp-reviews__item { border-top: 1px solid var(--sp-border); padding-top: 10px; }
.sp-reviews__item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-reviews__item-name { font-weight: 700; font-size: 14px; }
.sp-reviews__item-text { font-size: 14px; opacity: 0.9; margin-top: 4px; line-height: 1.5; }
.sp-reviews__item-date { font-size: 12px; opacity: 0.55; margin-top: 4px; }

/* Kartlar */
.sp-reviews.sp-style-cards { display: block; }
.sp-reviews.sp-style-cards .sp-reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sp-reviews.sp-style-cards .sp-reviews__item { border: 1px solid var(--sp-border); border-radius: 8px; padding: 12px; }
.sp-reviews.sp-style-cards .sp-reviews__item-head { flex-direction: column; align-items: flex-start; gap: 4px; }

/* =========================================================
   DUYURU / KAMPANYA ÇUBUĞU — temel + 4 stil + sabit konum
   ========================================================= */
.sp-announce {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 44px 12px 18px;
    background: var(--sp-bg);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    font-family: var(--sp-font);
    box-shadow: var(--sp-shadow);
    backdrop-filter: var(--sp-blur);
    -webkit-backdrop-filter: var(--sp-blur);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.sp-announce__inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sp-announce__icon  { font-size: 1.2em; line-height: 1; }
.sp-announce__text  { font-weight: 600; }
.sp-announce__text a { color: var(--sp-primary); }

.sp-announce__cta {
    display: inline-block;
    background: var(--sp-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.sp-announce__coupon {
    border: 1px dashed var(--sp-primary);
    color: var(--sp-primary);
    background: transparent;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: var(--sp-font);
}
.sp-announce__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: inherit;
    opacity: 0.6;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.sp-announce__close:hover { opacity: 1; }

/* Sabit konum (üst/alt) — edit önizlemesinde sabitlenmez */
.sp-announce--top:not([data-preview="1"]),
.sp-announce--bottom:not([data-preview="1"]) {
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
    z-index: 99991;
}
.sp-announce--top:not([data-preview="1"])    { top: 0; }
.sp-announce--bottom:not([data-preview="1"]) { bottom: 0; }

/* Stiller */
.sp-announce.sp-style-bar { border-left: 0; border-right: 0; }
.sp-announce.sp-style-gradient {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-secondary));
    color: #fff;
    border-color: transparent;
}
.sp-announce.sp-style-gradient .sp-announce__cta    { background: rgba(255, 255, 255, 0.95); color: var(--sp-primary); }
.sp-announce.sp-style-gradient .sp-announce__coupon { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.sp-announce.sp-style-outline {
    background: transparent;
    border: 2px solid var(--sp-primary);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 767px) {
    .sp-shipping { font-size: 14px; padding: 12px 14px; }
    .sp-delivery { font-size: 14px; }
    .sp-sales    { font-size: 14px; }
    .sp-trust    { gap: 12px; padding: 12px 14px; }
    .sp-trust__item { font-size: 13px; }
    .sp-reviews  { padding: 12px 14px; }
    .sp-announce { font-size: 13px; padding: 10px 38px 10px 14px; gap: 8px; }
}

/* =========================================================
   MOBİL
   ========================================================= */
@media (max-width: 767px) {
    .sp-sticky-mobile-bar {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        border-radius: 12px 12px 0 0 !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
        margin: 0 !important;
        padding: 12px 16px !important;
    }

    .sp-timer { padding: 14px 16px; gap: 10px; }
    .sp-timer__display { gap: 6px; }
    .sp-timer__num   { font-size: 24px; }
    .sp-timer__sep   { font-size: 22px; }
    .sp-timer__block { min-width: 48px; padding: 6px 4px; }
    .sp-timer__unit  { font-size: 10px; }
    .sp-timer__label { font-size: 13px; }

    .sp-timer.sp-style-inline { flex-direction: column; gap: 8px; }
    .sp-timer.sp-style-inline .sp-timer__label { border: 0; padding: 0; }

    .sp-timer.sp-style-stacked .sp-timer__num { font-size: 42px; }
    .sp-timer.sp-style-stacked .sp-timer__block { min-width: 70px; padding: 10px 6px; }
    .sp-timer.sp-style-stacked .sp-timer__sep { font-size: 36px; }

    .sp-sticky-mobile-bar .sp-timer__num   { font-size: 22px; }
    .sp-sticky-mobile-bar .sp-timer__block { min-width: 42px; padding: 4px 3px; }
    .sp-sticky-mobile-bar .sp-timer__label { font-size: 12px; margin-bottom: 4px; }

    .sp-popup__box { padding: 26px 20px 22px; max-width: calc(100% - 24px); border-radius: 14px; }
    .sp-popup__content h3 { font-size: 20px; }
    .sp-popup__content    { font-size: 15px; }
    .sp-popup__second-chance { width: 100%; justify-content: center; padding: 14px 20px; font-size: 16px; }

    .sp-stock.sp-style-card { padding: 18px 16px; }
    .sp-stock.sp-style-card .sp-stock__count { font-size: 42px; }

    .sp-social-proof { font-size: 13px; }
    .sp-social-proof.sp-layout-single_alternating { padding: 8px 12px; min-height: 34px; }
    .sp-social-proof__text--alt { font-size: 13px; }

    .sp-stock--low::before { display: block; margin-right: 0; text-align: center; }
}

@media (max-width: 380px) {
    .sp-timer__num   { font-size: 22px; }
    .sp-timer__block { min-width: 42px; }
    .sp-stock.sp-style-card .sp-stock__count { font-size: 36px; }
    .sp-timer.sp-style-stacked .sp-timer__num { font-size: 32px; }
}

/* =========================================================
   ERİŞİLEBİLİRLİK
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .sp-timer__sep,
    .sp-timer--urgent,
    .sp-timer--urgent .sp-timer__block,
    .sp-social-proof__dot,
    .sp-stock--low,
    .sp-anim-out-up, .sp-anim-in-up,
    .sp-anim-out-down, .sp-anim-in-down,
    .sp-popup__overlay,
    .sp-popup__box { animation: none !important; }

    .sp-stock__bar-fill,
    .sp-timer, .sp-timer__num, .sp-timer__block,
    .sp-stock, .sp-stock__count,
    .sp-popup__second-chance { transition: none !important; }
}

.sp-popup__close:focus-visible,
.sp-disabled:focus-visible {
    outline: 2px solid var(--sp-primary);
    outline-offset: 2px;
}

@media print {
    .sp-timer, .sp-stock, .sp-social-proof, .sp-shipping, .sp-delivery, .sp-sales, .sp-trust, .sp-reviews, .sp-announce, .sp-sticky-mobile-bar, .sp-popup {
        display: none !important;
    }
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes sp-blink         { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes sp-stock-pulse   { 0%, 100% { outline-color: rgba(255, 23, 68, 0.15); } 50% { outline-color: rgba(255, 23, 68, 0.6); } }
@keyframes sp-pulse         { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
@keyframes sp-urgent-pulse  { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes sp-urgent-shake  { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes sp-fade-in       { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-popup-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
