.home-material-offers {
    --offer-sand: #f0e5d2;
    --offer-ink: #29231e;
    --offer-muted-ink: #514336;
    --offer-burgundy: #781f36;
    --offer-tile: #34363a;
    --offer-tile-border: #55585d;
    --offer-paper: #fff8ed;
    --offer-paper-muted: #e1d9cf;
    --offer-inset: clamp(20px, 3.3vw, 43px);
    overflow: hidden;
    border-radius: 16px;
}

.home-material-offers__hero {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    min-height: 232px;
    padding: 30px var(--offer-inset);
    overflow: hidden;
    background: var(--offer-sand);
    scroll-margin-top: 140px;
}

.home-material-offers__hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 62%;
    z-index: -1;
}

.home-material-offers__hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 57%;
}

.home-material-offers__hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, var(--offer-sand) 0%, #f0e5d2e8 17%, #f0e5d285 43%, #f0e5d200 74%);
}

.home-material-offers__hero-copy {
    width: min(58%, 610px);
}

.home-material-offers .home-material-offers__hero-copy h2 {
    margin: 0;
    color: var(--offer-ink) !important;
    font-size: clamp(29px, 3.4vw, 45px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.home-material-offers .home-material-offers__hero-copy p {
    margin: 9px 0 0;
    color: var(--offer-muted-ink) !important;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.45;
}

.home-material-offers__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    margin-top: 18px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--offer-burgundy);
    color: #fff !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.home-material-offers__cta:hover { background: #64192d; }
.home-material-offers__cta:focus-visible {
    outline: 3px solid var(--offer-burgundy);
    outline-offset: 3px;
}

.home-material-offers__sale {
    padding: 25px var(--offer-inset) 30px;
    background: var(--ps-color-sale-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ps-color-sale) 48%, transparent);
}

html[data-theme="dark"] .home-material-offers__sale {
    background: var(--color-surface-secondary);
}

.home-material-offers__sale-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 15px;
}

.home-material-offers .home-material-offers__sale-header h2 {
    margin: 0;
    color: var(--ps-color-ink) !important;
    font-size: clamp(21px, 2.2vw, 29px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.home-material-offers__sale-header a {
    color: var(--ps-color-ink) !important;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

html[data-theme="dark"] .home-material-offers .home-material-offers__sale-header :is(h2, a) {
    color: var(--color-text-primary) !important;
}

.home-material-offers__sale-header a:hover { text-decoration: underline; }

.home-material-offers__sale-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.home-material-offers__sale-grid:where([data-offer-count="1"]) { grid-template-columns: minmax(0, 420px); }
.home-material-offers__sale-grid:where([data-offer-count="2"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-material-offers__sale-grid li { min-width: 0; }

.home-material-offers__offer {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--offer-tile-border);
    border-radius: 9px;
    background: var(--offer-tile);
    text-decoration: none;
}

.home-material-offers__sale-header a:focus-visible,
.home-material-offers__offer:focus-visible {
    outline: 3px solid #f3ce9c;
    outline-offset: 3px;
}

.home-material-offers__offer:hover {
    border-color: #a6a29f;
    background: #3a3d41;
}

.home-material-offers__offer-media {
    position: relative;
    width: 100%;
    max-height: 145px;
    aspect-ratio: 2.85 / 1;
    overflow: hidden;
    background: #53565a;
}

.home-material-offers__offer-media img,
.home-material-offers__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-material-offers__offer-media img { display: block; object-fit: cover; }
.home-material-offers__offer-media img[hidden] { display: none; }

.home-material-offers__placeholder {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 4px;
    background: linear-gradient(125deg, #62656a, #494c50);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.home-material-offers__offer-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 5px;
    padding: 12px 13px;
    overflow-wrap: anywhere;
}

.home-material-offers .home-material-offers__offer-copy h3 {
    margin: 0;
    color: var(--offer-paper) !important;
    font-size: 16px;
    line-height: 1.2;
}

.home-material-offers .home-material-offers__offer-copy p {
    margin: 0;
    color: var(--offer-paper-muted) !important;
    font-size: 13px;
    line-height: 1.3;
}

.home-material-offers .home-material-offers__offer-copy strong {
    margin-top: auto;
    padding-right: 26px;
    color: var(--offer-paper) !important;
    font-size: 17px;
    line-height: 1.2;
}

.home-material-offers__offer-arrow {
    position: absolute;
    right: 13px;
    bottom: 11px;
    color: var(--offer-paper);
    font-size: 19px;
    line-height: 1;
}

@media (max-width: 760px) {
    .home-material-offers__hero { min-height: 206px; padding-block: 24px; }
    .home-material-offers__hero-copy { width: min(75%, 420px); }
    .home-material-offers__hero-media { width: 68%; }
    .home-material-offers__hero-media::after {
        background: linear-gradient(90deg, var(--offer-sand) 0%, #f0e5d2ef 25%, #f0e5d2b3 51%, #f0e5d20d 100%);
    }
    .home-material-offers__sale { padding-block: 20px; }
    .home-material-offers__sale-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .home-material-offers__offer {
        grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
        grid-template-rows: 1fr;
        min-height: 88px;
    }
    .home-material-offers__offer-media { max-height: none; aspect-ratio: auto; }
    .home-material-offers__offer-copy { padding: 10px 11px; }
    .home-material-offers .home-material-offers__offer-copy h3 { font-size: 15px; }
    .home-material-offers .home-material-offers__offer-copy strong { font-size: 16px; }
}
