/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
/* Variáveis personalizadas */
:root {
    /* Cores principais */
    --gm-primary: var(--bs-primary);
    --gm-secondary: var(--bs-secondary);
    --gm-dark: var(--bs-dark);
    --gm-light: var(--bs-light);
    --gm-light-bg: #f8f8f8;
    --gdm-header-bg-top: #00050f;
    --gdm-header-bg-bottom: #001233;
    --gdm-accent: #0066ff;
    --gdm-header-text: #ffffff;
/* Cores de texto */
    --gm-text-primary: var(--bs-dark);
    --gm-text-secondary: var(--bs-secondary);
    --gm-text-muted: var(--bs-gray-600);

    /* Espaçamentos */
    --gm-spacing-xs: 0.25rem;
    --gm-spacing-sm: 0.5rem;
    --gm-spacing-md: 1rem;
    --gm-spacing-lg: 1.5rem;
    --gm-spacing-xl: 2rem;

    /* Bordas */
    --gm-border-radius: 0.375rem;
    --gm-border-color: var(--bs-gray-200);

    /* Fontes */
    --gm-font-heading: 'Noto Sans', sans-serif;
    --gm-font-body: 'Noto Sans', sans-serif;
    --gm-font-alt: 'Noto Sans', sans-serif;
}
/* Estilos personalizados */
body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--gm-light-bg);
}

/* ── Header GDM ── */
.gdm-site-top {
    background: linear-gradient(180deg, var(--gdm-header-bg-top) 0%, var(--gdm-header-bg-bottom) 100%);
    color: var(--gdm-header-text);
}

.gdm-header {
    color: inherit;
}

.gdm-header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.gdm-header-top {
    padding: 1.25rem 0 0.75rem;
}

.gdm-header-top .gdm-header-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem 2rem;
}

.gdm-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
}

.gdm-auth-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.5rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gdm-auth-link:hover,
.gdm-auth-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}

.gdm-header-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.gdm-logo-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.gdm-logo {
    display: block;
    height: 4.5rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
}

.gdm-tagline {
    margin: 0;
    max-width: 14rem;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.gdm-tagline-accent {
    color: var(--gdm-accent);
    font-weight: 700;
}

.gdm-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 36rem;
    margin: 0;
}

.gdm-search-input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: #fff;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    outline: none;
}

.gdm-search-input::placeholder {
    color: #9ca3af;
}

.gdm-search-input:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 102, 255, 0.35);
}

.gdm-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    flex-shrink: 0;
    color: #fff;
    background: var(--gdm-accent);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.gdm-search-btn:not(:disabled):hover {
    background: #0052cc;
}

.gdm-search-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gdm-nav {
    padding: 0.35rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gdm-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.5rem;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.35rem;
    cursor: pointer;
}

.gdm-nav-toggle-bar {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1px;
}

.gdm-nav .navbar-collapse {
    flex-grow: 0;
}

.gdm-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 2rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    width: 100%;
}

.gdm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gdm-header-text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gdm-nav-link:hover {
    color: var(--gdm-accent);
}

.gdm-nav-link.is-active {
    border-bottom-color: var(--gdm-accent);
}

.gdm-hero {
    width: 100%;
    overflow: hidden;
    background: #00050f;
    line-height: 0;
}

.gdm-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Footer GDM ── */
.gdm-footer {
    margin-top: auto;
    background: linear-gradient(0deg, var(--gdm-header-bg-top) 0%, var(--gdm-header-bg-bottom) 100%);
    color: var(--gdm-header-text);
}

.gdm-footer-main {
    padding: 3rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gdm-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem 3rem;
    align-items: start;
}

.gdm-footer-brand {
    max-width: 22rem;
}

.gdm-footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
    line-height: 0;
}

.gdm-footer-logo {
    display: block;
    height: 3.5rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
}

