:root {
    /* Cores da marca Unirex (verde e amarelo) aplicadas sobre o layout inspirado na Stixo.
       Os valores sao os mesmos que o Admin -> Configuracoes -> Aparencia mostra por omissao;
       quando o admin escolhe outras cores, o header.php redefine estas variaveis e TODOS os
       tons abaixo (sombras, fundos claros, sobreposicoes) acompanham automaticamente.
       Os nomes (--navy, --accent, --yellow...) foram mantidos por compatibilidade. */
    --navy: #1f7a3d;        /* cor principal: titulos, botoes, menu */
    --navy-dark: #123f22;   /* principal escura: topbar, rodape, banners */
    --accent: #2fa34c;      /* destaque: hover, icones, sublinhados */
    --accent-dark: #22803a;
    --yellow: #f5c518;      /* realce: selos de promocao, detalhes */
    --yellow-dark: #d9a900;
    --light-bg: color-mix(in srgb, var(--navy) 5%, #fff);   /* fundo das secoes alternadas */
    --band-bg: #f1f1f1;     /* faixa do menu principal */
    --text: #606060;
    --border: #e4e7ec;
    --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
    --shadow-brand: color-mix(in srgb, var(--navy-dark) 14%, transparent);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: #fff;
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6, .brand-text, .heading-font {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--navy);
    letter-spacing: .01em;
}

a { color: var(--navy); }
a:hover { color: var(--accent); }

.text-accent { color: var(--accent) !important; }
.text-yellow { color: var(--yellow) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-light { background-color: var(--light-bg) !important; }

/* ---------- Cabecalho ---------- */
.topbar {
    background-color: var(--navy-dark);
    color: rgba(255,255,255,.85);
    font-size: .8rem;
}
.topbar a { color: rgba(255,255,255,.85) !important; }
.topbar a:hover { color: #fff !important; }

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 12px var(--shadow-brand);
}
.header-main {
    padding: 18px 0;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-brand img {
    max-height: 72px;
    max-width: 190px;
    object-fit: contain;
}
.header-brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--navy);
    text-transform: uppercase;
    line-height: 1;
}
.header-tagline {
    font-family: var(--font-heading);
    font-size: .72rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy);
    border-left: 2px solid var(--accent);
    padding-left: 12px;
    max-width: 210px;
}
.header-search {
    flex: 1;
    max-width: 520px;
}
.header-search .form-control {
    border: 1px solid #cfd5df;
    border-right: 0;
    border-radius: 30px 0 0 30px;
    padding: .62rem 1.2rem;
    font-size: .92rem;
    background: #fafbfc;
}
.header-search .form-control:focus {
    box-shadow: none;
    border-color: var(--accent);
    background: #fff;
}
.header-search .btn {
    border-radius: 0 30px 30px 0;
    background: var(--navy);
    color: #fff;
    padding: 0 1.2rem;
    border: 1px solid var(--navy);
}
.header-search .btn:hover { background: var(--accent); border-color: var(--accent); }

