/* Netseg Ipesca Home — Public v1.4.1 */

:root {
    --niph-navy:    #0d2235;
    --niph-navy-h:  #1a3a5c;
    --niph-red:     #CC0000;
    --niph-red-h:   #b50000;
    --niph-orange:  #f08c00;
    --niph-ig:      #e1306c;
    --niph-wa:      #25D366;
    --niph-surface: #f8f9fb;
    --niph-border:  #e8eaed;
    --niph-text:    #1a2530;
    --niph-muted:   #6b7280;
    --niph-r:       10px;
    --niph-rs:      6px;
}

/* ── Layout ──────────────────────────────────────────────────── */
.niph-home { width: 100%; }
.niph-home__layout {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 20px;
    align-items: start;
}
.niph-home__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ── Sidebar — tudo aberto ───────────────────────────────────── */
.niph-sidebar {
    background: #fff;
    border: 1px solid var(--niph-border);
    border-radius: var(--niph-r);
    overflow: visible;
    position: sticky;
    top: 16px;
    z-index: 9999;
}
.niph-sidebar__head {
    background: var(--niph-navy);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.niph-sidebar__head-txt {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.niph-sidebar__head-badge {
    background: var(--niph-orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}
.niph-sidebar__search {
    padding: 7px 10px;
    border-bottom: 1px solid var(--niph-border);
    background: var(--niph-surface);
}
.niph-sidebar__search-input {
    width: 100%;
    border: 1px solid var(--niph-border);
    border-radius: var(--niph-rs);
    padding: 5px 9px;
    font-size: 11px;
    color: var(--niph-text);
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.niph-sidebar__search-input:focus { border-color: var(--niph-navy); }
/* Nav sem scroll — expande o que for necessário */
.niph-sidebar__nav { overflow-y: visible; }

/* Categoria principal */
.niph-sidebar__cat {
    border-bottom: 1px solid var(--niph-border);
}
.niph-sidebar__cat:last-child { border-bottom: none; }
.niph-sidebar__cat--hidden { display: none !important; }

/* Linha de categoria: link à esquerda + botão toggle à direita */
.niph-sidebar__cat-row-wrap {
    display: flex;
    align-items: stretch;
    min-height: 48px !important;
}
.niph-sidebar__cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px 9px 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background .12s;
    flex: 1;
    min-width: 0;
    box-sizing: border-box !important;
    min-height: 48px !important;
}
.niph-sidebar__cat-row:hover {
    background: #fffaf5;
    text-decoration: none !important;
}

/* Botão toggle +/− */
.niph-sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 48px !important;
    flex-shrink: 0;
    align-self: stretch;
    background: none;
    border: none;
    border-left: 1px solid var(--niph-border);
    cursor: pointer;
    color: var(--niph-orange);
    transition: background .12s, color .15s;
    padding: 0;
    font-size: 0;
}
.niph-sidebar__toggle:hover {
    background: rgba(240,140,0,.08);
}
/* SVG icon dentro do botão */
.niph-sidebar__toggle svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: var(--niph-orange);
    transition: transform .22s ease, stroke .15s;
    flex-shrink: 0;
}
/* Quando aberto: roda o ícone + e vira − visualmente */
.niph-sidebar__cat--open .niph-sidebar__toggle {
    background: #f08c00 !important;
    border-left-color: #f08c00 !important;
}
.niph-sidebar__cat--open .niph-sidebar__toggle svg {
    stroke: #fff;
    transform: rotate(45deg);
}

.niph-sidebar__cat-img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--niph-surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.niph-sidebar__cat-img img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
}
.niph-sidebar__cat-initial {
    font-size: 13px;
    font-weight: 800;
    color: var(--niph-navy);
}
.niph-sidebar__cat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.niph-sidebar__cat-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--niph-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.niph-sidebar__cat-count {
    font-size: 9px;
    color: var(--niph-muted);
}
/* Seta → já não é necessária — substituída pelo toggle */
.niph-sidebar__cat-arrow { display: none; }

