/* =====================================================================
   ÜRÜN KARTI — ortak (2026-11-12)
   Kampanyalar ve Ürünler sayfaları aynı kartı kullanır (static/js/urun_karti.js).
   Daha önce kampanyalar.css içindeydi; buraya taşındı ki iki sayfa hep aynı görünsün.
   Renk değişkenleri tokens.css'ten (navbar her sayfada yükler); eksik olanlar aşağıda.
   ===================================================================== */
.camp-grid, .camp-card {
    --ember: #ff4d3a;
    --crimson: #d61c1c;
    --gold: #ffcd2e;
    --success: #16a34a;
}
        /* ============== KART — REDESIGN ============== */
        .camp-grid {
            display: grid;
            /* En fazla 6 sütun (2026-11-12, kullanıcı isteği: 8 sütunda kartlar küçüktü);
               dar ekranda kart 200px'in altına inmez, sütun sayısı kendiliğinden azalır */
            grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 5 * 14px) / 6)), 1fr));
            gap: 14px;
        }
        @media (max-width: 576px) {
            .camp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
        }

        .camp-card {
            position: relative;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 14px;
            overflow: hidden;
            transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
            display: flex;
            flex-direction: column;
            isolation: isolate;
        }
        .camp-card::before {
            content:'';
            position: absolute; inset: 0;
            border-radius: inherit;
            background: linear-gradient(180deg, rgba(255,77,58,0) 60%, rgba(255,77,58,0.04) 100%);
            opacity: 0;
            transition: opacity .35s ease;
            pointer-events: none;
            z-index: 0;
        }
        .camp-card:hover {
            transform: translateY(-6px);
            box-shadow:
                0 26px 50px -22px rgba(15, 23, 42, 0.25),
                0 12px 22px -16px rgba(214, 28, 28, 0.18);
            border-color: #f4d6d6;
        }
        .camp-card:hover::before { opacity: 1; }

        .camp-link-overlay { position: absolute; inset: 0; z-index: 4; }

        /* TICKET STUB — image area with notches */
        .camp-top {
            position: relative;
            aspect-ratio: 1 / 0.6;
            background:
                radial-gradient(120% 90% at 50% 0%, #fff7f4 0%, #ffffff 60%),
                #fff;
            border-bottom: 1px dashed #f3d7d3;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        /* coupon notches */
        .camp-top::before,
        .camp-top::after {
            content: '';
            position: absolute;
            bottom: -6px;
            width: 12px; height: 12px;
            background: var(--paper);
            border-radius: 50%;
            z-index: 3;
        }
        .camp-top::before { left: -6px; }
        .camp-top::after  { right: -6px; }

        .camp-top img {
            max-height: 80%;
            max-width: 80%;
            object-fit: contain;
            transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .35s ease;
            filter: drop-shadow(0 10px 16px rgba(15, 23, 42, .12));
            position: relative;
            z-index: 1;
        }
        .camp-card:hover .camp-top img { transform: scale(1.07) rotate(-1deg); }

        /* FLASH BADGE - top left */
        .camp-flash {
            position: absolute;
            top: 8px; left: 8px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, #ff4d3a 0%, #d61c1c 100%);
            color: #fff;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.55rem;
            font-weight: 800;
            letter-spacing: 0.8px;
            padding: 3px 7px;
            border-radius: 999px;
            text-transform: uppercase;
            box-shadow: 0 4px 10px -3px rgba(214, 28, 28, .55);
        }
        .camp-flash i { font-size: 0.6rem; }

        /* DISCOUNT STAMP — top right, rotated, looks like ink stamp */
        .camp-stamp {
            position: absolute;
            top: 8px; right: 8px;
            z-index: 2;
            width: 42px; height: 42px;
            background:
                radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18) 0%, transparent 55%),
                linear-gradient(140deg, #111827 0%, #1f2937 100%);
            color: var(--gold);
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transform: rotate(-9deg);
            box-shadow:
                0 6px 14px -6px rgba(0,0,0,0.45),
                inset 0 0 0 1.5px rgba(255, 205, 46, 0.5),
                inset 0 0 0 3px rgba(0,0,0,0.95);
            font-family: 'Plus Jakarta Sans', sans-serif;
            line-height: 1;
            transition: transform .3s cubic-bezier(.2,.8,.2,1);
        }
        .camp-stamp .pct {
            font-weight: 800;
            font-size: 0.85rem;
            letter-spacing: -0.04em;
            margin-top: 2px;
        }
        .camp-stamp .lbl {
            font-size: 0.4rem;
            font-weight: 700;
            letter-spacing: 1.1px;
            color: rgba(255, 205, 46, 0.82);
            margin-bottom: 1px;
            text-transform: uppercase;
        }
        .camp-card:hover .camp-stamp { transform: rotate(-3deg) scale(1.08); }

        .camp-body {
            padding: 9px 11px 11px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            flex: 1 1 auto;
            min-height: 0;
            position: relative;
            z-index: 1;
        }

        .camp-brand {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            align-self: flex-start;
            font-size: 0.52rem;
            font-weight: 700;
            color: var(--navy-800);
            background: #f1eee5;
            border: 1px solid #e3ddca;
            text-transform: uppercase;
            letter-spacing: 0.9px;
            padding: 2px 6px;
            border-radius: 999px;
            line-height: 1.3;
        }
        .camp-brand::before {
            content:''; width: 4px; height: 4px; border-radius: 50%;
            background: var(--orange);
        }

        .camp-name {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--ink);
            line-height: 1.2;
            letter-spacing: -0.01em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            word-break: break-word;
            min-height: 2.1em;
        }

        .camp-quota {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, #fff5e6 0%, #ffe9c7 100%);
            color: #92400e;
            border: 1px solid #f3c97a;
            font-size: 0.6rem;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 6px;
            align-self: flex-start;
            line-height: 1.3;
        }
        .camp-quota i { font-size: 0.68rem; color: #b45309; }

        .camp-price-block {
            margin-top: auto;
            padding-top: 5px;
            border-top: 1px dashed #ece7da;
        }
        .camp-price-row {
            display: flex;
            align-items: baseline;
            gap: 6px;
            flex-wrap: wrap;
        }
        .camp-price-old {
            color: #9aa0a6;
            text-decoration: line-through;
            text-decoration-thickness: 1.5px;
            font-size: 0.7rem;
            font-weight: 500;
        }
        .camp-price-new {
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: var(--crimson);
            font-weight: 800;
            font-size: 1.05rem;
            line-height: 1;
            letter-spacing: -0.025em;
        }
        .camp-saving {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 4px;
            background: rgba(22, 163, 74, 0.1);
            color: var(--success);
            font-size: 0.62rem;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 5px;
            line-height: 1.3;
        }
        .camp-saving i { font-size: 0.68rem; }

        /* HOVER CTA — slides up from bottom of card */
        .camp-cta {
            position: absolute;
            left: 14px; right: 14px; bottom: 14px;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 12px;
            background: var(--ink);
            color: #fff !important;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 0.8rem;
            letter-spacing: 0.3px;
            border-radius: 12px;
            text-decoration: none;
            transform: translateY(calc(100% + 16px));
            opacity: 0;
            transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
            pointer-events: none;
        }
        .camp-cta i { transition: transform .25s ease; }
        .camp-card:hover .camp-cta {
            transform: translateY(0);
            opacity: 1;
        }
        .camp-card:hover .camp-cta i { transform: translateX(3px); }
        @media (hover: none) {
            .camp-cta { display: none; }
        }

        /* LOGIN CTA inline (when not logged in) */
        .camp-login-cta {
            position: relative;
            z-index: 5;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            margin-top: 6px;
            background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
            color: #fff !important;
            text-decoration: none;
            padding: 7px 10px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.2px;
            transition: transform .2s ease, box-shadow .2s ease;
            box-shadow: 0 6px 14px -6px rgba(15, 52, 96, .55);
        }
        .camp-login-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 22px -8px rgba(15, 52, 96, .6);
        }

        /* SEPETE EKLE — kartın altında her zaman görünür (mobilde de) */
        .camp-cart {
            position: relative;
            z-index: 6; /* .camp-link-overlay (z 4) üstünde: tıklamalar detay sayfasına gitmesin */
            padding: 0 11px 11px;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .camp-units { display: flex; gap: 4px; background: var(--paper-2); border-radius: 9px; padding: 3px; }
        .camp-units button {
            flex: 1; white-space: nowrap; border: 0; background: transparent; border-radius: 7px;
            font: 700 0.74rem 'Plus Jakarta Sans', sans-serif; color: var(--muted); padding: 5px 4px; cursor: pointer;
        }
        .camp-units button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
        .camp-unit-single { font: 700 0.74rem 'Plus Jakarta Sans', sans-serif; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .camp-cart-row { display: flex; gap: 6px; align-items: stretch; }
        .camp-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
        .camp-qty button { border: 0; background: transparent; width: 28px; height: 36px; font-size: 1rem; font-weight: 700; color: var(--ink); cursor: pointer; }
        .camp-qty input {
            width: 34px; border: 0; text-align: center; font: 700 0.85rem 'Plus Jakarta Sans', sans-serif; color: var(--ink);
            -moz-appearance: textfield; appearance: textfield;
        }
        .camp-qty input::-webkit-outer-spin-button, .camp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .camp-add {
            flex: 1; min-width: 0; white-space: nowrap; border: 0; border-radius: 9px; background: var(--orange); color: #fff;
            font: 800 0.8rem 'Plus Jakarta Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 5px;
            cursor: pointer; transition: background .2s ease, transform .1s ease; min-height: 36px;
        }
        .camp-add:hover { background: #dd6a0e; }
        .camp-add:active { transform: scale(.97); }
        .camp-add.added { background: var(--success); }
        .camp-add:disabled { background: #c9c4b6; cursor: not-allowed; }
        .camp-cart-hint { font: 600 0.72rem 'Plus Jakarta Sans', sans-serif; color: var(--muted); text-align: center; min-height: 1em; }

@media (max-width: 768px) {
            .camp-cta { display: none; }
            .camp-name { font-size: 0.88rem; min-height: 2.3em; }
            .camp-price-new { font-size: 1.18rem; }
            .camp-stamp { width: 48px; height: 48px; }
            .camp-stamp .pct { font-size: 1rem; }
            .camp-cta { display: none; }
}

/* Yüklenirken iskelet kart */
.skeleton-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    height: 360px;
    position: relative;
    overflow: hidden;
}
.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%);
    animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-60%); }
    100% { transform: translateX(60%); }
}