/* Sugestoes da pesquisa (aparecem a cada letra escrita). */
.header-search.has-suggest { position: relative; }
.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px 0;
    text-align: left;
}
.suggest-group {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa1ab;
    padding: 8px 14px 4px;
}
.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 14px;
    color: #1f2430;
    text-decoration: none;
}
.suggest-item:hover,
.suggest-item.active { background: var(--light-bg); color: var(--navy); }
.suggest-item img,
.suggest-noimg {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.suggest-noimg { display: inline-flex; align-items: center; justify-content: center; color: #c9d1dd; }
.suggest-text { display: flex; flex-direction: column; min-width: 0; }
.suggest-text strong { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.suggest-text small { color: #8a909b; font-size: .75rem; }
.suggest-item mark { background: none; color: var(--accent-dark); font-weight: 800; padding: 0; }
.suggest-category i { width: 44px; text-align: center; color: var(--accent); font-size: 1.1rem; }
.suggest-all {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--accent-dark);
}
.suggest-empty { padding: 14px; font-size: .88rem; color: #8a909b; }

.header-tools {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}
.header-tool {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    background: none;
    border: 0;
    padding: 0;
}
.header-tool:hover { color: var(--accent); }
.header-tool > i { font-size: 1.55rem; }
.header-tool small {
    display: block;
    font-weight: 400;
    text-transform: none;
    color: #8a909b;
    font-size: .75rem;
}
.header-cart-icon { position: relative; margin-right: 8px; }
.header-cart-count {
    position: absolute;
    top: -6px;
    right: -9px;
    background: var(--accent);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-style: normal;
}
.header-toggler {
    border: 1px solid #cfd5df;
    background: #fff;
    color: var(--navy);
    width: 44px;
    height: 44px;
    border-radius: 4px;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Faixa inferior com o menu principal (como a "header-bottom" da Stixo). */
.header-bottom {
    background: var(--band-bg);
    border-top: 1px solid #e6e6e6;
}
.main-nav {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav > li > a,
.main-nav > li > button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 15px 18px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.main-nav > li > a:hover,
.main-nav > li > button:hover,
.main-nav > li > a.active,
.main-nav > li > button.active,
.main-nav > li.show > button {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: #fff;
}
.main-nav .nav-deals i { color: var(--yellow-dark); }
.main-nav .nav-deals:hover { border-bottom-color: var(--yellow); }
.main-nav .dropdown-toggle::after { margin-left: 2px; }
/* Sem contorno preto ao clicar com o rato; mantem-se para quem navega com o teclado. */
.main-nav > li > button:focus:not(:focus-visible),
.main-nav > li > a:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.nav-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.nav-cta .btn {
    border-radius: 0;
    height: 100%;
    padding: 0 22px;
    display: flex;
    align-items: center;
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Mega-menu "Produtos" em colunas: um grupo por coluna com as subcategorias por baixo. */
.mega-columns {
    display: grid;
    grid-template-columns: repeat(var(--mega-cols, 6), minmax(0, 1fr));
    gap: 0;
    padding: 22px 12px 10px;
}
.mega-column {
    padding: 0 16px 12px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.mega-column:first-child { border-left: 0; }
.mega-column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--navy);
    text-decoration: none;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}
.mega-column-title:hover { color: var(--accent); }
.mega-column-title i,
.mega-column-title img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 3px;
}
.mega-column-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.05rem;
}
.mega-column-title img { object-fit: cover; }
.mega-column-links { list-style: none; padding: 0; margin: 0 0 8px; }
.mega-column-links li { margin-bottom: 2px; }
.mega-column-links a {
    display: block;
    padding: 4px 0;
    color: #4a5060;
    font-size: .88rem;
    text-decoration: none;
}
.mega-column-links a:hover { color: var(--accent); padding-left: 4px; transition: padding .15s ease; }
/* 3o nivel (ex: Polo Executiva -> Patson, Picolo): mais pequeno e recuado, com uma linha guia */
.mega-column-sublinks {
    list-style: none;
    margin: 0 0 4px 4px;
    padding: 0 0 0 10px;
    border-left: 2px solid var(--border);
}
.mega-column-sublinks a { padding: 2px 0; font-size: .8rem; color: #6b7280; }
.mega-column-sublinks a::before { content: "– "; color: #b0b6c0; }
.mega-column-all {
    margin-top: auto;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent-dark);
    text-decoration: none;
}
.mega-footer {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    padding: 12px 28px;
    background: var(--light-bg);
    border-top: 1px solid var(--border);
}
.mega-footer a { font-size: .85rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.mega-footer a:hover { color: var(--accent); }
@media (max-width: 991.98px) {
    .mega-columns { grid-template-columns: 1fr 1fr; padding: 12px 4px 4px; row-gap: 14px; }
    .mega-column { border-left: 0; padding: 0 8px; }
    .mega-footer { justify-content: flex-start; flex-wrap: wrap; padding: 10px 12px; }
}
@media (max-width: 575.98px) {
    .mega-columns { grid-template-columns: 1fr; }
}

/* Mega-menu "Produtos": grelha de categorias com icone (estilo Stixo). */
.mega-menu-dropdown { position: static; }
.mega-menu-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    border-top: 3px solid var(--accent);
    box-shadow: 0 10px 28px rgba(0,0,0,.22) !important;
    margin-top: 0 !important;
}
@media (min-width: 992px) {
    .mega-menu-panel {
        width: 100%;
        left: 0;
        right: 0;
    }
}
.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 18px;
    padding: 22px 26px;
    max-height: 70vh;
    overflow-y: auto;
}
.mega-menu-col { padding: 0; }
.mega-menu-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: .9rem;
    border-radius: 3px;
}
.mega-menu-col-title:hover {
    background: var(--light-bg);
    color: var(--accent);
}
.mega-menu-col-title img,
.mega-menu-col-title i {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.mega-menu-col-title img { object-fit: cover; border-radius: 3px; }
.mega-menu-col-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 3px;
}
.mega-menu-links {
    margin: 0 0 6px 52px;
}
.mega-menu-links li { margin-bottom: 2px; }
.mega-menu-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: .83rem;
}
.mega-menu-links a:hover { color: var(--accent); }
.mega-menu-feature {
    background: var(--navy);
    color: #fff;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
}
.mega-menu-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--navy-dark) 25%, transparent) 0%, color-mix(in srgb, var(--navy-dark) 92%, transparent) 100%);
}
.mega-menu-feature > * { position: relative; }
.mega-menu-feature h5 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25rem;
    margin-bottom: 6px;
}
.mega-menu-feature p { font-size: .85rem; color: rgba(255,255,255,.8); }
@media (max-width: 991.98px) {
    .header-main { padding: 12px 0; }
    .header-brand img { max-height: 52px; max-width: 150px; }
    .header-bottom { border-top: 0; }
    .main-nav { flex-direction: column; padding: 6px 0 12px; }
    .main-nav > li > a,
    .main-nav > li > button {
        width: 100%;
        padding: 12px 4px;
        border-bottom: 1px solid #e3e3e3;
    }
    .main-nav > li > a:hover,
    .main-nav > li > button:hover,
    .main-nav > li > a.active { background: transparent; border-bottom-color: #e3e3e3; }
    .mega-menu-panel {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-top-width: 2px;
    }
    .mega-menu-inner { grid-template-columns: 1fr; }
    .mega-menu-grid { grid-template-columns: 1fr 1fr; padding: 10px 6px; max-height: none; }
    .mega-menu-feature { display: none; }
    .nav-cta { margin: 12px 0 0; }
    .nav-cta .btn { width: 100%; justify-content: center; padding: 12px; border-radius: 3px; }
}
@media (max-width: 575.98px) {
    .mega-menu-grid { grid-template-columns: 1fr; }
}

/* ---------- Botoes ---------- */
.btn {
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: .02em;
}
.btn-accent {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
}
.btn-outline-navy:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.btn-pill { border-radius: 30px; padding-left: 1.8rem; padding-right: 1.8rem; }
.btn-light-outline {
    border: 2px solid #fff;
    color: #fff;
}
.btn-light-outline:hover { background: #fff; color: var(--navy); }

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 20%, transparent); }
.list-group-item.active {
    background-color: var(--navy);
    border-color: var(--navy);
}
.list-group-item-action:hover { color: var(--accent); }