/* Subcategorias — acordeão: fechadas por defeito, abrem com JS */
.niph-sidebar__subs {
    background: var(--niph-surface);
    border-top: 1px solid var(--niph-border);
    padding: 3px 0 5px;
    display: none;
    overflow: hidden;
}
.niph-sidebar__cat--open .niph-sidebar__subs { display: block; }

/* ── Nível 3 — escada barra laranja ─────────────────────────── */
.niph-sidebar__lvl3 {
    border-left: 2px solid var(--niph-orange) !important;
    margin-left: 12px !important;
    border-top: 1px solid var(--niph-border) !important;
    list-style: none !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}
.niph-sidebar__sub {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 5px 12px 5px 10px !important;
    text-decoration: none !important;
    transition: background .1s;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    float: none !important;
    list-style: none !important;
}
.niph-sidebar__sub:hover { background: rgba(240,140,0,.06) !important; }
.niph-sidebar__sub-name {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--niph-text) !important;
    transition: color .1s;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}
.niph-sidebar__sub:hover .niph-sidebar__sub-name { color: var(--niph-navy) !important; }
.niph-sidebar__sub--hot .niph-sidebar__sub-name { color: var(--niph-red) !important; font-weight: 700 !important; }

/* ── Nível 4 — escada barra cinza ───────────────────────────── */
.niph-sidebar__grandchildren {
    display: block !important;
    border-left: 2px solid #d0d5dd !important;
    margin-left: 10px !important;
    margin-bottom: 3px !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    width: auto !important;
}
.niph-sidebar__grandchild {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 3px 12px 3px 8px !important;
    text-decoration: none !important;
    transition: background .1s;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    float: none !important;
    list-style: none !important;
}
.niph-sidebar__grandchild:hover { background: rgba(240,140,0,.06) !important; }
.niph-sidebar__grandchild-name {
    font-size: 10px !important;
    color: var(--niph-muted) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color .1s;
}
.niph-sidebar__grandchild:hover .niph-sidebar__grandchild-name { color: var(--niph-navy) !important; }

.niph-sidebar__sub-count {
    font-size: 9px;
    color: #b0b7c0;
    background: #e8eaed;
    padding: 1px 5px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: 6px;
}
.niph-sidebar__footer {
    padding: 9px 12px;
    background: var(--niph-surface);
    border-top: 1px solid var(--niph-border);
    text-align: center;
}
.niph-sidebar__footer a {
    font-size: 10px;
    color: var(--niph-orange);
    font-weight: 700;
    text-decoration: none !important;
}
.niph-sidebar__footer a:hover { color: #cc7700; }

/* ── Hero ────────────────────────────────────────────────────── */
.niph-hero {
    position: relative;
    width: 100%;
    border-radius: var(--niph-r);
    overflow: hidden;
    display: flex;
    align-items: center;
    contain: layout;
}
.niph-hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.niph-hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; z-index: 0;
}
.niph-hero__overlay {
    position: absolute; inset: 0;
    background: rgba(13,34,53,.54); z-index: 1;
}
.niph-hero__content {
    position: relative; z-index: 2;
    padding: 36px 40px; max-width: 500px;
}
.niph-hero__badge {
    display: inline-block;
    background: var(--niph-orange);
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 3px 12px; border-radius: 20px;
    margin-bottom: 12px; letter-spacing: .04em;
}
.niph-hero__title {
    font-size: 30px !important; font-weight: 800 !important;
    color: #fff !important; line-height: 1.15 !important;
    margin: 0 0 8px !important; padding: 0 !important;
}
.niph-hero__sub {
    font-size: 13px; color: rgba(255,255,255,.7);
    margin: 0 0 4px; line-height: 1.5;
}
.niph-hero__local {
    font-size: 11px; color: rgba(255,255,255,.5);
    margin: 0 0 20px; line-height: 1.4;
}
.niph-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Botões ──────────────────────────────────────────────────── */
.niph-btn {
    display: inline-flex; align-items: center;
    padding: 11px 22px; border-radius: var(--niph-rs);
    font-size: 13px; font-weight: 700;
    text-decoration: none !important;
    transition: background .15s, transform .12s, border-color .15s;
    cursor: pointer; letter-spacing: .03em; line-height: 1;
}
.niph-btn--primary {
    background: var(--niph-red); color: #fff !important;
    border: 2px solid var(--niph-red);
}
.niph-btn--primary:hover {
    background: var(--niph-red-h); border-color: var(--niph-red-h);
    transform: translateY(-1px); color: #fff !important;
}
.niph-btn--outline {
    background: transparent; color: #fff !important;
    border: 2px solid rgba(255,255,255,.4);
}
.niph-btn--outline:hover {
    border-color: rgba(255,255,255,.8);
    transform: translateY(-1px); color: #fff !important;
}