.gdm-footer-tagline {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.gdm-footer-heading {
    margin: 0 0 1.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.gdm-footer-nav,
.gdm-footer-social-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gdm-footer-nav li + li,
.gdm-footer-social-list li + li {
    margin-top: 0.55rem;
}

.gdm-footer-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gdm-footer-link:hover {
    color: var(--gdm-accent);
}

.gdm-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gdm-footer-social-link:hover {
    color: var(--gdm-accent);
    transform: translateX(2px);
}

.gdm-footer-social-link svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.gdm-footer-bottom {
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gdm-footer-copy {
    margin: 0;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 991.98px) {
    .gdm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gdm-footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .gdm-footer-main {
        padding: 2.25rem 0 2rem;
    }

    .gdm-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .gdm-nav .gdm-nav-collapse {
        display: flex !important;
        justify-content: center;
    }

    .gdm-nav-toggle {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .gdm-header-top .gdm-header-container {
        grid-template-columns: 1fr;
    }

    .gdm-header-brand {
        flex-wrap: wrap;
    }

    .gdm-tagline {
        max-width: none;
        flex: 1 1 12rem;
    }

    .gdm-header-actions {
        width: 100%;
    }

    .gdm-search {
        max-width: none;
        flex: 1;
    }
}

@media (max-width: 767.98px) {
    .gdm-header-top {
        padding-top: 1rem;
    }

    .gdm-header-top .gdm-header-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gdm-header-brand {
        justify-content: space-between;
    }

    .gdm-logo {
        height: 3.5rem;
    }

    .gdm-tagline {
        font-size: 0.62rem;
    }

    .gdm-auth-link {
        padding: 0.6rem 0.85rem;
        font-size: 0.8rem;
    }

    .gdm-nav-toggle {
        display: flex;
    }

    .gdm-nav-list {
        flex-direction: column;
        gap: 0;
        padding-bottom: 0.5rem;
    }

    .gdm-nav-item {
        width: 100%;
        text-align: center;
    }

    .gdm-nav-link {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        padding: 0.65rem 0;
    }
}
    /* Ajustes de tipografia */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--gm-font-heading);
        font-weight: 700;
        color: var(--gm-text-primary);
        letter-spacing: -0.02em;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    .lead {
        font-family: var(--gm-font-alt);
        font-weight: 300;
        color: var(--gm-text-secondary);
        font-size: 1.25rem;
        line-height: 1.6;
    }
    
    p {
        font-family: var(--gm-font-body);
        line-height: 1.7;
        color: var(--gm-text-primary);
    }

        .card-container {
            text-decoration: none;
        }
    /* Ajustes para textos em cards */
    .card-title {
        font-family: var(--gm-font-heading);
        font-weight: 600;
        font-size: 1.25rem;
        line-height: 1.4;
        text-decoration: none;
    }
    
    .card-text {
        font-family: var(--gm-font-body);
        font-size: 1rem;
        line-height: 1.6;
        text-decoration: none;
    }
    
    /* Ajustes para textos em badges */
    .badge {
        font-family: var(--gm-font-alt);
        font-weight: 500;
        letter-spacing: 0.02em;
    }
    
    /* Ajustes de cards */
    .card {
        transition: transform 0.2s ease-in-out;
        border-radius: var(--gm-border-radius);
        border-color: transparent;
            /*var(--gm-border-color);*/
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
    
    /* Ajustes de links */
    a {
        transition: color 0.2s ease-in-out;
        color: var(--gm-primary);
    }
    
    a:hover {
        color: var(--bs-primary-dark);
}

.object-catalog {
    display: block;
    width: 600px;
    height: auto;
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .object-catalog {
        width: 100%;
        height: auto;
        border: 1px solid var(--gm-border-color);
        border-radius: var(--gm-border-radius);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
}
/* Ajustes de imagens */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: var(--gm-border-radius);
}
/* Estilos para figure e figcaption */
figure {
    margin: var(--gm-spacing-lg) 0;
    padding: var(--gm-spacing-md);
    background-color: white;
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

figure.full {
    max-width: 100%;
}

figure.half {
    max-width: 500px;
    margin: 1rem auto;
}
figure img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--gm-border-radius) - 2px);
    display: block;
    margin: 0 auto;
}

figcaption {
    margin-top: var(--gm-spacing-sm);
    font-size: 0.875rem;
    color: var(--gm-text-muted);
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

/* Grid de figuras */
.figure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gm-spacing-md);
    margin: var(--gm-spacing-lg) 0;
}

.figure-grid figure {
    margin: 0;
    padding: var(--gm-spacing-sm);
}

.figure-grid figcaption {
    font-size: 0.8rem;
    margin-top: var(--gm-spacing-xs);
}
/* Ajustes para mobile */
@media (max-width: 768px) {
    .container {
        padding-left: var(--gm-spacing-md);
            padding-right: var(--gm-spacing-md);
    }
figure.full {
    max-width: 100%;
}

figure.half {
    max-width: 100%;
    margin: none;
}
    
    /* Ajuste do sidebar para mobile */
    aside {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--gm-light);
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: var(--gm-spacing-md);
    }

    /* Ajuste do conteúdo principal para não ficar sob o sidebar mobile */
    main {
        margin-bottom: 4rem;
    }
                /* Grid responsivo para mobile */
                .figure-grid {
                    grid-template-columns: repeat(2, 1fr);
                    gap: var(--gm-spacing-sm);
                    margin: var(--gm-spacing-md) 0;
                }
        
                .figure-grid figure {
                    padding: var(--gm-spacing-xs);
                }
        
                .figure-grid figcaption {
                    font-size: 0.75rem;
                }
}

