/* ============================================================
   Ürün yorumları bölümü (public ürün detay) — AJAX ile yüklenir.
   Navy temalı, ekran görüntüsündeki düzene uygun.
   ============================================================ */

.pc-wrap {
    --pc-navy: #0d1b3e;
    --pc-navy2: #1c3a7a;
    --pc-star: #f5b301;
    --pc-line: #e6ebf2;
    --pc-muted: #6b7690;
    color: var(--pc-navy);
    font-size: 15px;
}

/* Yukleniyor iskeleti */
.pc-loading {
    padding: 24px 0;
    color: var(--pc-muted);
    font-size: 14px;
}

/* ---- Başlık + özet bandı ---- */
.pc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.pc-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #111;
}

/* Ortalama puan özeti (büyük sayı + yıldız + sayaç). */
.pc-summary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f6f8fd 0%, #eef2fb 100%);
    border: 1px solid #e0e7f6;
    border-radius: 14px;
}
.pc-summary-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.pc-summary-num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--pc-navy);
}
.pc-summary-max {
    font-size: 14px;
    color: var(--pc-muted);
    font-weight: 600;
}
.pc-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pc-summary-stars { display: inline-flex; gap: 2px; }
.pc-summary-count {
    font-size: 12.5px;
    color: var(--pc-muted);
}

/* Yıldızlar (listeleme/ortalama) */
.pc-star { color: #d7dce6; }
.pc-star.is-on { color: var(--pc-star); }

/* ---- Yorum listesi ---- */
.pc-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}
.pc-item {
    padding: 18px 0;
    border-top: 1px solid var(--pc-line);
}
.pc-item:first-child { border-top: none; }

.pc-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pc-item-stars { display: inline-flex; gap: 2px; }
.pc-item-date {
    color: var(--pc-navy2);
    font-size: 13.5px;
    white-space: nowrap;
}
.pc-item-name {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #2a3550;
}
.pc-item-text {
    margin: 8px 0 0;
    line-height: 1.55;
    color: #3a4560;
}
.pc-item-answer {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f6f8fd;
    border-left: 3px solid var(--pc-navy2);
    border-radius: 6px;
}
.pc-answer-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--pc-navy2);
    margin-bottom: 3px;
}
.pc-item-answer p { margin: 0; color: #3a4560; font-size: 14px; }

/* Boş durum */
.pc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    padding: 28px 20px;
    text-align: center;
    color: var(--pc-muted);
    font-size: 14.5px;
    line-height: 1.5;
    background: #fafbfe;
    border: 1px dashed #d7dce6;
    border-radius: 14px;
}
.pc-empty svg { color: #b7c0d6; }
.pc-empty p { margin: 0; }

/* "Tüm Yorumları Gör" */
.pc-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    background: none;
    border: none;
    border-top: 1px solid var(--pc-line);
    color: var(--pc-navy2);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.pc-more:hover { color: var(--pc-navy); background: #f6f8fd; }
.pc-more[disabled] { opacity: .6; cursor: default; }
.pc-more-count { color: var(--pc-muted); font-weight: 500; }

.pc-divider {
    height: 1px;
    background: var(--pc-line);
    margin: 10px 0 22px;
}

/* ---- Yorum formu ---- */
.pc-form-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #111;
}
.pc-form-sub {
    font-size: 14px;
    color: var(--pc-muted);
    margin: 0 0 16px;
}

/* Puan yildizlari (interaktif) */
.pc-rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.pc-rate-hint {
    margin-left: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pc-navy2);
}
.pc-rate-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--pc-navy2);
    line-height: 0;
    transition: transform .1s ease, color .1s ease;
}
.pc-rate-star:hover { transform: scale(1.08); }
.pc-rate-star.is-active svg {
    fill: var(--pc-star);
    stroke: var(--pc-star);
}

.pc-textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #c7cede;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--pc-navy);
    resize: vertical;
    min-height: 110px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pc-textarea:focus {
    outline: none;
    border-color: var(--pc-navy2);
    box-shadow: 0 0 0 3px rgba(28, 58, 122, 0.15);
}

