/* Product page styles (group b), moved from inline <style> blocks in product_details.php. Order matters. */

/* from line 2822 */
.add-to-cart-btn:disabled {
    cursor: not-allowed;
    opacity: 1;
}

/* ── EMI Calculator Widget ───────────────────────────────────────────────── */
.npf-emi-wrap {
    margin-top: 18px;
    margin-bottom: 16px;
    border: 1.5px solid #e8d5a3;
    border-radius: 14px;
    overflow: hidden;
    background: #fffdf6;
    font-size: 14px;
}
.npf-emi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #5C3A1E, #c8960c);
    color: #fff;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}
.npf-emi-pulse {
    display: inline-block;
    width: 8px; height: 8px;
    background: #7dffb3;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: npf-pulse-anim 1.4s infinite;
}
@keyframes npf-pulse-anim {
    0%,100% { box-shadow: 0 0 0 0 rgba(125,255,179,.6); }
    50%      { box-shadow: 0 0 0 5px rgba(125,255,179,0); }
}
.npf-emi-badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.npf-emi-subline {
    background: #fdf8ee;
    border-bottom: 1px solid #f0e6cc;
    padding: 8px 16px;
    font-size: 12.5px;
    color: #7a5c2e;
    line-height: 1.55;
}
.npf-emi-subline strong { color: #c8960c; font-size: 15px; white-space: nowrap; }
.npf-emi-section-lbl {
    padding: 8px 16px 0;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .06em;
}
@media (max-width: 480px) {
    .npf-emi-header { font-size: 12px; flex-wrap: wrap; gap: 4px; }
    .npf-emi-badge  { font-size: 9px; }
    .npf-emi-cta-btn { font-size: 13px; }
}
.npf-emi-body { padding: 14px 16px 10px; }
.npf-emi-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0e6cc;
    color: #555;
}
.npf-emi-row:last-child { border-bottom: none; }
.npf-emi-lbl { flex-shrink: 0; line-height: 1.4; }
.npf-emi-val { text-align: right; min-width: 0; word-break: break-word; line-height: 1.4; }
.npf-emi-row.npf-emi-highlight {
    background: #fffbf0;
    margin: 4px -16px;
    padding: 9px 16px;
    border-bottom: 1px dashed #f0e6cc;
}
.npf-emi-highlight .npf-emi-lbl { font-weight: 600; color: #1a1a2e; }
.npf-emi-highlight .npf-emi-val {
    font-size: 18px;
    font-weight: 800;
    color: #c8960c;
}
.npf-emi-highlight .npf-emi-val small {
    font-size: 12px;
    font-weight: 500;
    color: #888;
}
.npf-emi-total-row .npf-emi-val { font-weight: 700; color: #333; }
.npf-emi-interest-note {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    line-height: 1.5;
}
.npf-emi-interest-note span { color: #3fb950; font-weight: 700; }
.npf-emi-cta-btn {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 14px;
    padding: 12px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #7a4a10, #c8960c, #e8b530, #c8960c, #7a4a10);
    background-size: 200% auto;
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: .04em;
    position: relative;
    overflow: hidden;
    animation: npf-btn-bg-pan 3s linear infinite, npf-btn-glow 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(200,150,12,0);
    transition: transform .15s, box-shadow .15s;
}
.npf-emi-cta-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    animation-play-state: paused;
    box-shadow: 0 6px 24px rgba(200,150,12,.55);
}
/* Shine sweep */
.npf-emi-cta-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: npf-btn-shine 2.8s ease-in-out infinite;
}
@keyframes npf-btn-bg-pan {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes npf-btn-glow {
    0%,100% { box-shadow: 0 0 8px 0 rgba(200,150,12,.3), 0 2px 8px rgba(0,0,0,.2); }
    50%      { box-shadow: 0 0 22px 6px rgba(200,150,12,.6), 0 4px 14px rgba(0,0,0,.25); }
}
@keyframes npf-btn-shine {
    0%   { left: -75%; opacity: 1; }
    60%  { left: 125%; opacity: 1; }
    61%,100% { left: 125%; opacity: 0; }
}
/* Arrow bounce */
.npf-emi-cta-btn .fa-arrow-right {
    display: inline-block;
    animation: npf-arrow-bounce .9s ease-in-out infinite;
}
@keyframes npf-arrow-bounce {
    0%,100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
}
.npf-emi-trust {
    text-align: center;
    font-size: 11.5px;
    color: #28a745;
    padding: 0 16px 12px;
    font-weight: 500;
}
.npf-emi-trust i { margin-right: 5px; }

/* from line 3876 */
.npf-reviews-section {
        background: #f8fafc;
        padding: 52px 0 60px;
        margin-top: 40px;
    }
    .npf-reviews-title {
        font-size: 1.45rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 20px;
    }
    .npf-review-alert {
        padding: 12px 18px;
        border-radius: 8px;
        font-size: .88rem;
        font-weight: 500;
        margin-bottom: 20px;
    }
    .npf-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
    .npf-alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
    .npf-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
    .npf-reviews-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 28px;
        align-items: start;
        margin-bottom: 40px;
    }
    @media (max-width: 768px) {
        .npf-reviews-layout { grid-template-columns: 1fr; }
    }
    /* Summary */
    .npf-reviews-summary {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,.07);
        padding: 22px 18px;
        text-align: center;
    }
    .npf-avg-score { font-size: 3rem; font-weight: 800; color: #1e293b; line-height: 1; }
    .npf-avg-stars { margin: 6px 0 4px; }
    .npf-avg-count { font-size: .8rem; color: #64748b; margin-bottom: 16px; }
    .npf-star { font-size: 1.15rem; color: #e2e8f0; }
    .npf-star.filled { color: #f59e0b; }
    .npf-dist-bars { text-align: left; }
    .npf-dist-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
    .npf-dist-label { font-size: .75rem; color: #64748b; width: 18px; flex-shrink: 0; }
    .npf-dist-track { flex: 1; height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
    .npf-dist-fill  { height: 100%; background: #f59e0b; border-radius: 999px; transition: width .4s; }
    .npf-dist-count { font-size: .72rem; color: #94a3b8; width: 16px; flex-shrink: 0; text-align: right; }
    /* Review cards */
    .npf-reviews-list { display: flex; flex-direction: column; gap: 14px; }
    .npf-review-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
        padding: 16px 18px;
    }
    .npf-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .npf-reviewer-avatar {
        width: 38px; height: 38px; border-radius: 50%;
        background: linear-gradient(135deg, #2563eb, #7c3aed);
        color: #fff; font-size: .95rem; font-weight: 700;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .npf-reviewer-name { font-size: .88rem; font-weight: 700; color: #1e293b; }
    .npf-reviewer-date { font-size: .75rem; color: #94a3b8; }
    .npf-review-stars  { display: flex; gap: 1px; }
    .npf-review-body   { font-size: .88rem; color: #475569; line-height: 1.6; margin: 0; }
    .npf-no-reviews-msg { color: #94a3b8; font-size: .9rem; padding: 20px 0; }
    /* Review media row — image + video side by side */
    .npf-rev-media { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
    .npf-rev-media-item {
        position: relative; display: block; text-decoration: none;
        width: 130px; height: 90px; border-radius: 8px; overflow: hidden;
        border: 1px solid #e2e8f0; flex-shrink: 0;
        transition: transform .15s, box-shadow .15s;
    }
    .npf-rev-media-item:hover { transform: scale(1.03); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
    .npf-rev-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .npf-rev-media-label {
        position: absolute; bottom: 0; left: 0; right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,.55));
        color: #fff; font-size: .65rem; font-weight: 700;
        text-align: center; padding: 4px 0 5px;
        text-transform: uppercase; letter-spacing: .05em;
    }
    /* Pagination */
    .npf-rev-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
    .npf-rev-page-btn {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 36px; height: 36px; padding: 0 10px;
        border-radius: 8px; border: 1.5px solid #e2e8f0;
        background: #fff; color: #475569; font-size: .82rem; font-weight: 600;
        text-decoration: none; transition: all .15s;
    }
    .npf-rev-page-btn:hover { border-color: #2563eb; color: #2563eb; }
    .npf-rev-page-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
    /* Write review */
    .npf-write-review {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,.07);
        padding: 28px 28px 32px;
        max-width: 680px;
    }
    .npf-write-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 20px; }
    .npf-form-group  { margin-bottom: 16px; }
    .npf-form-label  { display: block; font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
    .npf-form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 600px) { .npf-form-row { grid-template-columns: 1fr; } }
    .npf-form-input  {
        width: 100%; padding: 9px 13px;
        border: 1.5px solid #e2e8f0; border-radius: 9px;
        font-size: .88rem; outline: none; transition: border-color .15s;
        background: #f8fafc; font-family: inherit;
    }
    .npf-form-input:focus { border-color: #2563eb; background: #fff; }
    /* Star picker */
    .npf-star-picker { display: flex; gap: 4px; cursor: pointer; margin-bottom: 4px; }
    .npf-pick-star { font-size: 1.8rem; color: #e2e8f0; transition: color .1s, transform .1s; line-height: 1; }
    .npf-pick-star.active { color: #f59e0b; transform: scale(1.15); }
    .npf-star-label { font-size: .78rem; color: #94a3b8; }
    .req { color: #ef4444; }
    .npf-submit-review-btn {
        background: #2563eb; color: #fff;
        border: none; border-radius: 9px;
        padding: 11px 28px; font-size: .9rem; font-weight: 600;
        cursor: pointer; transition: background .15s;
    }
    .npf-submit-review-btn:hover { background: #1d4ed8; }
