/* ============================================================
   Block Product Shared — tüm ürün bloklarında ortak kart enriching
   (badge stack + hover action ikonları + sepete ekle butonu)
   Block-specific layout CSS dokunmaz, sadece kart enriching katmanı.
   ============================================================ */

/* --- BADGES (sol üst stack) --- */
.bp-badges {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 5;
    display: flex; flex-direction: column;
    gap: 4px;
    pointer-events: none;
}
.bp-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    white-space: nowrap;
}
.bp-badge-disc  { background: #dc2626; }
.bp-badge-new   { background: #16a34a; }
.bp-badge-camp  { background: #ea580c; }
.bp-badge-flash { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.bp-badge-ship  { background: #2563eb; }
.bp-badge-out   { background: #6b7280; }

/* --- ACTIONS (sağ üst — hover overlay) --- */
.bp-actions {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 6;
    display: flex; flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.bp-action {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 50%;
    color: #1e293b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    padding: 0;
    pointer-events: auto;
}
.bp-action:hover {
    background: var(--tema-primary, #0d9488);
    color: #fff;
    transform: scale(1.08);
}
.bp-action.is-active {
    background: #dc2626;
    color: #fff;
}

/* Block media hover → actions görünür yap */
[class*="-media"]:hover .bp-actions,
[class*="-img"]:hover .bp-actions,
[class*="-slide"]:hover .bp-actions,
[class*="-cell"]:hover .bp-actions,
[class*="-card"]:hover .bp-actions,
.product-card:hover .bp-actions,
article:hover > .bp-actions,
article:hover > [class*="-media"] .bp-actions,
article:hover > a .bp-actions {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile / Touch: her zaman görünür (hover yok) */
@media (hover: none) {
    .bp-actions { opacity: 1; transform: none; }
}

/* --- PRICE WRAPPER (eski/yeni + KDV Dahil) --- */
.bp-price {
    display: flex; flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
.bp-price-now {
    font-weight: 800;
    color: var(--tema-primary, #0d9488);
    font-size: 15px;
}
.bp-price-old {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}
.bp-kdv {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- ADD TO CART (mini buy button) --- */
.bp-buy {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    background: var(--urun-buton-bg, #0f172a);
    color: var(--urun-buton-text, #fff);
    border: 0;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .015em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--urun-buton-bg, #0f172a) 20%, transparent);
}
.bp-buy:hover {
    background: color-mix(in srgb, var(--urun-buton-bg, #0f172a) 88%, #fff);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--urun-buton-bg, #0f172a) 28%, transparent);
}
.bp-buy:active { transform: translateY(0); }
.bp-buy-disabled,
.bp-buy-disabled:hover {
    background: #e5e7eb;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- RATING (yıldız) --- */
.bp-rating {
    display: inline-flex; align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
}
.bp-rating-count {
    color: #94a3b8;
    font-weight: 500;
}

/* Marka rozeti */
.bp-marka {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
