/* ====== Reset (Meyer) ====== */

/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | Public Domain */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

/* ====== Base ====== */

:root {
    --color-bg: #0d1117;
    --color-surface: #161b22;
    --color-surface-alt: #1f242d;
    --color-border: #2b313c;
    --color-border-subtle: #20242d;
    --color-primary: #8ab4f8;
    --color-primary-light: rgba(138, 180, 248, 0.18);
    --color-text: #f8f9fa;
    --color-text-muted: #d2d6dc;
    --color-text-soft: #aab0bc;
    --shadow-soft: 0 4px 18px rgba(2, 6, 23, 0.65);
    --shadow-hover: 0 16px 32px rgba(2, 6, 23, 0.8);
    --radius-card: 18px;
    --radius-pill: 999px;
    --transition-fast: 0.2s ease-out;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* ====== Utilitário container ====== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ====== Header ====== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-surface);
    box-shadow: 0 1px 0 rgba(60, 64, 67, 0.15);
}

.header-top {
    border-bottom: 1px solid var(--color-border-subtle);
}

.header-top-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
}

/* Logo */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 18px 6px 16px;
    border-radius: 999px;
    background-color: #ffffff;
    border: 1px solid #ffcc80;
    box-shadow: 0 2px 6px rgba(255, 111, 0, 0.25);
    gap: 8px;
}

/* Bolinha de desconto antes do texto (tipo selo %) */
.logo-tag::before {
    content: "%";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6f00, #f44336);
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.4);
}

/* Texto So Tem Oferta com cara de preço/chamada */
.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #872103; /* contraste reforçado */
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo-bf-badge {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(120deg, #f97316, #ef4444);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Search header */

.search-bar-header {
    flex: 1;
}

.search-form-header {
    display: flex;
    align-items: center;
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-pill);
    padding: 4px 10px 4px 16px;
    border: 1px solid transparent;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.search-form-header input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
}

.search-form-header input::placeholder {
    color: var(--color-text-soft);
}

.search-form-header button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form-header button i {
    font-size: 14px;
    color: var(--color-text-soft);
}

.search-form-header:hover {
    background-color: #fff;
    border-color: var(--color-border);
    box-shadow: var(--shadow-soft);
}

.search-form-header:focus-within {
    background-color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.35);
}

/* Ícones do header */

.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid transparent;
    background-color: var(--color-surface-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-soft);
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.header-icon i {
    font-size: 15px;
}

