/* ============================================================
   Air Purifier Review Widgets v5.0
   Product card CSS taken directly from user's provided HTML.
   Font Awesome loaded for fa-check icons.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ── Widget font base ── */
.elementor-widget-aprc_products_section,
.elementor-widget-aprc_article_section,
.elementor-widget-aprc_how_to_choose {
    font-family: 'Inter', sans-serif;
}

/* ================================================================
   PRODUCT CARD — copied exactly from user's HTML
   ================================================================ */

.aprc-cards-list {
    display: flex;
    flex-direction: column;
    background-colorS: #f8fafc;
}

/* .card */
.aprc-card {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 32px 24px;
    box-sizing: border-box;
    gap: 40px;
    margin-bottom: 20px;
	align-items: CENTER;
}
.aprc-card:last-child { margin-bottom: 0; }

/* .rank */
.aprc-rank {
    position: absolute;
    top: 16px;
    left: 16px;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

/* .best-label — slanted parallelogram badge */
.aprc-best-label {
    position: absolute;
    top: 14px;
    left: 45px;
    background-color: #ffc220;
    padding: 8px 32px;
    font-weight: 800;
    font-size: 15px;
    color: #000;
    font-family: 'Inter', sans-serif;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    white-space: nowrap;
}

/* Badge color variants (for non-yellow badges) */
.aprc-best-label.aprc-bl-pop  { background-color: #2196f3; color: #fff; }
.aprc-best-label.aprc-bl-hot  { background-color: #f44336; color: #fff; }
.aprc-best-label.aprc-bl-val  { background-color: #4caf50; color: #fff; }
.aprc-best-label.aprc-bl-pre  { background-color: #9c27b0; color: #fff; }

/* .discount-badge */
.aprc-discount-badge {
    position: absolute;
    top: 20px;
    right: -8px;
    background-color: #ff4d4d;
    color: white;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border-radius: 2px 0 0 2px;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}
.aprc-discount-badge::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    border-left: 8px solid #b30000;
    border-bottom: 8px solid transparent;
}

/* .product-img-container */
.aprc-img-container {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.aprc-img-container img {
    width: 100%;
    height: 150px !important;
    object-fit: contain;
}
.aprc-img-placeholder {
    width: 160px;
    height: 160px;
    background: #f0f3f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aprc-img-placeholder svg { width: 60px; height: 60px; opacity: .2; }

/* .info-section */
.aprc-info-section {
    flex: 1;
    padding-top: 15px;
}

/* .title */
.aprc-prod-title {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

/* .features / .feature-item */
.aprc-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aprc-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2px;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}
.aprc-feature-item:last-child { margin-bottom: 0; }
.aprc-feature-item i {
    color: #4a90e2;
    margin-right: 12px;
    margin-top: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

/* .rating-box */
.aprc-rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f1f7ff;
    border-radius: 14px;
    width: 105px;
    height: 125px;
    margin-top: 15px;
    flex-shrink: 0;
}

/* .rating-score */
.aprc-rating-score {
    font-size: 38px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

/* .stars */
.aprc-stars {
    display: flex;
    gap: 2px;
    color: #ffb800;
    font-size: 12px;
}

/* .cta-section */
.aprc-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    margin-top: 15px;
    flex-shrink: 0;
}

/* .social-proof */
.aprc-social-proof {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* .check-price-btn */
.aprc-check-price-btn {
    background-color: #4b89ff;
    color: white !important;
    width: 100%;
    text-align: center;
   	padding: 8px 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    text-decoration: none !important;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(75, 137, 255, 0.2);
    display: block;
}
.aprc-check-price-btn:hover {
    background-color: #3a75e8;
    color: white !important;
}

/* .amazon-tag */
.aprc-amazon-tag {
    margin-top: 14px;
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.aprc-amazon-logo {
    height: 18px;
    vertical-align: middle;
    position: relative;
    top: 2px;
}

/* ================================================================
   RESPONSIVE — from user's HTML
   ================================================================ */
@media (max-width: 768px) {
    .aprc-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 60px;
		gap: 20px;
    }
    .aprc-info-section { text-align: left; }
    .aprc-feature-item { justify-content: flex-start; }
    .aprc-rating-box { margin: 20px 0; }
    .aprc-discount-badge { right: 0; }
    .aprc-discount-badge::after { display: none; }
    .aprc-cta-section { min-width: unset; width: 100%; }
    .aprc-img-container { flex: unset; margin-top: 0; }
}

/* ================================================================
   ARTICLE SECTION WIDGET
   ================================================================ */
.aprc-sec-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    margin: 20px 0;
    border: 1px solid #e0e8ef;
    font-family: 'Inter', sans-serif;
}
.aprc-sec-box .aprc-sec-h2 {
    font-size: 20px; font-weight: 800; color: #0a1a2a;
    margin: 0 0 16px; padding-bottom: 14px;
    border-bottom: 2px solid #e8f4fd;
    display: flex; align-items: center; gap: 10px;
}
.aprc-sec-box .aprc-sec-h2::before {
    content: ''; width: 4px; height: 22px;
    background: #1a6abf; border-radius: 3px;
    display: inline-block; flex-shrink: 0;
}
.aprc-sec-box .aprc-sec-h3 { font-size: 16px; font-weight: 700; color: #0a1a2a; margin: 18px 0 10px; }
.aprc-sec-box .aprc-sec-p  { font-size: 13px; color: #445; line-height: 1.9; margin-bottom: 12px; }
.aprc-sec-box .aprc-sec-p:last-child { margin-bottom: 0; }
.aprc-sec-box .aprc-sec-ul {
    list-style: none; margin: 12px 0 16px;
    background: #f8fafc; border-radius: 10px;
    padding: 14px 16px; border: 1px solid #e8f0f8;
}
.aprc-sec-box .aprc-sec-ul li {
    font-size: 13px; color: #334; margin-bottom: 8px;
    padding-left: 22px; position: relative;
    line-height: 1.6; font-weight: 500;
}
.aprc-sec-box .aprc-sec-ul li:last-child { margin-bottom: 0; }
.aprc-sec-box .aprc-sec-ul li::before {
    content: '✓'; position: absolute; left: 0;
    color: #4caf50; font-weight: 800;
}
.aprc-must-read {
    display: inline-block; background: #eef5ff; color: #1a6abf;
    font-size: 12px; font-weight: 600; padding: 6px 14px;
    border-radius: 6px; text-decoration: none; margin-top: 6px;
}
.aprc-must-read:hover { background: #ddeeff; }

/* ================================================================
   HOW TO CHOOSE WIDGET
   ================================================================ */
.aprc-how-to-choose { font-family: 'Inter', sans-serif; }
.aprc-htc-wrap {
    background: #fff; border-radius: 14px;
    padding: 28px 32px; border: 1px solid #e0e8ef;
}
.aprc-htc-title {
    font-size: 20px; font-weight: 800; color: #0a1a2a;
    margin: 0 0 16px; padding-bottom: 14px;
    border-bottom: 2px solid #e8f4fd;
    display: flex; align-items: center; gap: 10px;
}
.aprc-htc-title::before {
    content: ''; width: 4px; height: 22px; background: #1a6abf;
    border-radius: 3px; display: inline-block; flex-shrink: 0;
}
.aprc-steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 16px; }
.aprc-steps-grid.aprc-cols-1 { grid-template-columns: 1fr; }
.aprc-steps-grid.aprc-cols-2 { grid-template-columns: repeat(2,1fr); }
.aprc-steps-grid.aprc-cols-3 { grid-template-columns: repeat(3,1fr); }
.aprc-steps-grid.aprc-cols-4 { grid-template-columns: repeat(4,1fr); }
.aprc-step-card { background: #f8fafc; border-radius: 10px; padding: 18px; border: 1px solid #e0e8ef; text-align: center; }
.aprc-step-num  { width: 36px; height: 36px; background: #1a6abf; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; margin: 0 auto 12px; }
.aprc-step-title { font-size: 13px; font-weight: 700; color: #0a1a2a; margin: 0 0 8px; }
.aprc-step-desc  { font-size: 12px; color: #556; line-height: 1.6; margin: 0; }
.aprc-htc-mr { display: inline-block; background: #eef5ff; color: #1a6abf; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 6px; text-decoration: none; margin-top: 16px; }
.aprc-htc-mr:hover { background: #ddeeff; }

.aprc-amazon-tag img {
    max-width: 80px !important;
}

@media (max-width: 600px) {
    .aprc-steps-grid,
    .aprc-steps-grid.aprc-cols-2,
    .aprc-steps-grid.aprc-cols-3,
    .aprc-steps-grid.aprc-cols-4 { grid-template-columns: 1fr; }
    .aprc-sec-box, .aprc-htc-wrap { padding: 16px 14px; }
}