/* ── Secção ──────────────────────────────────────────────────── */
.niph-section__header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 12px;
}
.niph-section__title {
    font-size: 12px !important; font-weight: 700 !important;
    color: var(--niph-navy) !important;
    text-transform: uppercase !important; letter-spacing: .08em !important;
    display: flex !important; align-items: center !important; gap: 7px !important;
    margin: 0 !important; padding: 0 !important;
}
.niph-section__title::before {
    content: ''; width: 3px; height: 13px;
    background: var(--niph-red); border-radius: 2px; flex-shrink: 0;
}
.niph-section__link {
    font-size: 11px; color: var(--niph-orange);
    font-weight: 700; text-decoration: none !important;
}
.niph-section__link:hover { color: #cc7700; }

/* ── Grid categorias ─────────────────────────────────────────── */
.niph-cat-grid { display: grid; gap: 10px; }
.niph-cat-grid--2 { grid-template-columns: repeat(2,1fr); }
.niph-cat-grid--3 { grid-template-columns: repeat(3,1fr); }
.niph-cat-grid--4 { grid-template-columns: repeat(4,1fr); }
.niph-cat-grid--5 { grid-template-columns: repeat(5,1fr); }
.niph-cat-grid--6 { grid-template-columns: repeat(6,1fr); }

.niph-cat-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; background: #fff;
    border: 1px solid var(--niph-border);
    border-radius: var(--niph-r); padding: 14px 8px 12px;
    text-decoration: none !important; color: inherit !important;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.niph-cat-card:hover {
    border-color: var(--niph-navy);
    box-shadow: 0 3px 12px rgba(13,34,53,.09);
    transform: translateY(-2px);
    text-decoration: none !important;
}
.niph-cat-card__img {
    width: 60px; height: 60px; border-radius: 8px;
    overflow: hidden; background: var(--niph-surface);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 9px; flex-shrink: 0;
}
.niph-cat-card__img img { width: 60px; height: 60px; object-fit: cover; display: block; }
.niph-cat-card__initial { font-size: 20px; font-weight: 800; color: var(--niph-navy); }
.niph-cat-card__name { font-size: 11px; font-weight: 700; color: var(--niph-text); line-height: 1.3; }
.niph-cat-card__count { font-size: 9px; color: var(--niph-muted); margin-top: 2px; }

/* ── Grid produtos ───────────────────────────────────────────── */
.niph-prod-grid { display: grid; gap: 12px; }
.niph-prod-grid--2 { grid-template-columns: repeat(2,1fr); }
.niph-prod-grid--3 { grid-template-columns: repeat(3,1fr); }
.niph-prod-grid--4 { grid-template-columns: repeat(4,1fr); }
.niph-prod-grid--5 { grid-template-columns: repeat(5,1fr); }

.niph-prod-card {
    background: #fff; border: 1px solid var(--niph-border);
    border-radius: var(--niph-r); overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.niph-prod-card:hover {
    box-shadow: 0 4px 16px rgba(13,34,53,.11);
    transform: translateY(-2px);
}
.niph-prod-card__img-wrap {
    display: block; background: var(--niph-surface);
    aspect-ratio: 1/1; overflow: hidden; text-decoration: none !important;
}
.niph-prod-card__img-wrap img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 10px; display: block; transition: transform .2s;
}
.niph-prod-card:hover .niph-prod-card__img-wrap img { transform: scale(1.04); }
.niph-prod-card__no-img {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; font-size: 30px;
}
.niph-prod-card__body {
    padding: 11px 11px 7px; flex: 1;
    display: flex; flex-direction: column; gap: 3px;
}
.niph-prod-card__marca {
    font-size: 9px; font-weight: 700; color: var(--niph-orange);
    text-transform: uppercase; letter-spacing: .07em;
}
.niph-prod-card__nome {
    font-size: 12px; font-weight: 500; color: var(--niph-text);
    text-decoration: none !important; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.niph-prod-card__nome:hover { color: var(--niph-navy) !important; }
.niph-prod-card__preco {
    font-size: 15px; font-weight: 700; color: var(--niph-red); margin-top: 4px;
}
.niph-prod-card__preco .woocommerce-Price-amount { color: var(--niph-red) !important; }
.niph-prod-card__cta {
    display: block; text-align: center;
    background: var(--niph-navy); color: #fff !important;
    font-size: 11px; font-weight: 700; padding: 10px;
    text-decoration: none !important; letter-spacing: .03em;
    transition: background .15s; margin-top: auto;
}
.niph-prod-card__cta:hover {
    background: var(--niph-red); color: #fff !important;
    text-decoration: none !important;
}

/* ── Instagram ───────────────────────────────────────────────── */
.niph-ig {
    background: #fff; border: 1px solid var(--niph-border);
    border-radius: var(--niph-r); overflow: hidden;
}
.niph-ig__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--niph-border);
}
.niph-ig__profile { display: flex; align-items: center; gap: 10px; }
.niph-ig__avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
    display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.niph-ig__handle { font-size: 13px; font-weight: 700; color: var(--niph-text); }