.header-icon:hover {
    background-color: #fff;
    border-color: var(--color-border);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

/* ====== Navegação principal ====== */

.main-nav {
    border-bottom: 1px solid var(--color-border-subtle);
    background-color: var(--color-surface);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 16px;
}

.nav-primary {
    list-style: none;
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.nav-primary a {
    text-decoration: none;
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-primary a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.nav-categories {
    margin-left: auto;
    position: relative;
}

.nav-categories-toggle {
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border-subtle);
    border-radius: 999px;
    color: var(--color-text);
    font-size: 14px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-categories-toggle:hover,
.nav-categories-toggle[aria-expanded="true"] {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.nav-caret {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
}

.nav-categories-toggle[aria-expanded="true"] .nav-caret {
    transform: rotate(-135deg);
}

.nav-categories-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, 90vw);
    max-height: 70vh;
    overflow-y: auto;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
    display: none;
    z-index: 20;
}

.nav-categories-panel.is-open {
    display: block;
}

.nav-tree {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-tree-group {
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 8px;
}

.nav-tree-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nav-tree-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-tree-parent > a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.nav-tree-parent > a:hover {
    color: var(--color-primary);
}

.nav-branch-toggle {
    border: 1px solid var(--color-border-subtle);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.nav-branch-toggle:hover,
.nav-branch-toggle[aria-expanded="true"] {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.nav-branch-toggle .nav-caret {
    width: 10px;
    height: 10px;
}

.nav-tree-children {
    margin-top: 8px;
    padding-left: 16px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.nav-tree-children.is-open {
    display: flex;
}

.nav-tree-children a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 13px;
}

.nav-tree-children a:hover {
    color: var(--color-primary);
}

.nav-tree-footer {
    margin-top: 12px;
    text-align: right;
}

.nav-tree-footer a {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-primary {
        flex-wrap: wrap;
    }

    .nav-categories {
        width: 100%;
    }

    .nav-categories-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-categories-panel {
        position: static;
        width: 100%;
        max-height: none;
        box-shadow: none;
        margin-top: 4px;
    }
}

/* ====== Hamburger (mobile) ====== */

.hamburger-menu {
    display: none;
    position: absolute;
    right: 16px;
    top: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-surface-alt);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hamburger-box {
    display: inline-block;
    position: relative;
    width: 22px;
    height: 14px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--color-text);
    transition: transform var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast), bottom var(--transition-fast);
}

.hamburger-inner {
    top: 6px;
}

.hamburger-inner::before {
    content: "";
    top: -6px;
}

.hamburger-inner::after {
    content: "";
    bottom: -6px;
}

/* Estado ativo do hamburger */

.hamburger-menu[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger-menu[aria-expanded="true"] .hamburger-inner::before {
    top: 0;
    transform: rotate(-90deg);
}

.hamburger-menu[aria-expanded="true"] .hamburger-inner::after {
    bottom: 0;
    opacity: 0;
}

/* ====== Layout principal ====== */

main {
    padding: 24px 0 40px;
}

.shopping-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shopping-hero {
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
}

.shopping-hero h1 {
    font-size: 30px;
    margin: 6px 0 12px;
}

.shopping-hero p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.shopping-toolbar {
    background-color: #151a20;
    border-radius: var(--radius-card);
    border: 1px solid #262c36;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.55);
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
}

.shopping-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex: 1 1 auto;
    width: 100%;
}

.filter-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field.search-field {
    flex: 1 1 auto;
}

.filter-field.price-field {
    flex: 0 0 200px;
}

.filter-field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8c96a5;
}

.filter-field input {
    border-radius: 10px;
    border: 1px solid #2f323c;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #0f131a;
    color: #f1f3f4;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-field input::placeholder {
    color: #6e7380;
}

.filter-field input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(26, 95, 213, 0.15);
}

.filter-price {
    max-width: 220px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: flex-end;
}

.filter-actions button {
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 26px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #669df6, #8ab4f8);
    color: #0d1117;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 157, 246, 0.35);
}

.shopping-chip-row {
    background-color: #14181f;
    border-radius: var(--radius-card);
    border: 1px solid #262c36;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.55);
    padding: 12px;
}

.chip-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shopping-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #2f323b;
    color: #e8eaed;
    text-decoration: none;
    font-size: 13px;
    background-color: #20242c;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.shopping-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shopping-chip.active {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.chip-parent {
    font-weight: 600;
}

.chip-child {
    font-size: 12px;
}

.price-green {
    color: #34a853;
    font-weight: 700;
    font-size: 15px;
}

.store-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-soft);
    font-size: 11px;
}

.product-drop-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.product-old-price {
    text-decoration: line-through;
    color: var(--color-text-soft);
    font-size: 13px;
}

.product-drop-percent {
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
}

/* Legacy sidebar styles removed in favor of Shopping-like layout */

/* ====== Conteúdo principal ====== */

.main-content {
    flex: 1;
    min-width: 0;
}

/* Barra de filtros (busca / preço) */

.search-container {
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(223, 225, 229, 0.8);
}

.search-container .search-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.search-input-group,
.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-input-group {
    flex: 2;
}

.price-input-group {
    flex: 1;
    max-width: 220px;
}

.search-input-group label,
.price-input-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.search-input,
.price-input {
    border-radius: 8px;
    border: 1px solid var(--color-border-subtle);
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    background-color: var(--color-surface-alt);
}

.search-input:focus,
.price-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.3);
    background-color: #fff;
}

.search-button {
    align-self: flex-start;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: var(--color-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.search-button:hover {
    background-color: #1765cb;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Título principal */

.main-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 20px;
    color: var(--color-text);
}

/* ====== Grid de produtos ====== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Card de produto */

.product-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(223, 225, 229, 0.9);
    overflow: hidden;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.product-card > a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: rgba(218, 220, 224, 0.9);
}

/* Imagem do produto */

.product-image-container {
    position: relative;
    padding-top: 100%; /* quadrado */
    background-color: var(--color-surface-alt);
    border-radius: 16px;
    overflow: hidden;
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* Info do produto */

.product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #f1f3f4;
    margin: 0;
    min-height: 36px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0 0;
    color: #f8f9fa;
}

/* =======================================================================
   PÁGINAS INSTITUCIONAIS
   ======================================================================= */
.institutional-page {
    padding: 32px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-section {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-subtle);
}

.hero-section h1 {
    margin: 12px 0 16px;
    font-size: 28px;
}

.hero-section p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8ab4f8;
    margin: 0;
}

.split-section,
.steps-section,
.stats-section {
    display: grid;
    gap: 20px;
}

