/* =========================================================
   PREMIUM PRODUCT CARD
========================================================= */

.premium-product-card {

    --blue: #1677d2;
    --blue-dark: #0f63b6;
    --blue-soft: #f4f9fe;
    --blue-border: #dcebf8;

    --red: #e53935;
    --red-soft: #fff7f7;

    --text: #202020;
    --text-soft: #555;
    --muted: #8d8d8d;

    --border: #e7e9ec;

    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 20px;

    background: #ffffff;

    border: 1px solid #ececec;
    border-radius: 18px;

    box-shadow:
        0 10px 32px rgba(20, 35, 50, 0.055);

    color: var(--text);

    font-family: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.ppc-header {

    position: relative;

    margin: 0 0 17px;

    padding-right: 15px;
}


.ppc-red-accent {

    position: absolute;

    top: 4px;
    right: 0;

    width: 4px;
    height: 58px;

    border-radius: 10px;

    background: var(--red);
}


.ppc-main-title {

    margin: 0 0 5px;
    padding: 0;

    color: #171717;

    font-size: 23px;
    line-height: 1.72;

    font-weight: 750;

    letter-spacing: -.2px;

    text-align: right;
}


.ppc-full-title {

    margin: 0 0 4px;
    padding: 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.9;

    font-weight: 500;

    text-align: right;
}


.ppc-english-title {

    margin: 0;

    color: #9e9e9e;

    font-size: 11.5px;
    line-height: 1.8;

    font-weight: 400;

    letter-spacing: .15px;

    text-align: right;
}


/* =========================================================
   MODEL / REVIEWS / QUESTIONS
   عنوان و مقدار در یک خط
========================================================= */

.ppc-key-info {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    width: 100%;

    padding: 9px;

    box-sizing: border-box;

    border: 1px solid #edf0f3;

    border-radius: 14px;

    background: #f8fafc;
}


/* هر آیتم */

.ppc-key-item {

    min-width: 0;
    min-height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 8px 10px;

    box-sizing: border-box;

    border: 1px solid #e7eaed;

    border-radius: 11px;

    background: #ffffff;

    text-decoration: none;

    white-space: nowrap;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        background .2s ease;
}


/* Hover */

.ppc-key-item:hover {

    border-color: var(--blue-border);

    background: #fcfeff;

    box-shadow:
        0 5px 15px rgba(0, 70, 140, .045);

    transform: translateY(-1px);
}


/* عنوان */

.ppc-key-label {

    display: inline-block;

    width: auto;

    margin: 0;

    padding: 0;

    color: var(--muted);

    font-size: 10.5px;

    line-height: 1.5;

    font-weight: 500;

    white-space: nowrap;
}


/* مقدار */

.ppc-key-value {

    display: inline-flex;

    align-items: center;

    width: auto;

    min-width: 0;

    margin: 0;

    padding: 0;

    color: #333;

    font-size: 12px;

    line-height: 1.5;

    font-weight: 650;

    white-space: nowrap;
}


/* لینک ها */

.ppc-key-link .ppc-key-value {

    color: var(--blue);
}


/* فلش */

.ppc-mini-arrow {

    display: inline-flex;

    align-items: center;

    margin-right: 3px;

    color: var(--blue);

    font-size: 16px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.ppc-key-link:hover .ppc-mini-arrow {

    transform: translateX(-3px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ppc-key-info {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 5px;

        padding: 5px;

        border-radius: 11px;
    }


    .ppc-key-item {

        min-height: 47px;

        padding: 6px 4px;

        gap: 4px;

        border-radius: 9px;

        white-space: nowrap;
    }


    .ppc-key-label {

        font-size: 8.5px;

        white-space: nowrap;
    }


    .ppc-key-value {

        font-size: 9.5px;

        white-space: nowrap;
    }


    .ppc-mini-arrow {

        margin-right: 2px;

        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .ppc-key-info {

        gap: 4px;

        padding: 4px;
    }


    .ppc-key-item {

        min-height: 44px;

        padding: 5px 3px;

        gap: 3px;
    }


    .ppc-key-label {

        font-size: 8px;
    }


    .ppc-key-value {

        font-size: 8.5px;
    }


    .ppc-mini-arrow {

        font-size: 12px;
    }

}

/* =========================================================
   RATING + UPDATE
========================================================= */

.ppc-rating-update {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 14px 0 15px;

    box-sizing: border-box;

    border-bottom: 1px solid #eeeeee;
}


/* =========================================================
   RATING
========================================================= */

.ppc-rating-box {

    position: relative;

    min-width: 0;

    display: flex;
    align-items: center;

    padding: 10px 14px;

    box-sizing: border-box;

    border: 1px solid #e4e5e7;
    border-radius: 13px;

    background: #fff;

    overflow: hidden;

    text-decoration: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.ppc-rating-box::before {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 4px;
    height: 100%;

    background: var(--red);
}


.ppc-rating-box:hover {

    border-color: var(--blue-border);

    background: #fcfeff;

    box-shadow:
        0 6px 21px rgba(0, 70, 140, .055);

    transform: translateY(-1px);
}


.ppc-rating-number {

    display: flex;
    align-items: baseline;

    direction: ltr;

    white-space: nowrap;
}


.ppc-rating-number strong {

    color: var(--red);

    font-size: 31px;

    line-height: 1;

    font-weight: 850;

    letter-spacing: -.7px;
}


.ppc-rating-number small {

    margin-left: 2px;

    color: #999;

    font-size: 10px;

    font-weight: 500;
}


.ppc-rating-content {

    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-right: 11px;
}


.ppc-rating-label {

    color: #4f4f4f;

    font-size: 11.5px;

    line-height: 1.5;

    font-weight: 650;
}


.ppc-rating-stars {

    direction: ltr;

    color: #f2a522;

    font-size: 12px;

    line-height: 1;

    letter-spacing: 1px;
}


.ppc-rating-arrow {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: auto;

    color: var(--blue);

    font-size: 27px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.ppc-rating-box:hover .ppc-rating-arrow {

    transform: translateX(-4px);
}


/* =========================================================
   UPDATE
========================================================= */

.ppc-update-box {

    display: flex;
    align-items: center;

    min-height: 58px;

    padding: 8px 12px;

    box-sizing: border-box;

    border: 1px solid #eeeeee;
    border-radius: 12px;

    background: #fafafa;
}


.ppc-update-icon {

    width: 31px;
    height: 31px;

    min-width: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 9px;

    border-radius: 9px;

    background: var(--blue-soft);

    color: var(--blue);

    font-size: 17px;

    line-height: 1;
}


.ppc-update-content {

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.ppc-update-label {

    color: #999;

    font-size: 10px;

    line-height: 1.5;
}


.ppc-update-value {

    color: #444;

    font-size: 11.5px;

    line-height: 1.6;

    font-weight: 650;

    white-space: nowrap;
}


/* =========================================================
   FEATURES
========================================================= */

.ppc-features {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

    margin-top: 16px;
}


/* Feature card */

.ppc-feature {

    position: relative;

    min-width: 0;
    min-height: 82px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 12px 13px;

    box-sizing: border-box;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: #fff;

    overflow: hidden;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        background .2s ease;
}


/* blue accent */

.ppc-feature::before {

    content: "";

    position: absolute;

    right: 0;
    top: 0;

    width: 24px;
    height: 2px;

    border-radius: 0 0 0 6px;

    background: var(--blue);

    opacity: .8;

    transition:
        width .2s ease;
}


.ppc-feature:hover {

    border-color: var(--blue-border);

    background: #fcfeff;

    box-shadow:
        0 6px 18px rgba(0, 65, 130, .04);

    transform: translateY(-2px);
}


.ppc-feature:hover::before {

    width: 46px;
}


/* Label */

.ppc-feature-label {

    display: block;

    margin: 0 0 6px;

    color: #0a6af7;

    font-size: 10.5px;

    line-height: 1.5;

    font-weight: 500;
}


/* Value */

.ppc-feature-value {

    display: block;

    min-width: 0;

    margin: 0;

    color: #303030;

    font-size: 12px;

    line-height: 1.85;

    font-weight: 650;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;
}


/* =========================================================
   ALL FEATURES
========================================================= */

.ppc-all-features {

    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 13px;
}


.ppc-feature-line {

    flex: 1;

    height: 1px;

    background: #e0e0e0;
}


.ppc-all-features-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 6px 11px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    background: #fff;

    color: #555;

    font-size: 10.5px;

    line-height: 1.6;

    font-weight: 600;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}


.ppc-all-features-btn:hover {

    color: var(--blue);

    border-color: var(--blue-border);

    background: #fbfdff;
}


.ppc-all-features-arrow {

    display: inline-flex;
    align-items: center;

    color: var(--blue);

    font-size: 18px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.ppc-all-features-btn:hover .ppc-all-features-arrow {

    transform: translateX(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .premium-product-card {

        padding: 17px;
    }


    .ppc-main-title {

        font-size: 21px;
    }


    .ppc-full-title {

        font-size: 13.5px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .premium-product-card {

        padding: 12px;

        border-radius: 15px;

        box-shadow:
            0 6px 22px rgba(0, 0, 0, .045);
    }


    /* -----------------------------------------
       Header
    ----------------------------------------- */

    .ppc-header {

        margin-bottom: 13px;

        padding-right: 10px;
    }


    .ppc-red-accent {

        top: 3px;

        width: 3px;
        height: 49px;
    }


    .ppc-main-title {

        margin-bottom: 4px;

        font-size: 18px;

        line-height: 1.8;
    }


    .ppc-full-title {

        margin-bottom: 3px;

        font-size: 11.5px;

        line-height: 1.9;
    }


    .ppc-english-title {

        font-size: 9.5px;

        line-height: 1.8;
    }


    /* -----------------------------------------
       3 equal items
    ----------------------------------------- */

    .ppc-key-info {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 5px;

        padding: 5px;

        border-radius: 11px;
    }


    .ppc-key-item {

        min-height: 60px;

        padding: 6px 4px;

        border-radius: 9px;

        align-items: center;

        text-align: center;
    }


    .ppc-key-label {

        width: 100%;

        margin-bottom: 4px;

        font-size: 10.5px;

        white-space: nowrap;
		
    }


    .ppc-key-value {

        justify-content: center;

        width: 100%;

        font-size: 9.5px;

        line-height: 1.55;

        text-align: center;
		text-wrap-mode: wrap;
    }


    .ppc-mini-arrow {

        margin-right: 3px;

        font-size: 14px;
    }


    /* -----------------------------------------
       Rating + Update
    ----------------------------------------- */

    .ppc-rating-update {

        grid-template-columns:
            minmax(0, 1.22fr)
            minmax(0, .78fr);

        gap: 6px;

        padding: 11px 0 12px;
    }


    .ppc-rating-box {

        padding: 8px 9px;

        border-radius: 10px;
    }


    .ppc-rating-number strong {

        font-size: 25px;
    }


    .ppc-rating-number small {

        font-size: 8px;
    }


    .ppc-rating-content {

        margin-right: 7px;

        gap: 2px;
    }


    .ppc-rating-label {

        font-size: 9px;
    }


    .ppc-rating-stars {

        font-size: 9px;

        letter-spacing: 0;
    }


    .ppc-rating-arrow {

        font-size: 21px;
    }


    /* Update */

    .ppc-update-box {

        min-width: 0;

        min-height: 47px;

        padding: 5px 6px;

        border-radius: 9px;
    }


    .ppc-update-icon {

        width: 25px;
        height: 25px;

        min-width: 25px;

        margin-left: 5px;

        border-radius: 7px;

        font-size: 13px;
    }


    .ppc-update-label {

        font-size: 7.5px;
    }


    .ppc-update-value {

        font-size: 8.5px;

        line-height: 1.5;

        white-space: normal;
    }


    /* -----------------------------------------
       Features
    ----------------------------------------- */

    .ppc-features {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;

        margin-top: 12px;
    }


    .ppc-feature {

        min-height: 70px;

        padding: 9px;

        border-radius: 10px;
    }


    .ppc-feature-label {

        margin-bottom: 4px;

        font-size: 11px;
    }


    .ppc-feature-value {

        font-size: 10px;

        line-height: 1.8;
    }


    /* -----------------------------------------
       All features
    ----------------------------------------- */

    .ppc-all-features {

        gap: 6px;

        margin-top: 10px;
    }


    .ppc-all-features-btn {

        padding: 5px 9px;

        border-radius: 7px;

        font-size: 9px;
    }


    .ppc-all-features-arrow {

        font-size: 16px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .premium-product-card {

        padding: 10px;
    }


    .ppc-main-title {

        font-size: 17px;
    }


    .ppc-full-title {

        font-size: 11px;
    }


    .ppc-english-title {

        font-size: 8.5px;
    }


    .ppc-key-info {

        gap: 4px;

        padding: 4px;
    }


    .ppc-key-item {

        min-height: 57px;

        padding: 5px 3px;
    }


    .ppc-key-label {

        font-size: 8px;
    }


    .ppc-key-value {

        font-size: 8.5px;
    }


    .ppc-rating-update {

        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(0, .8fr);

        gap: 5px;
    }


    .ppc-rating-number strong {

        font-size: 23px;
    }


    .ppc-rating-label {

        font-size: 8.5px;
    }


    .ppc-rating-stars {

        font-size: 8px;
    }


    .ppc-update-label {

        font-size: 7px;
    }


    .ppc-update-value {

        font-size: 8px;
    }


    .ppc-feature {

        min-height: 65px;

        padding: 8px;
    }


    .ppc-feature-label {

        font-size: 8.5px;
    }


    .ppc-feature-value {

        font-size: 9.5px;

        line-height: 1.75;
    }


    .ppc-all-features-btn {

        padding: 5px 8px;

        font-size: 9px;
    }

}