/* Site geneli widget CSS'i: çerez onayı, karşılaştırma dock'u ve fiyat alarmı modalı.
 * header.php'den tek link ile yüklenir. Bu üç bileşenin sınıf adları (pf-cookie-consent-*,
 * pf-tworow-*, pf-cmp-*, pf-global-compare-*, pf-alarm-*) projedeki diğer hiçbir CSS
 * kuralında (style/catalog/product-detail/bootstrap + kalan satır içi bloklar) geçmediği
 * için, satır içi <style> iken dış dosyaya taşımak kaskad sırasını değiştirmez.
 */

/* ==== Çerez onayı katmanı — önceden templates/footer.php içinde satır içi <style> idi ==== */
.pf-cookie-consent-wrap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 620px;
    margin: 0 auto;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.pf-cookie-consent-wrap.pf-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.pf-cookie-consent-card {
    background: var(--pf-bg-card, #ffffff);
    border: 1px solid var(--pf-border, #e2e8f0);
    border-radius: 14px;
    padding: 15px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(8px);
}
.pf-cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.pf-cookie-consent-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.pf-cookie-btn {
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 13px !important;
    border-radius: 7px !important;
    transition: all 0.2s ease !important;
}
.pf-cookie-btn-primary {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    border-radius: 7px !important;
    background: var(--pf-accent, #0f4c81) !important;
    border-color: var(--pf-accent, #0f4c81) !important;
    box-shadow: 0 2px 6px rgba(15, 76, 129, 0.2) !important;
    transition: all 0.2s ease !important;
}
.pf-cookie-btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
@media (max-width: 576px) {
    .pf-cookie-consent-wrap {
        left: 10px;
        right: 10px;
        bottom: 12px;
    }
    .pf-cookie-consent-card {
        padding: 13px;
        gap: 10px;
    }
    .pf-cookie-consent-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .pf-cookie-btn, .pf-cookie-btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* ==== İki satırlı büyük karşılaştırma dock'u — önceden templates/compare_bar.php içinde satır içi <style> idi ==== */
/* === NE KAÇA İKİ SATIRLI BÜYÜK KARŞILAŞTIRMA PANELİ (2-ROW DOCK) === */

/* 1. Sıfır ürün durumu, Modal Açık durumu veya Karşılaştırma Sayfası: KESİNLİKLE gizli */
.pf-global-compare-bar:not(.is-visible),
body.modal-open .pf-global-compare-bar,
body.compare-page #pf-global-compare-bar,
.page-compare #pf-global-compare-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(160%) !important;
}

.pf-compare-minimized-bubble:not(.is-visible),
body.modal-open .pf-compare-minimized-bubble,
body.compare-page #pf-compare-minimized-bubble,
.page-compare #pf-compare-minimized-bubble {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(160%) !important;
}

/* 2. Ana Panel Gövdesi (Masaüstü) */
.pf-global-compare-bar.pf-tworow-bar {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(160%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(15, 76, 129, 0.2) !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 50px -10px rgba(15, 76, 129, 0.28), 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    padding: 16px 20px 18px 20px !important;
    width: max-content !important;
    max-width: min(740px, calc(100% - 24px)) !important;
    box-sizing: border-box !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s !important;
}

.pf-global-compare-bar.pf-tworow-bar.is-visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Modal açıkken karşılaştırma barını ve baloncuğu kesinlikle gizle */
body.modal-open .pf-global-compare-bar,
body.modal-open .pf-global-compare-bar.pf-tworow-bar,
body.modal-open .pf-global-compare-bar.is-visible,
body.modal-open .pf-compare-minimized-bubble,
body.modal-open .pf-compare-minimized-bubble.is-visible {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pf-tworow-inner {
    width: 100%;
}

/* Üst Başlık Satırı & İkon Ayrımı */
.pf-tworow-title-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
}
.pf-tworow-title-icon {
    font-size: 16px !important;
    color: #2563eb !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.pf-tworow-heading {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.1px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
#pfCompareCountBadge {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    background: #e0edff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    margin-left: 2px !important;
}
.pf-tworow-dismiss-btn {
    color: #94a3b8 !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
    padding: 4px 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.pf-tworow-dismiss-btn:hover {
    color: #ef4444 !important;
    transform: scale(1.15);
}

/* 1. SATIR: Ürün Kartları Şeridi (Üst ve Alt Boşluklar Belirgin Şekilde Genişletildi) */
.pf-tworow-products-track {
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 18px !important;   /* Kırmızı silme çarpısı ile üst başlık arasına ferah boşluk */
    padding-bottom: 14px !important; /* Kartların altı ile aksiyon butonları arasına ferah boşluk */
    margin-top: 8px !important;
    margin-bottom: 18px !important;  /* İki satır arasındaki net görsel ayrım */
    gap: 14px !important;
}
.pf-tworow-products-track::-webkit-scrollbar {
    display: none;
}

/* Büyük Ürün Kartı (Görsel + İsim) */
.pf-tworow-item {
    width: 108px;
    min-width: 108px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 6px 7px 6px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}
.pf-tworow-item:hover {
    border-color: #0f4c81;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 76, 129, 0.15);
}

/* Kart İçindeki Büyük Görsel Kutusu */
.pf-tworow-img-box {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}
.pf-tworow-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Kartın Altındaki Ürün Adı */
.pf-tworow-item-name {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px;
}

/* Kartın Üzerindeki Kırmızı Silme Çarpısı */
.pf-tworow-item-del {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    padding: 0;
    transition: transform 0.15s ease, background 0.15s;
    z-index: 3;
}
.pf-tworow-item-del:hover {
    background: #dc2626;
    transform: scale(1.15);
}

/* Boş Slot Kartı (+ Ürün Ekle) */
.pf-tworow-item-empty {
    width: 108px;
    min-width: 108px;
    height: 89px;
    background: rgba(241, 245, 249, 0.65);
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: default;
    transition: all 0.2s ease;
    user-select: none;
}
.pf-tworow-item-empty:hover {
    border-color: #94a3b8;
    color: #475569;
    background: rgba(241, 245, 249, 0.95);
}
.pf-tworow-empty-icon {
    font-size: 20px;
    line-height: 1;
}
.pf-tworow-empty-txt {
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
}

/* 2. SATIR: Aksiyon Butonları (İkon ve Yazı Boşlukları Ferah) */
.pf-tworow-clear-btn {
    border: none !important;
    background: transparent !important;
    color: var(--pf-text-muted, #64748b) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 9px 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 12px !important;
    transition: color 0.15s ease, background 0.15s ease !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}
.pf-tworow-clear-btn i {
    font-size: 15px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.pf-tworow-clear-btn:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

/* Ana "Karşılaştır" CTA Butonu */
.pf-tworow-submit-btn {
    height: 48px !important;
    border-radius: 50px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    padding: 0 24px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    letter-spacing: 0.2px;
}
.pf-tworow-submit-btn i {
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.pf-tworow-submit-btn .pf-btn-arrow {
    margin-left: 6px !important;
    font-size: 16px !important;
    display: inline-block !important;
    transition: transform 0.2s ease !important;
}
.pf-tworow-submit-btn:hover .pf-btn-arrow {
    transform: translateX(3px) !important;
}

/* 1 Ürün varken rehberlik stili */
.pf-tworow-submit-btn.is-need-more {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1.5px dashed #cbd5e1 !important;
    box-shadow: none !important;
}
.pf-tworow-submit-btn.is-need-more:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* 2+ Ürün varken canlı aksiyon butonu */
.pf-tworow-submit-btn.is-ready {
    background: linear-gradient(135deg, #0f4c81 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}
.pf-tworow-submit-btn.is-ready:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55) !important;
    color: #ffffff !important;
}

/* Minimized Rozet (Solda Altta Sabit Karşılaştırma İkonu) */
.pf-compare-minimized-bubble {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;
    z-index: 99999 !important;
    background: linear-gradient(135deg, #0f4c81 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    padding: 8px 15px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    user-select: none !important;
    transform: translateY(160%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s, box-shadow 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.pf-compare-minimized-bubble:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
}
.pf-compare-minimized-bubble:active {
    transform: translateY(0) scale(0.96) !important;
}
.pf-compare-minimized-bubble.is-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: inline-flex !important;
}
.pf-bubble-inner-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1 !important;
}
.pf-bubble-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
}
.pf-bubble-count {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
}
#pfBubbleCountBadge {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* Toast Bildirimi */
.pf-compare-toast {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-30px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s !important;
}
.pf-compare-toast.is-visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* === DARK MODE DESTEĞİ === */
:root[data-theme="dark"] .pf-global-compare-bar.pf-tworow-bar,
[data-theme="dark"] .pf-global-compare-bar.pf-tworow-bar,
[data-bs-theme="dark"] .pf-global-compare-bar.pf-tworow-bar,
.dark-mode .pf-global-compare-bar.pf-tworow-bar {
    background: rgba(22, 24, 37, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7) !important;
}
:root[data-theme="dark"] .pf-tworow-heading,
[data-theme="dark"] .pf-tworow-heading,
[data-bs-theme="dark"] .pf-tworow-heading,
.dark-mode .pf-tworow-heading {
    color: #f8fafc !important;
}
:root[data-theme="dark"] #pfCompareCountBadge,
[data-theme="dark"] #pfCompareCountBadge,
[data-bs-theme="dark"] #pfCompareCountBadge,
.dark-mode #pfCompareCountBadge {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}
:root[data-theme="dark"] .pf-tworow-item,
[data-theme="dark"] .pf-tworow-item,
[data-bs-theme="dark"] .pf-tworow-item,
.dark-mode .pf-tworow-item {
    background: #1e2132 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
:root[data-theme="dark"] .pf-tworow-img-box,
[data-theme="dark"] .pf-tworow-img-box,
[data-bs-theme="dark"] .pf-tworow-img-box,
.dark-mode .pf-tworow-img-box {
    background: #ffffff !important;
}
:root[data-theme="dark"] .pf-tworow-item-name,
[data-theme="dark"] .pf-tworow-item-name,
[data-bs-theme="dark"] .pf-tworow-item-name,
.dark-mode .pf-tworow-item-name {
    color: #cbd5e1 !important;
}
:root[data-theme="dark"] .pf-tworow-item-empty,
[data-theme="dark"] .pf-tworow-item-empty,
[data-bs-theme="dark"] .pf-tworow-item-empty,
.dark-mode .pf-tworow-item-empty {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
}
:root[data-theme="dark"] .pf-tworow-clear-btn,
[data-theme="dark"] .pf-tworow-clear-btn,
[data-bs-theme="dark"] .pf-tworow-clear-btn,
.dark-mode .pf-tworow-clear-btn {
    color: #94a3b8 !important;
}
:root[data-theme="dark"] .pf-tworow-dismiss-btn,
[data-theme="dark"] .pf-tworow-dismiss-btn {
    color: #94a3b8 !important;
}
:root[data-theme="dark"] .pf-tworow-dismiss-btn:hover,
[data-theme="dark"] .pf-tworow-dismiss-btn:hover {
    color: #f87171 !important;
}
:root[data-theme="dark"] .pf-tworow-submit-btn.is-need-more,
[data-theme="dark"] .pf-tworow-submit-btn.is-need-more {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
:root[data-theme="dark"] .pf-compare-minimized-bubble,
[data-theme="dark"] .pf-compare-minimized-bubble,
[data-bs-theme="dark"] .pf-compare-minimized-bubble,
.dark-mode .pf-compare-minimized-bubble {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 16px rgba(59, 130, 246, 0.35) !important;
    color: #ffffff !important;
}

/* === MOBİL VE TABLET UYUMLULUĞU (2 SATIRLI DÜZEN) === */
@media (max-width: 768px) {
    .pf-global-compare-bar.pf-tworow-bar {
        bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 10px 12px 12px 12px !important;
        width: calc(100% - 16px) !important;
        max-width: 440px !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
    }
    .pf-tworow-heading {
        font-size: 12.5px !important;
    }
    .pf-tworow-products-track {
        padding-top: 10px !important;
        padding-bottom: 6px !important;
        margin-top: 4px !important;
        margin-bottom: 10px !important;
        gap: 8px !important;
    }
    .pf-tworow-item {
        width: 76px !important;
        min-width: 76px !important;
        padding: 5px 3px 4px 3px !important;
        border-radius: 10px !important;
    }
    .pf-tworow-img-box {
        height: 46px !important;
    }
    .pf-tworow-item-name {
        font-size: 10px !important;
        margin-top: 3px !important;
    }
    .pf-tworow-item-del {
        width: 19px !important;
        height: 19px !important;
        font-size: 12px !important;
        top: -5px !important;
        right: -5px !important;
    }
    .pf-tworow-item-empty {
        width: 76px !important;
        min-width: 76px !important;
        height: 68px !important;
        border-radius: 10px !important;
    }
    .pf-tworow-empty-icon {
        font-size: 16px !important;
    }
    .pf-tworow-empty-txt {
        font-size: 10px !important;
    }
    .pf-tworow-submit-btn {
        height: 40px !important;
        font-size: 13px !important;
        padding: 0 16px !important;
    }
    .pf-tworow-clear-btn {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }
    .pf-compare-minimized-bubble {
        bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
        left: 14px !important;
        right: auto !important;
        padding: 7px 12px !important;
        border-radius: 50px !important;
    }
    .pf-bubble-icon {
        font-size: 14px !important;
    }
    .pf-bubble-count {
        font-size: 12.5px !important;
    }
    #pfBubbleCountBadge {
        font-size: 12.5px !important;
    }
    .pf-compare-toast {
        top: auto !important;
        bottom: calc(215px + env(safe-area-inset-bottom, 0px)) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) !important;
        font-size: 13px !important;
        padding: 10px 20px !important;
        max-width: calc(100% - 32px) !important;
    }
    .pf-compare-toast.is-visible {
        transform: translateX(-50%) translateY(0) !important;
    }
}


/* ==== Fiyat alarmı modalı — önceden templates/price_alarm_modal.php içinde satır içi <style> idi ==== */
/* === NE KAÇA ÖZGÜN FİYAT ALARMI MODAL STİLLERİ === */
.pf-alarm-modal-wrap {
    background: var(--pf-bg-card, #ffffff);
    border: 1px solid rgba(15, 76, 129, 0.15) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -10px rgba(15, 76, 129, 0.22), 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
    padding: 22px 20px 18px 20px;
    overflow: hidden;
    position: relative;
}

/* Header */
.pf-alarm-header-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.12) 0%, rgba(37, 99, 235, 0.18) 100%);
    color: var(--pf-accent, #0f4c81);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 18px !important;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.12);
}
.pf-alarm-header-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--pf-text-primary, #0f172a);
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 2px;
}
.pf-alarm-header-sub {
    font-size: 12px;
    color: var(--pf-text-muted, #64748b);
    font-weight: 500;
}
.pf-alarm-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--pf-border, #e2e8f0);
    background: var(--pf-bg-secondary, #f8fafc);
    color: var(--pf-text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
}
.pf-alarm-close-btn:hover {
    background: var(--pf-bg-card, #ffffff);
    color: var(--pf-text-primary, #0f172a);
    border-color: #cbd5e1;
}

/* Ürün Snapshot Kartı */
.pf-alarm-product-card {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.03) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 14px;
    padding: 10px 14px;
}
.pf-alarm-thumb-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--pf-border, #e2e8f0);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    margin-right: 14px;
}
.pf-alarm-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pf-alarm-prod-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pf-text-primary, #0f172a);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pf-alarm-price-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 12.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Mod Seçim Kartları (NeKaça Özgün Segment Kartlar) */
.pf-alarm-mode-card {
    border: 1.5px solid var(--pf-border, #e2e8f0);
    border-radius: 16px;
    padding: 16px 18px;
    cursor: pointer;
    background: var(--pf-bg-card, #ffffff);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    margin-bottom: 18px !important;
}
.pf-alarm-mode-card:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.pf-alarm-mode-card.active {
    border-color: var(--pf-accent, #0f4c81) !important;
    background: rgba(15, 76, 129, 0.03) !important;
    box-shadow: 0 6px 18px rgba(15, 76, 129, 0.09);
}

.pf-alarm-mode-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-right: 16px !important;
    flex-shrink: 0;
}
.pf-alarm-mode-icon.auto {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}
.pf-alarm-mode-icon.target {
    background: rgba(37, 99, 235, 0.14);
    color: #2563eb;
}

.pf-alarm-mode-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--pf-text-primary, #0f172a);
    margin-bottom: 3px;
}
.pf-alarm-mode-desc {
    font-size: 12px;
    color: var(--pf-text-secondary, #64748b);
    line-height: 1.4;
}

/* Gösterge İkonu */
.pf-alarm-indicator {
    color: #cbd5e1;
    font-size: 20px;
    transition: all 0.2s ease;
}
.pf-alarm-mode-card.active .pf-alarm-indicator {
    color: var(--pf-accent, #0f4c81);
}

/* Hedef Fiyat Açılır Alan */
.pf-alarm-expanded-panel {
    border-top: 1px dashed rgba(15, 76, 129, 0.18);
    margin-top: 18px;
    padding-top: 18px;
}

.pf-alarm-target-number {
    font-size: 26px;
    font-weight: 900;
    color: var(--pf-accent, #0f4c81);
    letter-spacing: -0.6px;
    line-height: 1;
}
.pf-alarm-target-currency {
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-text-secondary, #64748b);
}
.pf-alarm-savings-pill {
    display: inline-block;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-top: 5px;
}

/* Range Slider */
.pf-alarm-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 6px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    margin: 10px 0 4px 0;
}
.pf-alarm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--pf-accent, #0f4c81);
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.pf-alarm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.pf-alarm-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--pf-accent, #0f4c81);
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
    cursor: pointer;
}

/* Hızlı Yüzde Presets Barı */
.pf-alarm-presets-bar {
    background: var(--pf-bg-secondary, #f8fafc);
    border: 1px solid var(--pf-border, #e2e8f0);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}
.pf-quick-pct-btn {
    border: none !important;
    background: transparent !important;
    color: var(--pf-text-secondary, #475569) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 5px 0 !important;
    border-radius: 7px !important;
    transition: all 0.15s ease;
}
.pf-quick-pct-btn:hover {
    color: var(--pf-text-primary, #0f172a) !important;
    background: rgba(0,0,0,0.04) !important;
}
.pf-quick-pct-btn.active {
    background: var(--pf-accent, #0f4c81) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 76, 129, 0.25);
}

/* Manuel Giriş Grubu */
.pf-alarm-manual-group .input-group-text {
    background: var(--pf-bg-secondary, #f8fafc);
    border-color: var(--pf-border, #e2e8f0);
    color: var(--pf-text-muted, #64748b);
    font-size: 12px;
}
.pf-alarm-manual-group input {
    background: var(--pf-bg-card, #ffffff);
    border-color: var(--pf-border, #e2e8f0);
    color: var(--pf-text-primary, #0f172a);
}

/* Bilgilendirme Notu */
.pf-alarm-banner-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 76, 129, 0.04);
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: var(--pf-text-secondary, #475569);
    line-height: 1.4;
}

/* === AKSİYON BUTONLARI (KESİNLİKLE ÇAKIŞMAYAN 2 SÜTUNLU GRID) === */
.pf-alarm-btn-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-top: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pf-alarm-cancel-btn {
    height: 48px !important;
    border-radius: 13px !important;
    border: 1.5px solid var(--pf-border, #cbd5e1) !important;
    background: var(--pf-bg-card, #ffffff) !important;
    color: var(--pf-text-secondary, #475569) !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}
.pf-alarm-cancel-btn:hover {
    background: var(--pf-bg-secondary, #f1f5f9) !important;
    color: var(--pf-text-primary, #0f172a) !important;
    border-color: #94a3b8 !important;
}

.pf-alarm-save-btn {
    height: 48px !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #0f4c81 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(15, 76, 129, 0.3) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}
.pf-alarm-save-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.45) !important;
    color: #ffffff !important;
}

/* Ziyaretçi Giriş Butonu */
.pf-alarm-guest-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--pf-accent, #0f4c81);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.pf-alarm-guest-login-btn {
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f4c81 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 76, 129, 0.3);
    text-decoration: none;
}
.pf-alarm-guest-login-btn:hover {
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 76, 129, 0.42);
}

/* Misafir Modu & Karşılama Kartları (Sade & Modern) */
.pf-guest-main-card {
    background: linear-gradient(145deg, rgba(15, 76, 129, 0.04) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.32);
    border-radius: 16px;
    transition: all 0.2s ease;
}
.pf-guest-main-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.pf-guest-divider {
    color: var(--pf-text-muted, #94a3b8);
}
.pf-divider-line {
    height: 1px;
    background: var(--pf-border, #e2e8f0);
}
.pf-divider-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--pf-text-muted, #94a3b8);
}
.pf-guest-sub-card {
    background: var(--pf-bg-secondary, #f8fafc);
    border: 1px solid var(--pf-border, #e2e8f0);
    border-radius: 14px;
    transition: all 0.2s ease;
}
.pf-alarm-guest-push-btn {
    background: var(--pf-bg-card, #ffffff);
    border: 1.5px solid var(--pf-border, #cbd5e1);
    color: var(--pf-text-primary, #1e293b);
    border-radius: 11px;
    font-size: 12.5px;
    transition: all 0.2s ease;
}
.pf-alarm-guest-push-btn:hover {
    background: var(--pf-bg-hover, #f1f5f9);
    border-color: var(--pf-accent, #0f4c81);
    color: var(--pf-accent, #0f4c81);
}
.pf-alarm-guest-push-btn.pf-guest-btn-active {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #059669 !important;
}

[data-theme="dark"] .pf-guest-main-card {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 58, 138, 0.22) 100%);
    border-color: rgba(96, 165, 250, 0.35);
}
[data-theme="dark"] .pf-guest-main-icon {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}
[data-theme="dark"] .pf-divider-line {
    background: var(--pf-border, #2a2e3f);
}
[data-theme="dark"] .pf-guest-sub-card {
    background: var(--pf-bg-input, #161825);
    border-color: var(--pf-border, #2a2e3f);
}
[data-theme="dark"] .pf-alarm-guest-push-btn {
    background: var(--pf-bg-primary, #0f1117);
    border-color: var(--pf-border, #2a2e3f);
    color: var(--pf-text-primary, #f8fafc);
}
[data-theme="dark"] .pf-alarm-guest-push-btn:hover {
    background: var(--pf-bg-hover, #252940);
    border-color: var(--pf-accent, #3b82f6);
    color: #ffffff;
}
[data-theme="dark"] .pf-alarm-guest-push-btn.pf-guest-btn-active {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
}