.split-section {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.split-section h2 {
    margin: 0 0 8px;
}

.split-section p {
    margin: 0;
    color: var(--color-text-muted);
}

.stats-section {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats-section article {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
}

.stats-section h3 {
    margin: 0 0 8px;
}

.steps-section {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.steps-section article,
.policy-section {
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 20px 24px;
}

.policy-section h2 {
    margin-top: 16px;
}

.policy-section h2:first-of-type {
    margin-top: 0;
}

.category-family-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-family-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 20px 24px;
}

.category-family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.parent-category-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.parent-category-link:hover {
    color: var(--color-primary);
}

.category-meta {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.subcategory-chip-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.subcategory-chip {
    display: inline-flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--color-border-subtle);
    background-color: var(--color-surface-alt);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    min-width: 140px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.subcategory-chip small {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.subcategory-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-section {
    text-align: center;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-card);
    padding: 24px;
    border: 1px solid rgba(26, 115, 232, 0.2);
}

.cta-section h2 {
    margin: 0 0 8px;
}

.cta-section p {
    margin: 0;
    color: var(--color-text);
}

.category-grid .product-card {
    min-height: 120px;
}

.category-card .product-info {
    justify-content: center;
    text-align: center;
}

.sitemap-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 18px;
}

.sitemap-product-list li {
    font-size: 14px;
}

.sitemap-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sitemap-category-list > li {
    margin: 0;
}

.sitemap-category-list ul {
    list-style: none;
    padding-left: 18px;
    margin: 6px 0 0;
    border-left: 2px solid var(--color-border-subtle);
}

.sitemap-category-list a {
    color: var(--color-primary);
    text-decoration: none;
}

.sitemap-category-list a:hover {
    text-decoration: underline;
}

.product-price:empty::before {
    content: "--";
    color: var(--color-text-soft);
    font-weight: 400;
}

.product-stores {
    font-size: 12px;
    color: #a6adb7;
    margin: 4px 0 0;
}

.shopping-grid {
    gap: 16px;
}

.shopping-card {
    border-radius: 18px;
    border: 1px solid #272c36;
    background-color: #1b1f27;
    min-height: 100%;
}

.shopping-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.shopping-card:hover {
    border-color: #3a4150;
    box-shadow: 0 18px 34px rgba(3, 7, 18, 0.75);
    transform: translateY(-3px);
}

.shopping-image {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.08);
}

.shopping-info {
    padding: 18px;
    gap: 6px;
}

.shopping-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b93a3;
}

.shopping-name {
    font-size: 16px;
    min-height: auto;
    color: #f8f9fa;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.product-meta {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9ba2ad;
}

.product-cta {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-cta::after {
    content: "›";
    font-size: 16px;
}

.empty-state {
    margin: 20px 0;
    color: var(--color-text-muted);
}

/* ====== Paginação ====== */

.pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: var(--color-text-muted);
}

.shopping-pagination {
    margin-top: 16px;
}

.step-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.step-links a {
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border-subtle);
    background-color: var(--color-surface);
    color: var(--color-text);
    transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.step-links a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-soft);
}

.step-links .current {
    padding: 6px 12px;
    border-radius: 999px;
    background-color: var(--color-surface-alt);
    border: 1px solid transparent;
}

/* ====== Footer ====== */

.site-footer {
    border-top: 1px solid var(--color-border-subtle);
    background-color: var(--color-surface);
    padding-top: 24px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 16px;
}

.footer-section h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.footer-section p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 4px;
}

.footer-section a {
    font-size: 13px;
    text-decoration: none;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border-subtle);
    padding: 10px 0 14px;
    font-size: 12px;
    color: var(--color-text-soft);
}

/* ====== Responsivo ====== */

