:root {
    --green-950: #002b19;
    --green-900: #004225;
    --green-700: #007a3d;
    --green-500: #62c51f;
    --green-100: #eef8e9;
    --yellow: #f5c84b;
    --ink: #18221c;
    --muted: #66736c;
    --soft: #f5f8f5;
    --line: #dfe8e2;
}

body {
    color: var(--ink);
    background: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { text-decoration: none; }

.site-header { box-shadow: 0 12px 28px rgba(0, 43, 25, .08); }

.top-strip {
    background: var(--green-950);
    color: #dff5df;
    font-size: .82rem;
}

.top-strip .container { min-height: 34px; }
.top-links { display: flex; gap: 16px; }
.top-links a { color: #fff; font-weight: 700; }

.brand-logo {
    width: 178px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.navbar { min-height: 76px; }
.navbar .nav-link { font-weight: 800; color: var(--ink); }

.top-search {
    flex: 1;
    max-width: 650px;
    margin: 0 28px;
    border: 2px solid var(--green-700);
    border-radius: 6px;
    overflow: hidden;
    height: 46px;
    align-items: center;
    background: #fff;
}

.top-search i { color: var(--green-700); padding-left: 15px; }
.top-search input {
    border: 0;
    outline: 0;
    padding: 0 12px;
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.top-search button {
    align-self: stretch;
    border: 0;
    background: var(--green-700);
    color: #fff;
    font-weight: 900;
    padding: 0 22px;
}

.cart-pill {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-900);
}

.category-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.category-bar .container {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.category-bar a {
    color: var(--green-900);
    font-size: .88rem;
    font-weight: 900;
    padding: 11px 15px;
    white-space: nowrap;
}

.category-bar a:hover { background: var(--green-100); }

.mobile-search {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.mobile-search .top-search {
    display: flex;
    max-width: none;
    margin: 0;
}

.hero {
    color: #fff;
    padding: 64px 0 46px;
}

.hero-store {
    background:
        linear-gradient(120deg, rgba(0, 43, 25, .97) 0%, rgba(0, 74, 42, .95) 54%, rgba(0, 122, 61, .9) 100%),
        url("../img/logo-apostilou.png") right 8% center / 540px auto no-repeat;
}

.eyebrow {
    display: inline-flex;
    color: var(--green-500);
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.hero h1,
.page-title h1,
.product-hero h1 {
    font-weight: 950;
    letter-spacing: 0;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.6vw, 4.55rem);
    line-height: 1;
    max-width: 820px;
}

.hero .lead {
    color: rgba(255,255,255,.88);
    max-width: 720px;
    font-weight: 500;
}

.hero-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    max-width: 790px;
    margin-top: 28px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}

.hero-search i { color: var(--green-700); padding-left: 10px; }
.hero-search input {
    border: 0;
    outline: 0;
    min-width: 0;
    font-weight: 700;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-metrics span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 9px 12px;
    border-radius: 6px;
}

.featured-ticket,
.hero-offer {
    background: linear-gradient(155deg, #ffffff, #f2f8f1);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,.24);
}

.ticket-label,
.offer-ribbon {
    display: inline-flex;
    background: var(--yellow);
    color: #473300;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.featured-ticket h2,
.hero-offer h2 {
    font-size: 1.8rem;
    font-weight: 950;
    margin: 18px 0 10px;
}

.featured-ticket p,
.hero-offer p { color: var(--muted); }
.ticket-price {
    color: var(--green-700);
    font-weight: 950;
    font-size: 2.35rem;
    margin: 16px 0;
}

.offer-cover {
    min-height: 196px;
    margin: 16px 0;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green-950), var(--green-700) 58%, var(--green-500));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.offer-cover span {
    align-self: flex-start;
    background: rgba(255,255,255,.16);
    border-radius: 6px;
    padding: 8px 10px;
    font-weight: 950;
}

.offer-cover strong {
    font-size: 1.75rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.offer-cover small { color: rgba(255,255,255,.82); font-weight: 800; }
.offer-price { margin: 16px 0; }
.offer-price small { display: block; color: var(--muted); font-weight: 800; }
.offer-price strong { color: var(--green-700); font-size: 2rem; line-height: 1; }

.quick-cats {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.quick-cats .container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}

.quick-cats a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 82px;
    color: var(--green-900);
    font-weight: 950;
    border-left: 1px solid var(--line);
}

.quick-cats a:last-child { border-right: 1px solid var(--line); }
.quick-cats i { color: var(--green-500); font-size: 1.25rem; }

.section-pad { padding: 58px 0; }
.bg-soft { background: var(--soft); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 22px;
}

.section-head h2,
.product-hero h1,
.page-title h1 { margin: 0; }

.product-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-link {
    color: inherit;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 63, 37, .13);
}

.product-cover {
    position: relative;
    min-height: 210px;
    background: linear-gradient(135deg, var(--green-950), var(--green-700) 62%, var(--green-500));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.product-cover b {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--yellow);
    color: #473300;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: .7rem;
    text-transform: uppercase;
}

.product-seal {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255,255,255,.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.cover-topline {
    max-width: calc(100% - 108px);
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
}

.cover-title {
    display: block;
    font-size: 1.55rem;
    line-height: 1.02;
    font-weight: 950;
    text-transform: uppercase;
}

.cover-footer {
    color: rgba(255,255,255,.82);
    font-weight: 800;
    font-size: .82rem;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-body small { color: var(--green-700); font-weight: 900; }
.product-body h3,
.product-title {
    min-height: 54px;
    color: var(--ink);
    font-size: 1.03rem;
    font-weight: 950;
    line-height: 1.22;
}

.product-body p,
.tip-card p,
.checkout-card p,
.info-box p,
.page-title p,
.contest-card p { color: var(--muted); }

.product-meta,
.product-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .88rem;
}

.product-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-features i { color: var(--green-700); }

.delivery-type {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}

.delivery-type .label { color: var(--muted); }
.delivery-type .type { color: var(--green-900); font-weight: 950; }

.product-buy,
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.card-actions {
    padding: 0 18px 18px;
}

.product-buy del {
    display: block;
    color: #9aa49e;
    font-size: .83rem;
}

.product-buy strong,
.price {
    display: block;
    color: var(--green-700);
    font-size: .95rem;
    font-weight: 950;
}

.price .old-price {
    display: block;
    color: #929d96;
    font-weight: 700;
    text-decoration: line-through;
}

.price strong {
    color: var(--green-700);
    font-size: 1.42rem;
    line-height: 1;
}

.price small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 3px;
}

.button-buy,
.button-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 6px;
    font-weight: 950;
    text-align: center;
}

.button-buy {
    flex: 0 0 42%;
    background: var(--green-700);
    color: #fff;
}

.button-cart {
    flex: 1;
    gap: 7px;
    border: 1px solid var(--green-700);
    color: var(--green-900);
    background: #fff;
    font-size: .86rem;
}

.button-buy:hover { background: var(--green-900); color: #fff; }
.button-cart:hover { background: var(--green-100); color: var(--green-900); }

.approval-band {
    background: var(--yellow);
    color: #283000;
    padding: 34px 0;
}

.approval-band .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.approval-band .eyebrow { color: #4c5500; margin-bottom: 4px; }
.approval-band h2 { margin: 0; max-width: 660px; font-weight: 950; }

.approval-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 420px;
}

.approval-stats span {
    background: rgba(255,255,255,.44);
    border-radius: 8px;
    padding: 13px;
    font-weight: 900;
}

.approval-stats strong {
    display: block;
    color: var(--green-900);
    font-size: 1.75rem;
    line-height: 1;
}

.contest-strip { background: var(--green-950); color: #fff; }
.contest-strip .eyebrow,
.contest-strip h2 { color: #fff; }

.contest-card {
    display: block;
    height: 100%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
}

.contest-card span {
    color: var(--yellow);
    font-weight: 950;
    font-size: .78rem;
    text-transform: uppercase;
}

.contest-card h3 {
    font-weight: 950;
    font-size: 1.2rem;
    margin: 10px 0 8px;
}

.contest-card p,
.contest-card small { color: rgba(255,255,255,.75); }

.page-title,
.product-hero {
    background: var(--soft);
    padding: 52px 0;
    border-bottom: 1px solid var(--line);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 190px 190px auto;
    gap: 10px;
    margin-top: 20px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.spec-grid div,
.checkout-card,
.info-box,
.form-card,
.admin-form,
.success-box,
.tip-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 63, 37, .07);
}

.spec-grid div { padding: 14px; }
.spec-grid span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.content-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.content-list li {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 15px;
    background: #fff;
}

.checkout-card,
.info-box,
.form-card,
.admin-form,
.success-box { padding: 24px; }

.tip-card { display: block; padding: 20px; color: var(--ink); }
.tip-card span {
    color: var(--green-700);
    font-weight: 950;
    font-size: .78rem;
    text-transform: uppercase;
}
.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 950;
    margin-top: 8px;
}

.contest-table { border: 1px solid var(--line); }
.contest-table thead th { background: var(--green-900); color: #fff; }
.narrow { max-width: 840px; }
.article-body { font-size: 1.1rem; line-height: 1.8; }
.success-box i { color: var(--green-500); font-size: 2.8rem; }
.footer { background: #f8faf8; border-top: 1px solid var(--line); }

@media (max-width: 991px) {
    .top-strip .container,
    .top-links { justify-content: center; text-align: center; }
    .top-links { display: none; }
    .hero-store {
        background: linear-gradient(120deg, rgba(0, 43, 25, .97), rgba(0, 122, 61, .9));
        padding-top: 46px;
    }
    .quick-cats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-cats a { min-height: 66px; }
    .filter-bar,
    .spec-grid { grid-template-columns: 1fr; }
    .hero-search { grid-template-columns: auto 1fr; }
    .hero-search button { grid-column: 1 / -1; }
    .approval-band .container {
        align-items: stretch;
        flex-direction: column;
    }
    .approval-stats {
        min-width: 0;
        grid-template-columns: 1fr;
    }
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .button-buy,
    .button-cart { flex: 1 1 auto; }
}

/* Alfa-inspired storefront pass */
:root {
    --navy: #02045f;
    --blue: #0647ff;
    --blue-dark: #0535c8;
}

.site-header {
    box-shadow: none;
}

.main-navbar {
    min-height: 68px;
    background: var(--navy);
}

.main-navbar .brand-logo {
    width: 142px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 0 #fff);
}

.main-navbar .nav-link {
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 18px 14px;
}

.main-navbar .nav-link:hover {
    color: var(--yellow);
}

.search-square {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #01023d;
    color: #fff;
    font-size: 1.35rem;
}

.cart-pill {
    position: relative;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
}

.cart-pill span {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 950;
}

.sub-navbar {
    background: #f2f5f6;
    border-bottom: 1px solid #d8dee2;
}

.sub-links,
.social-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.sub-links a {
    color: var(--navy);
    font-weight: 800;
    padding: 11px 22px;
}

.sub-links .live-link {
    background: var(--blue);
    color: #fff;
}

.social-links a {
    color: var(--navy);
    padding: 8px 10px;
    font-size: 1.05rem;
}

.category-bar {
    background: #fff;
    border-bottom: 1px solid #d8dee2;
}

.category-bar .container {
    gap: 16px;
}

.category-bar a {
    color: var(--navy);
    padding: 14px 0;
    text-decoration: none;
}

.category-search {
    flex: 1;
    max-width: 420px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d4dce1;
    border-radius: 4px;
    padding: 0 13px;
}

.category-search i {
    color: var(--green-700);
}

.category-search input {
    border: 0;
    outline: 0;
    min-width: 0;
    flex: 1;
    font-weight: 700;
}

.hero-campaign {
    min-height: 690px;
    padding: 0;
    background: url("../img/hero-concursos-brasil.png") center center / cover no-repeat;
    color: #fff;
}

.hero-overlay {
    min-height: 690px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0,0,20,.78) 0%, rgba(0,0,20,.45) 42%, rgba(0,0,20,.04) 75%);
}

.hero-copy {
    max-width: 660px;
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(3rem, 5.7vw, 6.3rem);
    font-weight: 950;
    line-height: .98;
    text-shadow: 0 5px 18px rgba(0,0,0,.55);
}

.hero-copy p {
    max-width: 520px;
    margin-top: 24px;
    color: rgba(255,255,255,.92);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-actions .btn-primary,
.button-buy {
    background: var(--blue);
    border-color: var(--blue);
}

.hero-actions .btn-primary:hover,
.button-buy:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.quick-cats {
    background: #fff;
}

.quick-cats .container {
    max-width: 1460px;
}

.product-showcase {
    background: #f6f6f6;
    padding-top: 54px;
}

.store-title {
    color: var(--navy);
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 500;
    margin: 0 0 34px;
}

.alfa-card {
    position: relative;
    border-radius: 5px;
    box-shadow: 0 2px 7px rgba(0,0,0,.12);
}

.alfa-card.is-active {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(0,0,0,.35);
}

.open-badge {
    position: absolute;
    left: -7px;
    top: -5px;
    z-index: 3;
    background: var(--blue);
    color: #fff;
    padding: 9px 13px;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.alfa-card .product-cover {
    min-height: 224px;
    border-radius: 5px 5px 0 0;
    background:
        linear-gradient(rgba(0,0,0,.34), rgba(0,0,0,.5)),
        linear-gradient(135deg, #032a19, #177c43 58%, #79c929);
}

.alfa-card .product-body {
    padding: 20px 20px 10px;
}

.alfa-card .product-title {
    color: var(--navy);
    min-height: 66px;
    font-size: 1.35rem;
    font-weight: 500;
}

.alfa-card .product-features {
    min-height: 28px;
    color: #6e6e6e;
    font-size: 1rem;
}

.alfa-card .product-features i {
    color: var(--blue);
}

.alfa-card .price {
    position: relative;
    min-height: 118px;
    margin-top: 34px;
    color: var(--navy);
}

.alfa-card .old-price {
    color: var(--navy);
    font-size: .82rem;
    text-decoration: none;
}

.alfa-card .installment {
    display: block;
    color: var(--navy);
    margin-top: 2px;
}

.alfa-card .installment strong {
    color: var(--navy);
    font-size: 2rem;
}

.alfa-card .price small {
    color: #666;
    font-size: .9rem;
}

.alfa-card .price em {
    position: absolute;
    right: 0;
    top: 25px;
    background: #ddf2dd;
    color: #2aa33c;
    border-radius: 999px;
    padding: 11px 13px;
    font-size: .82rem;
    font-style: normal;
    font-weight: 950;
}

.alfa-card .card-actions {
    display: block;
    padding: 0 20px 20px;
}

.alfa-card .button-buy {
    width: 100%;
    min-height: 52px;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.05rem;
}

.alfa-card .button-cart {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
}

.slider-dots span {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #cfd9dc;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}

.slider-dots .active {
    background: var(--blue);
}

.footer {
    background: var(--navy);
    color: #fff;
    border-top: 0;
}

.footer-logo {
    width: 170px;
    height: auto;
    background: #fff;
    border-radius: 6px;
    padding: 8px;
}

.footer h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 18px;
}

.footer a,
.footer p {
    display: block;
    color: #fff;
    margin-bottom: 14px;
}

.contest-search-page {
    background:
        linear-gradient(90deg, rgba(2,4,95,.94), rgba(0,66,37,.88)),
        url("../img/hero-concursos-brasil.png") center center / cover no-repeat;
    color: #fff;
}

.contest-search-page p {
    color: rgba(255,255,255,.84);
}

.contest-filter-bar {
    grid-template-columns: 1fr 150px 210px 120px auto;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.data-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.data-source small {
    color: rgba(255,255,255,.8);
}

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

.contest-result-card {
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(2,4,95,.08);
}

.contest-result-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.contest-result-head span {
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.contest-result-head small {
    color: var(--green-700);
    font-weight: 950;
}

.contest-result-card h2 {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 9px;
}

.contest-result-card p {
    color: var(--muted);
    min-height: 50px;
}

.contest-result-meta {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    color: #5c6761;
    font-size: .92rem;
}

.contest-result-meta span {
    display: flex;
    gap: 8px;
    align-items: center;
}

.contest-result-meta i {
    width: 18px;
    color: var(--green-700);
}

@media (max-width: 991px) {
    .main-navbar .navbar-toggler {
        background: #fff;
    }
    .main-navbar .nav-link {
        padding: 10px 0;
    }
    .sub-navbar .container {
        justify-content: center !important;
    }
    .sub-links {
        overflow-x: auto;
        width: 100%;
    }
    .sub-links a {
        white-space: nowrap;
        padding: 11px 14px;
    }
    .hero-campaign,
    .hero-overlay {
        min-height: 560px;
    }
    .hero-overlay {
        background: linear-gradient(90deg, rgba(0,0,20,.84), rgba(0,0,20,.42));
    }
    .quick-cats .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contest-filter-bar,
    .contest-grid {
        grid-template-columns: 1fr;
    }
}

/* Product boxes closer to the reference: sharp, retail-style cards */
.ap-products .container {
    max-width: 1510px;
}

.ap-product-row {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 36px;
}

.ap-product-card {
    position: relative;
    border: 1px solid #d7dde4;
    border-radius: 4px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.ap-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0,0,0,.18);
}

.ap-edital-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 4;
    background: var(--ap-blue);
    color: #fff;
    padding: 10px 17px;
    border-radius: 0;
    font-size: .82rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ap-cover {
    min-height: 248px;
    margin: 0;
    border-radius: 4px 4px 0 0;
    padding: 24px;
    box-shadow: inset 0 -80px 120px rgba(0,0,0,.32);
}

.ap-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 20%, rgba(255,255,255,.18), transparent 20%),
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55));
}

.ap-cover::before {
    background:
        linear-gradient(135deg, rgba(255,255,255,.11), transparent 42%),
        linear-gradient(315deg, rgba(255,255,255,.78) 0 10%, transparent 10.4%);
    z-index: 1;
}

.ap-cover .ap-cover-orgao,
.ap-cover strong,
.ap-cover small {
    position: relative;
    z-index: 2;
}

.ap-cover .ap-cover-orgao {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 0;
    padding: 6px 9px;
    color: #fff;
}

.ap-cover strong {
    font-size: clamp(2rem, 2.5vw, 2.65rem);
    text-shadow: 0 3px 12px rgba(0,0,0,.45);
}

.ap-cover small {
    color: rgba(255,255,255,.9);
}

.ap-product-info {
    padding: 22px 24px 24px;
}

.ap-product-info h3 {
    min-height: 68px;
    margin: 0 0 14px;
    color: var(--ap-navy);
    font-size: 1.36rem;
    line-height: 1.15;
    font-weight: 500;
}

.ap-card-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 34px;
    color: #707986;
    font-size: 1.02rem;
}

.ap-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ap-card-meta i {
    color: var(--ap-blue);
}

.ap-price-box {
    position: relative;
    min-height: 142px;
    margin-top: 40px;
    color: var(--ap-navy);
}

.ap-price-box small {
    display: block;
    max-width: calc(100% - 78px);
    color: var(--ap-navy);
    font-size: .86rem;
    line-height: 1.35;
}

.ap-price-box strong {
    display: block;
    margin: 4px 0 10px;
    color: var(--ap-navy);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 950;
}

.ap-price-box strong span {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 3px;
}

.ap-price-box em {
    position: absolute;
    right: 0;
    top: 28px;
    background: #dff2df;
    color: #22a640;
    border-radius: 999px;
    padding: 12px 13px;
    font-size: .85rem;
    font-style: normal;
    font-weight: 950;
}

.ap-price-box p {
    color: #666d78;
    margin: 0;
}

.ap-buy-button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--ap-blue);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ap-buy-button:hover {
    background: #0045df;
    color: #fff;
}

.ap-cart-link {
    height: 48px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ap-navy);
    font-size: 1.02rem;
    font-weight: 600;
}

.ap-cart-link:hover {
    color: var(--ap-blue);
}

@media (max-width: 1399px) {
    .ap-product-row {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

@media (max-width: 991px) {
    .ap-product-row {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 575px) {
    .ap-product-row {
        grid-template-columns: 1fr;
    }
}

/* Apostilou storefront v3 */
:root {
    --ap-navy: #061932;
    --ap-navy-2: #08284a;
    --ap-green: #0fbf78;
    --ap-green-2: #21d284;
    --ap-green-3: #066b45;
    --ap-yellow: #ffc928;
    --ap-blue: #0867ff;
    --ap-ink: #071936;
    --ap-muted: #66738a;
    --ap-bg: #f6f9fc;
}

body {
    background: var(--ap-bg);
    color: var(--ap-ink);
}

.ap-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:
        radial-gradient(circle at 20% 0%, rgba(28, 210, 132, .18), transparent 28%),
        linear-gradient(90deg, #06152d, #072644 55%, #063c35);
    color: #fff;
}

.ap-nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.ap-brand img {
    width: 164px;
    height: 58px;
    object-fit: contain;
    background: rgba(255,255,255,.96);
    border-radius: 10px;
    padding: 5px 9px;
}

.ap-menu {
    flex: 1;
    align-items: center;
    gap: 28px;
}

.ap-menu.show,
.ap-menu.collapsing {
    display: flex;
}

.ap-menu a {
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.ap-menu a:hover {
    color: var(--ap-yellow);
}

.ap-menu a i {
    font-size: .68rem;
    margin-left: 4px;
}

.ap-nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ap-cart {
    position: relative;
    color: #fff;
    font-size: 1.65rem;
}

.ap-cart span {
    position: absolute;
    top: -10px;
    right: -11px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ap-yellow);
    color: #061932;
    font-size: .7rem;
    font-weight: 950;
}

.ap-login {
    min-width: 112px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 999px;
    color: #fff;
    font-weight: 850;
}

.ap-menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 8px;
    width: 44px;
    height: 44px;
}

.ap-hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0 0;
    background:
        radial-gradient(circle at 72% 35%, rgba(255, 201, 40, .42), transparent 18%),
        radial-gradient(circle at 84% 78%, rgba(15, 191, 120, .28), transparent 20%),
        linear-gradient(135deg, #051326 0%, #06264a 46%, #05523b 100%);
    color: #fff;
}

.ap-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, transparent 90%);
    opacity: .35;
}

.ap-hero .container {
    position: relative;
    z-index: 1;
}

.ap-hero-header {
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    align-items: center;
    gap: 24px;
}

.ap-hero-copy h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.9rem, 5vw, 5rem);
    line-height: 1.14;
    font-weight: 950;
}