.niph-ig__descr  { font-size: 10px; color: var(--niph-muted); margin-top: 1px; }
.niph-ig__follow {
    background: var(--niph-ig); color: #fff !important;
    font-size: 11px; font-weight: 700; padding: 7px 16px;
    border-radius: 20px; text-decoration: none !important;
    transition: background .15s;
}
.niph-ig__follow:hover { background: #c1185a; color: #fff !important; }
.niph-ig__grid {
    display: grid; gap: 2px;
    grid-template-columns: repeat(5,1fr);
}
.niph-ig__grid--4 { grid-template-columns: repeat(4,1fr); }
.niph-ig__grid--3 { grid-template-columns: repeat(3,1fr); }
.niph-ig__post {
    position: relative; aspect-ratio: 1/1; overflow: hidden;
    display: block; text-decoration: none !important;
}
.niph-ig__post img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .2s;
}
.niph-ig__post:hover img { transform: scale(1.06); }
.niph-ig__post-placeholder {
    width: 100%; height: 100%; background: var(--niph-surface);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.niph-ig__post-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.niph-ig__post-overlay svg { opacity: 0; transition: opacity .2s; }
.niph-ig__post:hover .niph-ig__post-overlay { background: rgba(0,0,0,.35); }
.niph-ig__post:hover .niph-ig__post-overlay svg { opacity: 1; }
.niph-ig__empty {
    padding: 20px; text-align: center;
    font-size: 12px; color: var(--niph-muted);
}
.niph-ig__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px; border-top: 1px solid var(--niph-border);
    background: var(--niph-surface);
}
.niph-ig__footer span { font-size: 10px; color: var(--niph-muted); }
.niph-ig__footer a {
    font-size: 10px; color: var(--niph-ig); font-weight: 700;
    text-decoration: none !important;
}
.niph-ig__footer a:hover { color: #c1185a; }

/* ── Banner ──────────────────────────────────────────────────── */
.niph-banner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px;
    padding: 20px 28px; border-radius: var(--niph-r);
}
.niph-banner__text { display: flex; flex-direction: column; gap: 3px; }
.niph-banner__label {
    font-size: 9px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--niph-orange);
}
.niph-banner__titulo { font-size: 15px; font-weight: 700; color: #fff; display: block; }
.niph-banner__sub    { font-size: 11px; color: rgba(255,255,255,.6); }
.niph-banner__cta {
    flex-shrink: 0; background: var(--niph-wa);
    color: #fff !important; font-size: 12px; font-weight: 700;
    padding: 11px 22px; border-radius: 22px;
    text-decoration: none !important;
    transition: background .15s, transform .12s; white-space: nowrap;
}
.niph-banner__cta:hover {
    background: #1da855; transform: translateY(-1px);
    color: #fff !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .niph-home__layout,
    .niph-shop-layout         { grid-template-columns: 220px 1fr; gap: 14px; }
    .niph-cat-grid--5,.niph-cat-grid--6 { grid-template-columns: repeat(4,1fr); }
    .niph-prod-grid--5 { grid-template-columns: repeat(4,1fr); }
}


/* ══════════════════════════════════════════════════════════════
   NIPH Shop Layout — sidebar em páginas WooCommerce
   Dimensões idênticas à homepage (.niph-home__layout)
══════════════════════════════════════════════════════════════ */

.niph-shop-layout {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}
.niph-shop-layout > .niph-sidebar,
.niph-shop-layout > .niph-sidebar-col {
    position: sticky;
    top: 16px;
    align-self: start;
}
/* Dentro da col no shop layout: menu não deve ser sticky */
.niph-shop-layout > .niph-sidebar-col > .niph-sidebar {
    position: static !important;
    top: auto !important;
}
.niph-shop-content { min-width: 0; }
.niph-shop-main    { min-width: 0; }

/* Cabeçalho do arquivo */
.niph-archive__title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--niph-navy) !important;
    margin: 0 0 6px !important;
    border: none !important;
    padding: 0 !important;
}
.niph-archive__count {
    font-size: 13px;
    color: var(--niph-muted);
    margin: 0;
}
.niph-archive__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    margin-top: 12px;
}
.niph-archive__toolbar .woocommerce-ordering select {
    padding: 6px 10px;
    border: 1px solid var(--niph-border);
    border-radius: var(--niph-rs);
    font-size: 13px;
    color: var(--niph-text);
    background: #fff;
}
.niph-archive__empty {
    color: var(--niph-muted);
    padding: 40px 0;
    text-align: center;
}

