body.hm-products-body {
    background: #f6f7f8;
}

.hm-offers-page,
.hm-offer-detail-page {
    --offer-ink: #15171a;
    --offer-muted: #68707a;
    --offer-line: #dde2e8;
    --offer-red: #b3261e;
    --offer-red-dark: #962019;
    --offer-green: #235648;
    --offer-soft-green: #eef8f1;
    --offer-gold: #f2b01e;
}

.hm-offers-toolbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #e4d4bd;
    border-radius: 8px;
    padding: 15px 16px;
    background:
        linear-gradient(135deg, rgba(179, 38, 30, 0.08), rgba(255, 248, 232, 0.96) 44%, #ffffff),
        #ffffff;
    box-shadow: 0 12px 28px rgba(91, 52, 22, 0.08);
}

.hm-offers-toolbar::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -54px;
    width: 148px;
    height: 148px;
    border-radius: 999px;
    background: rgba(179, 38, 30, 0.08);
    pointer-events: none;
}

.hm-offers-toolbar span {
    position: relative;
    display: block;
    color: var(--offer-red);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.hm-offers-toolbar h1 {
    position: relative;
    margin: 4px 0 0;
    color: var(--offer-ink);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 950;
    line-height: 1.1;
}

.hm-offers-toolbar strong {
    position: relative;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe9df;
    border-radius: 999px;
    padding: 0 11px;
    background: #f2faf4;
    color: var(--offer-green);
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

.hm-offers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.hm-offer-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hm-offer-card:hover {
    border-color: #cbd4dd;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.075);
}

.hm-offer-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.98;
    overflow: hidden;
    border-bottom: 1px solid #edf0f3;
    background: #f8faf7;
    color: inherit;
    text-decoration: none;
}

.hm-offer-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    transition: transform 170ms ease;
}

.hm-offer-card:hover .hm-offer-card__media img {
    transform: scale(1.025);
}

.hm-offer-card__discount,
.hm-offer-card__stock {
    position: absolute;
    z-index: 2;
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 0 8px;
    font-size: 0.63rem;
    font-weight: 950;
    line-height: 1;
}

.hm-offer-card__discount {
    top: 9px;
    left: 9px;
    background: #047f00;
    color: #ffffff;
}

.hm-offer-card__stock {
    right: 9px;
    bottom: 9px;
    background: rgba(255, 255, 255, 0.94);
    color: #1f7a4d;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.hm-offer-card__stock.is-out {
    border-color: #f2c5bd;
    background: #fff2ef;
    color: var(--offer-red);
}

.hm-offer-card__body {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 11px;
}

.hm-offer-card__copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.hm-offer-card__copy h2 {
    min-height: 2.42em;
    margin: 0;
    color: var(--offer-ink);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.21;
    letter-spacing: 0;
}

.hm-offer-card__copy h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hm-offer-card__copy h2 a:hover,
.hm-offer-card__copy h2 a:focus {
    color: var(--offer-red);
}

.hm-offer-card__description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--offer-muted);
    font-size: 0.73rem;
    font-weight: 650;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hm-offer-card__inside {
    min-width: 0;
    min-height: 35px;
    display: flex;
    align-items: center;
}

.hm-offer-card__inside img,
.hm-offer-card__inside > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 2px solid #ffffff;
    border-radius: 999px;
    margin-right: -10px;
    background: #f4f6f8;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.hm-offer-card__inside img {
    object-fit: cover;
}

.hm-offer-card__inside > span {
    display: grid;
    place-items: center;
    color: var(--offer-green);
    font-size: 0.7rem;
    font-weight: 950;
}