/* ---------- Banner principal ---------- */
.hero {
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-slider .carousel-item {
    min-height: 500px;
    background-size: cover;
    background-position: center;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    /* Fotos com as cores naturais: so uma sombra neutra e suave do lado do texto (sem cor da marca). */
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.32) 38%, rgba(0,0,0,0) 68%);
}
.hero-slide-content h1,
.hero-slide-content .hero-title,
.hero-slide-content .lead,
.hero-slide-content .hero-kicker { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
@media (max-width: 767px) {
    .hero-slide-overlay { background: rgba(0,0,0,.42); }
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
    padding: 70px 0;
}
.hero h1,
.hero .hero-title {
    color: #fff;
    font-size: 3.1rem;
    line-height: 1.08;
    text-transform: uppercase;
    font-weight: 500;
}
.hero .hero-kicker {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .85rem;
    color: var(--yellow);
    margin-bottom: 14px;
}
.hero .lead { color: rgba(255,255,255,.92); font-size: 1.08rem; }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border: 0;
    background: #fff;
    opacity: .4;
}
.hero-slider .carousel-indicators .active { opacity: 1; background: var(--accent); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 6%; z-index: 3; }
@media (max-width: 767px) {
    .hero-slider .carousel-item,
    .hero-slide-content { min-height: 400px; }
    .hero h1, .hero .hero-title { font-size: 2.1rem; }
}

/* Slides de fundo usados pelo banner antigo (mantido por compatibilidade). */
.hero-bg-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-bg-carousel .carousel-inner,
.hero-bg-carousel .carousel-item { height: 100%; }
.hero-bg-carousel img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, color-mix(in srgb, var(--navy-dark) 85%, transparent) 0%, color-mix(in srgb, var(--navy-dark) 70%, transparent) 100%);
}
.hero .container.position-relative { z-index: 2; }

/* Faixa de slogan por baixo do banner ("TOP PRICING. TOP QUALITY. TOP SERVICE."). */
.slogan-band {
    background: var(--navy-dark);
    color: #fff;
    padding: 16px 0;
    text-align: center;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 1.05rem;
}
.slogan-band span + span::before {
    content: "•";
    color: var(--yellow);
    margin: 0 18px;
}
@media (max-width: 575.98px) {
    .slogan-band { font-size: .82rem; letter-spacing: .1em; padding: 12px 0; }
    .slogan-band span { display: inline-block; }
    .slogan-band span + span::before { margin: 0 8px; }
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next { display: none; }
}

/* ---------- Titulos de secao ---------- */
.section-title {
    color: var(--navy);
    text-transform: uppercase;
    font-size: 1.9rem;
}
.section-eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .76rem;
    margin-bottom: 6px;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 28px;
    position: relative;
}
.section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 70px;
    height: 3px;
    background: var(--accent);
}
.section-head .section-title { margin: 0; font-size: 1.6rem; }
.section-head-link {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--navy);
    text-decoration: none;
}
.section-head-link:hover { color: var(--accent); }
.is-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 14px auto 0;
}

/* ---------- Faixa de vantagens ---------- */
.usp-bar {
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.usp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
}
.usp-item i {
    font-size: 1.9rem;
    color: var(--accent);
    flex-shrink: 0;
}
.usp-item h6 {
    text-transform: uppercase;
    font-size: .95rem;
    margin: 0 0 2px;
}
.usp-item p { margin: 0; font-size: .85rem; color: #7a808a; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 3px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
}

