
/* =========================================================
   PILAR ONLINE - STYLE GLOBAL
   Identidade visual:
   Vermelho principal: #C1272D
   Laranja destaque:   #F47016
   Fonte: Poppins
========================================================= */

/* =========================================================
   1. VARIÁVEIS GLOBAIS
========================================================= */
:root {
    --po-red: #C1272D;
    --po-red-dark: #9F1E24;
    --po-red-darker: #7E171C;
    --po-red-soft: #FCEAEC;

    --po-orange: #F47016;
    --po-orange-dark: #D85D0A;
    --po-orange-soft: #FFF0E6;

    --po-white: #FFFFFF;
    --po-bg: #F7F8FA;
    --po-bg-soft: #FBFBFC;

    --po-text: #1D2433;
    --po-text-2: #4F5868;
    --po-muted: #818898;

    --po-border: #E6E8ED;
    --po-border-strong: #D9DCE3;

    --po-success: #19A463;
    --po-warning: #F5A623;
    --po-danger: #D93025;
    --po-info: #2F6FED;

    --po-shadow-xs: 0 2px 8px rgba(21, 28, 41, 0.04);
    --po-shadow-sm: 0 6px 18px rgba(21, 28, 41, 0.06);
    --po-shadow-md: 0 12px 32px rgba(21, 28, 41, 0.09);
    --po-shadow-lg: 0 22px 54px rgba(21, 28, 41, 0.12);

    --po-radius-sm: 10px;
    --po-radius-md: 16px;
    --po-radius-lg: 24px;
    --po-radius-xl: 32px;

    --po-container: 1480px;

    --po-transition: 180ms ease;
}

/* =========================================================
   2. RESET / BASE
========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--po-text);
    background: var(--po-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

img,
svg {
    max-width: 100%;
}

img {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
select,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

::selection {
    color: var(--po-white);
    background: var(--po-red);
}

/* =========================================================
   3. ESTRUTURA GLOBAL
========================================================= */
.site-wrap {
    min-height: 100vh;
    background: var(--po-white);
}

.container {
    width: min(calc(100% - 48px), var(--po-container));
    margin: 0 auto;
}

.page-content {
    padding: 34px 0 72px;
}

/* =========================================================
   4. CABEÇALHO PRINCIPAL
========================================================= */
.top-header {
    position: relative;
    z-index: 50;
    background:
        linear-gradient(
            110deg,
            var(--po-red-darker) 0%,
            var(--po-red) 42%,
            #D72E33 100%
        );
    color: var(--po-white);
    box-shadow: 0 3px 12px rgba(94, 12, 18, 0.18);
}

.top-header-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: 290px minmax(420px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.brand img {
    width: min(100%, 245px);
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

/* =========================================================
   5. BUSCA
========================================================= */
.search-area {
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 54px;
}

.search-input-wrap {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(160px, 1fr) auto;
    align-items: center;
    background: var(--po-white);
    border-radius: var(--po-radius-sm) 0 0 var(--po-radius-sm);
    overflow: hidden;
    box-shadow: var(--po-shadow-xs);
}

.search-icon {
    display: grid;
    place-items: center;
    color: #7C8390;
}

.search-icon svg {
    width: 21px;
    height: 21px;
}

.search-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--po-text);
    background: transparent;
    font-size: 14.5px;
    font-weight: 400;
    padding: 0 14px 0 0;
}

.search-input-wrap input::placeholder {
    color: #9A9FA9;
}

