/* =========================================================
   Jeebna - Ürün Detay sayfası özel stilleri (jeebna-detail.css)
   Tasarım referansı: Jeebna Marketplace (DETAIL bölümü)
   Token kaynağı: jeebna-theme.css (--accent, --bg, --ink, --line ...)
   Bu dosya yalnızca sunum içindir; PHP mantığı/JS dokunulmadı.
   Sınıf öneki: .jeebna-pd-*
   ========================================================= */

.jeebna-pd-page {
    --pd-accent: var(--accent, #E2611C);
    --pd-bg: var(--bg, #FAF8F5);
    --pd-ink: var(--ink, #1F1B17);
    --pd-muted: var(--muted, #6E665D);
    --pd-muted-2: var(--muted-2, #8C8178);
    --pd-muted-3: var(--muted-3, #A89E93);
    --pd-line: var(--line, #EDE8E2);
    --pd-line-2: var(--line-2, #E2DBD2);
    --pd-radius: var(--radius, 14px);

    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    color: var(--pd-ink);
    font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
}

.jeebna-pd-page *,
.jeebna-pd-page *::before,
.jeebna-pd-page *::after {
    box-sizing: border-box;
}

/* ---------- Breadcrumb ---------- */
.jeebna-pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--pd-muted-2);
}

.jeebna-pd-breadcrumb a {
    color: var(--pd-muted-2);
    text-decoration: none;
    transition: color .15s ease;
}

.jeebna-pd-breadcrumb a:hover {
    color: var(--pd-accent);
}

.jeebna-pd-breadcrumb .jeebna-pd-crumb-current {
    color: var(--pd-ink);
    font-weight: 600;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jeebna-pd-breadcrumb .jeebna-pd-sep {
    color: var(--pd-line-2);
}

/* ---------- Genel ızgara ---------- */
.jeebna-pd-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Grid öğeleri içeriklerinin (özellikle görselin) gerçek genişliğine
   şişmesin; min-width:auto taşmasını engelle. Bu olmadan mobilde tek
   sütuna inse bile galeri görseli viewport'u aşıp devleşiyor. */
.jeebna-pd-main > * { min-width: 0; }

/* ---------- Galeri ---------- */
.jeebna-pd-gallery {
    position: sticky;
    top: 148px;
}

.jeebna-pd-main-image {
    aspect-ratio: 1 / 1;
    background:
        repeating-linear-gradient(135deg, #F1ECE6 0 16px, #F7F3EE 16px 32px),
        #fff;
    border: 1px solid var(--pd-line);
    border-radius: calc(var(--pd-radius) + 4px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jeebna-pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jeebna-pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.jeebna-pd-thumbs .jeebna-pd-thumb {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--pd-line);
    background: #fff;
    object-fit: cover;
    cursor: pointer;
    padding: 0;
    transition: border-color .15s ease, transform .15s ease;
}

.jeebna-pd-thumbs .jeebna-pd-thumb:hover {
    border-color: var(--pd-line-2);
    transform: translateY(-2px);
}

.jeebna-pd-thumbs .jeebna-pd-thumb.active {
    border: 2px solid var(--pd-accent);
}

/* ---------- Bilgi paneli ---------- */
.jeebna-pd-brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pd-accent);
    text-decoration: none;
    display: inline-block;
}

.jeebna-pd-brand:hover {
    filter: brightness(.92);
}

.jeebna-pd-title {
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 10px 0 12px;
    color: var(--pd-ink);
}

.jeebna-pd-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.jeebna-pd-rating-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-ink);
}

.jeebna-pd-rating-score .jeebna-pd-star {
    color: var(--pd-accent);
}

.jeebna-pd-rating-divider {
    color: var(--pd-line-2);
}

.jeebna-pd-reviews-count {
    font-size: 13.5px;
    color: var(--pd-muted-2);
}

.jeebna-pd-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pd-muted);
    font-weight: 500;
}

.jeebna-pd-secure i {
    color: #1F9D55;
}

/* ---------- Fiyat ---------- */
.jeebna-pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.jeebna-pd-price {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--pd-ink);
}

.jeebna-pd-price .jeebna-pd-cur {
    font-size: 20px;
    font-weight: 700;
}

.jeebna-pd-old-price {
    font-size: 17px;
    color: #B0A69B;
    text-decoration: line-through;
}

.jeebna-pd-discount {
    background: color-mix(in srgb, var(--pd-accent) 12%, #fff);
    color: var(--pd-accent);
    font-size: 13px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.jeebna-pd-tax-line {
    font-size: 13.5px;
    color: var(--pd-muted-2);
    margin: 0 0 26px;
}

/* ---------- Renk / Beden (varyant varsa) ---------- */
.jeebna-pd-option-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--pd-ink);
    margin-bottom: 11px;
}

.jeebna-pd-colors {
    display: flex;
    gap: 11px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.jeebna-pd-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid var(--pd-line-2);
    cursor: pointer;
    padding: 0;
    outline-offset: 3px;
}

.jeebna-pd-color-swatch.active {
    outline: 2px solid var(--pd-accent);
}

.jeebna-pd-sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.jeebna-pd-size-btn {
    min-width: 48px;
    padding: 12px 16px;
    border: 1px solid var(--pd-line-2);
    border-radius: 12px;
    background: #fff;
    color: var(--pd-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease;
}

.jeebna-pd-size-btn:hover {
    border-color: var(--pd-ink);
}

.jeebna-pd-size-btn.active {
    border-color: var(--pd-accent);
    background: color-mix(in srgb, var(--pd-accent) 8%, #fff);
    color: var(--pd-accent);
}

/* ---------- Satın alma satırı ---------- */
.jeebna-pd-buy-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.jeebna-pd-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--pd-line-2);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.jeebna-pd-qty .jeebna-pd-qty-btn {
    width: 48px;
    height: 54px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--pd-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jeebna-pd-qty .jeebna-pd-qty-btn:hover {
    color: var(--pd-accent);
}

.jeebna-pd-qty .jeebna-pd-qty-input {
    width: 52px;
    min-width: 42px;
    height: 54px;
    border: none;
    outline: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--pd-ink);
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.jeebna-pd-qty .jeebna-pd-qty-input::-webkit-outer-spin-button,
.jeebna-pd-qty .jeebna-pd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.jeebna-pd-add-cart {
    flex: 1;
    min-width: 180px;
    height: 56px;
    background: var(--pd-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter .15s ease, transform .15s ease;
}

.jeebna-pd-add-cart:hover {
    filter: brightness(.93);
    transform: translateY(-1px);
    color: #fff;
}

.jeebna-pd-fav {
    width: 54px;
    height: 54px;
    border: 1px solid var(--pd-line-2);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--pd-ink);
    transition: border-color .15s ease, color .15s ease;
}

.jeebna-pd-fav:hover {
    border-color: var(--pd-ink);
}

.jeebna-pd-fav .fa-heart.text-danger {
    color: var(--pd-accent) !important;
}

.jeebna-pd-fav.is-loading {
    opacity: .6;
    pointer-events: none;
}

/* "Sepete eklendi" bilgi kutusu (statik bilgi/güvence) */
.jeebna-pd-added-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--pd-accent) 10%, #fff);
    color: var(--pd-accent);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* ---------- Kargo / İade / Güvenli satırlar ---------- */
.jeebna-pd-assure {
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    padding: 4px 18px;
    margin-top: 14px;
    background: #fff;
}

.jeebna-pd-assure-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--pd-line);
}

.jeebna-pd-assure-row:last-child {
    border-bottom: none;
}

.jeebna-pd-assure-row .jeebna-pd-assure-ico {
    color: var(--pd-accent);
    width: 24px;
    text-align: center;
    font-size: 18px;
    flex-shrink: 0;
}

.jeebna-pd-assure-row strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--pd-ink);
}

