.home-spotlight {
    padding: 4px 0 28px;
}

.home-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "feature watches refurbished"
        "feature earbuds earbuds";
    gap: 18px 22px;
    align-items: stretch;
}

.home-spotlight-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #183028;
    text-decoration: none;
}

.home-spotlight-card.is-feature { grid-area: feature; }
.home-spotlight-card:nth-child(2) { grid-area: watches; }
.home-spotlight-card:nth-child(3) { grid-area: refurbished; }
.home-spotlight-card.is-wide { grid-area: earbuds; }

.home-spotlight-panel {
    position: relative;
    display: block;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
    border-radius: 8px;
    background: #e7f6ee;
}

.home-spotlight-card.is-feature .home-spotlight-panel { min-height: 520px; }

.home-spotlight-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #009e60;
    clip-path: polygon(62% 0, 100% 0, 100% 100%, 34% 100%);
}

.home-spotlight-card:hover .home-spotlight-panel { filter: saturate(1.05) brightness(0.98); }
.home-spotlight-card:focus-visible { outline: 2px solid #009e60; outline-offset: 3px; }

.home-spotlight-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    border-radius: 4px;
    background: #009e60;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.home-spotlight-card.is-feature .home-spotlight-badge {
    padding: 8px 12px;
    font-size: 15px;
}

.home-spotlight-photos {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px 4px 0;
    box-sizing: border-box;
    background: transparent;
}

.home-spotlight-photos img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
}

.home-spotlight-card.is-feature .home-spotlight-photos {
    align-items: center;
    justify-content: flex-end;
    inset: 8px 0 0 96px;
    padding: 0;
}

.home-spotlight-card.is-feature .home-spotlight-photos img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: right center;
    transform: scale(1.08);
    transform-origin: right center;
}

.home-spotlight-card:nth-child(3) .home-spotlight-photos {
    align-items: center;
    justify-content: flex-end;
    inset: 8px 0 0 112px;
    padding: 0;
}

.home-spotlight-card:nth-child(3) .home-spotlight-photos img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right center;
}

.home-spotlight-card.is-wide .home-spotlight-panel { min-height: 420px; }
.home-spotlight-card.is-wide .home-spotlight-photos {
    align-items: center;
    justify-content: center;
    inset: 20px 8% 8px;
    padding: 0;
}
.home-spotlight-card.is-wide .home-spotlight-photos img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

.home-spotlight-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 2px 0;
}

.home-spotlight-title {
    color: #183028;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.home-spotlight-action {
    color: #009e60;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.home-spotlight-card:hover .home-spotlight-action { text-decoration: underline; }

@media (min-width: 901px) {
    .home-spotlight-card.is-feature .home-spotlight-photos {
        inset: 32px 0 0;
    }
    .home-spotlight-card.is-feature .home-spotlight-photos img {
        transform: scale(1.2);
        transform-origin: center 56%;
    }
}

@media (max-width: 900px) {
    .home-spotlight-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "feature feature"
            "watches refurbished"
            "earbuds earbuds";
    }
    .home-spotlight-card.is-feature .home-spotlight-panel { min-height: 420px; }
}

@media (max-width: 640px) {
    .home-spotlight { padding-bottom: 18px; }
    .home-spotlight-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "feature"
            "watches"
            "refurbished"
            "earbuds";
        gap: 16px;
    }
    .home-spotlight-panel { min-height: 280px; }
    .home-spotlight-card.is-feature .home-spotlight-panel { min-height: 430px; }
    .home-spotlight-card.is-feature .home-spotlight-photos { inset: 4px 0 0 108px; }
    .home-spotlight-card.is-feature .home-spotlight-photos img {
        transform: scale(1.08);
        transform-origin: right center;
    }
    .home-spotlight-card:nth-child(3) .home-spotlight-photos { inset: 6px 0 0 108px; }
    .home-spotlight-card.is-wide .home-spotlight-panel { min-height: 320px; }
    .home-spotlight-card.is-wide .home-spotlight-photos img { max-width: 100%; height: 100%; margin: 0; }
    .home-spotlight-card.is-feature .home-spotlight-badge { font-size: 15px; }
    .home-spotlight-title { font-size: 16px; }
}
