/* Portfolio 2026 — estilos extraídos do index.html (organização) */
/* Tipografia: moto sans (headlines) + Gotham (body) — mesma estratégia da home do Moto Hub */
@font-face {
    font-family: 'moto sans';
    src:
        url('../../fonts/MotoSans-Regular.woff2') format('woff2'),
        url('../../fonts/MotoSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'moto sans';
    src:
        url('../../fonts/MotoSans-Italic.woff2') format('woff2'),
        url('../../fonts/MotoSans-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gotham Medium';
    src: url('../../fonts/gotham-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Motorola Global Brand Identity — Core palette (Nov 2025) */
:root {
    --moto-black: #131417;
    --white: #FFFFFF;
    --frost: #E9EAF2;
    --pearl: #F0EDE9;
    --slate-blue: #636880;
    --sandstone: #7A7670;
    --moto-indigo: var(--slate-blue);
}
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    background: #f5f5f7;
    font-family: 'Gotham Medium', Gotham, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--moto-black);
    overflow-x: hidden;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--slate-blue);
    outline-offset: 2px;
}

/* Headlines e subheadlines: moto sans (Brand VI — primary typeface); sempre minúsculas */
h1, h2, h3, h4, .moto-headline, .font-moto {
    font-family: 'moto sans', "Moto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    text-transform: lowercase !important;
    letter-spacing: -0.01em;
    line-height: 0.84;
}

/* Menu Hambúrguer de Navegação */
.hamburger-menu { position: relative; display: flex; align-items: center; gap: 8px; z-index: 1200; }
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1201;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
@media (max-width: 768px) { .hamburger-btn { min-width: 44px; min-height: 44px; padding: 12px; } }
.hamburger-btn:hover { opacity: 0.7; }
.hamburger-label {
    font-family: Gotham, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--moto-black);
    display: none;
}
@media (min-width: 640px) { .hamburger-label { display: block; } }
.hamburger-btn span { width: 24px; height: 2px; background: var(--moto-black); transition: all 0.3s ease; display: block; }
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.hamburger-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1198;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hamburger-menu-overlay.active { opacity: 1; visibility: visible; }
.hamburger-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1199;
    transition: right 0.3s ease;
    padding: 88px 24px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.hamburger-menu-panel.active { right: 0; }
.hamburger-menu-overlay.active { pointer-events: auto; }
.hamburger-menu-panel .menu-title {
    font-family: Gotham, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.hamburger-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-family: 'moto sans', "Moto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--moto-black);
    text-decoration: none;
    text-transform: lowercase;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}
.hamburger-menu-panel a:hover { background: var(--frost); color: var(--moto-indigo); border-color: var(--moto-indigo); }
.hamburger-menu-panel a.active { background: var(--moto-indigo); color: white; }
@media (max-width: 640px) { .hamburger-menu-panel { padding-top: 72px; } }
@media (max-width: 430px) {
    .hamburger-menu-panel { width: 85vw; max-width: 320px; padding: 24px 20px; }
    .hamburger-menu-panel .menu-title { font-size: 9px !important; margin-bottom: 12px !important; padding-bottom: 10px !important; }
    .hamburger-menu-panel a { padding: 14px 16px; font-size: 15px; }
}
@media (max-width: 390px) {
    .hamburger-menu-panel { width: 90vw; max-width: 300px; padding: 20px 16px; }
    .hamburger-menu-panel a { padding: 12px 14px; font-size: 14px; }
    header .header-inner { padding-left: 10px !important; padding-right: 10px !important; }
}

/* --- SWIPER CARDS --- */
.mySwiper { width: 100%; padding: 40px 0 120px; position: relative; box-sizing: border-box; }
/* Fix: o coverflow empurra slides para translateZ negativo (-600px).
   O wrapper fica em Z=0 e intercepta os cliques antes de chegarem ao slide.
   pointer-events:none faz o clique "atravessar" o wrapper vazio e atingir o slide. */
