/* ===== Yenisparis Front - Profesyonel Yaprak Site Tema ===== */
.yp-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.yp-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    /* İçerik kısa olsa bile footer en alta insin (footer altında beyaz boşluk kalmasın) */
    display: flex;
    flex-direction: column;
}

/* ----- Story şeridi: mobilde 5 yuvarlak yan yana ----- */
.yp-story-strip {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.6rem 0;
    overflow-x: auto;
    border-bottom: 1px solid #e2e8f0;
    -webkit-overflow-scrolling: touch;
}

.yp-story-inner {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.75rem;
    justify-content: flex-start;
    min-width: min-content;
}

.yp-story-item {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--tema-ana, #e85d04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yp-story-item:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 576px) {
    .yp-story-item { width: 72px; height: 72px; }
    .yp-story-inner { gap: 0.6rem; padding: 0 1rem; }
}

@media (min-width: 768px) {
    .yp-story-item { width: 80px; height: 80px; }
}

.yp-story-img-wrap {
    display: block;
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

.yp-story-img-wrap img,
.yp-story-img-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- Tema görselleri: sayfayı kaplayarak alt alta (siparistek gibi) ----- */
.yp-tema-block {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
    cursor: pointer;
}

.yp-tema-block-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    cursor: pointer;
}

/* ----- Header sipariş butonu (tema rengi adminden) ----- */
.yp-siparis-btn-header {
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.yp-siparis-btn-header:hover {
    transform: translateY(-1px);
    color: #333 !important;
}

/* ----- Promo bar: geri sayım + beyaz kutu (kayan yazılar) + sipariş butonu ----- */
/* Arka plan rengi layout.php'de inline style ile tema ikincil renkten veriliyor */
.yp-promo-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.35rem 0.75rem 0.45rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1020;
}

