:root {
    --pm-page-bg:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 26%),
        radial-gradient(circle at 82% 0%, rgba(34, 197, 94, 0.08), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 46%, #f8fafc 100%);
    --pm-surface: rgba(255, 255, 255, 0.88);
    --pm-surface-strong: rgba(255, 255, 255, 0.94);
    --pm-border: rgba(148, 163, 184, 0.18);
    --pm-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

body {
    background: var(--pm-page-bg);
}

main.category-shell {
    padding-bottom: 5rem;
}

main.category-shell .hero-card {
    border-radius: 2rem;
    padding: clamp(1.5rem, 2vw, 2.4rem) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
        linear-gradient(120deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.1);
}

main.category-shell .hero-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% auto;
    width: 320px;
    height: 320px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 72%);
    pointer-events: none;
}

main.category-shell h1 {
    font-size: clamp(2.35rem, 4vw, 4.3rem) !important;
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 12ch;
    text-wrap: balance;
}

main.category-shell .hero-card p.text-lg {
    max-width: 58ch;
    color: #475569 !important;
    line-height: 1.85;
}

main.category-shell .count-pill {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

main.category-shell .category-products .grid {
    gap: 1.4rem !important;
}

main.category-shell .category-products section.container {
    padding-inline: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

main.category-shell .category-products .grid > * {
    min-height: 100%;
}

main.category-shell .category-products .liquid-glass,
main.category-shell .category-products .product-card,
main.category-shell .category-products .pm-category-card {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 1.4rem !important;
    border-radius: 1.6rem !important;
    background: var(--pm-surface) !important;
    border: 1px solid var(--pm-border) !important;
    box-shadow: var(--pm-shadow) !important;
}

main.category-shell .category-products .liquid-glass > a:first-child,
main.category-shell .category-products .product-card > a:first-child {
    width: 100%;
}

main.category-shell .category-products .liquid-glass:hover,
main.category-shell .category-products .product-card:hover,
main.category-shell .category-products .pm-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 62px rgba(14, 165, 233, 0.12) !important;
}

main.category-shell .category-products img {
    height: 240px !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.15rem !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

main.category-shell .category-products .liquid-glass:hover img,
main.category-shell .category-products .product-card:hover img {
    transform: scale(1.025);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

main.category-shell .category-products h3 {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem !important;
}

main.category-shell .category-products p {
    color: #475569 !important;
    line-height: 1.75;
}

main.category-shell .category-products ul {
    width: 100%;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    color: #64748b !important;
    line-height: 1.7;
}

main.category-shell .category-products .flex.space-x-4,
main.category-shell .category-products .flex.space-x-4.mt-auto {
    width: 100%;
    margin-top: auto !important;
    padding-top: 1rem;
    gap: 0.85rem !important;
}

main.category-shell .category-products .flex.space-x-4 > :not([hidden]) ~ :not([hidden]),
main.category-shell .category-products .flex.space-x-4.mt-auto > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
}

main.category-shell .category-products .flex.space-x-4 > a {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
}

main.category-shell .category-products .btn-accent {
    background: #0f172a;
    color: #ffffff;
}

main.category-shell .category-products .btn-accent:hover {
    background: #1e293b;
}

.pm-category-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.35rem 0 2.2rem;
}

.pm-category-highlight {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.15rem 1.2rem;
    border-radius: 1.35rem;
    background: var(--pm-surface-strong);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.pm-category-highlight i {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.pm-category-highlight strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.pm-category-highlight span {
    color: #64748b;
    line-height: 1.65;
}

body .site-footer {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.03);
}

@media (max-width: 1024px) {
    .pm-category-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    main.category-shell .hero-card {
        border-radius: 1.6rem;
    }

    main.category-shell h1 {
        max-width: none;
    }

    main.category-shell .category-products img {
        height: 220px !important;
    }

    main.category-shell .category-products .flex.space-x-4,
    main.category-shell .category-products .flex.space-x-4.mt-auto {
        flex-direction: column;
    }
}