.mySwiper .swiper-wrapper { pointer-events: none; }
.swiper-slide {
    width: 268px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
    box-sizing: border-box;
    /* Fix: coverflow aplica z-index negativo inline nos slides inativos,
       bloqueando cliques nos botões. Forçar z-index positivo garante que
       todos os botões "Selecionar" sejam clicáveis. */
    z-index: 1 !important;
    pointer-events: auto;
}
.swiper-slide-active {
    transform: scale(1.05);
    border: 2px solid var(--moto-indigo);
    box-shadow: 0 25px 50px rgba(99, 104, 128, 0.2);
    z-index: 10 !important;
}
.swiper-button-next, .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: var(--moto-indigo);
    transition: all 0.3s ease;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 20px; font-weight: 700; }
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--moto-indigo);
    color: white;
    box-shadow: 0 6px 25px rgba(99, 104, 128, 0.3);
    transform: translateY(-50%) scale(1.1);
}
.swiper-button-next:active, .swiper-button-prev:active { transform: translateY(-50%) scale(0.95); }
.swiper-button-next { right: 20px; }
.swiper-button-prev { left: 20px; }
@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev { width: 40px; height: 40px; }
    .swiper-button-next::after, .swiper-button-prev::after { font-size: 16px; }
    .swiper-button-next { right: 10px; }
    .swiper-button-prev { left: 10px; }
}
@media (max-width: 640px) { .swiper-button-next, .swiper-button-prev { display: none; } }
.card-img-area {
    height: 208px;
    background: radial-gradient(circle, #fff 0%, #f2f2f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    box-sizing: border-box;
}
.card-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25)); }
.card-body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: 'moto sans'; font-size: 1.35rem; text-align: center; margin-bottom: 12px; color: #1d1d1f; text-transform: lowercase; line-height: 1.15; }
.mini-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; margin-bottom: 16px; }
.ms-item { display: flex; flex-direction: column; }
.ms-lbl { font-size: 0.65rem; text-transform: uppercase; color: #888; font-weight: 700; }
.ms-val { font-size: 0.78rem; font-weight: 600; color: #333; line-height: 1.3; }
.btn-select {
    margin-top: auto;
    padding: 12px;
    border-radius: 12px;
    background: #f0f0f5;
    color: #333;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-select.selected { background: var(--moto-black); color: white; }

/* --- BARRA FLUTUANTE --- */
#compare-bar {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 90;
    transition: transform 0.4s ease;
}
@media (max-height: 700px) { #compare-bar { bottom: 16px; padding: 8px 20px; } }
@supports (bottom: env(safe-area-inset-bottom)) { #compare-bar { bottom: calc(24px + env(safe-area-inset-bottom)); } }
#compare-bar.visible { transform: translateX(-50%) translateY(0); }
.btn-action { background: var(--moto-indigo); padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 0.9rem; }

/* --- MODAL DE COMPARAÇÃO --- */
#modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 200; display: none; align-items: center; justify-content: center; }
#modal-content {
    background: #fff;
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0,0,0,0.5);
}
.modal-header { padding: 20px 30px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff; z-index: 10; }
.modal-body { overflow-y: auto; padding: 30px; flex: 1; background: #fafafa; }
.comparison-grid { display: block; max-width: 100%; }
.comparison-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.comparison-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.comparison-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.comparison-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.comparison-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.comparison-grid.cols-7 { grid-template-columns: repeat(7, 1fr); }
.comp-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; }
.comp-img { height: 220px; width: auto; margin: 0 auto 20px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0; text-align: left; }
.detail-label { font-size: 0.75rem; text-transform: uppercase; color: #888; font-weight: 700; width: 30%; flex-shrink: 0; }
.detail-value { font-size: 0.95rem; color: #1d1d1f; font-weight: 600; width: 70%; text-align: right; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; }
.detail-sub { display: block; font-size: 0.7rem; color: #666; font-weight: 400; margin-top: 2px; }

.comparison-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    min-width: 360px;
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.comparison-table th:not(.row-head),
.comparison-table td:not(.row-head) {
    min-width: 200px;
}
.comparison-table th, .comparison-table td {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 10px;
    vertical-align: top;
    font-family: Gotham, sans-serif;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
}
.comparison-table thead th { position: sticky; top: 0; background: #fff; z-index: 3; text-align: center; }
.comparison-table .row-head {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #F2F2F7;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #1d1d1f;
    width: 130px;
}
.comparison-table .cell-main { font-weight: 700; color: #1d1d1f; line-height: 1.3; font-size: 0.9rem; }
.comparison-table .cell-sub { margin-top: 4px; font-size: 0.78rem; color: #666; line-height: 1.3; }
.comparison-table .cell-empty { color: #9CA3AF; }
.comparison-table .prod-img { height: 64px; width: auto; object-fit: contain; display: block; margin: 0 auto 8px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18)); }
.comparison-table .prod-name { font-family: 'moto sans', sans-serif; font-weight: 800; text-transform: lowercase; font-size: 0.9rem; color: #1d1d1f; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 120px; margin: 0 auto; }
@media (max-width: 640px) {
    .comparison-table th, .comparison-table td { padding: 10px 6px; font-size: 0.8rem; }
    .comparison-table .cell-main { font-size: 0.8rem; }
    .comparison-table .cell-sub { font-size: 0.72rem; }
}

/* --- PDF HIDDEN --- */
#pdf-hidden-template { position: fixed; top: 0; left: -9999px; width: 297mm; height: 210mm; background: white; padding: 10mm 15mm; display: flex; flex-direction: column; }
.pdf-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid var(--moto-indigo); padding-bottom: 15px; margin-bottom: 20px; }
.pdf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pdf-table th { border: none; border-bottom: 2px solid #1d1d1f; padding: 6px 5px 10px; background: #fff; vertical-align: bottom; text-align: center; }
.pdf-table td { border: none; border-bottom: 1px solid #ECECF1; padding: 10px 4px; text-align: center; font-family: Gotham, sans-serif; font-size: 9px; color: #1d1d1f; vertical-align: middle; }
.pdf-table tbody tr:nth-child(odd) { background: #F7F8FA; }
.pdf-img-container { height: 96px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.pdf-img { max-height: 92px; width: auto; object-fit: contain; object-position: bottom; display: block; margin: 0; }
.pdf-name-main { font-family: 'moto sans', sans-serif; font-weight: 700; font-size: 11px; text-transform: lowercase; color: #1d1d1f; }
.pdf-name-suffix { font-family: 'moto sans', sans-serif; font-weight: 400; font-size: 11px; color: #1d1d1f; }
.pdf-row-head { background: transparent; text-align: left; padding: 10px 12px; font-family: 'moto sans', sans-serif; font-weight: 700; color: #636880; font-size: 10px; width: 15%; text-transform: uppercase; letter-spacing: 0.04em; }

/* Footer fixo */
.fixed-footer {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; border-top: 1px solid #ddd;
    padding: 12px 30px; display: flex; justify-content: space-between; align-items: center;
    z-index: 80; font-size: 0.7rem; color: #666; font-family: Gotham;
}
@supports (padding: env(safe-area-inset-bottom)) { .fixed-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }

/* Botão Baixar */
.btn-baixar {
    min-width: 140px;
    height: 44px;
    background: var(--moto-indigo);
    color: white;
    border-radius: 22px;
    padding: 0 20px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 104, 128, 0.3);
    font-family: Gotham, sans-serif;
    cursor: pointer;
}
.btn-baixar:hover { box-shadow: 0 6px 24px rgba(99, 104, 128, 0.4); transform: translateY(-2px); }
.btn-baixar:active { transform: translateY(0); }
.btn-baixar .fa-download { font-size: 14px; }
.btn-baixar .fa-chevron-down { font-size: 10px; transition: transform 0.3s ease; }
.btn-baixar[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
@media (max-width: 1024px) {
    .btn-baixar { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
    .btn-baixar span:not(.fa) { display: none; }
    .btn-baixar .fa-chevron-down { display: none; }
}
@media (max-width: 430px) {
    .btn-baixar { min-width: 40px; width: 40px; height: 40px; }
    .btn-baixar .fa-download { font-size: 14px; }
}
#loader { position: fixed; inset: 0; background: white; z-index: 1000; display: flex; align-items: center; justify-content: center; flex-direction: column; }

.nav-brand-logo { height: 32px; width: auto; max-width: min(168px, 46vw); object-fit: contain; object-position: left center; display: block; }

/* Responsivo */
@media (max-width: 430px) {
    nav .container { padding-left: 16px; padding-right: 16px; }
    .nav-brand-logo { height: 26px; max-width: min(138px, 50vw); }
    nav .font-moto { font-size: 1rem !important; }
    main { padding-top: 100px !important; padding-left: 8px !important; padding-right: 8px !important; padding-bottom: 140px !important; }
    main h1 { font-size: 1.5rem !important; line-height: 1.3; }
    main p { font-size: 0.75rem; padding: 0 8px; }
    .mySwiper { padding: 24px 0 44px; }
    .swiper-slide { width: 234px; border-radius: 20px; }
    .swiper-slide-active { transform: scale(1.03); }
    .card-img-area { height: 172px; padding: 2px 4px; }
    .card-body { padding: 14px 12px 12px; }
    .card-title { font-size: 1.15rem; margin-bottom: 10px; }
    .mini-specs { gap: 8px; margin-bottom: 12px; }
    .ms-lbl { font-size: 0.6rem; }
    .ms-val { font-size: 0.7rem; }
    .btn-select { padding: 10px; font-size: 0.85rem; }
    #compare-bar { bottom: 56px; padding: 10px 20px; gap: 12px; font-size: 0.8rem; border-radius: 40px; }
    .btn-action { padding: 6px 14px; font-size: 0.8rem; }
    #modal-content { width: 100%; height: 85vh; max-height: none; border-radius: 20px 20px 0 0; }
    .modal-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .modal-header h2 { font-size: 1.15rem !important; }
    .modal-header button { font-size: 1.5rem; padding: 4px; }
    .modal-body { padding: 16px; }
    .comparison-grid { display: block; width: 100%; }
    .comp-card { padding: 20px; }
    .comp-img { height: 160px; margin-bottom: 12px; }
    .comp-card h3 { font-size: 1.35rem !important; margin-bottom: 12px !important; }
    .detail-row { padding: 10px 0; }
    .detail-label { font-size: 0.7rem; width: 38%; }
    .detail-value { font-size: 0.85rem; width: 62%; }
    .fixed-footer { padding: 10px 16px; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0.65rem; text-align: center; }
    .detail-value { word-wrap: break-word; overflow-wrap: break-word; font-size: 0.8rem; }
}
@media (min-width: 431px) and (max-width: 768px) { .comparison-grid { display: block; width: 100%; } .comp-img { height: 180px; } }
@media (max-width: 430px) {
    .comparison-grid.multi-compare { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .comparison-grid.multi-compare .comp-card { min-width: 280px; scroll-snap-align: start; flex-shrink: 0; }
    .modal-header .btn-action span { display: none; }
}
@media (max-width: 390px) {
    .mySwiper { padding: 18px 0 36px; }
    .swiper-slide { width: 218px; border-radius: 18px; }
    .swiper-slide-active { transform: scale(1.02); }
    .card-title { font-size: 1.1rem; }
    .mini-specs { font-size: 0.7rem; }
    .btn-select { padding: 10px 14px; font-size: 0.8rem; min-height: 44px; }
    main { padding-top: 90px !important; }
    main h1 { font-size: 1.35rem !important; }
    #compare-bar { font-size: 0.75rem; padding: 8px 16px; }
    .btn-action { padding: 6px 12px; font-size: 0.75rem; min-height: 44px; }
}
@supports (padding: env(safe-area-inset-top)) {
    main { padding-top: calc(100px + env(safe-area-inset-top)) !important; }
    nav { padding-top: env(safe-area-inset-top); }
    @media (max-width: 390px) { main { padding-top: calc(90px + env(safe-area-inset-top)) !important; } }
}
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 430px) { main { padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important; } }
}
@media (min-width: 431px) and (max-width: 900px) {
    .comparison-grid.cols-3, .comparison-grid.cols-4, .comparison-grid.cols-5, .comparison-grid.cols-6, .comparison-grid.cols-7 { grid-template-columns: repeat(2, 1fr); }
}

/* Tabs de categoria */
.portfolio-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.portfolio-tab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #1d1d1f;
    padding: 10px 14px;
    border-radius: 999px;
    font-family: 'moto sans', system-ui, sans-serif;
    text-transform: lowercase;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    touch-action: manipulation;
}
.comparison-table th:not(.row-head),
.comparison-table td:not(.row-head) {
    min-width: 200px;
}
.comparison-table th, .comparison-table td {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 10px;
    vertical-align: top;
    font-family: Gotham, sans-serif;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
}
.comparison-table thead th { position: sticky; top: 0; background: #fff; z-index: 3; text-align: center; }
.comparison-table .row-head {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #F2F2F7;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #1d1d1f;
    width: 130px;
}
.comparison-table .cell-main { font-weight: 700; color: #1d1d1f; line-height: 1.3; font-size: 0.9rem; }
.comparison-table .cell-sub { margin-top: 4px; font-size: 0.78rem; color: #666; line-height: 1.3; }
.comparison-table .cell-empty { color: #9CA3AF; }
.comparison-table .prod-img { height: 64px; width: auto; object-fit: contain; display: block; margin: 0 auto 8px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18)); }
.comparison-table .prod-name { font-family: 'moto sans', sans-serif; font-weight: 800; text-transform: lowercase; font-size: 0.9rem; color: #1d1d1f; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 120px; margin: 0 auto; }
@media (max-width: 640px) {
    .comparison-table th, .comparison-table td { padding: 10px 6px; font-size: 0.8rem; }
    .comparison-table .cell-main { font-size: 0.8rem; }
    .comparison-table .cell-sub { font-size: 0.72rem; }
}

/* --- PDF HIDDEN --- */
#pdf-hidden-template { position: fixed; top: 0; left: -9999px; width: 297mm; height: 210mm; background: white; padding: 10mm 15mm; display: flex; flex-direction: column; }
.pdf-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid var(--moto-indigo); padding-bottom: 15px; margin-bottom: 20px; }
.pdf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pdf-table th { border: none; border-bottom: 2px solid #1d1d1f; padding: 6px 5px 10px; background: #fff; vertical-align: bottom; text-align: center; }
.pdf-table td { border: none; border-bottom: 1px solid #ECECF1; padding: 10px 4px; text-align: center; font-family: Gotham, sans-serif; font-size: 9px; color: #1d1d1f; vertical-align: middle; }
.pdf-table tbody tr:nth-child(odd) { background: #F7F8FA; }
.pdf-img-container { height: 96px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.pdf-img { max-height: 92px; width: auto; object-fit: contain; object-position: bottom; display: block; margin: 0; }
.pdf-name-main { font-family: 'moto sans', sans-serif; font-weight: 700; font-size: 11px; text-transform: lowercase; color: #1d1d1f; }
.pdf-name-suffix { font-family: 'moto sans', sans-serif; font-weight: 400; font-size: 11px; color: #1d1d1f; }
.pdf-row-head { background: transparent; text-align: left; padding: 10px 12px; font-family: 'moto sans', sans-serif; font-weight: 700; color: #636880; font-size: 10px; width: 15%; text-transform: uppercase; letter-spacing: 0.04em; }

/* Footer fixo */
.fixed-footer {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; border-top: 1px solid #ddd;
    padding: 12px 30px; display: flex; justify-content: space-between; align-items: center;
    z-index: 80; font-size: 0.7rem; color: #666; font-family: Gotham;
}
@supports (padding: env(safe-area-inset-bottom)) { .fixed-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }

/* Botão Baixar */
.btn-baixar {
    min-width: 140px;
    height: 44px;
    background: var(--moto-indigo);
    color: white;
    border-radius: 22px;
    padding: 0 20px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 104, 128, 0.3);
    font-family: Gotham, sans-serif;
    cursor: pointer;
}
.btn-baixar:hover { box-shadow: 0 6px 24px rgba(99, 104, 128, 0.4); transform: translateY(-2px); }
.btn-baixar:active { transform: translateY(0); }
.btn-baixar .fa-download { font-size: 14px; }
.btn-baixar .fa-chevron-down { font-size: 10px; transition: transform 0.3s ease; }
.btn-baixar[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
@media (max-width: 1024px) {
    .btn-baixar { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
    .btn-baixar span:not(.fa) { display: none; }
    .btn-baixar .fa-chevron-down { display: none; }
}
@media (max-width: 430px) {
    .btn-baixar { min-width: 40px; width: 40px; height: 40px; }
    .btn-baixar .fa-download { font-size: 14px; }
}
#loader { position: fixed; inset: 0; background: white; z-index: 1000; display: flex; align-items: center; justify-content: center; flex-direction: column; }

.nav-brand-logo { height: 32px; width: auto; max-width: min(168px, 46vw); object-fit: contain; object-position: left center; display: block; }

/* Responsivo */
@media (max-width: 430px) {
    nav .container { padding-left: 16px; padding-right: 16px; }
    .nav-brand-logo { height: 26px; max-width: min(138px, 50vw); }
    nav .font-moto { font-size: 1rem !important; }
    main { padding-top: 100px !important; padding-left: 8px !important; padding-right: 8px !important; padding-bottom: 140px !important; }
    main h1 { font-size: 1.5rem !important; line-height: 1.3; }
    main p { font-size: 0.75rem; padding: 0 8px; }
    .mySwiper { padding: 24px 0 44px; }
    .swiper-slide { width: 234px; border-radius: 20px; }
    .swiper-slide-active { transform: scale(1.03); }
    .card-img-area { height: 172px; padding: 2px 4px; }
    .card-body { padding: 14px 12px 12px; }
    .card-title { font-size: 1.15rem; margin-bottom: 10px; }
    .mini-specs { gap: 8px; margin-bottom: 12px; }
    .ms-lbl { font-size: 0.6rem; }
    .ms-val { font-size: 0.7rem; }
    .btn-select { padding: 10px; font-size: 0.85rem; }
    #compare-bar { bottom: 56px; padding: 10px 20px; gap: 12px; font-size: 0.8rem; border-radius: 40px; }
    .btn-action { padding: 6px 14px; font-size: 0.8rem; }
    #modal-content { width: 100%; height: 85vh; max-height: none; border-radius: 20px 20px 0 0; }
    .modal-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .modal-header h2 { font-size: 1.15rem !important; }
    .modal-header button { font-size: 1.5rem; padding: 4px; }
    .modal-body { padding: 16px; }
    .comparison-grid { grid-template-columns: 1fr; gap: 20px; }
    .comp-card { padding: 20px; }
    .comp-img { height: 160px; margin-bottom: 12px; }
    .comp-card h3 { font-size: 1.35rem !important; margin-bottom: 12px !important; }
    .detail-row { padding: 10px 0; }
    .detail-label { font-size: 0.7rem; width: 38%; }
    .detail-value { font-size: 0.85rem; width: 62%; }
    .fixed-footer { padding: 10px 16px; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0.65rem; text-align: center; }
    .detail-value { word-wrap: break-word; overflow-wrap: break-word; font-size: 0.8rem; }
}
@media (min-width: 431px) and (max-width: 768px) { .comparison-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .comp-img { height: 180px; } }
@media (max-width: 430px) {
    .comparison-grid.multi-compare { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .comparison-grid.multi-compare .comp-card { min-width: 280px; scroll-snap-align: start; flex-shrink: 0; }
    .modal-header .btn-action span { display: none; }
}
@media (max-width: 390px) {
    .mySwiper { padding: 18px 0 36px; }
    .swiper-slide { width: 218px; border-radius: 18px; }
    .swiper-slide-active { transform: scale(1.02); }
    .card-title { font-size: 1.1rem; }
    .mini-specs { font-size: 0.7rem; }
    .btn-select { padding: 10px 14px; font-size: 0.8rem; min-height: 44px; }
    main { padding-top: 90px !important; }
    main h1 { font-size: 1.35rem !important; }
    #compare-bar { font-size: 0.75rem; padding: 8px 16px; }
    .btn-action { padding: 6px 12px; font-size: 0.75rem; min-height: 44px; }
}
@supports (padding: env(safe-area-inset-top)) {
    main { padding-top: calc(100px + env(safe-area-inset-top)) !important; }
    nav { padding-top: env(safe-area-inset-top); }
    @media (max-width: 390px) { main { padding-top: calc(90px + env(safe-area-inset-top)) !important; } }
}
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 430px) { main { padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important; } }
}
@media (min-width: 431px) and (max-width: 900px) {
    .comparison-grid.cols-3, .comparison-grid.cols-4, .comparison-grid.cols-5, .comparison-grid.cols-6, .comparison-grid.cols-7 { grid-template-columns: repeat(2, 1fr); }
}

/* Tabs de categoria */
.portfolio-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.portfolio-tab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #1d1d1f;
    padding: 10px 14px;
    border-radius: 999px;
    font-family: 'moto sans', system-ui, sans-serif;
    text-transform: lowercase;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    touch-action: manipulation;
}
.portfolio-tab:hover { background: rgba(99, 104, 128, 0.10); border-color: rgba(99, 104, 128, 0.18); }
.portfolio-tab.is-active { background: #636880; color: #fff; border-color: rgba(99, 104, 128, 0.25); }
/* Sub-navegação de acessórios (subpastas) — chips menores, secundários. */
.portfolio-subtabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 14px auto 0; max-width: 100%; }
.portfolio-subtab {
    appearance: none; border: 1px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.85);
    color: #1d1d1f; padding: 7px 14px; border-radius: 999px;
    font-family: 'moto sans', system-ui, sans-serif; text-transform: lowercase; font-weight: 700; font-size: 0.82rem;
    cursor: pointer; min-height: 38px; touch-action: manipulation;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.portfolio-subtab.is-active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
/* Mobile: vira uma faixa de rolagem horizontal (não empilha) — escala p/ muitas subpastas. */
@media (max-width: 768px) {
    .portfolio-subtabs {
        flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
        -webkit-overflow-scrolling: touch; padding: 2px 4px 6px;
        scroll-snap-type: x proximity;
    }
    .portfolio-subtab { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
}
@media (max-width: 430px) {
    .portfolio-tabs { width: 100%; flex-wrap: wrap; border-radius: 24px; justify-content: center; }
    .portfolio-tab { padding: 10px 14px; font-size: 0.86rem; flex: 1 1 auto; white-space: nowrap; text-align: center; }
}


/* force-lowercase-moto-sans */
*[style*='moto sans'], .moto-sans-text, .moto-headline, [class*='moto-sans'] { text-transform: lowercase !important; }