/* Yöneticiye stok satırı (Ürünler sayfası) */
.camp-stock { font-size: .64rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

/* Ziyaretçi kartında koli bilgisi */
.camp-price-block .koli-ici-bilgi { margin: 0 0 4px; }

/* Stoğu bitmiş ama satışı süren ürün (Job v15): sepete eklenemez, ürünü sattığımızı gösterir */
.camp-tukendi {
    position: relative; z-index: 6;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 6px 8px; border-radius: 9px;
    background: #f3efe7; border: 1px dashed #d8d0bf;
    color: #6b6757; font: 700 0.76rem 'Plus Jakarta Sans', sans-serif; text-align: center;
}
.camp-tukendi i { color: #b45309; }
.camp-price-block .camp-tukendi { margin-top: 6px; }
/* Fiyat kartın ortasında (2026-11-12, kullanıcı isteği) */
.camp-price-block { display: flex; flex-direction: column; align-items: center; text-align: center; }
.camp-price-row { justify-content: center; }
.camp-price-block .koli-ici-bilgi { justify-content: center; }
.camp-price-block .camp-tukendi, .camp-price-block .camp-login-cta { align-self: stretch; }
/* Geçici olarak tükenen ürün: kart soluk, görsel renksiz (2026-11-12, kullanıcı isteği).
   Üzerine gelince biraz canlanır ki ürün detayına girilebileceği belli olsun. */
.camp-card:has(.camp-tukendi) { background: #f6f4f1; box-shadow: none; }
.camp-card:has(.camp-tukendi) .camp-top img { filter: grayscale(1); opacity: .5; transition: filter .25s ease, opacity .25s ease; }
.camp-card:has(.camp-tukendi) .camp-name,
.camp-card:has(.camp-tukendi) .camp-brand,
.camp-card:has(.camp-tukendi) .camp-price-block > :not(.camp-tukendi) { opacity: .55; }
.camp-card:has(.camp-tukendi):hover .camp-top img { filter: grayscale(.4); opacity: .8; }


/* Tazeleme 2026-11-26: kırmızı fiyat sadece kampanya/indirimde; normal fiyat koyu */
.camp-price-new:not(.is-indirim) { color: var(--ink, #0f172a); }
/* Fiyatı olmayan ürün (0 ₺): sepete eklenemez, bilgi kutusu */
.camp-fiyat-yok {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 8px 10px; border-radius: 10px;
    background: var(--paper-2, #efece4); color: var(--muted, #6b6757);
    font-size: .82rem; font-weight: 700; text-align: center;
}

/* ===== Ürün kartı tazeleme (2026-11-26) =====
   Fiyat bloğu 3 sabit satır: [eski fiyat · tasarruf] / [seçili birim fiyatı] / [adet karşılığı].
   Koli varsa koli fiyatı önde; birim değişince blok güncellenir (urun_karti.js fiyatBlokIci). */
.camp-price-block { gap: 2px; }
.camp-price-top {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 18px; line-height: 1.2;
}
.camp-price-top .camp-saving { margin-top: 0; }
.camp-price-row { align-items: baseline; gap: 4px; flex-wrap: nowrap; }
.camp-price-unit { font-size: .7rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.camp-price-sub {
    font: 600 .7rem 'Plus Jakarta Sans', sans-serif; color: var(--muted);
    min-height: 1.3em; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
/* Sepet bölümü her kartta aynı yükseklik → fiyatlar ve "Ekle" düğmeleri satır boyunca hizalı */
.camp-cart { min-height: 88px; justify-content: flex-end; }  /* 32 birim + 7 + 36 düğme + 11 alt boşluk + 2 kenar */
.camp-units, .camp-unit-single { min-height: 32px; }
.camp-unit-single {
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-2); border-radius: 9px; padding: 0 6px;
}
.camp-units button { padding: 6px 4px; }
@media (max-width: 768px) {
    .camp-price-unit { font-size: .74rem; }
    .camp-price-sub { font-size: .72rem; }
    .camp-qty button { width: 28px; height: 40px; }
    .camp-add { min-height: 40px; }
    .camp-cart { min-height: 92px; }
}
/* Satır yükseklikleri sabit: boş (&nbsp;) satırla dolu satır aynı yer kaplasın */
.camp-price-top { height: 20px; min-height: 0; font-size: .7rem; overflow: hidden; }
.camp-price-row { height: 26px; }
.camp-price-sub { height: 16px; min-height: 0; line-height: 16px; }
@media (max-width: 768px) { .camp-price-row { height: 28px; } }
.camp-units, .camp-unit-single { height: 32px; min-height: 0; box-sizing: border-box; }
.camp-units button { padding: 0 4px; }
