/* Product Stats Widget v4 — style.css */

/* ===== CHUNG ===== */
.psw-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.psw-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.psw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.psw-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.psw-stars { display: inline-flex; gap: 1px; }
.psw-star  { font-size: 12px; line-height: 1; }
.psw-star.full,
.psw-star.half  { color: #EF9F27; }
.psw-star.empty { color: #d5d5d5; }

.psw-review-count {
    font-size: 11px;
    opacity: 0.72;
}

/* ===== DANH MỤC — gọn, không padding ngoài ===== */
.psw-auto {
    margin: 5px 0 3px;
    background: transparent;
    border: none;
    padding: 0;
}

/* ===== CHI TIẾT — rộng hơn, có thanh tiến trình ===== */
.psw-single {
    margin: 10px 0 14px;
    padding: 0;
    background: transparent;
    border: none;
}

.psw-single .psw-badge {
    font-size: 13px;
    padding: 5px 12px;
}

.psw-single .psw-star { font-size: 14px; }
.psw-single .psw-icon { width: 15px; height: 15px; }
.psw-single .psw-review-count { font-size: 12px; }

/* Thanh tiến trình */
.psw-progress-wrap {
    margin-top: 12px;
}

.psw-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.psw-progress-track {
    height: 8px;
    border-radius: 6px;
    background: #f0f0f0;
    overflow: hidden;
}

.psw-progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

/* Thông báo tồn kho */
.psw-stock-note {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.01em;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .psw-star.empty      { color: #444; }
    .psw-progress-track  { background: #2a2a2a; }
    .psw-progress-label  { color: #777; }
}