@media (max-width: 1024px) {
    .shopping-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shopping-filter-form {
        flex-direction: column;
        gap: 12px;
    }

    .filter-field,
    .filter-actions {
        width: 100%;
    }

    .filter-field.price-field {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media (max-width: 900px) {
    .header-top-container {
        gap: 12px;
    }

    .search-bar-header {
        order: 3;
        width: 100%;
    }

    .header-icons {
        margin-left: auto;
    }

    .chip-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .shopping-chip {
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .header-top-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main-nav {
        display: none;
        border-top: none;
    }

    .main-nav.is-active {
        display: block;
        border-top: 1px solid var(--color-border-subtle);
    }

    .nav-container {
        padding: 8px 24px 12px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hamburger-menu {
        display: inline-flex;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .main-title {
        font-size: 24px;
    }

    .shopping-hero,
    .shopping-filter-bar,
    .shopping-chip-row {
        padding: 12px 14px;
    }

    .chip-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .shopping-filter-form {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .filter-field,
    .filter-actions {
        width: 100%;
    }

    .filter-actions button {
        width: 100%;
    }

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

    .shopping-card {
        border-radius: 16px;
    }
}


/* =======================================================================
   PÁGINA DE DETALHE DO PRODUTO
   ======================================================================= */

.breadcrumb {
    background-color: transparent;
    padding: 12px 0;
    font-size: 13px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    color: var(--color-text-soft);
}

.breadcrumb li::after {
    content: "/";
    margin-left: 6px;
    color: var(--color-border);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

/* Layout principal da área de detalhe */
.product-detail-layout {
    display: flex;
    gap: 32px;
    padding: 24px 0 32px;
    align-items: flex-start;
}

/* Coluna da imagem */
.product-detail-image-column {
    flex: 1;
    max-width: 480px;
}

/* Card da imagem principal */
.image-gallery {
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(223, 225, 229, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

/* Coluna de informações */
.product-detail-info-column {
    flex: 1.1;
    min-width: 0;
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 20px 24px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(223, 225, 229, 0.9);
}

/* Título do produto */
.product-detail-title {
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--color-text);
}

.product-detail-subtitle {
    margin: -2px 0 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-soft);
}

/* Descrição */
.product-description {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border-subtle);
}

.product-description h3 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-soft);
    margin: 0 0 6px;
}

.product-description p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.product-category-link {
    margin-top: 8px;
    font-size: 13px;
    color: var(--color-text-soft);
}

.product-category-link a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.product-category-link a:hover {
    text-decoration: underline;
}

.price-drop-banner {
    margin: 16px 0 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--color-text);
}

.price-drop-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #22c55e;
}

.price-drop-values {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-top: 6px;
}

.price-drop-values .price-old {
    text-decoration: line-through;
    color: var(--color-text-soft);
}

.price-drop-values .price-current {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.price-drop-details {
    margin-top: 4px;
    font-size: 13px;
    color: var(--color-text-soft);
}

/* Seção de ofertas */
.offer-list-section {
    margin-top: 20px;
}

.offer-list-section h2 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--color-text);
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cada oferta */
.offer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border-subtle);
}

.offer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

.offer-price {
    font-size: 16px;
    font-weight: 700;
    color: #0f9d58; /* verdinho de preço / oferta */
}

.offer-store {
    font-size: 13px;
    color: var(--color-text-soft);
}

/* Botões genéricos */
.btn {
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color var(--transition-fast),
                color var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast);
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-tiny {
    padding: 5px 12px;
    font-size: 12px;
}

/* Botão principal (Ver Oferta, etc.) */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #1765cb;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Botão secundário (tabela de histórico, etc.) */
.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-primary-light);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

/* Botão fantasma (tabela de comparação) */
.btn-ghost {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border-subtle);
}

.btn-ghost:hover {
    background-color: var(--color-surface-alt);
    border-color: var(--color-border);
}

/* Comparativo de preços por loja */
.offer-compare-table {
    margin-top: 16px;
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 16px 18px;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
}

.offer-compare-table h3 {
    font-size: 15px;
    margin: 0 0 12px;
    color: var(--color-text);
}

.offer-compare-table table {
    width: 100%;
    border-collapse: collapse;
}

.offer-compare-table thead th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-soft);
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.offer-compare-table tbody td {
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.offer-compare-table tbody tr:hover {
    background-color: var(--color-surface-alt);
}

.offer-compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* =======================================================================
   HISTÓRICO DE PREÇOS
   ======================================================================= */

 .price-history-section {
     margin: 8px 0 32px;
     background-color: var(--color-surface);
     border-radius: var(--radius-card);
     padding: 20px 24px 24px;
     box-shadow: var(--shadow-soft);
     border: 1px solid rgba(223, 225, 229, 0.9);
 }
 
 .price-history-section h2 {
     font-size: 16px;
     font-weight: 500;
     margin: 0 0 10px;
     color: var(--color-text);
 }
 
 .price-history-chart {
     margin: 12px 0 4px;
     background-color: var(--color-surface-alt);
     border-radius: var(--radius-card);
     padding: 12px;
     border: 1px solid var(--color-border-subtle);
     min-height: 200px;
 }

/* =======================================================================
   FAQ DO PRODUTO
   ======================================================================= */

.product-faq {
    margin: 32px 0;
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(223, 225, 229, 0.9);
}

.product-faq h2 {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--color-text);
}