/* Melhorias de acessibilidade e interatividade */
.text-muted {
    color: var(--gm-text-muted) !important;
}

/* Ajustes de contraste */
.text-gray-800 {
    color: var(--gm-text-primary);
}

.text-gray-600 {
    color: var(--gm-text-muted);
}

/* Efeitos hover suaves */
.hover\:text-blue-700:hover {
    color: var(--bs-primary-dark);
}

/* Sombras mais suaves */
.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content .display-4 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gm-text-primary);
}
/* Estilos para o conteúdo Markdown */
.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-disclaimer {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.blog-disclaimer-text {
    font-size: 0.78rem;
    line-height: 1.6;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-body h1 {
    font-size: 2.5rem;
}

.content-body h2 {
    font-size: 2rem;
}

.content-body h3 {
    font-size: 1.75rem;
}

.content-body h4 {
    font-size: 1.5rem;
}

.content-body h5 {
    font-size: 1.25rem;
}

.content-body h6 {
    font-size: 1.1rem;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body img:not(.product-search-card-img) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 0.5rem;
}

.content-body a {
    color: #0d6efd;
    text-decoration: none;
}

.content-body a:hover {
    text-decoration: underline;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #6c757d;
}

.content-body code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.content-body pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.content-body pre code {
    background-color: transparent;
    padding: 0;
}

.content-body table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-body th,
.content-body td {
    padding: 1rem;
    border: 1px solid var(--gm-border-color);
    text-align: left;
    vertical-align: middle;
}

.content-body th {
    background-color: var(--bs-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.content-body tr:nth-child(even) {
    background-color: var(--bs-gray-100);
}

.content-body tr:hover {
    background-color: var(--bs-gray-200);
}

.content-body td {
    font-size: 0.95rem;
    line-height: 1.5;
}

.content-body thead th:first-child {
    border-top-left-radius: var(--gm-border-radius);
}

.content-body thead th:last-child {
    border-top-right-radius: var(--gm-border-radius);
}

.content-body tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--gm-border-radius);
}

.content-body tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--gm-border-radius);
}

.content-body hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* Botões estilosos para conteúdo */
.content-body .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    font-family: var(--gm-font-body);
    letter-spacing: 0.025em;
}

.content-body .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.content-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #0056b3 0%, var(--bs-primary) 100%);
    color: white;
    text-decoration: none;
}

.content-body .btn:hover::before {
    left: 100%;
}

.content-body .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-body .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25), 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Variações de botões */
.content-body .btn-secondary {
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #5a6268 100%);
}

.content-body .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, var(--bs-secondary) 100%);
}