.ap-hero-copy h1 span {
    color: var(--ap-yellow);
}

.ap-hero-copy p {
    max-width: 600px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 1.34rem;
    line-height: 1.5;
}

.ap-hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 720px;
    margin-top: 34px;
}

.ap-hero-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .86rem;
    font-weight: 850;
}

.ap-hero-benefits i {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ap-blue), var(--ap-green));
}

.ap-hero-person {
    align-self: end;
    justify-self: end;
    width: min(560px, 100%);
    max-height: 610px;
    object-fit: contain;
    object-position: bottom center;
    margin-bottom: -10px;
}

.ap-search-box {
    position: relative;
    z-index: 3;
    margin: -58px auto -14px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(4, 25, 57, .96), rgba(4, 59, 68, .95));
    box-shadow: 0 28px 70px rgba(0, 18, 44, .38);
}

.ap-search-box h2 {
    color: #fff;
    font-size: 1.42rem;
    font-weight: 950;
    margin-bottom: 20px;
}

.ap-search-box h2 i,
.ap-search-box h2 span,
.ap-hot-tags strong {
    color: var(--ap-yellow);
}

.ap-search-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 230px 230px 180px;
    gap: 6px;
}

.ap-search-fields label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 5px;
    padding: 0 18px;
}

.ap-search-fields input,
.ap-search-fields select {
    min-width: 0;
    width: 100%;
    height: 62px;
    border: 0;
    outline: 0;
    color: #29384e;
    font-weight: 750;
}