.faq-list {
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: block;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    padding: 0;
    background-color: var(--color-surface-alt);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 20px;
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: translateY(-50%) rotate(45deg);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(-135deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.5;
    font-size: 14px;
    padding: 14px 20px 18px;
}

.faq-item:last-of-type {
    border-bottom: none;
}

.faq-price-history {
    list-style: none;
    margin: 0;
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--color-text);
}

.faq-price-history li {
    display: block;
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-border-subtle);
}

.faq-price-history li:last-child {
    border-bottom: none;
}

/* =======================================================================
   RESPONSIVO – DETALHE
   ======================================================================= */

@media (max-width: 900px) {
    .product-detail-layout {
        flex-direction: column;
        gap: 20px;
    }

    .product-detail-image-column,
    .product-detail-info-column {
        max-width: 100%;
    }

    .product-detail-info-column {
        padding: 18px 16px 20px;
    }

    .price-history-section {
        padding: 18px 16px 20px;
    }

    .faq-list {
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .product-detail-title {
        font-size: 22px;
    }

    .offer-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-info {
        width: 100%;
    }

    .btn,
    .btn-small {
        width: 100%;
        justify-content: center;
    }

    .price-history-table thead {
        display: none; /* versão simples mobile */
    }

    .price-history-table,
    .price-history-table tbody,
    .price-history-table tr,
    .price-history-table td {
        display: block;
        width: 100%;
    }

    .price-history-table tr {
        margin-bottom: 12px;
        border-radius: 12px;
        border: 1px solid var(--color-border-subtle);
        overflow: hidden;
    }

    .price-history-table tbody td {
        border-bottom: 1px solid var(--color-border-subtle);
        padding: 8px 10px;
    }

    .price-history-table tbody tr:last-child td {
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .price-history-table tbody td:last-child {
        border-bottom: none;
    }

    .offer-compare-table thead {
        display: none;
    }

    .offer-compare-table table,
    .offer-compare-table tbody,
    .offer-compare-table tr,
    .offer-compare-table td {
        display: block;
        width: 100%;
    }

    .offer-compare-table tr {
        margin-bottom: 12px;
        border-radius: 12px;
        border: 1px solid var(--color-border-subtle);
        overflow: hidden;
    }

    .offer-compare-table td {
        padding: 8px 10px;
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .offer-compare-table tr td:last-child {
        border-bottom: none;
    }
}

/* ============================
   HEADER MOBILE MELHORADO
   ============================ */
@media (max-width: 720px) {
    .site-header {
        box-shadow: 0 1px 0 rgba(60, 64, 67, 0.15);
    }

    .header-top-container {
        padding: 8px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    /* Logo ocupa a esquerda, não cresce demais */
    .logo-link {
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 16px;
    }

    /* Ícones + hamburger alinhados à direita */
    .header-icons {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }

    .header-icon {
        width: 32px;
        height: 32px;
        box-shadow: none;
        background-color: transparent;
        border-color: transparent;
    }

    .header-icon:hover {
        background-color: var(--color-surface-alt);
        border-color: var(--color-border-subtle);
        box-shadow: none;
        transform: none;
    }

    /* Hamburger passa a fazer parte do fluxo (não absoluto) */
    .hamburger-menu {
        display: inline-flex;
        position: static;
        margin-left: 4px;
        width: 34px;
        height: 34px;
        background-color: var(--color-surface-alt);
        box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 20px;
    }

    /* Barra de busca vem logo abaixo, ocupando a largura toda */
    .search-bar-header {
        order: 3;
        width: 100%;
        margin-top: 4px;
    }

    .search-form-header {
        padding: 6px 10px 6px 14px;
    }

    /* Menu principal vira dropdown sob o header */
    .main-nav {
        display: none;
        border-top: none;
        box-shadow: 0 1px 0 rgba(60, 64, 67, 0.08);
    }

    .main-nav.is-active {
        display: block;
        animation: navSlideDown 0.18s ease-out;
    }

    .nav-container {
        padding: 6px 24px 10px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .main-nav a {
        padding: 6px 0;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Um pouco mais compacto em telas bem pequenas */

.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem auto 3rem;
}

.load-more-button {
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.load-more-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.load-more-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.load-status {
    font-size: 0.9rem;
    color: #55556d;
    text-align: center;
}

body.has-infinite-scroll .shopping-pagination {
    display: none;
}

.price-insights,
.editorial-highlights {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-subtle);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.price-insights h3,
.editorial-highlights h3 {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.price-insights ul,
.editorial-highlights ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.price-insights-note {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
}

.related-products {
    margin-top: 2.5rem;
}

.related-products .shopping-grid {
    margin-top: 1rem;
}