.content-body .btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.content-body .btn-success:hover {
    background: linear-gradient(135deg, #146c43 0%, #198754 100%);
}

.content-body .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.content-body .btn-danger:hover {
    background: linear-gradient(135deg, #b02a37 0%, #dc3545 100%);
}

.content-body .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.content-body .btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%);
    color: #212529;
}

.content-body .btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    color: #212529;
}

.content-body .btn-info:hover {
    background: linear-gradient(135deg, #0aa2c0 0%, #0dcaf0 100%);
    color: #212529;
}

.content-body .btn-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
    border: 1px solid #dee2e6;
}

.content-body .btn-light:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #212529;
}

.content-body .btn-dark {
    background: linear-gradient(135deg, #212529 0%, #1a1d20 100%);
}

.content-body .btn-dark:hover {
    background: linear-gradient(135deg, #1a1d20 0%, #212529 100%);
}

/* Tamanhos de botões */
.content-body .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.content-body .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 1rem;
}

.content-body .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--gm-text-primary);
    margin-bottom: 0;
}

.content-body .product-description {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gm-text-muted);
    margin-bottom: 0;
}
/* Botão outline */
.content-body .btn-outline {
    background: transparent;
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
}

.content-body .btn-outline:hover {
    background: var(--bs-primary);
    color: white;
}

/* Botão com ícone */
.content-body .btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.content-body .btn-icon::before {
    display: none;
}

/* Responsividade para botões */
@media (max-width: 768px) {
    .content-body .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .content-body .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .content-body .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
.responsive-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}
}

/* ── Home page ── */
.gdm-main:has(.home-page) {
    background: #fff;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.home-page {
    color: var(--gm-text-primary);
}

.home-intro {
    max-width: 42rem;
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gm-text-muted);
}

.home-section + .home-section {
    margin-top: 3.25rem;
    padding-top: 3.25rem;
    border-top: 1px solid #eef1f5;
}

.home-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.home-section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #dbe4f0 0%, transparent 100%);
}

.home-section-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    white-space: nowrap;
}

.home-section-title::before {
    content: "";
    display: inline-block;
    width: 0.35rem;
    height: 1.1rem;
    margin-right: 0.65rem;
    vertical-align: -0.15rem;
    background: var(--gdm-accent);
    border-radius: 2px;
}

/* Posts em destaque — layout full-width */
.home-post-featured-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.85rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-post-featured-link:hover {
    border-color: #cdd9ea;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.home-post-featured-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.home-post-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-post-featured-link:hover .home-post-featured-media img {
    transform: scale(1.04);
}

.home-post-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
}

.home-post-featured-title {
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Grid de posts */
.home-posts-grid {
    display: grid;
    gap: 1.25rem;
}

.home-posts-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

.home-posts-grid--2 {
    grid-template-columns: 1fr;
}

.home-post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.75rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.home-post-card-link:hover {
    border-color: #cdd9ea;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
    color: inherit;
}

.home-post-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.home-post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-post-card-link:hover .home-post-card-media img {
    transform: scale(1.05);
}

.home-post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.15rem 1.25rem;
}

.home-post-card-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
}

/* Grid de produtos */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.home-product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.75rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.home-product-card-link:hover {
    border-color: #cdd9ea;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
    color: inherit;
}

.home-product-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10.5rem;
    padding: 1rem;
    background: #fff;
}

.home-product-card-score {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    min-width: 2rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    background: var(--gdm-accent);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.home-product-card-brand {
    margin: 0.3rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gm-text-muted);
}

.home-product-card-img {
    display: block;
    max-width: 100%;
    max-height: calc(10.5rem - 2rem);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.home-product-card-link:hover .home-product-card-img {
    transform: scale(1.04);
}

.home-product-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--gm-text-muted);
    font-size: 0.75rem;
}

.home-product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.9rem 1rem 1.1rem;
    text-align: center;
    background: var(--gm-light-bg);
    border-top: 1px solid #eef1f5;
}