.jeebna-pd-assure-row span {
    display: block;
    font-size: 12.5px;
    color: var(--pd-muted-2);
    margin-top: 2px;
}

/* ---------- Satıcı kutusu ---------- */
.jeebna-pd-seller {
    margin-top: 18px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: #fff;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.jeebna-pd-seller-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--pd-line);
    flex-shrink: 0;
}

.jeebna-pd-seller-info {
    flex: 1;
    min-width: 0;
}

.jeebna-pd-seller-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pd-muted-3);
}

.jeebna-pd-seller-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--pd-ink);
    text-decoration: none;
}

.jeebna-pd-seller-name:hover {
    color: var(--pd-accent);
}

.jeebna-pd-seller-name i {
    color: var(--pd-accent);
    font-size: 14px;
}

.jeebna-pd-seller-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: 13px;
    color: var(--pd-muted-2);
}

.jeebna-pd-seller-score .jeebna-pd-star {
    color: var(--pd-accent);
}

.jeebna-pd-seller-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.jeebna-pd-seller-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--pd-line-2);
    background: #fff;
    color: var(--pd-ink);
    text-decoration: none;
    transition: border-color .15s ease, filter .15s ease;
}

.jeebna-pd-seller-btn:hover {
    border-color: var(--pd-ink);
    color: var(--pd-ink);
}

