/* ========================================
   PRODUCT DETAIL PAGE — EXPANDED SECTIONS
   ======================================== */

/* ── 1. HIGHLIGHT INFO CARDS ── */
.pd-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.pd-hl-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    transition: border-color 0.2s;
}

.pd-hl-card:hover {
    border-color: #FF6900;
}

.pd-hl-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.pd-hl-icon.cat {
    background: #e8f5e9;
    color: #43a047;
}

.pd-hl-icon.rating {
    background: #fff8e1;
    color: #f9a825;
}

.pd-hl-icon.date {
    background: #e3f2fd;
    color: #1e88e5;
}

.pd-hl-icon.sales {
    background: #fce4ec;
    color: #e53935;
}

.pd-hl-text {
    min-width: 0;
}

.pd-hl-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    white-space: nowrap;
}

.pd-hl-value {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-hl-value .stars {
    color: #f9a825;
    font-size: 13px;
    letter-spacing: 1px;
}

.pd-hl-value .review-count {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

/* ── 2. REVIEWS SECTION ── */
.pd-reviews {
    margin-bottom: 28px;
}

.pd-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eaed;
}

.pd-section-header i {
    font-size: 20px;
    color: #FF6900;
}

.pd-section-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.pd-section-header .pd-badge {
    background: #FF6900;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Review summary bar */
.pd-review-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e8eaed;
    margin-bottom: 18px;
}

.pd-review-big-score {
    text-align: center;
    min-width: 90px;
}

.pd-review-big-score .score {
    font-size: 40px;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.pd-review-big-score .max {
    font-size: 14px;
    color: #aaa;
    font-weight: 400;
}

.pd-review-big-score .stars {
    color: #f9a825;
    font-size: 16px;
    margin-top: 4px;
    letter-spacing: 2px;
}

.pd-review-big-score .count {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.pd-review-bars {
    flex: 1;
}

.pd-review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pd-review-bar-row .label {
    font-size: 12px;
    color: #888;
    min-width: 14px;
    text-align: right;
}

.pd-review-bar-row .bar {
    flex: 1;
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
}

.pd-review-bar-row .bar .fill {
    height: 100%;
    background: #f9a825;
    border-radius: 3px;
    transition: width 0.3s;
}

.pd-review-bar-row .num {
    font-size: 12px;
    color: #888;
    min-width: 20px;
}

/* Individual review card */
.pd-review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-review-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
}

.pd-review-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.pd-review-body {
    flex: 1;
    min-width: 0;
}

.pd-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pd-review-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.pd-review-stars {
    color: #f9a825;
    font-size: 12px;
    letter-spacing: 1px;
}

.pd-review-time {
    font-size: 12px;
    color: #aaa;
    margin-left: auto;
}

.pd-review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.pd-review-empty {
    text-align: center;
    padding: 30px 0;
    color: #aaa;
    font-size: 14px;
}

.pd-review-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    color: #ddd;
}

/* ── 3. RELATED PRODUCTS ── */
.pd-related {
    margin-bottom: 28px;
}

.pd-related .row {
    row-gap: 16px;
}

/* ── 4. FAQ ACCORDION ── */
.pd-faq {
    margin-bottom: 28px;
}

.pd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-faq-item {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pd-faq-q {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}

.pd-faq-q:hover {
    color: #FF6900;
}

.pd-faq-q i.question-icon {
    font-size: 16px;
    color: #FF6900;
    flex-shrink: 0;
}

.pd-faq-q .chevron {
    margin-left: auto;
    font-size: 12px;
    color: #aaa;
    transition: transform 0.2s;
}

.pd-faq-item.open .pd-faq-q .chevron {
    transform: rotate(180deg);
}

.pd-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.pd-faq-item.open .pd-faq-a {
    max-height: 600px;
}

.pd-faq-a-inner {
    padding: 0 18px 16px 44px;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* Code snippets inside guide/FAQ */
.pd-faq-a-inner code {
    background: #f1f3f5;
    color: #d63384;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    word-break: break-all;
}

.pd-faq-a-inner a {
    color: #FF6900;
    text-decoration: underline;
    font-weight: 500;
}

.pd-faq-a-inner a:hover {
    color: #e05e00;
}

/* Guide section accent */
.pd-guide .pd-section-header i {
    color: #1e88e5;
}

.pd-guide .pd-faq-q i.question-icon {
    color: #1e88e5;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .pd-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-review-summary {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .pd-highlights {
        grid-template-columns: 1fr;
    }

    .pd-review-card {
        flex-direction: column;
        gap: 10px;
    }

    .pd-review-avatar {
        width: 32px;
        height: 32px;
    }

    .pd-review-time {
        margin-left: 0;
    }
}