/* ==========================================================================
   Protein Upgrade — shop comparison section
   ========================================================================== */

.protein-upgrade {
    margin-top: 2.5rem;
    padding-bottom: 1rem;
}

.protein-upgrade__frame {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(197, 147, 63, 0.2);
    border-radius: 20px;
    background-color: #faf8f3;
    background-image: radial-gradient(rgba(197, 147, 63, 0.18) 1px, transparent 1px);
    background-size: 18px 18px;
    overflow: hidden;
}

.protein-upgrade__decor {
    position: absolute;
    color: #c5933f;
    font-size: 1.125rem;
    line-height: 1;
    opacity: 0.75;
    pointer-events: none;
}

.protein-upgrade__decor--heart {
    top: 1rem;
    right: 1.25rem;
    font-size: 1.25rem;
}

.protein-upgrade__decor--wheat-left {
    top: 42%;
    left: 0.75rem;
    transform: rotate(-18deg);
}

.protein-upgrade__decor--wheat-right {
    right: 1rem;
    bottom: 1.25rem;
    transform: rotate(12deg);
}

.protein-upgrade__decor--star {
    left: 48%;
    bottom: 0.75rem;
    font-size: 0.875rem;
}

.protein-upgrade__layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: center;
}

/* Visual */
.protein-upgrade__visual {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    background-color: #e8f6fc;
}

.protein-upgrade__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* Content */
.protein-upgrade__title {
    margin-bottom: 1.5rem;
    color: #1c1c1c;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-transform: uppercase;
}

.protein-upgrade__title-accent {
    color: #c5933f;
}

.protein-upgrade__table {
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 8px 28px rgba(26, 54, 93, 0.08);
    overflow: hidden;
}

.protein-upgrade__table-head,
.protein-upgrade__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.7fr 0.8fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem 1rem;
}

.protein-upgrade__table-head {
    padding-block: 0.75rem;
    border-bottom: 1px solid rgba(28, 28, 28, 0.08);
    background-color: #ffffff;
}

.protein-upgrade__th {
    color: rgba(28, 28, 28, 0.45);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.protein-upgrade__th--cost {
    text-align: right;
}

.protein-upgrade__row {
    border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}

.protein-upgrade__row:last-child {
    border-bottom: none;
}

.protein-upgrade__row--brand {
    position: relative;
    background-color: #fff9e8;
}

.protein-upgrade__row--brand::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background-color: #ffcc00;
}

.protein-upgrade__source {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.protein-upgrade__source-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f7f9fa;
}

.protein-upgrade__source-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f7f9fa;
    color: #1c1c1c;
}

.protein-upgrade__source-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.protein-upgrade__source-name {
    color: #1c1c1c;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.2;
}

.protein-upgrade__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
    background-color: #ffcc00;
    color: #1c1c1c;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.protein-upgrade__quantity-main {
    display: block;
    color: #1c1c1c;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
}

.protein-upgrade__quantity-sub {
    display: block;
    color: rgba(28, 28, 28, 0.45);
    font-size: 0.6875rem;
    line-height: 1.2;
}

.protein-upgrade__protein {
    color: #1c1c1c;
    font-size: 0.9375rem;
    font-weight: 800;
}

.protein-upgrade__cell--cost {
    text-align: right;
}

.protein-upgrade__cost {
    color: #c5933f;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.protein-upgrade__cost--brand {
    font-size: 1.375rem;
    color: #c5933f;
}

.protein-upgrade__cost--strike {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.85;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 900px) {
    .protein-upgrade__frame {
        padding: 1.25rem;
    }

    .protein-upgrade__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .protein-upgrade__visual {
        max-width: 420px;
        margin-inline: auto;
    }

    .protein-upgrade__table-head {
        display: none;
    }

    .protein-upgrade__row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "source source"
            "quantity protein"
            "cost cost";
        gap: 0.5rem 1rem;
        padding: 1rem;
    }

    .protein-upgrade__cell--source { grid-area: source; }
    .protein-upgrade__cell--quantity { grid-area: quantity; }
    .protein-upgrade__cell--protein { grid-area: protein; }
    .protein-upgrade__cell--cost {
        grid-area: cost;
        text-align: left;
    }

    .protein-upgrade__cost--brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .protein-upgrade__decor--wheat-left,
    .protein-upgrade__decor--wheat-right {
        display: none;
    }
}