/* ---------- "As Nossas Solucoes" (categorias com icone + descricao) ---------- */
.solution-tile {
    display: flex;
    gap: 16px;
    padding: 22px;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.solution-tile:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 24px var(--shadow-brand);
    transform: translateY(-3px);
    color: var(--text);
}
.solution-tile-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-size: 1.4rem;
    transition: background-color .2s ease;
}
.solution-tile:hover .solution-tile-icon { background: var(--accent); }
.solution-tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.solution-tile h3 {
    font-size: 1.02rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.solution-tile p { font-size: .85rem; margin: 0; color: #7a808a; }

/* Cartoes de categoria (usados noutras paginas). */
.category-card {
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 26px 18px;
    text-align: center;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    height: 100%;
    text-decoration: none;
    color: var(--navy);
    display: block;
}
.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 24px var(--shadow-brand);
    color: var(--accent);
}
.category-card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 12px; }
.category-card-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin-bottom: 12px;
}
.category-card h6 { text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Cartoes de produto ---------- */
.product-card {
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
    box-shadow: 0 12px 26px var(--shadow-brand);
    border-color: color-mix(in srgb, var(--navy) 22%, #fff);
}
.product-card .product-img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}
.product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-card .placeholder-icon { font-size: 3rem; color: #c9d1dd; }
.product-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card-cat {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9aa1ab;
    margin-bottom: 4px;
}
.product-card-title {
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}
.product-card-title a { color: #1f2430; text-decoration: none; }
.product-card-title a:hover { color: var(--accent); }
.product-card-title a::after {
    /* Torna o cartao inteiro clicavel sem aninhar links. */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.product-card { position: relative; }
.product-card-desc { font-size: .82rem; color: #8a909b; margin-bottom: 10px; }
.product-card-price {
    margin-top: auto;
    position: relative;
    z-index: 2;
}
.product-card-more {
    display: block;
    text-align: center;
    background: var(--navy);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 9px;
    transition: background-color .2s ease;
}
.product-card:hover .product-card-more { background: var(--accent); }

.badge-category {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .7rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.price-tag {
    font-weight: 800;
    color: var(--navy);
}
.price-login-link {
    color: var(--navy);
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
}
.price-login-link:hover { color: var(--accent); }

/* Selos de promocao e "voltou ao stock" */
.badge-deal,
.badge-deal-inline,
.badge-stock {
    background: var(--yellow);
    color: #1d1d1d;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .05em;
    padding: 6px 11px;
    border-radius: 2px;
}
.badge-deal,
.badge-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.badge-stock { background: var(--accent); color: #fff; }
.badge-deal-inline { display: inline-block; }

/* Tabela de codigo/preco na pagina de produto */
.spec-price-table {
    border: 1px solid var(--border);
    overflow: hidden;
}
.spec-price-table table { margin-bottom: 0; }
.spec-price-table thead th {
    background: var(--navy);
    color: #fff;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    border: none;
    padding: .65rem .9rem;
}
.spec-price-table tbody td {
    padding: .8rem .9rem;
    vertical-align: middle;
    border-color: var(--border);
}

/* ---------- Galeria do produto: lupa, ecra inteiro e paleta de cores ---------- */
.pg-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}
.pg-stage-empty { cursor: default; background: var(--light-bg); }
.pg-stage > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4%;
    transition: transform .12s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}
.pg-stage.is-zooming > img { transition: none; }
.pg-zoom-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-brand);
    z-index: 2;
}
.pg-zoom-btn:hover { background: var(--navy); color: #fff; }
.pg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--navy);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    z-index: 2;
}
.pg-nav:hover { background: var(--navy); color: #fff; }
.pg-prev { left: 10px; }
.pg-next { right: 10px; }
.pg-stage .pg-nav { opacity: 0; transition: opacity .2s ease; }
.pg-stage:hover .pg-nav, .pg-stage .pg-nav:focus-visible { opacity: 1; }
@media (hover: none) { .pg-stage .pg-nav { opacity: 1; } }
.pg-hint { font-size: .78rem; color: #9aa1ab; margin: 8px 0 0; }

.pg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.pg-lightbox[hidden] { display: none; }
body.pg-lightbox-open { overflow: hidden; }
.pg-lightbox-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--navy);
}
.pg-lightbox-bar button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 1.2rem;
}
.pg-lightbox-bar button:hover { background: var(--navy); color: #fff; }
.pg-lightbox-stage {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: zoom-in;
}
.pg-lightbox-stage.is-zoomed { cursor: grab; }
.pg-lightbox-stage img {
    /* Ocupa o ecra mesmo quando a foto e pequena (sem isto ficava no tamanho original). */
    width: min(92vw, calc(100vh - 90px));
    height: min(92vw, calc(100vh - 90px));
    object-fit: contain;
    transform-origin: center center;
    transition: transform .15s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}
.pg-lightbox .pg-nav { width: 48px; height: 48px; }

.color-palette-label { font-size: .9rem; margin-bottom: 8px; }
.color-palette-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cfd5df;
    background: var(--swatch, #fff) var(--swatch-img, none) center / cover;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--navy); }

.card-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.card-swatch {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cfd5df;
    background: var(--swatch, #fff) var(--swatch-img, none) center / cover;
    cursor: pointer;
}
.card-swatch:hover, .card-swatch:focus { box-shadow: 0 0 0 2px var(--navy); outline: none; }
.card-swatch-more { font-size: .72rem; color: #8a909b; font-weight: 700; }
/* Nome da cor sobre a foto ao passar o rato numa bolinha */
.card-color-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    font-size: .75rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.card-color-tag[hidden] { display: none; }
.card-color-tag i {
    flex: 0 0 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cfd5df;
    background: var(--swatch, #fff) var(--swatch-img, none) center / cover;
}
.card-color-tag.no-photo { color: #5b6270; }
.pg-sim-note {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: .72rem;
    font-weight: 600;
    color: #5b6270;
    pointer-events: none;
}
.pg-sim-note[hidden] { display: none; }

/* Descricao do produto: caracteristicas em tabela e listas */
.spec-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--navy);
    font-size: .95rem;
    margin: 18px 0 8px;
}
.spec-table { border: 1px solid var(--border); font-size: .9rem; margin-bottom: 14px; }
.spec-table th {
    width: 38%;
    background: var(--light-bg);
    color: var(--navy);
    font-weight: 700;
    border-color: var(--border);
}
.spec-table td { color: #4a5060; border-color: var(--border); }
.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.spec-list li {
    border: 1px solid var(--border);
    padding: 4px 10px;
    font-size: .82rem;
    background: #fff;
}

/* Pagina de produto */
.product-title {
    font-size: 1.9rem;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
}
.breadcrumb { font-size: .78rem; letter-spacing: .03em; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.badge-category-count { font-weight: 400; font-size: .78rem; opacity: .65; }
.list-group-item.active .badge-category-count { opacity: .85; }

/* Miniaturas de galeria na pagina de produto */
.product-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.product-thumb {
    width: 72px;
    height: 72px;
    padding: 4px;
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb:hover { border-color: var(--accent); }
.product-thumb.active { border-color: var(--navy); }

/* ---------- Slide de produtos (Novidades da pagina inicial) ---------- */
.product-slider { position: relative; }
.ps-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 24px) / 4);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 10px;
}
.ps-track::-webkit-scrollbar { display: none; }
.ps-slide { scroll-snap-align: start; min-width: 0; }
.ps-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px var(--shadow-brand);
}
.ps-nav:hover { background: var(--navy); color: #fff; }
.ps-nav[disabled] { opacity: 0; pointer-events: none; }
.ps-prev { left: -18px; }
.ps-next { right: -18px; }
@media (max-width: 991.98px) {
    .ps-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
}
@media (max-width: 575.98px) {
    .ps-track { grid-auto-columns: 72%; }
    .ps-prev { left: -6px; }
    .ps-next { right: -6px; }
}

/* ---------- Quadro de novidades (listas de links com data) ---------- */
.news-board {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    height: 100%;
}
.news-board h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-board h3 i { color: var(--accent); }
.news-board ul { list-style: none; margin: 0; padding: 6px 0; }
.news-board li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 20px;
    font-size: .9rem;
    color: #3b4250;
    text-decoration: none;
}
.news-board li a:hover { background: var(--light-bg); color: var(--accent); }
.news-board li time {
    flex-shrink: 0;
    font-size: .75rem;
    color: #9aa1ab;
    padding-top: 2px;
}
.news-board-empty { padding: 14px 20px; font-size: .88rem; color: #9aa1ab; }

/* ---------- Banner de destaque (imagem + texto) ---------- */
.feature-banner {
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.feature-banner-media {
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-banner-media > i { font-size: 6rem; color: rgba(255,255,255,.15); }
.feature-banner-body { padding: 56px 48px; }
.feature-banner h2 { color: #fff; text-transform: uppercase; font-size: 2rem; }
.feature-banner p { color: rgba(255,255,255,.8); }
@media (max-width: 767px) {
    .feature-banner-media { min-height: 220px; }
    .feature-banner-body { padding: 36px 22px; }
}

/* Grelha de logotipos de marcas/parceiros */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
@media (min-width: 768px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .brand-grid { grid-template-columns: repeat(6, 1fr); } }
.brand-grid-item {
    background: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}
.brand-grid-item img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .65;
    transition: filter .2s ease, opacity .2s ease;
}
.brand-grid-item:hover img { filter: none; opacity: 1; }

/* Texto de noticia (pagina publica) */
.news-body { font-size: 1.05rem; line-height: 1.8; color: #3a3f46; }

/* ---------- Rodape ---------- */
.footer-main {
    background-color: var(--navy-dark);
    color: rgba(255,255,255,.75);
    margin-top: 0 !important;
}
.footer-main h6 {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1rem;
    margin-bottom: 18px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    position: relative;
}
.footer-main h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: var(--accent);
}
.footer-links { font-size: .9rem; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-absolute {
    background: color-mix(in srgb, var(--navy-dark) 80%, #000);
    color: rgba(255,255,255,.55);
    font-size: .8rem;
    padding: 14px 0;
}
.footer-absolute a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-absolute a:hover { color: #fff; }

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    z-index: 1050;
    transition: transform .2s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* Cabecalho das paginas interiores: faixa marinho compacta com titulo em maiusculas. */
.page-header {
    background: var(--navy-dark);
    color: #fff;
    padding: 38px 0;
    position: relative;
}
.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--yellow);
}
.page-header h1 {
    color: #fff;
    text-transform: uppercase;
    font-size: 2.1rem;
    font-weight: 500 !important;
    margin: 0;
}
.page-header .section-eyebrow { color: var(--accent); }
.page-header .breadcrumb { margin: 8px 0 0; justify-content: center; font-size: .8rem; }
.page-header .breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

.contact-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 3px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rounded-4 { border-radius: 4px !important; }

/* ---------- Sobre Nos ---------- */
.about-text { line-height: 1.75; }
.about-media { position: relative; padding-bottom: 46px; }
.about-media img,
.about-media-empty {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--yellow);
}
.about-media-empty {
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,.2);
}
.about-stats {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--navy-dark);
    color: #fff;
    box-shadow: 0 12px 28px var(--shadow-brand);
}
.about-stats > div {
    padding: 16px 10px;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,.12);
}
.about-stats > div:first-child { border-left: 0; }
.about-stats strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--yellow);
}
.about-stats span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light-bg);
}
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-grid-item:hover img { transform: scale(1.05); }
.photo-grid-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 14px 10px;
    color: #fff;
    font-size: .85rem;
    background: linear-gradient(transparent, color-mix(in srgb, var(--navy-dark) 85%, transparent));
}