.ap-search-fields select {
    border: 1px solid #dfe7ef;
    border-radius: 5px;
    padding: 0 18px;
}

.ap-search-fields button {
    border: 0;
    border-radius: 5px;
    background: var(--ap-yellow);
    color: #061932;
    font-weight: 950;
}

.ap-hot-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: #fff;
    font-size: .9rem;
}

.ap-hot-tags a {
    padding: 8px 17px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 850;
}

.ap-benefit-strip {
    padding: 58px 0 24px;
}

.ap-benefit-strip .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 52px rgba(7,25,54,.12);
    overflow: hidden;
}

.ap-benefit-strip div {
    min-height: 116px;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-content: center;
    column-gap: 14px;
    padding: 22px 28px;
    border-right: 1px solid #dfe7ef;
}

.ap-benefit-strip div:last-child {
    border-right: 0;
}

.ap-benefit-strip i {
    grid-row: span 2;
    color: var(--ap-green);
    font-size: 2.35rem;
}

.ap-benefit-strip strong {
    color: var(--ap-blue);
    font-weight: 950;
}

.ap-benefit-strip span {
    color: var(--ap-muted);
    font-size: .92rem;
}

.ap-section {
    padding: 38px 0 18px;
}

.ap-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ap-section-head h2 {
    margin: 0;
    color: var(--ap-ink);
    font-size: 1.6rem;
    font-weight: 950;
}