.yp-geri-sayim-wrap {
    text-align: center;
    margin-bottom: 0.2rem;
}
.yp-geri-sayim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
.yp-geri-sayim-item span { min-width: 2em; display: inline-block; text-align: center; }
.yp-geri-sayim-sep { opacity: 0.9; font-size: 1em; color: #1a1a1a; }
.yp-geri-sayim-labels {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}
.yp-geri-sayim-labels span { flex: 0 0 2.2em; text-align: center; font-size: 0.6rem; font-weight: 600; color: #333; }

/* Beyaz kutu: içinde kayan yazılar + progress bar */
.yp-promo-white-box {
    max-width: 480px;
    margin: 0 auto 0.25rem;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.35rem 0.75rem 0.3rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.yp-promo-white-box .yp-indirim-rotating-wrap {
    height: 1.75rem;
    margin-bottom: 0.25rem;
}
.yp-promo-white-box .yp-indirim-rotating-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease;
}
.yp-promo-white-box .yp-indirim-rotating-item {
    font-size: 0.8rem;
    color: #111827;
    text-align: center;
    line-height: 1.3;
    padding: 0.15rem 0.3rem;
    height: 1.75rem;
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yp-promo-white-box .yp-live-progress {
    margin-top: 0;
    margin-bottom: 0;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    height: 6px;
}
.yp-promo-white-box .yp-live-progress-bar {
    width: 70%;
    height: 100%;
    background-image: repeating-linear-gradient(
        -45deg,
        #fb923c 0,
        #fb923c 6px,
        #f97316 6px,
        #f97316 12px
    );
    background-size: 24px 24px;
    animation: yp-live-progress-move 1.2s linear infinite;
    border-radius: 999px;
}
@keyframes yp-live-progress-move {
    from { background-position: 0 0; }
    to { background-position: 24px 0; }
}

.yp-promo-siparis-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    animation: yp-indirimli-btn-pulse 1.2s ease-in-out infinite;
    transform-origin: center;
}
.yp-promo-siparis-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Sabit bar için rezerv alanı footer'ın içine al:
   Böylece sayfa sonunda "beyaz boşluk" görünmez; footer rengi devam eder. */
.yp-body .yp-wrap { padding-bottom: 0; }
.yp-footer {
    margin-top: auto;
}
/* Footer ile sabit promo bar arasında görünen alanı tema rengiyle doldur (beyaz boşluk görünmesin) */
.yp-footer-spacer {
    /* Ölçüm gecikirse fallback daha büyük olsun; iOS safe-area dahil boşluk kalmasın */
    height: max(200px, var(--yp-promo-bar-h, 200px));
    background: var(--tema-ana, #e85d04);
}

.cursor-pointer { cursor: pointer; }
.yp-yorum-kart .card { transition: transform 0.15s ease, box-shadow 0.2s ease; }
.yp-yorum-kart:hover .card { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

#yp-urun-modal-indirimli-tikla {
    background: var(--tema-siparis-buton-bg, #1e293b);
    color: #fff;
    animation: yp-indirimli-btn-pulse 1.2s ease-in-out infinite;
    transform-origin: center;
}
#yp-urun-modal-indirimli-tikla:hover { filter: brightness(1.1); color: #fff; }
@keyframes yp-indirimli-btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* ----- Story izleme (Instagram tarzı) ----- */
#yp-story-modal .modal-content {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Sabit: mobil ve PC'de süre çizgisi + çarpı her zaman ekranın üstünde */
.yp-story-viewer-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem 0.5rem 0.75rem;
    padding-top: max(0.75rem, calc(env(safe-area-inset-top) + 0.25rem));
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.yp-story-viewer-header > * {
    pointer-events: auto;
}

.yp-story-progress-wrap {
    flex: 1;
    display: flex;
    gap: 4px;
    min-height: 4px;
}

.yp-story-progress-wrap .yp-story-progress {
    flex: 1;
    height: 3px;
    min-height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.yp-story-progress-wrap .yp-story-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.yp-story-progress-wrap .yp-story-progress.active span {
    animation: yp-story-progress 5s linear forwards;
}

.yp-story-progress-wrap .yp-story-progress.done span {
    width: 100%;
}

.yp-story-progress-wrap.yp-story-paused .yp-story-progress.active span {
    animation-play-state: paused;
}

@keyframes yp-story-progress {
    from { width: 0; }
    to { width: 100%; }
}

.yp-story-close {
    flex-shrink: 0;
    opacity: 0.9;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
}

.yp-story-viewer-body {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    touch-action: manipulation;
}

/* Sesi aç: çarpının solunda, üst çubukta – video varken görünür */
.yp-story-unmute-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffcc00;
    border: 2px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 2;
}
.yp-story-unmute-btn:hover {
    background: #ffdd33;
    color: #1a1a1a;
    border-color: #fff;
}
.yp-story-unmute-btn-hidden {
    display: none !important;
}

.yp-story-media {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.yp-story-viewer-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    z-index: 10;
}

/* Mobil: story progress çizgileri ve kapatma butonu daha belirgin */
@media (max-width: 575.98px) {
    .yp-story-progress-wrap .yp-story-progress {
        height: 4px;
        min-height: 4px;
    }
    .yp-story-close {
        min-width: 48px;
        min-height: 48px;
    }
    .yp-story-unmute-btn:not(.yp-story-unmute-btn-hidden) {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        min-height: 44px;
    }
}

#yp-story-modal .modal-dialog { max-width: 100%; }
#yp-story-modal .modal-content { min-height: 100vh; min-height: 100dvh; }

/* ----- Header ----- */
.yp-header {
    background: linear-gradient(135deg, var(--tema-ikincil) 0%, #1e3a5f 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.yp-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* ----- Butonlar - Profesyonel ----- */
.yp-body .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.01em;
}

.yp-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.yp-body .btn:active {
    transform: translateY(0);
}

.yp-header .btn-outline-light {
    border-width: 2px;
    color: #fff;
}

.yp-header .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

.yp-header .btn-light {
    background: #fff;
    color: var(--tema-ikincil);
    border: none;
    font-weight: 600;
}

.yp-header .btn-light:hover {
    background: #f1f5f9;
    color: var(--tema-ikincil);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* ----- Ürünler bölümü ----- */
.yp-page-title {
    color: var(--tema-ikincil);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.75rem;
}

.yp-product-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.yp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.yp-product-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yp-product-card:hover .yp-product-img {
    transform: scale(1.03);
}

.yp-product-card .card-body {
    padding: 1.25rem;
}

.yp-product-card .card-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.0625rem;
}

.yp-product-card .btn-primary {
    background: linear-gradient(180deg, var(--tema-ana), #c2410c);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
}

.yp-product-card .btn-primary:hover {
    background: linear-gradient(180deg, #c2410c, #9a3412);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
}

/* ----- Yorumlar ----- */
.yp-yorum-kart {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.yp-yorum-kart:hover {
    transform: translateY(-2px);
}

.yp-yorum-gorsel-wrap {
    position: relative;
    overflow: hidden;
}

.yp-yorum-gorsel-wrap img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.yp-yorum-kart:hover .yp-yorum-gorsel-wrap img {
    transform: scale(1.05);
}

.yp-yorum-ek-gorsel {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 10px;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.yp-yildiz {
    letter-spacing: 2px;
}

.yp-yildiz .bi-star-fill {
    margin-right: 1px;
    color: #f59e0b;
}

.yp-body .btn-success {
    background: linear-gradient(180deg, #10b981, #059669);
    border: none;
    font-weight: 600;
}

.yp-body .btn-success:hover {
    background: linear-gradient(180deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.yp-body .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
}

.yp-body .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.25);
}

/* Footer rengi layout.php'de inline style ile tema ana renkten veriliyor */
.yp-footer {
    color: rgba(255,255,255,0.95);
}
.yp-footer .btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.yp-footer .btn-outline-light:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ----- Modal / Popup ----- */
#yp-siparis-modal .modal-content,
#yp-yorum-ekle-modal .modal-content,
#yp-takip-modal .modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#yp-siparis-modal .modal-header,
#yp-yorum-ekle-modal .modal-header,
#yp-takip-modal .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

#yp-siparis-modal .modal-title,
#yp-yorum-ekle-modal .modal-title,
#yp-takip-modal .modal-title {
    color: var(--tema-ikincil);
    font-weight: 700;
    font-size: 1.125rem;
}

#yp-siparis-modal .modal-body,
#yp-yorum-ekle-modal .modal-body,
#yp-takip-modal .modal-body {
    padding: 1.5rem;
}

/* Popüler paket kurdelesi taşmasın diye (scrollable modal yatayda kırpabiliyor) */
#yp-siparis-modal.modal .modal-dialog-scrollable .modal-body {
    overflow-x: visible;
    overflow-y: auto;
}

#yp-siparis-modal .form-control,
#yp-yorum-ekle-modal .form-control,
#yp-takip-modal .form-control {
    border-radius: 0.5rem;
    border-color: #e2e8f0;
}

#yp-siparis-modal .form-control:focus,
#yp-yorum-ekle-modal .form-control:focus,
#yp-takip-modal .form-control:focus {
    border-color: var(--tema-ana);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.2);
}

#yp-siparis-modal .btn-warning,
#yp-yorum-ekle-modal .btn-warning {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border: none;
    font-weight: 600;
    color: #fff;
}

#yp-siparis-modal .btn-warning:hover,
#yp-yorum-ekle-modal .btn-warning:hover {
    background: linear-gradient(180deg, #d97706, #b45309);
    color: #fff;
}

#yp-siparis-modal .btn-success,
#yp-yorum-ekle-modal .btn-success {
    background: linear-gradient(180deg, #10b981, #059669);
    border: none;
    font-weight: 600;
}
#yp-siparis-modal #yp-siparis-olustur {
    animation: yp-popup-siparis-btn-pulse 1.2s ease-in-out infinite;
    transform-origin: center;
}
@keyframes yp-popup-siparis-btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

#yp-siparis-modal .form-label,
#yp-yorum-ekle-modal .form-label {
    font-weight: 500;
    color: #374151;
}

