.pag-home {
    --pag-home-bg: linear-gradient(135deg, #f6f1e8 0%, #fffaf4 48%, #edf3f8 100%);
    --pag-home-surface: rgba(255, 255, 255, 0.86);
    --pag-home-surface-strong: #ffffff;
    --pag-home-border: rgba(16, 24, 40, 0.08);
    --pag-home-text: #14213d;
    --pag-home-muted: #5c677d;
    --pag-home-accent: #d97706;
    --pag-home-accent-dark: #9a3412;
    --pag-home-shadow: 0 24px 60px rgba(20, 33, 61, 0.12);
    position: relative;
    overflow: visible;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pag-home::before,
.pag-home::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.5;
    pointer-events: none;
    display: none;
}

.pag-home::before {
    top: -60px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.28) 0%, rgba(217, 119, 6, 0) 70%);
}

.pag-home::after {
    bottom: -80px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(20, 33, 61, 0.18) 0%, rgba(20, 33, 61, 0) 70%);
}

.pag-home__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.pag-home-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--pag-home-border);
    border-radius: 34px;
    background: var(--pag-home-surface);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(20, 33, 61, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.pag-home-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: 0 22px 54px rgba(20, 33, 61, 0.14);
}

.pag-home-card__image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 244, 249, 0.9));
}

.pag-home-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 260ms ease;
}

.pag-home-card:hover .pag-home-card__image-wrap img {
    transform: scale(1.06);
}

.pag-home-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(20, 33, 61, 0.08));
}

.pag-home-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.pag-home-card__meta {
    color: var(--pag-home-accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pag-home-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.pag-home-card__title a {
    color: var(--pag-home-text);
    text-decoration: none;
}

.pag-home-card__price-group {
    display: grid;
    gap: 6px;
}

.pag-home-card__price-label {
    color: var(--pag-home-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pag-home-card__price {
    color: var(--pag-home-text);
    font-size: 24px;
    font-weight: 700;
}

.pag-home-card__price ins {
    text-decoration: none;
}

.pag-home-card__price del {
    opacity: 0.45;
    margin-right: 6px;
}

.pag-home-card__actions {
    margin-top: auto;
}

.pag-home-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pag-home-card__button:hover {
    transform: translateY(-2px);
    border-color: #1e293b;
    background: #1e293b;
}

.pag-home-card__button:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

.pag-home__footer {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 28px;
}

.pag-home__status {
    color: var(--pag-home-muted);
    font-size: 14px;
    text-align: center;
}

.pag-home__loader {
    display: inline-flex;
    gap: 8px;
}

.pag-home__loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pag-home-accent) 0%, var(--pag-home-accent-dark) 100%);
    animation: pag-home-bounce 900ms infinite ease-in-out;
}

.pag-home__loader-dot:nth-child(2) {
    animation-delay: 120ms;
}

.pag-home__loader-dot:nth-child(3) {
    animation-delay: 240ms;
}

.pag-home__sentinel {
    width: 100%;
    height: 2px;
}

.pag-home-notice {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--pag-home-text);
    text-align: center;
}

@keyframes pag-home-bounce {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.45;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .pag-home__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    p:has(> .pag-home) {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .pag-home {
        margin: 0 !important;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .pag-home::before,
    .pag-home::after {
        display: none;
    }

    .pag-home__grid {
        margin-top: 0;
        padding: 0 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pag-home-card {
        border-radius: 24px;
    }

    .pag-home__footer {
        margin-top: 20px;
    }
}

@media (max-width: 560px) {
    .pag-home__grid {
        padding: 0 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pag-home-card__content {
        padding: 14px;
    }

    .pag-home-card__title {
        font-size: 17px;
    }

    .pag-home-card__price {
        font-size: 20px;
    }
}