.pc-form-msg {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.pc-form-msg.is-error { background: #fdecea; color: #a5281b; border: 1px solid #f5c6c0; }
.pc-form-msg.is-success { background: #e8f6ec; color: #1e7a3c; border: 1px solid #bfe3cb; }

.pc-submit {
    margin-top: 16px;
    padding: 13px 26px;
    background: var(--pc-navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.pc-submit:hover { background: var(--pc-navy2); transform: translateY(-1px); }
.pc-submit[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---- Giriş yönlendirme kartı ---- */
.pc-login-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 22px;
    background: linear-gradient(135deg, #f6f8fd 0%, #eef2fb 100%);
    border: 1px solid #e0e7f6;
    border-radius: 16px;
}
.pc-login-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0d1b3e 0%, #1c3a7a 100%);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(13, 27, 62, 0.22);
}
.pc-login-body { flex: 1 1 auto; }
.pc-login-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--pc-navy);
}
.pc-login-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--pc-muted);
    margin: 0 0 12px;
}
.pc-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pc-login-btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--pc-navy);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    transition: background .15s ease, transform .15s ease;
}
.pc-login-btn:hover { background: var(--pc-navy2); transform: translateY(-1px); color: #fff; }
.pc-login-btn.is-ghost {
    background: #fff;
    color: var(--pc-navy);
    border: 1px solid #c7cede;
}
.pc-login-btn.is-ghost:hover { background: #f4f7fd; color: var(--pc-navy); }

/* ============================================================
   İki sütunlu düzen: solda Açıklama (~col-8), sağda Yorumlar (~col-4).
   Mobilde alt alta iner.
   ============================================================ */
.pd-two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
/* İki eşit sütun (~col-6 / col-6). */
.pd-col-main {
    flex: 1 1 0;
    min-width: 0;              /* uzun içerik taşmasını engeller */
}
.pd-col-side {
    flex: 1 1 0;
    min-width: 0;
}

/* Sol/sağ bölüm başlığı (örn. "Ürün Açıklaması"). */
.pd-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef1f8;
}

/* Sağ sütundaki yorumlar kart görünümünde; başlıkların yanında sabit (sticky)
   durması uzun açıklamalarda okumayı kolaylaştırır. */
.pd-col-side .pc-wrap {
    position: sticky;
    top: 90px;
    padding: 22px;
    background: #fff;
    border: 1px solid #eef1f8;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(13, 27, 62, 0.06);
}

/* Sağ sütun yorum başlığı/özet bandı: 50% genişlikte yatay sığar. */
.pd-col-side .pc-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Tablet/altı: tek sütun — yorumlar açıklamanın altına iner. */
@media (max-width: 900px) {
    .pd-two-col { gap: 40px; }
    .pd-col-main,
    .pd-col-side {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .pd-col-side .pc-wrap {
        position: static;       /* mobilde sticky kapat */
    }
    .pd-col-side .pc-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .pd-col-side .pc-title { font-size: 24px; }
}

@media (max-width: 560px) {
    .pc-head { gap: 10px; }
    .pc-login-card { flex-direction: column; align-items: flex-start; }
    .pc-rate-hint { margin-left: 0; display: block; }
    .pd-col-side .pc-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Ürün paylaşımı — tek markalı "Paylaş" butonu + fallback menü.
   ============================================================ */
/* Paylaş + Ürün Dosyalarını İndir aynı satırda, eşit genişlik, aynı yükseklik. */
.product-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}
.product-actions-row .product-share {
    flex: 1 1 0;
    min-width: 0;
}
/* Satır içindeki "Ürün Dosyalarını İndir" hücresi de eşit genişlik. */
.product-actions-row .file-content {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}
/* Dosya indir linki: hücreyi tam doldursun, paylaş ile aynı yükseklik (50px). */
.product-actions-row .file-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin: 0;
    line-height: normal;
    height: 50px;
}
.product-actions-row .file-content a svg { height: 22px; padding: 0 4px; }

/* Dar ekranda Paylaş + Dosya İndir alt alta (her biri tam genişlik). */
@media (max-width: 530px) {
    .product-actions-row { flex-direction: column; }
}

.product-share {
    position: relative;
}

/* Markaya uygun tek paylaş butonu (navy gradyan dolgulu).
   "Ürün Dosyalarını İndir" ile aynı yükseklik (50px) ve tam genişlik. */
.product-share-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0d1b3e 0%, #1c3a7a 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: .2px;
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.18);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.product-share-main svg { color: #ffd666; }
.product-share-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13, 27, 62, 0.28);
}
.product-share-main:active { transform: translateY(0); }

/* Fallback menü (Web Share yoksa açılır) — butonun altında açılır kart. */
.product-share-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 210px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e6ebf6;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(13, 27, 62, 0.18);
    animation: pcShareIn .14s ease;
}
@keyframes pcShareIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-share-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #2a3550;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease;
}
.product-share-item:hover { background: #f4f7fd; color: #0d1b3e; }
.product-share-item svg { flex: 0 0 auto; }
.product-share-item.is-whatsapp svg { color: #25d366; }
.product-share-item.is-x svg { color: #0f1419; }
.product-share-item.is-facebook svg { color: #1877f2; }
.product-share-item.is-copy svg { color: #1c3a7a; }

/* Ürün açıklaması yoksa gösterilen yer tutucu. */
.pd-desc-empty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    background: #fafbfe;
    border: 1px dashed #d7dce6;
    border-radius: 14px;
    color: #5b678a;
}
.pd-desc-empty svg { flex: 0 0 auto; color: #b7c0d6; margin-top: 2px; }
.pd-desc-empty p { margin: 0; line-height: 1.6; font-size: 14.5px; }