.home-product-card-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Citação */
.home-quote {
    margin: 0;
    padding: 2rem 2.25rem;
    background: #f8fafc;
    border-left: 4px solid var(--gdm-accent);
    border-radius: 0 0.75rem 0.75rem 0;
}

.home-quote-text {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.65;
    color: #1e293b;
}

.home-quote-author {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-style: normal;
    color: var(--gm-text-muted);
}

@media (min-width: 768px) {
    .home-posts-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-posts-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .home-products-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 767.98px) {
    .home-post-featured-link {
        grid-template-columns: 1fr;
    }

    .home-post-featured-body {
        padding: 1.35rem 1.25rem 1.5rem;
    }

    .home-post-featured-title {
        font-size: 1.3rem;
    }

    .home-section + .home-section {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }

    .home-section-title {
        font-size: 1.15rem;
        white-space: normal;
    }

    .home-product-card-media {
        height: 9rem;
    }

    .home-product-card-img {
        max-height: calc(9rem - 1.75rem);
    }
}

/* ── Auth pages ── */
.gdm-auth-page {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 2.5rem;
}

.gdm-auth-card {
    width: 100%;
    max-width: 26rem;
    padding: 1.75rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gdm-auth-card--wide {
    max-width: 36rem;
}

.gdm-account-page {
    width: 100%;
}

.gdm-account-loading {
    padding: 1rem 0;
}

.gdm-account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}

.gdm-account-sidebar {
    width: 100%;
    max-width: none;
    padding: 1.25rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gdm-account-sidebar .gdm-auth-title {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.gdm-account-sidebar .gdm-auth-submit {
    margin-top: 1.25rem;
}

.gdm-account-details {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gdm-account-details dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.gdm-account-details dd {
    margin: 0.2rem 0 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-word;
}

.gdm-account-votes {
    min-width: 0;
    width: 100%;
    padding: 1.15rem 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gdm-account-votes-head {
    margin-bottom: 1rem;
}

.gdm-account-votes-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.gdm-account-votes-hint {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.gdm-account-votes-scroller {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
}

.gdm-account-votes-list {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0.1rem 0.35rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.85rem;
    width: max-content;
    min-width: 100%;
}

.gdm-account-vote-card {
    flex: 0 0 10.5rem;
    width: 10.5rem;
}

.gdm-account-vote-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gdm-account-vote-card-link:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.gdm-account-vote-media {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gdm-account-vote-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.55rem;
}

.gdm-account-vote-media-empty {
    font-size: 0.8rem;
    color: #94a3b8;
}

.gdm-account-vote-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 0.75rem 0.85rem;
    min-height: 5.5rem;
}

.gdm-account-vote-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gdm-account-vote-brand {
    font-size: 0.75rem;
    color: #64748b;
}

.gdm-account-vote-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    color: #fff;
    background: #64748b;
}

.gdm-account-vote-badge--like {
    background: #16a34a;
}

.gdm-account-vote-badge--dislike {
    background: #dc2626;
}

@media (min-width: 768px) {
    .gdm-account-vote-card {
        flex: 0 0 11.5rem;
        width: 11.5rem;
    }

    .gdm-account-votes {
        padding: 1.25rem;
    }
}

@media (min-width: 992px) {
    .gdm-account-layout {
        grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
        gap: 1.5rem;
    }

    .gdm-account-sidebar {
        max-width: 18rem;
    }
}

.gdm-auth-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: center;
}

.gdm-auth-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gdm-accent, #0066ff);
    text-decoration: none;
}

.gdm-auth-links a:hover {
    text-decoration: underline;
}

.gdm-auth-hint {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.gdm-auth-success {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
}

.gdm-auth-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    color: #374151;
    cursor: pointer;
}

.gdm-auth-check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.15rem 0 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--gdm-accent, #0066ff);
    cursor: pointer;
}

.gdm-auth-check a {
    color: var(--gdm-accent, #0066ff);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gdm-auth-field--row {
    margin-top: 0.15rem;
}

.gdm-auth-field--row > label.gdm-auth-check {
    font-weight: 500;
}