.ap-section-head a {
    color: var(--ap-blue);
    font-weight: 850;
}

.ap-area-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.ap-area-card {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7,25,54,.1);
    color: var(--ap-ink);
}

.ap-area-card i {
    font-size: 2.8rem;
}

.ap-area-card strong {
    font-size: 1.05rem;
    font-weight: 950;
}

.ap-area-card span {
    color: var(--ap-muted);
    font-weight: 750;
}

.ap-area-card.blue i { color: #1f6bff; }
.ap-area-card.green i { color: #0fbf78; }
.ap-area-card.purple i { color: #9c42ff; }
.ap-area-card.orange i { color: #ff6b2b; }
.ap-area-card.red i { color: #ff456b; }
.ap-area-card.mint i { color: #0bbf9a; }

.ap-products {
    padding-bottom: 70px;
}

.ap-product-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    gap: 22px;
}

.ap-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(7,25,54,.14);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ap-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(7,25,54,.2);
}

.ap-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 232px;
    margin: 18px 18px 0;
    padding: 18px;
    border-radius: 6px;
    color: #fff;
    overflow: hidden;
}

.ap-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), transparent 38%),
        linear-gradient(315deg, rgba(255,255,255,.92) 0 12%, transparent 12.4%);
}

.cover-blue { background: linear-gradient(145deg, #08234a, #0e4f83); }
.cover-green { background: linear-gradient(145deg, #07351f, #0b8c5a); }
.cover-gold { background: linear-gradient(145deg, #16324a, #ffc928); color: #061932; }
.cover-wine { background: linear-gradient(145deg, #441120, #852037); }
.cover-teal { background: linear-gradient(145deg, #052a37, #00a878); }

.ap-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--ap-green);
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: .72rem;
    font-weight: 950;
}

.ap-cover i {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #fff;
    color: #506076;
}

.ap-cover strong {
    position: relative;
    z-index: 1;
    font-size: clamp(1.55rem, 2vw, 2.05rem);
    line-height: 1.02;
    text-transform: uppercase;
    font-weight: 950;
}

.ap-cover small {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.ap-cover em {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-top: 24px;
    padding: 6px 10px;
    background: var(--ap-yellow);
    color: #061932;
    font-style: normal;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ap-product-info {
    padding: 18px;
}

.ap-product-info h3 {
    min-height: 42px;
    color: var(--ap-ink);
    font-size: .94rem;
    line-height: 1.3;
    font-weight: 950;
}

.ap-product-info p {
    margin: 7px 0 10px;
    color: var(--ap-muted);
    font-size: .9rem;
}

.ap-product-info strong {
    display: block;
    color: var(--ap-ink);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.ap-product-info a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 5px;
    background: var(--ap-blue);
    color: #fff;
    font-weight: 900;
}

.ap-trust {
    padding: 42px 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(15,191,120,.22), transparent 22%),
        linear-gradient(90deg, #06152d, #062e4f 58%, #064638);
    color: #fff;
}

.ap-trust .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.ap-trust div {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 6px 18px;
    align-items: center;
}

.ap-trust i {
    grid-row: span 2;
    color: var(--ap-yellow);
    font-size: 2.5rem;
}

.ap-trust strong {
    font-size: 1.05rem;
}

.ap-trust span {
    color: rgba(255,255,255,.82);
    font-size: .92rem;
}

.ap-footer {
    background: #041224;
    color: #fff;
    padding: 46px 0;
}

.ap-footer .container {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1.5fr;
    gap: 42px;
}

.ap-footer img {
    width: 170px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
}

.ap-footer h3 {
    font-size: 1.25rem;
    font-weight: 950;
    margin-bottom: 16px;
}

.ap-footer a,
.ap-footer p {
    display: block;
    color: rgba(255,255,255,.82);
    margin-bottom: 10px;
}

@media (max-width: 1199px) {
    .ap-search-fields {
        grid-template-columns: 1fr 1fr;
    }
    .ap-product-row {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }
    .ap-area-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .ap-menu {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    .ap-nav {
        min-height: 76px;
        flex-wrap: wrap;
    }
    .ap-menu-toggle {
        display: inline-grid;
        place-items: center;
    }
    .ap-menu {
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 12px 0 22px;
    }
    .ap-nav-actions {
        margin-left: auto;
    }
    .ap-hero {
        padding-top: 36px;
    }
    .ap-hero-header {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .ap-hero-person {
        width: min(440px, 90%);
        justify-self: center;
    }
    .ap-hero-benefits,
    .ap-benefit-strip .container,
    .ap-trust .container,
    .ap-footer .container {
        grid-template-columns: 1fr;
    }
    .ap-search-box {
        margin-top: 0;
    }
    .ap-search-fields,
    .ap-area-grid,
    .ap-product-row {
        grid-template-columns: 1fr;
    }
    .ap-benefit-strip div {
        border-right: 0;
        border-bottom: 1px solid #dfe7ef;
    }
}

/* Final product-card override */
.ap-products .container { max-width: 1510px; }
.ap-product-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 36px;
}
.ap-product-card {
    position: relative;
    border: 1px solid #d7dde4;
    border-radius: 4px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ap-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0,0,0,.18);
}
.ap-edital-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 4;
    background: var(--ap-blue);
    color: #fff;
    padding: 10px 17px;
    border-radius: 0;
    font-size: .82rem;
    font-weight: 950;
    text-transform: uppercase;
}
.ap-product-card .ap-cover {
    min-height: 248px;
    margin: 0;
    border-radius: 4px 4px 0 0;
    padding: 24px;
    box-shadow: inset 0 -80px 120px rgba(0,0,0,.32);
}
.ap-product-card .ap-cover .ap-cover-orgao {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 0;
    padding: 6px 9px;
    color: #fff;
}
.ap-product-card .ap-cover strong {
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 2.5vw, 2.65rem);
    text-shadow: 0 3px 12px rgba(0,0,0,.45);
}
.ap-product-card .ap-cover small {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.9);
}
.ap-product-card .ap-cover em,
.ap-product-card .ap-cover i { display: none; }
.ap-product-card .ap-product-info { padding: 22px 24px 24px; }
.ap-product-card .ap-product-info h3 {
    min-height: 68px;
    margin: 0 0 14px;
    color: var(--ap-navy);
    font-size: 1.36rem;
    line-height: 1.15;
    font-weight: 500;
}
.ap-card-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 34px;
    color: #707986;
    font-size: 1.02rem;
}
.ap-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ap-card-meta i { color: var(--ap-blue); }
.ap-price-box {
    position: relative;
    min-height: 142px;
    margin-top: 40px;
    color: var(--ap-navy);
}
.ap-price-box small {
    display: block;
    max-width: calc(100% - 78px);
    color: var(--ap-navy);
    font-size: .86rem;
    line-height: 1.35;
}
.ap-price-box strong {
    display: block;
    margin: 4px 0 10px;
    color: var(--ap-navy);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 950;
}
.ap-price-box strong span {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 3px;
}
.ap-price-box em {
    position: absolute;
    right: 0;
    top: 28px;
    background: #dff2df;
    color: #22a640;
    border-radius: 999px;
    padding: 12px 13px;
    font-size: .85rem;
    font-style: normal;
    font-weight: 950;
}
.ap-price-box p {
    color: #666d78;
    margin: 0;
}
.ap-buy-button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--ap-blue);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 950;
    text-transform: uppercase;
}
.ap-buy-button:hover {
    background: #0045df;
    color: #fff;
}
.ap-cart-link {
    height: 48px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ap-navy);
    font-size: 1.02rem;
    font-weight: 600;
}
.ap-cart-link:hover { color: var(--ap-blue); }
@media (max-width: 1399px) {
    .ap-product-row { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
}
@media (max-width: 991px) {
    .ap-product-row { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 575px) {
    .ap-product-row { grid-template-columns: 1fr; }
}

/* Final centering and side-margin pass */
.ap-hero > .container,
.ap-benefit-strip > .container,
.ap-section > .container,
.ap-banner-area > .container,
.ap-trust > .container,
.ap-footer > .container,
.ap-products .container {
    max-width: 1360px !important;
    padding-left: 34px !important;
    padding-right: 34px !important;
}

.ap-product-row {
    grid-template-columns: repeat(3, minmax(280px, 360px)) !important;
    justify-content: center !important;
    gap: 38px !important;
}

.ap-area-grid {
    justify-content: center;
}

.ap-banner-frame,
.ap-benefit-strip .container,
.ap-area-grid,
.ap-product-row {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1199px) {
    .ap-product-row {
        grid-template-columns: repeat(2, minmax(260px, 360px)) !important;
    }
}

@media (max-width: 991px) {
    .ap-hero > .container,
    .ap-benefit-strip > .container,
    .ap-section > .container,
    .ap-banner-area > .container,
    .ap-trust > .container,
    .ap-footer > .container,
    .ap-products .container {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

@media (max-width: 575px) {
    .ap-hero > .container,
    .ap-benefit-strip > .container,
    .ap-section > .container,
    .ap-banner-area > .container,
    .ap-trust > .container,
    .ap-footer > .container,
    .ap-products .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .ap-product-row {
        grid-template-columns: 1fr !important;
    }
}

/* Squared, bordered, centered storefront refinement */
.ap-header,
.ap-nav,
.ap-menu a,
.ap-login,
.ap-cart,
.ap-search-box,
.ap-search-fields label,
.ap-search-fields input,
.ap-search-fields select,
.ap-search-fields button,
.ap-hot-tags a,
.ap-benefit-strip .container,
.ap-area-card,
.ap-product-card,
.ap-product-card .ap-cover,
.ap-product-card .ap-cover .ap-cover-orgao,
.ap-buy-button,
.ap-cart-link,
.ap-footer img,
.btn,
.form-control,
.form-select,
button,
input,
select {
    border-radius: 0 !important;
}

.ap-hero > .container,
.ap-benefit-strip > .container,
.ap-section > .container,
.ap-banner-area > .container,
.ap-trust > .container,
.ap-footer > .container {
    max-width: 1500px;
}

.ap-section {
    padding: 52px 0 22px;
}

.ap-benefit-strip {
    padding: 70px 0 18px;
}

.ap-benefit-strip .container,
.ap-area-card,
.ap-product-card {
    border: 1px solid #d8dee6;
}

.ap-area-grid {
    gap: 24px;
}

.ap-area-card {
    box-shadow: 0 10px 24px rgba(7,25,54,.08);
}

.ap-banner-area {
    padding: 44px 0 28px;
    background: #fff;
}

.ap-banner-frame {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 0;
}

.ap-banner-frame > button {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 76px;
    border: 0;
    background: var(--ap-blue);
    color: #fff;
    font-size: 1.4rem;
}

.ap-banner-frame > button:first-child {
    margin-right: -52px;
}

.ap-banner-frame > button:last-child {
    margin-left: -52px;
}

.ap-main-banner {
    grid-column: 2;
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cfd8e3;
    border-bottom: 10px solid var(--ap-blue);
    color: #fff;
    box-shadow: 0 18px 42px rgba(7,25,54,.16);
}

.ap-main-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-main-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 17, 39, .88), rgba(4, 37, 61, .62) 50%, rgba(3, 17, 39, .18));
}

.ap-main-banner div {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: 42px 56px;
}

.ap-main-banner span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--ap-yellow);
    font-weight: 950;
    text-transform: uppercase;
}

.ap-main-banner h2 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
    font-weight: 950;
    margin-bottom: 16px;
}

.ap-main-banner p {
    color: rgba(255,255,255,.88);
    font-size: 1.1rem;
    margin-bottom: 22px;
}

.ap-main-banner strong {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 28px;
    background: var(--ap-yellow);
    color: #061932;
    font-weight: 950;
    text-transform: uppercase;
}

.ap-products {
    background: #f7f8fa;
    padding-top: 56px;
}

.ap-product-row {
    justify-content: center;
}

.ap-product-card {
    max-width: 410px;
    width: 100%;
    justify-self: center;
    border-color: #cfd8e3;
    box-shadow: 0 6px 16px rgba(7,25,54,.11);
}

.ap-product-card .ap-cover {
    border-bottom: 1px solid #d8dee6;
}

.ap-edital-badge {
    top: -12px;
    left: -12px;
    border: 1px solid #0037d8;
}

.ap-price-box em {
    border-radius: 0 !important;
    border: 1px solid #bfe8bf;
}

.ap-search-box {
    border: 1px solid rgba(255,255,255,.28);
}

.ap-search-fields label,
.ap-search-fields select,
.ap-search-fields button {
    border: 1px solid #cfd8e3;
}

@media (max-width: 991px) {
    .ap-banner-frame {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }
    .ap-banner-frame > button {
        width: 42px;
        height: 62px;
    }
    .ap-banner-frame > button:first-child {
        margin-right: -42px;
    }
    .ap-banner-frame > button:last-child {
        margin-left: -42px;
    }
    .ap-main-banner {
        min-height: 310px;
    }
    .ap-main-banner div {
        padding: 32px 46px;
    }
}

@media (max-width: 575px) {
    .ap-banner-frame {
        grid-template-columns: 1fr;
    }
    .ap-banner-frame > button {
        display: none;
    }
    .ap-main-banner {
        grid-column: 1;
    }
    .ap-main-banner div {
        padding: 28px;
    }
}