.jeebna-pd-seller-btn.jeebna-pd-seller-btn-dark {
    background: var(--pd-ink);
    border-color: var(--pd-ink);
    color: #fff;
}

.jeebna-pd-seller-btn.jeebna-pd-seller-btn-dark:hover {
    filter: brightness(1.15);
    color: #fff;
}

/* ---------- Alt içerik (tablar / benzer) sarmalayıcı uyumu ---------- */
.jeebna-pd-section {
    margin-top: 34px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .jeebna-pd-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .jeebna-pd-gallery {
        position: static;
        top: auto;
        /* Tek sütuna inince kare görsel tüm ekranı kaplamasın:
           genişliği viewport yüksekliğine göre sınırla ve ortala. */
        max-width: min(100%, 62vh);
        margin-inline: auto;
    }

    /* Küçük resim şeridi: tüm mobil/tablet boyutlarında kompakt yatay kaydırma.
       (Masaüstündeki 4 büyük kare mobilde/foldable'da/yatayda devleşmesin.) */
    .jeebna-pd-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .jeebna-pd-thumbs .jeebna-pd-thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        aspect-ratio: 1 / 1;
    }

    .jeebna-pd-title {
        font-size: 25px;
    }

    .jeebna-pd-price {
        font-size: 28px;
    }
}