.hm-offer-card__inside strong {
    min-width: 0;
    margin-left: 14px;
    overflow: hidden;
    color: var(--offer-muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-offer-card__selector {
    display: grid;
    gap: 5px;
    margin: 0;
}

.hm-offer-card__selector > span:first-child {
    color: var(--offer-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hm-offer-card__price {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-end;
    border-top: 1px solid #edf0f3;
    padding-top: 8px;
}

.hm-offer-card__price div {
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.hm-offer-card__price span {
    color: #8a929b;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: line-through;
}

.hm-offer-card__price strong {
    color: var(--offer-red);
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1;
}

.hm-offer-card__price em {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 8px;
    background: var(--offer-soft-green);
    color: var(--offer-green);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.hm-offer-card__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hm-offer-card__actions .hm-product-qty {
    width: 98px;
    min-width: 98px;
}

.hm-offer-card__add {
    flex: 1 1 auto;
    width: 100%;
}

.hm-offer-card__add:hover,
.hm-offer-card__add:focus {
    background: var(--offer-red-dark);
}

.hm-offer-card__details {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd8d4;
    border-radius: 6px;
    background: #ffffff;
    color: var(--offer-green);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.hm-offer-card__details:hover,
.hm-offer-card__details:focus {
    border-color: var(--offer-green);
    background: #f2faf4;
    color: var(--offer-green);
}

.hm-offer-detail__rating {
    margin-top: 8px;
    font-size: 0.78rem;
}

.hm-offer-detail .hm-product-gallery__main {
    aspect-ratio: 1 / 0.82;
}

.hm-offer-detail .hm-product-buybox__trust {
    margin-top: 0;
}

.hm-offer-included {
    margin-top: 16px;
    border: 1px solid var(--offer-line);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.hm-offer-included .hm-related-products__head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf0f3;
}

.hm-offer-included .hm-related-products__head h2 {
    margin: 0;
    font-size: 1rem;
}

.hm-offer-included__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hm-offer-included__item {
    min-width: 0;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    padding: 8px;
    background: #fbfcfd;
    color: var(--offer-ink);
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease;
}

.hm-offer-included__item:hover,
.hm-offer-included__item:focus {
    border-color: var(--offer-red);
    background: #ffffff;
    color: var(--offer-red);
}

.hm-offer-included__item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
}

.hm-offer-included__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.hm-offer-included__copy > strong,
.hm-offer-included__copy > em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-offer-included__copy > strong {
    color: inherit;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.18;
}

.hm-offer-included__copy > em {
    color: var(--offer-muted);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 750;
}

.hm-offer-included__rating {
    min-width: 0;
    display: flex;
    gap: 5px;
    align-items: center;
    color: #7d858e;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
}

.hm-offer-included__rating span {
    display: inline-flex;
    gap: 1px;
    color: #d7dce1;
}

.hm-offer-included__rating i {
    font-style: normal;
}

.hm-offer-included__rating i.is-filled {
    color: var(--offer-gold);
}

.hm-offer-included__rating b {
    color: var(--offer-ink);
    font-weight: 950;
}

.hm-offer-included__rating small {
    color: #8a929b;
    font-size: 0.66rem;
    font-weight: 800;
}

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

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

@media (max-width: 620px) {
    .hm-offers-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: start;
        padding: 13px 12px;
    }

    .hm-offers-toolbar strong {
        justify-self: end;
        margin-top: 1px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .hm-offers-grid,
    .hm-offer-included__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hm-offer-card__media {
        aspect-ratio: 1 / 0.68;
    }

    .hm-offer-card__body {
        padding: 12px;
    }

    .hm-offer-card__price {
        align-items: center;
        flex-direction: row;
    }

    .hm-offer-card__actions {
        gap: 6px;
    }

    .hm-offer-card__actions .hm-product-qty {
        width: 92px;
        min-width: 92px;
    }

    .hm-offer-card__details {
        min-height: 30px;
        font-size: 0.74rem;
    }

    .hm-offer-included {
        padding: 10px;
    }
}

@media (max-width: 420px) {
    .hm-offer-card__price div {
        flex-wrap: wrap;
    }

    .hm-offer-included__item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .hm-offer-included__item img {
        width: 48px;
        height: 48px;
    }
}