/* Paginação */
.niph-archive__pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.niph-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--niph-border);
    border-radius: var(--niph-rs);
    font-size: 13px;
    color: var(--niph-text);
    text-decoration: none !important;
    transition: background .12s, border-color .12s;
    background: #fff;
}
.niph-archive__pagination .page-numbers:hover {
    background: var(--niph-surface);
    border-color: var(--niph-navy);
    color: var(--niph-navy);
}
.niph-archive__pagination .page-numbers.current {
    background: var(--niph-navy);
    border-color: var(--niph-navy);
    color: #fff;
}

/* Esconder conteúdo WC nativo nas páginas com sidebar */
.niph-has-sidebar #main > .woocommerce:not(.niph-shop-layout),
.niph-has-sidebar #primary > .woocommerce:not(.niph-shop-layout),
.niph-has-sidebar .site-main > .woocommerce:not(.niph-shop-layout) {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .niph-shop-layout { grid-template-columns: 220px 1fr; gap: 14px; }
}


/* ── Hero de categoria ───────────────────────────────────────── */
.niph-cat-hero {
    position: relative;
    min-height: 160px;
    border-radius: var(--niph-r);
    overflow: hidden;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.niph-cat-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.niph-cat-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,34,53,.15) 0%,
        rgba(13,34,53,.75) 100%
    );
}
.niph-cat-hero__content {
    position: relative;
    z-index: 1;
    padding: 20px 24px;
    width: 100%;
}
.niph-cat-hero__badge {
    display: inline-block;
    background: var(--niph-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: .04em;
}
.niph-cat-hero__title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 4px !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.4) !important;
    border: none !important;
    padding: 0 !important;
}
.niph-cat-hero__desc {
    font-size: 13px !important;
    color: rgba(255,255,255,.8) !important;
    margin: 4px 0 0 !important;
    line-height: 1.5 !important;
}
/* Sem imagem — só cor + gradiente discreto */
.niph-cat-hero:not([style*="background-image"]) {
    min-height: 120px;
    background-image: linear-gradient(135deg, transparent 0%, rgba(255,255,255,.04) 100%) !important;
}
.niph-cat-hero:not([style*="background-image"]) .niph-cat-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.niph-cat-hero__overlay {
    background: linear-gradient(to right, rgba(0,0,0,.15) 0%, transparent 100%);
}