/* Mobil sabit alt "Sepete Ekle" barı — .jeebna-pd-buy-row form içinde kalır */
@media (max-width: 767.98px) {
    .jeebna-pd-page {
        padding-bottom: 84px;
    }

    .jeebna-pd-buy-row {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--pd-line);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
    }

    .jeebna-pd-buy-row .jeebna-pd-qty {
        flex: 0 0 auto;
    }

    .jeebna-pd-buy-row .jeebna-pd-add-cart {
        flex: 1 1 auto;
    }

    .jeebna-pd-buy-row .jeebna-pd-fav {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .jeebna-pd-page {
        padding: 18px 14px 84px;
    }

    /* Galeri sticky kapat + telefonda kare görseli küçült (hem genişlik hem
       yükseklik sınırı) ve ortala — tüm ekranı kaplayan dev kare olmasın. */
    .jeebna-pd-gallery {
        position: static;
        top: auto;
        max-width: min(86vw, 46vh);
        margin-inline: auto;
    }

    /* Galeri thumb şeridi — yatay flex scroll */
    .jeebna-pd-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .jeebna-pd-thumbs > * {
        flex: 0 0 64px;
    }

    /* Başlık / fiyat tipografi */
    .jeebna-pd-title {
        font-size: 20px;
    }

    .jeebna-pd-price {
        font-size: 24px;
    }

    .jeebna-pd-price .jeebna-pd-cur {
        font-size: 16px;
    }

    /* Breadcrumb güncel öğe daralt */
    .jeebna-pd-breadcrumb .jeebna-pd-crumb-current {
        max-width: 70vw;
    }

    /* Özellik tablosu tek sütun */
    .jeebna-pd-page .spec-row {
        grid-template-columns: 1fr;
    }

    /* Sekmeler — yatay scroll, taşmasız */
    .jeebna-pd-page .product-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .jeebna-pd-page .product-tabs .nav-link {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .jeebna-pd-seller {
        flex-direction: column;
        align-items: flex-start;
    }

    .jeebna-pd-seller-actions {
        width: 100%;
    }

    .jeebna-pd-seller-btn {
        flex: 1;
        justify-content: center;
    }
}

/* =========================================================
   ALT İÇERİK BÖLÜMLERİ — Jeebna Marketplace tasarım dili
   (açıklama/özellik/yorum sekmeleri · benzer ürünler · satıcı chat)
   Eski parlak/gradyan tasarımın yerini sıcak-minimal accent alır.
   Bu sınıflar yalnızca sunum; JS kancaları (id/data-attr) değişmez.
   ========================================================= */

.jeebna-pd-page .product-content-card,
.jeebna-pd-page .similar-section {
    position: relative;
    margin-top: 34px;
    padding: clamp(18px, 2vw, 28px);
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: calc(var(--pd-radius) + 4px);
    box-shadow: none;
    overflow: hidden;
}

.jeebna-pd-page .product-content-card::before,
.jeebna-pd-page .similar-section::before {
    content: none !important;
}

/* ---- Bölüm başlığı ---- */
.jeebna-pd-page .content-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.jeebna-pd-page .section-kicker {
    color: var(--pd-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jeebna-pd-page .section-title {
    margin: 6px 0 0;
    color: var(--pd-ink);
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    letter-spacing: -.02em;
}

.jeebna-pd-page .soft-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pd-accent) 10%, #fff);
    color: var(--pd-accent);
    border: 1px solid color-mix(in srgb, var(--pd-accent) 18%, #fff);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

/* ---- Sekmeler ---- */
.jeebna-pd-page .product-tabs {
    gap: 6px;
    border: 1px solid var(--pd-line);
    padding: 6px;
    border-radius: 999px;
    background: var(--pd-bg);
    display: inline-flex;
    flex-wrap: wrap;
}

.jeebna-pd-page .product-tabs .nav-item {
    margin: 0;
}

.jeebna-pd-page .product-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    color: var(--pd-muted);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 16px;
    background: transparent;
    transition: color .15s ease, background .15s ease;
}

.jeebna-pd-page .product-tabs .nav-link:hover {
    color: var(--pd-accent);
}

.jeebna-pd-page .product-tabs .nav-link.active {
    color: #fff;
    background: var(--pd-accent);
    box-shadow: none;
}

/* ---- Sekme yüzeyi ---- */
.jeebna-pd-page .tab-surface {
    min-height: 220px;
    margin-top: 16px;
    padding: clamp(18px, 2vw, 26px);
    border-radius: var(--pd-radius);
    background: #fff;
    border: 1px solid var(--pd-line);
}

.jeebna-pd-page .description-text {
    color: var(--pd-muted);
    font-size: 1rem;
    line-height: 1.85;
}

/* ---- Özellik tablosu ---- */
.jeebna-pd-page .spec-table {
    overflow: hidden;
    border-radius: var(--pd-radius);
    border: 1px solid var(--pd-line);
}

.jeebna-pd-page .spec-row {
    display: grid;
    grid-template-columns: minmax(150px, 30%) 1fr;
    border-bottom: 1px solid var(--pd-line);
}

.jeebna-pd-page .spec-row:last-child {
    border-bottom: 0;
}

.jeebna-pd-page .spec-name,
.jeebna-pd-page .spec-value {
    padding: 15px 18px;
    font-size: .93rem;
}

.jeebna-pd-page .spec-name {
    color: var(--pd-ink);
    font-weight: 700;
    background: var(--pd-bg);
}

.jeebna-pd-page .spec-value {
    color: var(--pd-muted);
    font-weight: 500;
    background: #fff;
}

/* ---- Boş durum ---- */
.jeebna-pd-page .empty-state {
    display: grid;
    place-items: center;
    min-height: 200px;
    text-align: center;
    color: var(--pd-muted-2);
}

.jeebna-pd-page .empty-state i {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: var(--pd-bg);
    color: var(--pd-muted-3);
    font-size: 1.6rem;
}

/* ---- Yorum kartı ---- */
.jeebna-pd-page .review-card {
    padding: 18px;
    border-radius: var(--pd-radius);
    background: #fff;
    border: 1px solid var(--pd-line);
    box-shadow: none;
}

.jeebna-pd-page .review-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.jeebna-pd-page .review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jeebna-pd-page .review-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: var(--pd-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.jeebna-pd-page #reviews .text-warning {
    color: var(--pd-accent) !important;
}

/* ---- Benzer ürünler ---- */
.jeebna-pd-page .similar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.jeebna-pd-page .similar-grid-item {
    min-width: 0;
}

.jeebna-pd-page .product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: #fff;
    box-shadow: none;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.jeebna-pd-page .product-card:hover {
    transform: translateY(-3px);
    border-color: var(--pd-line-2);
    box-shadow: 0 14px 32px rgba(31, 27, 23, .10);
}

.jeebna-pd-page .product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background:
        repeating-linear-gradient(135deg, #F1ECE6 0 13px, #F7F3EE 13px 26px),
        var(--pd-bg);
    border-radius: 0;
}

.jeebna-pd-page .product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.jeebna-pd-page .product-card:hover .product-img-wrapper img {
    transform: scale(1.04);
}

.jeebna-pd-page .product-img-wrapper .badge {
    background: var(--pd-accent) !important;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.jeebna-pd-page .card-action-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(--pd-ink);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(31, 27, 23, .10);
    transition: background .15s ease, color .15s ease;
}

.jeebna-pd-page .card-action-btn:hover {
    color: #fff;
    background: var(--pd-accent);
}

.jeebna-pd-page .card-action-btn .fa-heart.text-danger {
    color: var(--pd-accent) !important;
}

.jeebna-pd-page .card-action-btn:hover .fa-heart.text-danger {
    color: #fff !important;
}

.jeebna-pd-page .fav-btn-card {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
}

.jeebna-pd-page .quick-add-cart {
    position: absolute;
    inset-inline: 12px;
    bottom: -58px;
    z-index: 3;
    opacity: 0;
    transition: bottom .25s ease, opacity .25s ease;
}

.jeebna-pd-page .product-card:hover .quick-add-cart {
    bottom: 12px;
    opacity: 1;
}

.jeebna-pd-page .quick-add-cart .btn {
    border: 0;
    border-radius: 999px;
    background: var(--pd-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 10px 22px rgba(226, 97, 28, .22);
}

.jeebna-pd-page .quick-add-cart .btn:hover {
    filter: brightness(.93);
    color: #fff;
}

.jeebna-pd-page .product-card .card-body {
    padding: 14px;
}

.jeebna-pd-page .product-card .card-title {
    color: var(--pd-ink);
    font-weight: 600;
    line-height: 1.35;
}

.jeebna-pd-page .product-card .card-body > .small.fw-black {
    color: var(--pd-accent) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.jeebna-pd-page .product-card .fw-black.text-dark {
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700 !important;
    color: var(--pd-ink) !important;
    letter-spacing: -.01em;
}

.jeebna-pd-page .product-card del.text-muted {
    color: #B0A69B !important;
}

.jeebna-pd-page .text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1399.98px) {
    .jeebna-pd-page .similar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .jeebna-pd-page .similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .jeebna-pd-page .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .jeebna-pd-page .quick-add-cart {
        position: static;
        opacity: 1;
        padding-top: 10px;
    }
}

@media (max-width: 420px) {
    .jeebna-pd-page .similar-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SATICI CHAT WIDGET — accent / sıcak-minimal
   id/data hooks (#floatingChat, .fc-*) korunur, sadece görünüm.
   ========================================================= */
#floatingChat.fc-widget {
    position: fixed;
    bottom: 22px;
    z-index: 9999;
    width: 380px;
    height: 580px;
    max-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line, #EDE8E2);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(31, 27, 23, .18);
    transform: translateY(120%) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.25, .8, .25, 1), opacity .3s ease;
    font-family: 'Manrope', system-ui, sans-serif;
}

#floatingChat.fc-widget.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

html[dir="ltr"] #floatingChat.fc-widget { right: 22px; }
html[dir="rtl"] #floatingChat.fc-widget { left: 22px; }

#floatingChat .fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--line, #EDE8E2);
    background: var(--bg, #FAF8F5);
}

#floatingChat .fc-pinned {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line, #EDE8E2);
    background: #fff;
}

#floatingChat .fc-pinned img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line, #EDE8E2);
}

#floatingChat .fc-pinned-info h6 {
    margin: 0;
    color: var(--ink, #1F1B17);
    font-size: .87rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#floatingChat .fc-pinned-info span {
    color: var(--accent, #E2611C);
    font-size: .82rem;
    font-weight: 700;
}

#floatingChat .fc-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg, #FAF8F5);
    scrollbar-width: thin;
}

#floatingChat .fc-msg {
    display: flex;
    margin-bottom: 14px;
    animation: fc-fadeIn .3s ease forwards;
}

