@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ink: #10212b;
    --muted: #647481;
    --line: #dbe7ea;
    --surface: #f7fbfa;
    --panel: #ffffff;
    --teal: #04766d;
    --teal-2: #13a594;
    --coral: #ef6a55;
    --yellow: #f7c948;
    --shadow: 0 24px 70px rgba(16, 33, 43, .12);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(247, 201, 72, .24), transparent 24rem),
        radial-gradient(circle at 88% 14%, rgba(4, 118, 109, .18), transparent 26rem),
        linear-gradient(135deg, #f8fcfb 0%, #eef8f5 62%, #fff9e8 100%);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    font-family: "Poppins", Arial, sans-serif;
}

.category-topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto;
}

.brand,
.category-topbar nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand strong {
    font-size: 1.15rem;
}

.category-topbar nav a {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 800;
}

.category-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 48px;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    overflow: hidden;
    border: 1px solid rgba(219, 231, 234, .92);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.category-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(34px, 6vw, 72px);
}

.eyebrow,
.section-heading span {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--teal);
    background: #e6f6f3;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.category-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.category-copy p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.category-hero img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.category-products {
    margin-top: 28px;
}

.section-heading {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 22px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.category-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr);
    gap: 14px;
    margin: 0 0 22px;
    padding: 14px;
    border: 1px solid rgba(219, 231, 234, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 30px rgba(16, 33, 43, .06);
}

.search-field,
.filter-field {
    display: grid;
    gap: 7px;
}

.search-field {
    position: relative;
}

.search-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    color: var(--teal);
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-field label {
    color: var(--ink);
    font-size: .82rem;
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

.search-field .form-control {
    height: 100%;
    padding-left: 42px;
}

.form-control:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(4, 118, 109, .13);
}

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

.product-card,
.empty-card {
    overflow: hidden;
    border: 1px solid rgba(219, 231, 234, .92);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 14px 36px rgba(16, 33, 43, .07);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #edf7f5;
}

.product-link,
.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-content {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.product-category {
    color: var(--teal);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-title {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.3;
}

.product-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.product-footer {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.product-price {
    color: var(--teal);
    font-size: 1.25rem;
    font-weight: 900;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.cart-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    font: inherit;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
}

.cart-action.favorite {
    color: var(--teal);
    background: #e8f7f4;
}

.cart-action.is-active {
    background: #10212b;
    color: #ffffff;
}

.empty-card {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 34px;
    text-align: center;
}

.empty-card i {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: var(--teal);
    background: #e6f6f3;
    font-size: 1.25rem;
}

.empty-card strong {
    font-size: 1.12rem;
}

.empty-card p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .category-hero,
    .products-grid,
    .category-toolbar {
        grid-template-columns: 1fr;
    }

    .category-hero img {
        min-height: 300px;
        order: -1;
    }
}

@media (max-width: 560px) {
    .category-topbar {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }

    .category-topbar,
    .category-page {
        width: min(100% - 20px, 1180px);
    }

    .category-copy {
        padding: 24px;
    }
}

/* Visual da loja — 29/10/2026. Catálogo compacto com os filtros existentes. */
body {
    background: #f8faf9;
}

.category-page {
    width: min(1240px, calc(100% - 48px));
    margin-top: 28px;
    margin-bottom: 64px;
}

.category-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr);
    border-color: #e4eae7;
    border-radius: 12px;
    background: #eef7f3;
    box-shadow: none;
}

.category-copy {
    gap: 14px;
    padding: clamp(24px, 3vw, 40px);
}

.category-copy h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.category-copy p {
    max-width: 58ch;
    font-size: .94rem;
    line-height: 1.65;
}

.category-hero img {
    height: 250px;
    min-height: 0;
    order: 0;
}

.category-products {
    margin-top: 34px;
}

.category-products .section-heading {
    justify-items: start;
    gap: 8px;
    text-align: left;
}

.category-products .section-heading h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.category-toolbar {
    align-items: end;
    padding: 16px;
    border-color: #e4eae7;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

.category-toolbar .form-control {
    min-height: 46px;
    border-color: #dce5df;
    border-radius: 6px;
    font-size: .88rem;
}

.category-products .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-products .product-card {
    display: flex;
    flex-direction: column;
    border-color: #e5ebe7;
    border-radius: 9px;
    box-shadow: 0 2px 9px rgba(16, 33, 43, .035);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.category-products .product-card:hover {
    border-color: #a7cfc2;
    box-shadow: 0 6px 20px rgba(16, 33, 43, .07);
}

.category-products .product-card img {
    display: block;
    aspect-ratio: 1;
    padding: 16px;
    object-fit: contain;
    background: #fff;
}

.category-products .product-content {
    flex: 1;
    grid-template-rows: auto auto 1fr auto;
    gap: 8px;
    padding: 14px;
}

.category-products .product-category {
    font-size: .64rem;
    letter-spacing: .045em;
}

.category-products .product-title {
    font-size: .94rem;
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.category-products .product-description {
    font-size: .8rem;
    line-height: 1.5;
}

.category-products .product-price {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.category-products .product-actions {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
}

.category-products .cart-action {
    min-width: 0;
    min-height: 44px;
    padding-inline: 10px;
    border-radius: 6px;
    font-size: .81rem;
    font-weight: 700;
    background: var(--teal);
}

.category-products .cart-action.favorite {
    padding-inline: 0;
    color: var(--teal);
    background: #e8f5ee;
}

.category-products .cart-action.is-active {
    color: #fff;
    background: #10212b;
}

.category-page :is(a, button):focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .category-products .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .category-hero {
        grid-template-columns: minmax(0, 1fr) minmax(120px, .55fr);
    }

    .category-hero img {
        height: 100%;
        min-height: 210px;
        order: 0;
    }

    .category-copy {
        padding: 22px;
    }

    .category-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .category-page {
        width: calc(100% - 24px);
        margin-top: 16px;
    }

    .category-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-copy {
        padding: 24px 20px;
    }

    .category-hero img {
        height: 180px;
        min-height: 0;
        order: -1;
    }

    .category-toolbar {
        padding: 12px;
        gap: 12px;
    }

    .category-products .product-card img {
        padding: 10px;
    }

    .category-products .product-content {
        padding: 11px;
    }

    .category-products .product-title {
        font-size: .84rem;
    }

    .category-products .product-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-products .cart-action.favorite {
        width: 100%;
    }
}
