.home-promo-section {
    padding: 20px 0 0;
}

.home-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
    aspect-ratio: 2.38 / 1;
}

.home-promo-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f4f5f7;
}

.home-promo-card:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.home-promo-card:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
.home-promo-card:nth-child(3) { grid-area: 1 / 2 / 3 / 3; }
.home-promo-card:nth-child(4) { grid-area: 1 / 3 / 2 / 4; }
.home-promo-card:nth-child(5) { grid-area: 1 / 4 / 2 / 5; }
.home-promo-card:nth-child(6) { grid-area: 2 / 3 / 3 / 5; }

.home-promo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.home-promo-card:hover .home-promo-image {
    transform: scale(1.025);
}

.home-promo-layer {
    position: absolute;
    z-index: 2;
    display: block;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: var(--promo-font);
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.home-promo-layer-button {
    border-radius: 4px;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}

.home-promo-layer-button:hover {
    color: inherit;
    filter: brightness(.96);
    transform: translateY(-1px);
}

.home-vitrin-banner-section {
    padding-top: 30px;
}

.home-vitrin-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-vitrin-banner-grid .home-promo-card:nth-child(n) {
    grid-area: auto;
    aspect-ratio: 1226 / 1050;
}

.kategori-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.kategori-promo-grid .kategori-promo-kart:nth-child(n) {
    grid-area: auto;
    aspect-ratio: 1350 / 600;
}

.kategori-promo-grid .kategori-promo-slot-3 {
    grid-column: 1 / -1;
    aspect-ratio: 2700 / 600;
}

@media (max-width: 767px) {
    .home-promo-section {
        padding-top: 10px;
    }

    .home-promo-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 10px;
        aspect-ratio: auto;
    }

    .home-promo-card,
    .home-promo-card:nth-child(n) {
        grid-area: auto;
        aspect-ratio: 7 / 6;
    }

    .home-promo-card:nth-child(3) {
        grid-row: span 2;
        aspect-ratio: auto;
    }

    .home-promo-card:nth-child(6) {
        grid-column: span 2;
        aspect-ratio: 14 / 6;
    }

    .home-promo-layer {
        padding: 6px 8px;
        font-size: var(--promo-mobile-font);
    }

    .home-vitrin-banner-section {
        padding-top: 20px;
    }

    .home-vitrin-banner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-vitrin-banner-grid .home-promo-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 1226 / 1050;
    }

    .kategori-promo-grid {
        grid-template-columns: 1fr;
    }

    .kategori-promo-grid .kategori-promo-kart:nth-child(n),
    .kategori-promo-grid .kategori-promo-slot-3 {
        grid-column: auto;
        aspect-ratio: 1350 / 600;
    }
}

@media (max-width: 479px) {
    .home-promo-grid {
        grid-template-columns: 1fr;
    }

    .home-promo-card,
    .home-promo-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 7 / 6;
    }

    .home-promo-card:nth-child(3) {
        aspect-ratio: 7 / 10;
    }

    .home-promo-card:nth-child(6) {
        aspect-ratio: 14 / 6;
    }

    .home-vitrin-banner-grid {
        grid-template-columns: 1fr;
    }

    .home-vitrin-banner-grid .home-promo-card:nth-child(n) {
        aspect-ratio: 1226 / 1050;
    }
}