@keyframes fc-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#floatingChat .fc-seller-avatar {
    align-self: flex-end;
    width: 30px;
    height: 30px;
    margin: 0 8px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line, #EDE8E2);
}

#floatingChat .fc-bubble {
    max-width: 80%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.45;
    word-wrap: break-word;
    box-shadow: 0 6px 16px rgba(31, 27, 23, .05);
}

#floatingChat .fc-msg.seller { justify-content: flex-start; }
#floatingChat .fc-msg.user { justify-content: flex-end; }

html[dir="ltr"] #floatingChat .fc-msg.seller .fc-bubble { background: #fff; color: var(--ink, #1F1B17); border-radius: 16px 16px 16px 5px; border: 1px solid var(--line, #EDE8E2); }
html[dir="rtl"] #floatingChat .fc-msg.seller .fc-bubble { background: #fff; color: var(--ink, #1F1B17); border-radius: 16px 16px 5px 16px; border: 1px solid var(--line, #EDE8E2); }
html[dir="ltr"] #floatingChat .fc-msg.user .fc-bubble { color: #fff; background: var(--accent, #E2611C); border-radius: 16px 16px 5px 16px; }
html[dir="rtl"] #floatingChat .fc-msg.user .fc-bubble { color: #fff; background: var(--accent, #E2611C); border-radius: 16px 16px 16px 5px; }

#floatingChat .fc-time {
    display: block;
    margin-top: 5px;
    font-size: .66rem;
    opacity: .72;
    text-align: right;
}

#floatingChat .fc-footer {
    padding: 14px;
    border-top: 1px solid var(--line, #EDE8E2);
    background: #fff;
}

#floatingChat .fc-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--bg, #FAF8F5);
    border: 1px solid var(--line, #EDE8E2);
}

#floatingChat .fc-input {
    width: 100%;
    max-height: 90px;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    padding: 9px 14px;
    font-size: .9rem;
    color: var(--ink, #1F1B17);
}

#floatingChat .fc-btn-send {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--accent, #E2611C);
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
    box-shadow: 0 10px 22px rgba(226, 97, 28, .22);
}

#floatingChat .fc-btn-send:hover {
    transform: translateY(-1px);
    filter: brightness(.95);
}

#floatingChat .btn-primary {
    background: var(--accent, #E2611C);
    border-color: var(--accent, #E2611C);
}

#floatingChat .btn-primary:hover {
    filter: brightness(.93);
}

@media (max-width: 767.98px) {
    #floatingChat.fc-widget {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
    }
}
