.site-logo-img {
    display: block;
    max-height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Rodapé sempre no fim da viewport em páginas curtas */
html {
    height: 100%;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
    width: 100%;
}

body > .site-footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

.footer-logo-img {
    max-height: 40px;
    margin-bottom: 8px;
}

.logo:has(.site-logo-img) strong,
.logo:has(.site-logo-img) small {
    display: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.social-links--header .social-link {
    width: 36px;
    height: 36px;
    justify-content: center;
    border: 1px solid var(--line, #d7e0e5);
    background: #fff;
    color: #334155;
}

.social-links--header .social-link:hover {
    border-color: var(--primary, #0088cc);
    color: var(--primary, #0088cc);
}

.social-links--footer {
    margin-top: 0.85rem;
}

.social-links--footer .social-link {
    padding: 0.35rem 0.55rem;
    opacity: 0.92;
}

.social-links--footer .social-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.social-icon {
    display: inline-flex;
    line-height: 0;
}

.social-text {
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.header-social {
    display: flex;
    align-items: center;
}

.header-user-cart {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-cart {
    display: inline-flex;
    align-items: center;
    color: #1e293b;
    text-decoration: none;
}

.header-cart-icon {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.header-account {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #1e293b;
    text-decoration: none;
    max-width: 210px;
}

.header-account-icon {
    display: inline-flex;
    line-height: 0;
    flex-shrink: 0;
    color: #334155;
}

.header-account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 2px;
}

.header-account-hello {
    font-size: 0.78rem;
    font-weight: 400;
    color: #64748b;
}

.header-account-cta {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
}

.header-account:hover .header-account-cta,
.header-cart:hover {
    color: var(--primary, #0088cc);
}

@media (max-width: 860px) {
    .header-social {
        display: none;
    }

    .header-account-text {
        display: none;
    }
}

@media (max-width: 560px) {
    .header-user-cart {
        gap: 0.5rem;
    }
}

.auth-card .oauth-button {
    display: block;
    text-align: center;
    margin-top: 0.65rem;
}