.search-input-wrap select {
    height: 34px;
    min-width: 185px;
    max-width: 235px;
    border: 0;
    border-left: 1px solid var(--po-border);
    outline: 0;
    background: var(--po-white);
    color: var(--po-text-2);
    padding: 0 36px 0 18px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.search-area > button {
    min-width: 116px;
    border: 0;
    color: var(--po-white);
    background: var(--po-orange);
    border-radius: 0 var(--po-radius-sm) var(--po-radius-sm) 0;
    padding: 0 24px;
    font-weight: 700;
    transition:
        background var(--po-transition),
        transform var(--po-transition);
}

.search-area > button:hover {
    background: var(--po-orange-dark);
}

.search-area > button:active {
    transform: scale(0.985);
}

/* =========================================================
   6. AÇÕES DO TOPO
========================================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-action {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--po-white);
    text-align: center;
    transition:
        opacity var(--po-transition),
        transform var(--po-transition);
}

.header-action:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.header-action strong {
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.action-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
}

.action-icon svg {
    width: 28px;
    height: 28px;
}

.action-icon small {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--po-red);
    border-radius: 999px;
    background: var(--po-orange);
    color: var(--po-white);
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

/* =========================================================
   7. NAVEGAÇÃO
========================================================= */
.main-nav {
    position: relative;
    z-index: 40;
    background: var(--po-white);
    border-bottom: 1px solid var(--po-border);
}

.nav-inner {
    min-height: 58px;
    display: grid;
    grid-template-columns: 290px 1fr auto;
    align-items: stretch;
    gap: 22px;
}

.nav-categories {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--po-text);
}

.hamburger {
    display: inline-grid;
    place-items: center;
}