.yp-adim {
    min-height: 140px;
}

/* Sipariş modalı: sertifika rozetleri */
.yp-modal-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}
.yp-badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* Sipariş modalı: ürün paket kartları – başlık, sadece ürün detay satırları (3 sn döner), alt satırda solda TANESİ butonu, sağda toplam fiyat */
.yp-paket-listesi {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
#yp-siparis-modal #yp-paket-listesi {
    padding-top: 0.5rem;
    padding-right: 1rem;
    overflow: visible;
}
.yp-paket-kart {
    width: 100%;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
}
.yp-paket-kart--secili {
    border-color: var(--tema-ikincil, #1e3a5f);
    box-shadow: 0 0 0 2px var(--tema-ikincil, #1e3a5f);
}
/* Seçili kartta iç beyaz alanlar: çerçeve tonunda hafif toz turuncu */
.yp-paket-kart--secili .yp-paket-kart-row {
    background: linear-gradient(180deg, #fffaf5 0%, #fff4e8 100%);
}
.yp-paket-kart--secili .yp-paket-kart-baslik {
    color: #2a2118;
}
.yp-paket-kart--secili .yp-paket-detay-satir {
    color: #6a4a2f;
}
.yp-paket-kart--secili .yp-paket-kart-fiyat-blok {
    color: #3a2a1a;
}

/* Popüler kart: sadece güçlü yanıp sönme */
@keyframes yp-paket-populer-blink {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(202, 138, 4, 0.52),
            0 10px 26px rgba(245, 158, 11, 0.24),
            0 0 14px rgba(253, 224, 71, 0.28);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(250, 204, 21, 1),
            0 0 0 10px rgba(251, 191, 36, 0.55),
            0 16px 40px rgba(251, 191, 36, 0.55),
            0 0 34px rgba(254, 249, 195, 0.96);
    }
}
.yp-paket-kart--populer {
    overflow: hidden;
    border: solid 3px transparent;
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #fde047 0%, #f59e0b 42%, #fbbf24 72%, #eab308 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 0 0 1px rgba(202, 138, 4, 0.35),
        0 10px 28px rgba(245, 158, 11, 0.2);
    transition: border-color 0.2s;
    will-change: box-shadow;
    outline: none;
    animation: yp-paket-populer-blink 1.55s ease-in-out infinite;
}
.yp-paket-kart--populer.yp-paket-kart--secili {
    box-shadow:
        0 0 0 2px var(--tema-ikincil, #1e3a5f),
        0 0 0 4px rgba(245, 158, 11, 0.35),
        0 10px 28px rgba(245, 158, 11, 0.24);
}
.yp-paket-kart--populer::after {
    content: none;
}
.yp-paket-kart--populer > .yp-paket-kart-row,
.yp-paket-kart--populer > .yp-paket-kart-populer-footer {
    position: relative;
    z-index: 2;
}
/* Premium fold ribbon: sadece sol-alt köşe */
#yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 7rem;
    height: 7rem;
    overflow: hidden;
    z-index: 6;
    pointer-events: none;
    border-radius: 0 0 0 0.7rem;
}
#yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon::before {
    /* Köşede kart altına giren koyu kat */
    content: '';
    position: absolute;
    left: 0.35rem;
    bottom: 0.35rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 1.1rem 1.1rem;
    border-color: transparent transparent rgba(124, 45, 18, 0.9) transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}
#yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon__text {
    position: absolute;
    box-sizing: border-box;
    left: -3.65rem;
    bottom: 0.18rem;
    width: 13.2rem;
    max-width: none;
    padding: 0.34rem 0.72rem 0.32rem;
    margin: 0;
    text-align: center;
    white-space: normal;
    color: #fff !important;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.22;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffddae 0%, #ff9d3a 22%, #f97316 48%, #ea580c 72%, #b45309 100%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 2px;
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transform: rotate(-41deg);
    -webkit-transform: rotate(-41deg);
    transform-origin: center center;
    -webkit-transform-origin: center center;
}
#yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon__text::before,
#yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon__text::after {
    /* Ribbon uçları: kat izi */
    content: '';
    position: absolute;
    bottom: -0.32rem;
    width: 0;
    height: 0;
    border-style: solid;
}
#yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon__text::before {
    left: 0.22rem;
    border-width: 0.32rem 0.32rem 0 0;
    border-color: rgba(124, 45, 18, 0.95) transparent transparent transparent;
}
#yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon__text::after {
    right: 0.22rem;
    border-width: 0.32rem 0 0 0.32rem;
    border-color: transparent transparent transparent rgba(124, 45, 18, 0.95);
}
.yp-paket-kart-populer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.65rem 0.5rem;
    background: linear-gradient(180deg, #ffddae 0%, #fb923c 34%, #ea580c 70%, #b45309 100%);
    border-top: 1px solid rgba(194, 65, 12, 0.45);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: reduce) {
    .yp-paket-kart--populer,
    .yp-paket-kart--populer.yp-paket-kart--secili {
        animation: none;
    }
    .yp-paket-kart--populer::after {
        animation: none;
    }
}
.yp-paket-kart-populer-footer-item {
    display: inline-block;
    white-space: nowrap;
}
.yp-paket-kart-populer-footer-item .bi {
    display: none;
}
.yp-paket-kart-actions .yp-paket-sec--populer {
    background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.55) !important;
}
.yp-paket-kart-actions .yp-paket-sec--populer:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.yp-paket-kart-row {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    /* Sticker ölçüsü: ürün (thumb) boyutunun 1/4'ü */
    --yp-thumb-size: 64px;
    --yp-inline-sticker-size: 20px;
    --yp-sticker-size: calc(var(--yp-thumb-size) / 4);
    --yp-stickers-gap: 0.35rem;
    --yp-stickers-margin-right: 0.35rem;
}
.yp-paket-kart-thumb {
    width: var(--yp-thumb-size);
    height: var(--yp-thumb-size);
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background: #f9fafb;
    align-self: flex-start;
}
.yp-paket-kart-thumb-placeholder {
    background: #e5e7eb;
}
.yp-paket-kart-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}
.yp-paket-kart-title-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Etiket başlığın yanına gelecek; sağ padding'e gerek yok */
    padding-right: 0;
}
.yp-paket-kart-baslik {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
.yp-paket-secildi-badge {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.yp-paket-kart--secili .yp-paket-secildi-badge {
    display: inline-flex;
}
.yp-paket-detay-rotating-wrap {
    margin-top: 0.25rem;
    min-height: 1.5rem;
}
.yp-paket-detay-rotating {
    height: 1.5rem;
    overflow: hidden;
    position: relative;
}
.yp-paket-detay-inner {
    will-change: transform;
}
.yp-paket-detay-satir {
    height: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.3;
    flex-shrink: 0;
}
.yp-paket-kart-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.yp-paket-kart-actions {
    flex-shrink: 0;
}
.yp-paket-kart-actions .btn {
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    white-space: nowrap;
}
.yp-paket-kart-actions .btn-primary { background: #1e3a5f; color: #fff; }
.yp-paket-kart-actions .btn-primary:hover { background: #0f172a; color: #fff; }
.yp-paket-kart-actions .btn-warning.text-white { background: #f97316; color: #fff; }
.yp-paket-kart-actions .btn-warning.text-white:hover { background: #ea580c; color: #fff; }
.yp-paket-kart-actions .btn-danger { background: #dc2626; color: #fff; }
.yp-paket-kart-actions .btn-danger:hover { background: #b91c1c; color: #fff; }
.yp-paket-kart-actions .btn-dark { background: #1e293b; color: #fff; }
.yp-paket-kart-actions .btn-dark:hover { background: #0f172a; color: #fff; }
.yp-paket-kart-fiyat-blok {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
    text-align: right;
}
.yp-paket-kart-stickers {
    display: flex !important;
    flex-direction: row !important; /* 2 etiket yan yana */
    flex-wrap: nowrap !important;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 6px;
    /* Başlık satırında sağa yasla + 6px aşağı kaydır */
    margin-left: auto;
    margin-top: 6px;
    padding: 0;
    flex-shrink: 0;
    pointer-events: none;
}
.yp-paket-kart-sticker {
    /* Kesin ikon boyutu */
    width: var(--yp-inline-sticker-size, 60px) !important;
    height: var(--yp-inline-sticker-size, 60px) !important;
    max-width: var(--yp-inline-sticker-size, 60px) !important;
    max-height: var(--yp-inline-sticker-size, 60px) !important;
    object-fit: contain;
    flex-shrink: 0;
    align-self: flex-end;
    display: block;
    pointer-events: none;
}
.yp-paket-kart-sticker--empty {
    background: transparent;
}
.yp-paket-eski-fiyat {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: line-through;
}
.yp-paket-fiyat {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
}
.yp-paket-kargo {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}
.yp-paket-kargo--free {
    color: #16a34a;
}
@media (max-width: 576px) {
    #yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon {
        width: 5.8rem;
        height: 5.8rem;
    }
    #yp-siparis-modal .yp-paket-kart--populer .yp-paket-ribbon__text {
        left: -3.05rem;
        bottom: 0.16rem;
        width: 11.4rem;
        font-size: 7px;
        letter-spacing: 0.08em;
        line-height: 1.18;
        padding: 0.3rem 0.52rem 0.28rem;
        transform: rotate(-41deg);
        -webkit-transform: rotate(-41deg);
        white-space: normal;
    }
    .yp-paket-kart-populer-footer {
        font-size: 0.58rem;
        padding: 0.4rem 0.5rem;
    }
    .yp-paket-listesi { gap: 0.85rem; }
    .yp-paket-kart-row { padding: 0.6rem 0.7rem; gap: 0.6rem; }
    .yp-paket-kart-row { --yp-thumb-size: 56px; --yp-stickers-gap: 0.2rem; --yp-stickers-margin-right: 0.2rem; }
    .yp-paket-kart-baslik { font-size: 0.95rem; }
    .yp-paket-secildi-badge { font-size: 0.65rem; padding: 0.18rem 0.48rem; }
    .yp-paket-fiyat { font-size: 1.2rem; }
    .yp-paket-detay-satir { font-size: 0.75rem; }
    .yp-paket-kart-actions .btn { font-size: 0.85rem; padding: 0.5rem 0.8rem; }
    /* mobilde de sticker'ı kesin küçült */
    .yp-paket-kart-sticker {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
    .yp-paket-kart-row {
        --yp-inline-sticker-size: 18px;
    }
}

/* Sipariş formundaki üst görsel (popup'u şişirmesin) */
#yp-siparis-formu-gorsel-wrap {
    max-width: 240px;
    margin: 0 auto;
}
#yp-siparis-formu-gorsel {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 110px !important;
    display: block;
    margin: 0 auto;
}

/* ----- Sahte sipariş bildirimi popup (sayfa altında) ----- */
.yp-fake-siparis-popup-wrap {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.yp-fake-siparis-popup-wrap.yp-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.yp-fake-siparis-popup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    max-width: 320px;
}
.yp-fake-siparis-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.yp-fake-siparis-text {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.35;
}
.yp-fake-siparis-kisi { color: #1e293b; }

/* Zarif fake sipariş (yorum/ürün sayfalarında) */
.yp-fake-elegant.yp-fake-siparis-popup-wrap {
    bottom: 24px;
    left: 16px;
    right: 16px;
    transform: translateY(80px);
    max-width: 340px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
}
.yp-fake-elegant.yp-fake-siparis-popup-wrap.yp-show {
    transform: translateX(-50%) translateY(0);
}
.yp-fake-elegant .yp-fake-siparis-popup {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    border: none;
    background: #fff;
}
.yp-fake-elegant .yp-fake-siparis-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.yp-fake-elegant .yp-fake-siparis-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}
.yp-fake-elegant .yp-fake-siparis-kisi { color: #0f172a; font-weight: 600; }