/* ── Replicar CSS da homepage no contexto das páginas de categoria ── */
/* O tema aplica CSS ao contexto WC que comprime os elementos da sidebar.
   Estas regras têm especificidade superior ao tema e garantem que a sidebar
   das páginas de categoria é visualmente idêntica à da homepage. */

.niph-shop-layout .niph-sidebar__cat {
    border-bottom: 1px solid var(--niph-border) !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    list-style: none !important;
}
.niph-shop-layout .niph-sidebar__cat-row-wrap {
    display: flex !important;
    align-items: stretch !important;
    min-height: 48px !important;
    width: 100% !important;
}
.niph-shop-layout .niph-sidebar__cat-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 10px 9px 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}
.niph-shop-layout .niph-sidebar__toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    min-height: 48px !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    background: none !important;
    border: none !important;
    border-left: 1px solid var(--niph-border) !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-size: 0 !important;
    margin: 0 !important;
}
.niph-shop-layout .niph-sidebar__toggle svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    stroke: #f08c00 !important;
    flex-shrink: 0 !important;
}
.niph-shop-layout .niph-sidebar__cat--open .niph-sidebar__toggle {
    background: #f08c00 !important;
    border-left-color: #f08c00 !important;
}
.niph-shop-layout .niph-sidebar__cat--open .niph-sidebar__toggle svg {
    stroke: #fff !important;
    transform: rotate(45deg) !important;
}
.niph-shop-layout .niph-sidebar__cat-img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    background: var(--niph-surface) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.niph-shop-layout .niph-sidebar__cat-img img {
    width: 30px !important;
    height: 30px !important;
    object-fit: cover !important;
    display: block !important;
}
.niph-shop-layout .niph-sidebar__cat-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--niph-navy) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}
.niph-shop-layout .niph-sidebar__cat-count {
    font-size: 9px !important;
    color: var(--niph-muted) !important;
}

/* ══════════════════════════════════════════════════════════════
   NIPH Banners Pub — sidebar col + banner items  v1.8.0
══════════════════════════════════════════════════════════════ */

/* Coluna sidebar: menu + banners empilhados */
.niph-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 16px;
    align-self: start;
    width: 255px;
    min-width: 255px;
    max-width: 255px;
    box-sizing: border-box;
    z-index: 9999;
}

/* Dentro da coluna, o menu NÃO deve ser sticky por si próprio
   (a coluna já é sticky — sticky duplo quebra o layout) */
.niph-sidebar-col > .niph-sidebar {
    position: static !important;
    top: auto !important;
}
.niph-sidebar-col .nipm-root {
    position: static !important;
}

/* Wrapper dos banners */
.niph-banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 255px;
}

/* Item individual */
.niph-banner-item {
    width: 255px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    line-height: 0; /* elimina espaço inline-block sob imagens */
}

.niph-banner-item a {
    display: block;
    line-height: 0;
    text-decoration: none !important;
}
.niph-banner-item img {
    display: block;
    width: 100%;
    height: auto;          /* proporções reais — sem corte nem distorção */
    transition: filter .25s ease;
}
.niph-banner-item:hover img {
    filter: brightness(1.12);
}

/* Embed HTML (tipo=html): repõe line-height normal */
.niph-banner-item--html {
    line-height: normal;
    overflow: hidden;
}
.niph-banner-item--html > * {
    max-width: 100% !important;
    width: 100% !important;
}

/* Responsive: 220px em ≤1024px */
@media (max-width: 1024px) {
    .niph-sidebar-col,
    .niph-banners,
    .niph-banner-item { width: 220px; min-width: 220px; }
}

/* Ocultar banners em mobile */
@media (max-width: 768px) {
    .niph-banners { display: none; }
}