.hamburger svg {
    width: 23px;
    height: 23px;
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.nav-links a,
.nav-account {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #4A4F59;
    font-size: 14px;
    font-weight: 500;
    transition:
        color var(--po-transition),
        background var(--po-transition);
}

.nav-links a:hover,
.nav-account:hover {
    color: var(--po-red);
}

.nav-links a.active {
    color: var(--po-text);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 99px 99px 0 0;
    background: var(--po-orange);
}

.nav-account {
    padding-right: 0;
}

/* =========================================================
   8. FAIXA "EM DESENVOLVIMENTO"
========================================================= */
.dev-strip {
    background: linear-gradient(90deg, #FFF6F6 0%, #FFF8F3 100%);
    border-bottom: 1px solid #F4E2E2;
}

.dev-strip-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.dev-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(193, 39, 45, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--po-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dev-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--po-orange);
    box-shadow: 0 0 0 4px rgba(244, 112, 22, 0.12);
    animation: poPulse 1.9s ease-in-out infinite;
}

.dev-strip p {
    margin: 0;
    color: var(--po-text-2);
    font-size: 12.5px;
}

.dev-strip strong {
    color: var(--po-text);
    font-weight: 600;
}

/* =========================================================
   9. HERO
========================================================= */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
    gap: 32px;
    padding: 58px 64px;
    border-radius: var(--po-radius-lg);
    background:
        radial-gradient(circle at 10% 20%, rgba(244, 112, 22, 0.11), transparent 24%),
        radial-gradient(circle at 90% 18%, rgba(193, 39, 45, 0.13), transparent 28%),
        linear-gradient(135deg, #FFF9F7 0%, #FFFDFB 45%, #FFF5F2 100%);
    border: 1px solid #F3E2DE;
    box-shadow: var(--po-shadow-sm);
}

.hero-banner::before {
    content: '';
    position: absolute;
    width: 330px;
    height: 330px;
    right: -130px;
    top: -120px;
    border-radius: 50%;
    background: rgba(193, 39, 45, 0.06);
}

.hero-banner::after {
    content: '';
    position: absolute;
    width: 230px;
    height: 230px;
    left: -80px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(244, 112, 22, 0.07);
}

.hero-banner-content,
.hero-banner-side {
    position: relative;
    z-index: 2;
}

.hero-banner-content {
    align-self: center;
    max-width: 820px;
}

.hero-kicker,
.section-kicker,
.featured-kicker {
    display: inline-block;
    color: var(--po-red);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-banner h1 {
    margin: 14px 0 18px;
    max-width: 850px;
    color: var(--po-text);
    font-size: clamp(38px, 4.2vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.hero-banner h1 span {
    color: var(--po-red);
}

.hero-banner-content > p {
    margin: 0;
    max-width: 760px;
    color: var(--po-text-2);
    font-size: 17px;
    line-height: 1.75;
}

.hero-banner-content > p strong {
    color: var(--po-text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition:
        background var(--po-transition),
        color var(--po-transition),
        border-color var(--po-transition),
        transform var(--po-transition),
        box-shadow var(--po-transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--po-white);
    background: var(--po-orange);
    box-shadow: 0 8px 18px rgba(244, 112, 22, 0.18);
}

.btn-primary:hover {
    background: var(--po-orange-dark);
    box-shadow: 0 10px 24px rgba(244, 112, 22, 0.24);
}

.btn-secondary {
    color: var(--po-red);
    border-color: rgba(193, 39, 45, 0.18);
    background: var(--po-white);
}

.btn-secondary:hover {
    border-color: rgba(193, 39, 45, 0.32);
    background: #FFF7F7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(193, 39, 45, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #5F626A;
    font-size: 11px;
    font-weight: 600;
}

/* =========================================================
   10. CARD LATERAL DO HERO
========================================================= */
.hero-banner-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-side-card {
    width: min(100%, 400px);
    padding: 30px;
    border-radius: var(--po-radius-lg);
    background:
        linear-gradient(145deg, rgba(193, 39, 45, 0.97), rgba(145, 25, 30, 0.99));
    color: var(--po-white);
    box-shadow: 0 22px 44px rgba(109, 15, 20, 0.24);
}

.hero-side-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.hero-side-top img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 9px;
}

.mini-label {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--po-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-side-card h3 {
    margin: 0 0 9px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-side-card > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.7;
}

.progress-block {
    margin-top: 26px;
}

.progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.progress-fill {
    width: 67%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--po-orange), #FFAA61);
    animation: poProgress 2.8s ease-in-out infinite alternate;
}

.progress-block small {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 10.5px;
}

.mini-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
}

.mini-features span {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
    font-size: 10.5px;
    font-weight: 500;
}

/* =========================================================
   11. CABEÇALHOS DAS SEÇÕES
========================================================= */
.categories-section,
.featured-section,
.resources-section {
    margin-top: 58px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-header.center {
    justify-content: center;
    text-align: center;
}

.section-header h2 {
    margin: 5px 0 0;
    color: var(--po-text);
    font-size: clamp(26px, 2.4vw, 36px);
    line-height: 1.16;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.section-link {
    flex: 0 0 auto;
    position: relative;
    color: var(--po-orange);
    font-size: 12.5px;
    font-weight: 700;
}

.section-link::after {
    content: '→';
    margin-left: 7px;
    transition: margin-left var(--po-transition);
}

.section-link:hover::after {
    margin-left: 11px;
}

/* =========================================================
   12. CATEGORIAS
========================================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    min-width: 0;
    padding: 14px 14px 18px;
    border: 1px solid var(--po-border);
    border-radius: 14px;
    background: var(--po-white);
    text-align: center;
    transition:
        transform var(--po-transition),
        box-shadow var(--po-transition),
        border-color var(--po-transition);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(193, 39, 45, 0.16);
    box-shadow: var(--po-shadow-md);
}

.category-thumb {
    min-height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 11px;
    color: transparent;
    font-size: 0;
    position: relative;
}

/* placeholders elegantes até os produtos/imagens reais entrarem */
.category-thumb::before,
.category-thumb::after {
    content: '';
    position: absolute;
    border-radius: 999px;
}

.category-thumb::before {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.category-thumb::after {
    width: 54px;
    height: 54px;
    border: 13px solid rgba(255, 255, 255, 0.94);
}

.thumb-moda {
    background: linear-gradient(145deg, #F4E4DC, #FBF3EF);
}

.thumb-casa {
    background: linear-gradient(145deg, #E8EFE8, #F7F9F5);
}

.thumb-beleza {
    background: linear-gradient(145deg, #FCE1E5, #FFF4F6);
}

.thumb-pet {
    background: linear-gradient(145deg, #F3E4CE, #FCF7EF);
}

.thumb-tech {
    background: linear-gradient(145deg, #E6E9F9, #F5F6FD);
}

.thumb-util {
    background: linear-gradient(145deg, #F6DED8, #FFF3EE);
}

.category-card h3 {
    margin: 0 0 5px;
    color: var(--po-text);
    font-size: 15px;
    font-weight: 700;
}

.category-card p {
    margin: 0 auto;
    max-width: 170px;
    color: var(--po-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

/* =========================================================
   13. DESTAQUES / BANNERS
========================================================= */
.featured-section {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 18px;
}

.featured-main {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 44px 48px;
    border-radius: var(--po-radius-md);
    background:
        radial-gradient(circle at 78% 35%, rgba(244, 112, 22, 0.15), transparent 30%),
        linear-gradient(135deg, #FBF2EC 0%, #FFF9F4 100%);
    border: 1px solid #F2E6DF;
}

.featured-main::before {
    content: '';
    position: absolute;
    right: -78px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(244, 112, 22, 0.08);
}

.featured-copy,
.featured-highlight {
    position: relative;
    z-index: 2;
}

.featured-copy h2 {
    margin: 8px 0 14px;
    max-width: 500px;
    color: var(--po-text);
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.featured-copy h2 span {
    color: var(--po-orange);
}

.featured-copy p {
    max-width: 580px;
    margin: 0 0 24px;
    color: var(--po-text-2);
    font-size: 13.5px;
    line-height: 1.75;
}

.featured-highlight {
    display: flex;
    justify-content: flex-end;
}

.highlight-card {
    width: min(100%, 320px);
    padding: 30px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--po-shadow-md);
    backdrop-filter: blur(10px);
}

.highlight-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--po-red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.highlight-card strong {
    display: block;
    color: var(--po-text);
    font-size: 23px;
    line-height: 1.25;
}

.highlight-card small {
    display: block;
    margin-top: 12px;
    color: var(--po-muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.featured-side-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mini-banner {
    position: relative;
    overflow: hidden;
    min-height: 166px;
    display: flex;
    align-items: center;
    padding: 28px 30px;
    border-radius: var(--po-radius-md);
    border: 1px solid var(--po-border);
}

.mini-banner::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -55px;
    bottom: -55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.50);
}

.mini-banner-tech {
    background: linear-gradient(135deg, #F8E5E6 0%, #FFF4F4 100%);
}

.mini-banner-beauty {
    background: linear-gradient(135deg, #FFF0E5 0%, #FFF8F2 100%);
}

.mini-banner-copy {
    position: relative;
    z-index: 2;
    max-width: 330px;
}

.mini-banner h3 {
    margin: 0 0 8px;
    color: var(--po-text);
    font-size: 20px;
    line-height: 1.2;
}

.mini-banner p {
    margin: 0 0 13px;
    color: var(--po-text-2);
    font-size: 11.5px;
    line-height: 1.6;
}

.mini-banner a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 8px;
    background: var(--po-orange);
    color: var(--po-white);
    font-size: 10.5px;
    font-weight: 700;
    transition: background var(--po-transition);
}

.mini-banner a:hover {
    background: var(--po-orange-dark);
}

/* =========================================================
   14. RECURSOS
========================================================= */
.resources-section {
    padding-top: 10px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.resource-card {
    padding: 26px;
    border: 1px solid var(--po-border);
    border-radius: var(--po-radius-md);
    background: var(--po-white);
    box-shadow: var(--po-shadow-xs);
    transition:
        transform var(--po-transition),
        box-shadow var(--po-transition),
        border-color var(--po-transition);
}

.resource-card:hover {
    transform: translateY(-3px);
    border-color: rgba(193, 39, 45, 0.16);
    box-shadow: var(--po-shadow-sm);
}

.resource-icon {
    width: 45px;
    height: 45px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--po-red-soft);
    color: var(--po-red);
}

.resource-icon svg {
    width: 23px;
    height: 23px;
}

.resource-card h3 {
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 700;
}

.resource-card p {
    margin: 0;
    color: var(--po-muted);
    font-size: 11.5px;
    line-height: 1.6;
}

/* =========================================================
   15. RODAPÉ
========================================================= */
.site-footer {
    border-top: 1px solid var(--po-border);
    background: #FAFAFB;
}

.footer-inner {
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-inner > div:first-child {
    max-width: 540px;
}

.footer-inner strong {
    color: var(--po-red);
    font-size: 18px;
}

.footer-inner p {
    margin: 5px 0 0;
    color: var(--po-muted);
    font-size: 11.5px;
}

.footer-note {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    color: var(--po-muted);
    font-size: 10.5px;
}

/* =========================================================
   16. COMPONENTES GLOBAIS PARA PRÓXIMAS PÁGINAS
========================================================= */

/* Cards */
.card {
    border: 1px solid var(--po-border);
    border-radius: var(--po-radius-md);
    background: var(--po-white);
    box-shadow: var(--po-shadow-xs);
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--po-border);
}

.card-body {
    padding: 20px;
}

/* Títulos */
.page-title {
    margin: 0;
    color: var(--po-text);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-subtitle {
    margin: 7px 0 0;
    color: var(--po-muted);
    font-size: 13px;
}

/* Formulários */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.form-label {
    color: var(--po-text);
    font-size: 12px;
    font-weight: 600;
}

.form-control,
.form-select,
textarea.form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--po-border-strong);
    border-radius: 9px;
    background: var(--po-white);
    color: var(--po-text);
    padding: 0 13px;
    outline: 0;
    transition:
        border-color var(--po-transition),
        box-shadow var(--po-transition);
}

textarea.form-control {
    min-height: 110px;
    padding-top: 11px;
    padding-bottom: 11px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(193, 39, 45, 0.55);
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.08);
}

/* Botões globais */
.btn-danger {
    color: var(--po-white);
    background: var(--po-danger);
}

.btn-outline {
    color: var(--po-text);
    border-color: var(--po-border-strong);
    background: var(--po-white);
}

.btn-outline:hover {
    border-color: var(--po-red);
    color: var(--po-red);
}

/* Tabelas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--po-white);
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--po-border);
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: var(--po-text-2);
    background: #FAFAFB;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table td {
    color: var(--po-text);
    font-size: 12px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.badge-success {
    color: #117343;
    background: #E9F8F1;
}

.badge-warning {
    color: #9A6508;
    background: #FFF5D8;
}

.badge-danger {
    color: #A31C22;
    background: #FDEBEC;
}

.badge-info {
    color: #2353B5;
    background: #EBF1FF;
}

/* Alertas */
.alert {
    padding: 13px 15px;
    border: 1px solid var(--po-border);
    border-radius: 10px;
    font-size: 12px;
}

.alert-success {
    color: #176B46;
    border-color: #CDEBDA;
    background: #EFFAF4;
}

.alert-warning {
    color: #8A5B0A;
    border-color: #F7E3AF;
    background: #FFF9E9;
}

.alert-danger {
    color: #9D2429;
    border-color: #F0C9CB;
    background: #FFF2F3;
}

/* =========================================================
   17. ACESSIBILIDADE / FOCO
========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(244, 112, 22, 0.28);
    outline-offset: 2px;
}

/* =========================================================
   18. ANIMAÇÕES
========================================================= */
@keyframes poPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(244, 112, 22, 0.10);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(244, 112, 22, 0.04);
    }
}

@keyframes poProgress {
    from {
        width: 60%;
    }
    to {
        width: 74%;
    }
}

/* =========================================================
   19. RESPONSIVO - NOTEBOOK / TABLET GRANDE
========================================================= */
@media (max-width: 1250px) {
    :root {
        --po-container: 1180px;
    }

    .top-header-inner {
        grid-template-columns: 220px minmax(380px, 1fr) auto;
        gap: 18px;
    }

    .brand img {
        width: 205px;
    }

    .header-actions {
        gap: 18px;
    }

    .nav-inner {
        grid-template-columns: 220px 1fr auto;
        gap: 10px;
    }

    .nav-links a {
        padding: 0 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-thumb {
        min-height: 185px;
    }

    .hero-banner {
        padding: 48px;
    }
}

/* =========================================================
   20. RESPONSIVO - TABLET
========================================================= */
@media (max-width: 1024px) {
    .container {
        width: min(calc(100% - 32px), var(--po-container));
    }

    .top-header-inner {
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .brand img {
        width: 205px;
    }

    .search-area {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .header-actions {
        justify-self: end;
    }

    .header-action strong {
        display: none;
    }

    .nav-inner {
        grid-template-columns: auto 1fr;
        min-height: 54px;
    }

    .nav-links {
        justify-content: flex-end;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-account {
        display: none;
    }

    .dev-strip-inner {
        padding: 9px 0;
    }

    .hero-banner {
        grid-template-columns: 1fr;
        padding: 42px;
    }

    .hero-banner-side {
        justify-content: flex-start;
    }

    .hero-side-card {
        width: 100%;
        max-width: none;
    }

    .featured-section {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   21. RESPONSIVO - MOBILE
========================================================= */
@media (max-width: 760px) {
    body {
        font-size: 14px;
    }

    .container {
        width: min(calc(100% - 24px), var(--po-container));
    }

    .page-content {
        padding-top: 22px;
        padding-bottom: 48px;
    }

    .top-header-inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .brand img {
        width: 172px;
    }

    .header-actions {
        gap: 13px;
    }

    .header-action:first-child {
        display: none;
    }

    .action-icon {
        width: 28px;
        height: 28px;
    }

    .action-icon svg {
        width: 25px;
        height: 25px;
    }

    .search-area {
        height: auto;
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .search-input-wrap {
        grid-template-columns: 40px minmax(0, 1fr);
        border-radius: 9px 0 0 9px;
    }

    .search-input-wrap input {
        min-height: 48px;
        padding-right: 10px;
        font-size: 13px;
    }

    .search-input-wrap select {
        display: none;
    }

    .search-area > button {
        min-width: 82px;
        border-radius: 0 9px 9px 0;
        padding: 0 14px;
        font-size: 12px;
    }

    .main-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-inner {
        width: max-content;
        min-width: 100%;
        grid-template-columns: auto auto;
        padding-right: 12px;
    }

    .nav-categories {
        padding-right: 8px;
        white-space: nowrap;
    }

    .nav-links {
        justify-content: flex-start;
        overflow: visible;
    }

    .nav-links a {
        min-height: 54px;
        white-space: nowrap;
        padding: 0 13px;
        font-size: 12px;
    }

    .dev-strip-inner {
        flex-direction: column;
        gap: 6px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .dev-strip p {
        max-width: 92%;
        font-size: 11px;
        line-height: 1.55;
    }

    .hero-banner {
        min-height: auto;
        padding: 32px 24px;
        border-radius: 18px;
    }

    .hero-banner h1 {
        margin-top: 11px;
        font-size: clamp(34px, 10vw, 48px);
    }

    .hero-banner-content > p {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .hero-side-card {
        padding: 24px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        padding: 10px 10px 15px;
    }

    .category-thumb {
        min-height: 125px;
    }

    .category-card h3 {
        font-size: 13.5px;
    }

    .category-card p {
        font-size: 10.5px;
    }

    .featured-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 24px;
    }

    .featured-highlight {
        justify-content: flex-start;
    }

    .highlight-card {
        width: 100%;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .footer-note {
        align-items: flex-start;
    }
}

/* =========================================================
   22. MOBILE PEQUENO
========================================================= */
@media (max-width: 420px) {
    .header-actions {
        gap: 8px;
    }

    .brand img {
        width: 148px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-thumb {
        min-height: 110px;
    }

    .hero-banner {
        padding: 28px 20px;
    }

    .hero-tags {
        gap: 6px;
    }

    .hero-tags span {
        font-size: 10px;
    }
}

/* =========================================================
   23. REDUÇÃO DE MOVIMENTO
========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