/* A Nossa Loja: fotos + mapa */
.photo-grid.store-photos { grid-template-columns: repeat(2, 1fr); }
.photo-grid.store-photos.is-single { grid-template-columns: 1fr; height: 100%; }
.store-photos.is-single .photo-grid-item { aspect-ratio: auto; height: 100%; min-height: 260px; }
.store-map {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--light-bg);
}
.store-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.store-map-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.store-map-info strong { display: block; color: var(--navy); }
.store-map-info strong i { color: #1f8a3b; }
.store-map-info span { font-size: .9rem; color: #5b6270; }

.cta-band {
    background: var(--navy);
    color: #fff;
    padding: 44px 0;
    border-top: 4px solid var(--yellow);
}
.cta-band h2 { color: #fff; text-transform: uppercase; font-size: 1.7rem; margin-bottom: 4px; }
.cta-band p { color: rgba(255,255,255,.8); }

/* ---------- Noticias ---------- */
.news-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover { box-shadow: 0 12px 26px var(--shadow-brand); border-color: var(--accent); }
.news-card-img {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img > i { font-size: 3rem; color: color-mix(in srgb, var(--navy) 25%, #fff); }
.news-card-date {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.1;
}
.news-card-date strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--yellow);
}
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card-body h3 { font-size: 1.12rem; text-transform: uppercase; line-height: 1.3; margin-bottom: 8px; }
.news-card-body h3 a { color: var(--navy); text-decoration: none; }
.news-card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card-body p { font-size: .88rem; color: #7a808a; }
.news-card-more {
    margin-top: auto;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
}

.news-lead {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--navy-dark);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.news-lead:hover { color: #fff; }
.news-lead-img {
    min-height: 320px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.news-lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-lead:hover .news-lead-img img { transform: scale(1.04); }
.news-lead-img > i { font-size: 5rem; color: rgba(255,255,255,.2); }
.news-lead-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.news-lead-body h2 { color: #fff; text-transform: uppercase; font-size: 1.9rem; }
.news-lead-body p { color: rgba(255,255,255,.8); }
.news-lead-body .section-eyebrow { color: var(--yellow); }
@media (max-width: 767px) {
    .news-lead { grid-template-columns: 1fr; }
    .news-lead-img { min-height: 200px; }
    .news-lead-body { padding: 26px 22px; }
    .news-lead-body h2 { font-size: 1.45rem; }
}

.article-title { font-size: 2.2rem; text-transform: uppercase; margin-bottom: 12px; }
.article-lead { font-size: 1.15rem; color: #4a5060; border-left: 3px solid var(--yellow); padding-left: 14px; }
.article-img { width: 100%; max-height: 460px; object-fit: cover; margin: 10px 0 26px; }
.article-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

/* ---------- Cesto e checkout ---------- */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    flex-wrap: wrap;
}
.checkout-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .95rem;
    color: #a0a6b0;
}
.checkout-steps li + li::before {
    content: "";
    width: 46px;
    height: 2px;
    background: var(--border);
    margin-right: 6px;
}
.checkout-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}
.checkout-steps li.current { color: var(--navy); }
.checkout-steps li.current .checkout-step-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.checkout-steps li.done { color: var(--accent); }
.checkout-steps li.done .checkout-step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.checkout-steps li.done + li::before,
.checkout-steps li.current::before { background: var(--accent); }
@media (max-width: 575.98px) {
    .checkout-steps { gap: 4px; }
    .checkout-steps li { font-size: 0; gap: 0; }
    .checkout-steps li .checkout-step-num { font-size: .85rem; }
    .checkout-steps li + li::before { width: 28px; }
}

.shop-table { border: 1px solid var(--border); }
.shop-table thead th {
    background: var(--band-bg);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy);
    border-bottom: 2px solid var(--navy);
    padding: .8rem;
}
.shop-table td { padding: .9rem .8rem; }
.shop-table td:nth-child(2),
.shop-table td:nth-child(4),
.order-summary .fw-semibold,
.order-summary .price-tag { white-space: nowrap; }
.shop-table-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
}
.shop-table-thumb-sm { width: 42px; height: 42px; }

.order-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    padding: 24px;
}
.order-summary h5 {
    text-transform: uppercase;
    font-size: 1.1rem;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 992px) {
    .order-summary-sticky { position: sticky; top: 210px; }
}
.order-trust {
    list-style: none;
    padding: 16px 0 0;
    margin: 18px 0 0;
    border-top: 1px solid var(--border);
    font-size: .83rem;
    color: #6b7280;
}
.order-trust li { display: flex; gap: 10px; margin-bottom: 8px; }
.order-trust i { color: var(--accent); }

.checkout-box {
    border: 1px solid var(--border);
    border-radius: 0;
}
.checkout-box > .card-header {
    background: var(--band-bg);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--navy);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 0 !important;
}
.checkout-box-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-family: var(--font-body);
}
.pay-option {
    border: 1px solid var(--border);
    padding: 14px 16px 14px 44px;
    margin-bottom: 10px;
    transition: border-color .15s ease, background-color .15s ease;
}
.pay-option .form-check-input { margin-left: -28px; }
.pay-option:has(.form-check-input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.pay-option .form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.pay-option-extra { margin: -4px 0 14px; padding: 12px 16px; background: var(--light-bg); }

.receipt-box { border: 1px solid var(--border) !important; }
@media print {
    .no-print, .site-header, .topbar, .footer-main, .footer-absolute, .whatsapp-float { display: none !important; }
}

/* ---------- Fase 21: tamanhos, quantidade com unidade e cesto ---------- */
.price-unit { margin-left: 3px; font-size: .8em; font-weight: 600; color: #6c757d; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option {
    min-width: 48px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.size-option:hover { border-color: var(--navy); }
.btn-check:checked + .size-option { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-check:focus-visible + .size-option { outline: 2px solid var(--accent); outline-offset: 2px; }
.size-picker.needs-choice,
.color-palette.needs-choice { animation: needsChoice .4s ease 0s 3; border-radius: 8px; }
@keyframes needsChoice { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, #dc3545 40%, transparent); } }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid #cfd5df; border-radius: 8px; overflow: hidden; background: #fff; }
.qty-stepper .form-control { width: 70px; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty-stepper .form-control::-webkit-outer-spin-button,
.qty-stepper .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 38px; border: 0; background: var(--light-bg); color: var(--navy); font-size: 1.2rem; font-weight: 700; }
.qty-btn:hover { background: var(--navy); color: #fff; }

/* Icones ilustrados das categorias principais (formato 3:2). */
.solution-tile-icon.has-image { width: 96px; height: 64px; background: transparent; padding: 0; }
.mega-column-title img { width: 51px; }

/* Registo de cliente em passos (conta/registo.php). */
.register-steps { display: flex; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: none; }
.register-steps li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    color: #8a919c;
}
.register-steps li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #e3e7ec;
    color: #6c757d;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.register-steps li + li::before {
    content: "";
    position: absolute;
    top: 19px;
    right: 50%;
    width: 100%;
    height: 4px;
    background: #e3e7ec;
}
.register-steps li.current, .register-steps li.done { color: var(--navy); }
.register-steps li.current span, .register-steps li.done span { background: var(--navy); color: #fff; }
.register-steps li.done + li::before, .register-steps li.current::before { background: var(--navy); }
.register-aside { background: var(--light-bg); border-radius: 12px; padding: 28px; color: #4a515c; }
.register-aside ul { padding-left: 18px; margin: 0; }

/* Frase ao lado do logotipo tambem em tablet e telemovel: o mesmo aspeto do computador
   (2 linhas, traco verde a esquerda), so mais pequena. A largura em "em" acompanha o tamanho
   da letra, para a quebra de linha ficar sempre no mesmo sitio. */
.header-tagline { max-width: 18.3em; min-width: 0; }
.header-brand img { flex-shrink: 0; }
@media (max-width: 1199.98px) {
    .header-tagline { font-size: .66rem; }
}
@media (max-width: 991.98px) {
    .header-brand { gap: 10px; min-width: 0; flex-shrink: 1; }
    .header-brand img { max-height: 46px; max-width: 110px; }
    .header-brand-name { font-size: 1.15rem; flex-shrink: 0; }
    .header-tagline { font-size: .58rem; padding-left: 9px; }
}
@media (max-width: 399.98px) {
    .header-brand { gap: 8px; }
    .header-brand img { max-height: 40px; max-width: 92px; }
    .header-tagline { font-size: .55rem; padding-left: 7px; }
}

/* Quantidade por tamanho (vestuario): uma caixa por tamanho. */
.size-qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-width: 520px; }
.size-qty {
    display: flex;
    flex-direction: column;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: text;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.size-qty-label { background: var(--light-bg); text-align: center; font-weight: 700; font-size: .85rem; padding: 4px 2px; color: var(--navy); }
.size-qty .form-control { border: 0; border-radius: 0; text-align: center; font-weight: 700; padding: 6px 2px; }
.size-qty.has-qty { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.size-qty.has-qty .size-qty-label { background: var(--navy); color: #fff; }

/* Aniversario na area de cliente. */
.birthday-banner { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #fff), #fff8dc); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.birthday-banner > i { font-size: 2rem; color: var(--accent); }

/* Proposta comercial (proposta.php). */
.proposal-doc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 36px; }
.proposal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 3px solid var(--navy); }
.proposal-logo { max-height: 70px; max-width: 200px; }
.proposal-client { margin: 22px 0 6px; }
.proposal-title { font-size: 1.6rem; color: var(--navy); margin: 18px 0 8px; }
.proposal-intro { color: #4a515c; }
.proposal-items { margin-top: 18px; }
.proposal-item { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); break-inside: avoid; }
.proposal-item-img { width: 170px; height: 170px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.proposal-item-img img { width: 100%; height: 100%; object-fit: contain; }
.proposal-item-img i { font-size: 2.4rem; color: #c5ccd6; }
.proposal-item-body h2 { font-size: 1.15rem; margin-bottom: 6px; text-transform: none; }
.proposal-item-body p { color: #5a616c; font-size: .93rem; margin-bottom: 10px; }
.proposal-item-figures { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; font-size: .93rem; }
.proposal-item-subtotal { margin-left: auto; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.proposal-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; margin-top: 8px; background: var(--light-bg); border-radius: 10px; font-size: 1.1rem; }
.proposal-total strong { font-size: 1.5rem; color: var(--navy); }
.proposal-closing { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: #4a515c; font-size: .93rem; }
.proposal-actions { margin-top: 22px; }
@media (max-width: 575.98px) {
    .proposal-doc { padding: 20px; }
    .proposal-item { grid-template-columns: 1fr; }
    .proposal-item-img { width: 100%; height: 220px; }
}
@media print {
    .site-header, .topbar, footer, .footer-absolute, .no-print, .whatsapp-float, .site-flash { display: none !important; }
    .proposal-page { padding: 0 !important; }
    .proposal-doc { border: 0; padding: 0; }
}

/* Paleta de cores igual em todos os produtos: bolinhas do mesmo tamanho, sem herdar espacamentos
   do tema, e o mesmo espaco reservado em todos os cartoes (com ou sem cores). */
.color-palette-swatches { gap: 10px; }
.color-swatch {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0;
    line-height: 0;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
}
.card-swatches { min-height: 22px; flex-wrap: nowrap; overflow: hidden; }
.card-swatch {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
}
/* Cor indisponivel (marcada no admin): riscada, sem poder ser escolhida. */
.color-swatch.is-unavailable { position: relative; opacity: .45; cursor: not-allowed; transform: none !important; }
.color-swatch.is-unavailable::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, transparent calc(50% - 1.5px), #c0392b calc(50% - 1.5px), #c0392b calc(50% + 1.5px), transparent calc(50% + 1.5px));
    border-radius: 6px;
}

/* Protecao das imagens: sem arrastar, sem selecionar e sem o menu "Guardar imagem" do toque longo. */
.product-card img, .pg-stage img, .pg-lightbox img, .product-thumbs img, .hero, .solution-tile img,
.proposal-item-img img, .brand-grid img, .feature-banner-media, .news-card-img img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
/* Marca de agua discreta sobre a foto do produto (tambem aparece em capturas de ecra). */
.pg-stage { position: relative; }
.pg-stage::after, .pg-lightbox-stage::after {
    content: "UNIREX";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-28deg);
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 9vw, 6rem);
    letter-spacing: .12em;
    color: rgba(18, 63, 34, .07);
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}
.pg-lightbox-stage { position: relative; }
.pg-lightbox-stage::after { color: rgba(255, 255, 255, .08); }

/* Preco escondido (loja so com cotacoes). */
.price-on-quote { color: var(--navy); font-weight: 700; font-size: .9rem; }
