/* ==========================================================
   ПЕППИ — SHOP
   Используем ту же типографику и палитру, что и новые страницы.
   ========================================================== */

.peppi-shop {
    background: var(--peppi-white, #fff);
    font-family: var(--peppi-font, "Montserrat", sans-serif);
}

.peppi-shop__hero {
    background: var(--peppi-yellow-soft, #fff7df);
    padding: 68px 0 62px;
}

.peppi-shop__eyebrow {
    margin: 0 0 14px;
    color: var(--peppi-blue, #648cff);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.peppi-shop__title {
    max-width: 820px;
    margin: 0 0 22px;
    color: var(--peppi-text, #111);
    font-size: var(--peppi-h1, clamp(42px, 3.7vw, 56px));
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.peppi-shop__lead {
    max-width: 700px;
    margin: 0;
    color: var(--peppi-text-soft, #687586);
    font-size: var(--peppi-lead, 18px);
    line-height: 1.6;
}

.peppi-shop__products {
    padding: 74px 0 88px;
}

.peppi-shop__category-section + .peppi-shop__category-section {
    margin-top: 72px;
}

.peppi-shop__section-head {
    margin-bottom: 28px;
}

.peppi-shop__section-head h2 {
    margin: 0;
    color: var(--peppi-text, #111);
    font-size: var(--peppi-h2, clamp(34px, 3.1vw, 44px));
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.peppi-shop__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.peppi-shop-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--peppi-line, #dce7e4);
    border-radius: 20px;
    background: var(--peppi-white, #fff);
    box-shadow: 0 10px 28px rgba(52, 71, 79, .06);
}

/* ВАЖНО: изображение показывается целиком, без crop. */
.peppi-shop-card__image {
    display: block;
    overflow: hidden;
    background: #f4f7f5;
    line-height: 0;
}

.peppi-shop-card__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.peppi-shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

/* На карточке остаётся только название товара — категория теперь заголовок секции. */
.peppi-shop-card__title {
    margin: 0 0 10px;
    color: var(--peppi-text, #111);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.peppi-shop-card__title a {
    color: inherit;
    text-decoration: none;
}

.peppi-shop-card__text {
    margin: 0;
    color: var(--peppi-text-soft, #687586);
    font-size: 13px;
    line-height: 1.5;
}

.peppi-shop-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.peppi-shop-card__price {
    color: var(--peppi-text, #111);
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
}

.peppi-shop-card__price del {
    color: #9aa6b2;
    font-size: 12px;
    font-weight: 400;
}

.peppi-shop-card__price ins {
    text-decoration: none;
}

.peppi-shop-card__button,
.peppi-shop__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: var(--peppi-coral, #f87561);
    color: #fff !important;
    font-family: var(--peppi-font, "Montserrat", sans-serif);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.peppi-shop-card__button:hover,
.peppi-shop__button:hover,
.peppi-shop__help-button:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.peppi-shop-card__button.added {
    background: #6fb88a;
}

.peppi-shop__empty {
    max-width: 720px;
    padding: 42px;
    border-radius: 24px;
    background: var(--peppi-bg, #f3f8f6);
}

.peppi-shop__empty h2 {
    margin: 0 0 14px;
    color: var(--peppi-text, #111);
    font-size: var(--peppi-h3, 24px);
    line-height: 1.2;
}

.peppi-shop__empty p,
.peppi-shop__help p {
    color: var(--peppi-text-soft, #687586);
    font-size: var(--peppi-body, 16px);
    line-height: 1.6;
}

.peppi-shop__empty p {
    margin: 0 0 24px;
}

.peppi-shop__help {
    padding: 68px 0 74px;
    background: var(--peppi-yellow-soft, #fff7df);
}

.peppi-shop__help-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.peppi-shop__help h2 {
    margin: 0 0 18px;
    color: var(--peppi-text, #111);
    font-size: var(--peppi-h2, clamp(34px, 3.1vw, 44px));
    line-height: 1.08;
    font-weight: 800;
}

.peppi-shop__help p {
    max-width: 600px;
    margin: 0;
}

.peppi-shop__help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 23px;
    border: 1px solid var(--peppi-blue, #648cff);
    border-radius: 12px;
    color: var(--peppi-blue, #648cff) !important;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .peppi-shop__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .peppi-shop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .peppi-shop__hero {
        padding: 52px 0 48px;
    }

    .peppi-shop__title {
        font-size: 38px;
        letter-spacing: -.8px;
    }

    .peppi-shop__lead {
        font-size: 16px;
    }

    .peppi-shop__products {
        padding: 54px 0 60px;
    }

    .peppi-shop__category-section + .peppi-shop__category-section {
        margin-top: 52px;
    }

    .peppi-shop__section-head h2 {
        font-size: 30px;
    }

    .peppi-shop__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .peppi-shop-card__title {
        font-size: 20px;
    }

    .peppi-shop-card__bottom {
        align-items: flex-start;
        flex-direction: row;
    }

    .peppi-shop__help-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
    }
}

/* Категория не выводится внутри карточки — только заголовком секции. */
.peppi-shop-card__category { display: none !important; }
/* Заголовок товара на карточке — обычное начертание */
.peppi-shop-card__title,
.peppi-shop-card__title a {
    font-weight: 400 !important;
}

/* Кнопка «Оплатить» — белая с обводкой */
.peppi-shop-card__add-to-cart {
    background: #ffffff !important;
    color: #ff6f61 !important;
    border: 1px solid #ff6f61 !important;
    box-shadow: none !important;
}

/* Сохраняем тот же вид при наведении */
.peppi-shop-card__add-to-cart:hover,
.peppi-shop-card__add-to-cart:focus {
    background: #ffffff !important;
    color: #ff6f61 !important;
    border-color: #ff6f61 !important;
}