/**
 * MP Kampanya & İndirim Motoru - Frontend Tasarım Sistemi
 */

/* =========================================================================
   1. GIDA / MARKET KARTLARI SAĞ ÜST KÖŞE ROZETİ (Stil 1 ve Stil 2)
   ========================================================================= */
.mp-badge-campaign-wrap .mp-badge-kampanya-top-right,
.mp-badge-campaign-wrap-left .mp-badge-kampanya-top-right,
.mp-badges-left .mp-badge-kampanya-top-right,
.mp-badge-kampanya-top-left {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35) !important;
    pointer-events: none !important;
    line-height: 1 !important;
    height: 22px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    width: fit-content !important;
    max-width: 100% !important;
    word-break: keep-all !important;
}

.mp-badge-kampanya-top-left span {
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1 !important;
    word-break: keep-all !important;
}

.mp-badge-kampanya-top-left svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.mp-badge-kampanya-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35) !important;
    pointer-events: none !important;
    line-height: 1 !important;
    height: 22px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: none !important;
    word-break: keep-all !important;
    animation: mpPulseBadge 2.8s infinite ease-in-out !important;
}

.mp-badge-kampanya-top-right span {
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1 !important;
    word-break: keep-all !important;
}

.mp-badge-kampanya-top-right svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

@keyframes mpPulseBadge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
    }
}

/* =========================================================================
   2. MODA / BUTİK KARTLARI ZARİF ROZETİ (Stil 3 Lavilla Moda)
   ========================================================================= */
.mp-badge-kampanya-moda {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0f172a;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
}

.mp-badge-kampanya-moda svg {
    width: 12px;
    height: 12px;
    stroke: #f59e0b;
}

/* =========================================================================
   3. ÜRÜN DETAY SAYFASI KAMPANYA KUTUSU (Hem Gıda Hem Moda İçin)
   ========================================================================= */
.mp-product-promo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 14px 0 18px 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
    position: relative;
    overflow: hidden;
}

.mp-promo-icon-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #f59e0b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
}

.mp-promo-content {
    flex: 1 1 auto;
}

.mp-promo-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.mp-promo-title-badge {
    background: #d97706;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.mp-promo-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #78350f;
}

.mp-promo-desc {
    font-size: 12.5px;
    color: #92400e;
    margin: 0;
    line-height: 1.4;
}

/* =========================================================================
   4. SEPET İLERLEME ÇUBUĞU (Kargo & İndirim Barı)
   ========================================================================= */
.mp-cart-progress-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 14px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mp-cart-progress-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mp-cart-progress-icon {
    font-size: 16px;
    line-height: 1;
}

.mp-cart-progress-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
}

.mp-cart-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.mp-cart-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #026735 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.mp-cart-progress-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mp-cart-progress-success .mp-cart-progress-title {
    color: #166534;
    font-weight: 700;
}

.mp-cart-progress-success .mp-cart-progress-bar-fill {
    background: #16a34a;
}

/* =========================================================================
   5. CREATIVE ELEMENTS / ELEMENTOR WIDGET STİLLERİ
   ========================================================================= */
.mp-ce-kampanya-box {
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.mp-ce-kampanya-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mp-ce-kampanya-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.mp-ce-kampanya-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.mp-ce-kampanya-desc {
    font-size: 14.5px;
    max-width: 580px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.mp-ce-countdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.mp-ce-count-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mp-ce-count-item .mp-count-val {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.mp-ce-count-item .mp-count-lbl {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.mp-ce-count-sep {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
}

.mp-ce-kampanya-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.mp-ce-kampanya-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* =========================================================================
   6. SİTE İLK GİRİŞ KAMPANYA POPUP MODAL (Modern Glassmorphism)
   ========================================================================= */
.mp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mp-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mp-popup-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-popup-overlay.active .mp-popup-card {
    transform: scale(1) translateY(0);
}

.mp-popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.mp-popup-close-btn:hover {
    background: rgba(0, 0, 0, 0.45);
    transform: rotate(90deg);
}

.mp-popup-header-banner {
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%);
    padding: 34px 28px 26px 28px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mp-popup-sparkles {
    font-size: 28px;
    margin-bottom: 6px;
    animation: mpSparkleBounce 2s infinite ease-in-out;
}

@keyframes mpSparkleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.mp-popup-badge span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mp-popup-badge-vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

.mp-popup-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 12px 0 0 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.mp-popup-body {
    padding: 24px 28px 22px 28px;
    text-align: center;
    background: #ffffff;
}

.mp-popup-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mp-popup-member-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
}

.mp-popup-member-alert svg {
    flex-shrink: 0;
    stroke: #b45309;
}

.mp-popup-actions {
    margin-bottom: 14px;
}

.mp-popup-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.25s ease;
}

.mp-popup-action-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.mp-popup-footer-note {
    margin-top: 8px;
}

.mp-popup-dismiss-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
    padding: 4px;
}

.mp-popup-dismiss-link:hover {
    color: #475569;
}


/* =========================================================================
   PROMO BOX TEXT COLORS ENFORCED (DARK CRISP TEXT)
   ========================================================================= */
.mp-product-promo-box,
.mp-product-promo-box .mp-promo-content {
    color: #78350f !important;
}
.mp-product-promo-box .mp-promo-name {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #78350f !important;
}
.mp-product-promo-box .mp-promo-desc,
.mp-product-promo-box p {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #78350f !important;
    margin: 3px 0 0 0 !important;
    line-height: 1.45 !important;
}

/* Ürün detay sayfasında fiyat satırı içine kaçabilecek miniature rozetini gizle */
#product .mp-badge-fallback-wrap,
body#product .mp-badge-fallback-wrap,
.product-detail .mp-badge-fallback-wrap,
.product-prices .mp-badge-fallback-wrap {
    display: none !important;
}

