/*
 * Stack Gamer 2026 - Capitulo 02: Estrutura Global.
 * Escopo: header, navegacao, busca, footer e cookies.
 * Nao altera checkout, pagamentos, frete, estoque, preco, sessao, permissoes, banco ou payloads.
 */

.theme-stackgamer-definitive-preview {
    --sg-shell-header-bg: rgba(255, 255, 255, .98);
    --sg-shell-nav-bg: #0f172a;
    --sg-shell-nav-border: rgba(219, 228, 240, .18);
    --sg-shell-search-height: 48px;
}

.theme-stackgamer-definitive-preview .sg-site-header,
.theme-stackgamer-definitive-preview .store-header,
.theme-stackgamer-definitive-preview .sg-header-t3 {
    position: relative;
    z-index: var(--sg-z-header);
    background: var(--sg-shell-header-bg) !important;
    border-bottom: 1px solid var(--sg-color-border) !important;
    box-shadow: var(--sg-shadow-sm) !important;
}

.theme-stackgamer-definitive-preview .sg-public-benefit-bar {
    display: flex !important;
    min-height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(12px, 3vw, 28px) !important;
    padding: 6px 16px !important;
    color: #dbeafe !important;
    background: linear-gradient(90deg, #0f172a 0%, #14244a 100%) !important;
    border-bottom: 1px solid rgba(56, 221, 248, .18) !important;
    font-size: var(--sg-font-size-xs) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.theme-stackgamer-definitive-preview .sg-public-benefit-bar span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.theme-stackgamer-definitive-preview .sg-public-benefit-bar span::before {
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: var(--sg-color-interaction) !important;
    content: "" !important;
}

.theme-stackgamer-definitive-preview .sg-header-main,
.theme-stackgamer-definitive-preview .store-main-nav,
.theme-stackgamer-definitive-preview .navbar.sg-header-main {
    display: grid !important;
    grid-template-columns: minmax(190px, 300px) minmax(260px, 1fr) auto !important;
    gap: var(--sg-space-4) !important;
    align-items: center !important;
    width: min(100% - 32px, 1320px) !important;
    margin: 0 auto !important;
    padding: 16px 0 !important;
    color: var(--sg-color-text) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.theme-stackgamer-definitive-preview .brand-wrapper {
    display: inline-flex !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--sg-color-text) !important;
    text-decoration: none !important;
}

.theme-stackgamer-definitive-preview .brand-logo-container {
    display: inline-flex !important;
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid var(--sg-color-border) !important;
    border-radius: var(--sg-radius-md) !important;
    box-shadow: var(--sg-shadow-sm) !important;
}

.theme-stackgamer-definitive-preview .brand-logo-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
}

.theme-stackgamer-definitive-preview .nav-logo-text {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.theme-stackgamer-definitive-preview .nav-logo-text strong {
    color: var(--sg-color-primary) !important;
    font: 900 1.05rem/1.1 var(--sg-font-display) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.theme-stackgamer-definitive-preview .nav-logo-text small {
    color: var(--sg-color-muted) !important;
    font: 800 var(--sg-font-size-xs)/1.2 var(--sg-font-family) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.theme-stackgamer-definitive-preview .sg-header-search,
.theme-stackgamer-definitive-preview .search-form {
    display: grid !important;
    grid-template-columns: 1fr var(--sg-shell-search-height) !important;
    align-items: center !important;
    min-width: 0 !important;
    height: var(--sg-shell-search-height) !important;
    background: #ffffff !important;
    border: 1px solid var(--sg-color-border-strong) !important;
    border-radius: var(--sg-radius-md) !important;
    box-shadow: var(--sg-shadow-sm) !important;
    overflow: hidden !important;
}

.theme-stackgamer-definitive-preview .sg-header-search input,
.theme-stackgamer-definitive-preview .search-form input,
.theme-stackgamer-definitive-preview .search-input {
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--sg-color-text) !important;
    background: transparent !important;
}

.theme-stackgamer-definitive-preview .sg-search-submit,
.theme-stackgamer-definitive-preview .search-form button[type="submit"] {
    width: var(--sg-shell-search-height) !important;
    height: var(--sg-shell-search-height) !important;
    min-height: var(--sg-shell-search-height) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: var(--sg-color-navy) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.theme-stackgamer-definitive-preview .sg-header-actions,
.theme-stackgamer-definitive-preview .nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.theme-stackgamer-definitive-preview .btn-nav,
.theme-stackgamer-definitive-preview .cart-toggle,
.theme-stackgamer-definitive-preview .account-link,
.theme-stackgamer-definitive-preview .orders-link {
    min-height: 44px !important;
    color: var(--sg-color-text) !important;
    background: #ffffff !important;
    border: 1px solid var(--sg-color-border) !important;
    border-radius: var(--sg-radius-md) !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.theme-stackgamer-definitive-preview .cart-toggle,
.theme-stackgamer-definitive-preview [href*="carrinho"],
.theme-stackgamer-definitive-preview .btn-cart {
    color: var(--sg-color-primary) !important;
    background: var(--sg-color-primary-soft) !important;
    border-color: rgba(37, 99, 255, .28) !important;
}

.theme-stackgamer-definitive-preview .category-nav,
.theme-stackgamer-definitive-preview .sg-category-nav,
.theme-stackgamer-definitive-preview .main-menu,
.theme-stackgamer-definitive-preview .store-category-nav {
    width: min(100% - 32px, 1320px) !important;
    margin: 0 auto !important;
    overflow-x: auto !important;
    color: #ffffff !important;
    background: var(--sg-shell-nav-bg) !important;
    border: 1px solid var(--sg-shell-nav-border) !important;
    border-radius: var(--sg-radius-md) var(--sg-radius-md) 0 0 !important;
}

.theme-stackgamer-definitive-preview .category-nav a,
.theme-stackgamer-definitive-preview .sg-category-nav a,
.theme-stackgamer-definitive-preview .main-menu a,
.theme-stackgamer-definitive-preview .store-category-nav a {
    min-height: 46px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.theme-stackgamer-definitive-preview .cyber-footer,
.theme-stackgamer-definitive-preview .premium-footer {
    margin-top: var(--sg-space-8) !important;
    color: #dbeafe !important;
    background: linear-gradient(180deg, #0f172a 0%, #071021 100%) !important;
    border-top: 1px solid rgba(56, 221, 248, .20) !important;
}

.theme-stackgamer-definitive-preview .premium-footer-grid,
.theme-stackgamer-definitive-preview .footer-container {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(190px, 1fr)) !important;
    gap: var(--sg-space-4) !important;
    width: min(100% - 32px, 1320px) !important;
    margin: 0 auto !important;
    padding: var(--sg-space-6) 0 !important;
}

.theme-stackgamer-definitive-preview .footer-brand-panel,
.theme-stackgamer-definitive-preview .footer-panel {
    color: #dbeafe !important;
    background: rgba(255, 255, 255, .045) !important;
    border: 1px solid rgba(219, 228, 240, .12) !important;
    border-radius: var(--sg-radius-md) !important;
    box-shadow: none !important;
}

.theme-stackgamer-definitive-preview .footer-logo,
.theme-stackgamer-definitive-preview .footer-panel h3,
.theme-stackgamer-definitive-preview .footer-panel-heading strong {
    color: #ffffff !important;
    font-family: var(--sg-font-family) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.theme-stackgamer-definitive-preview .footer-logo span,
.theme-stackgamer-definitive-preview .footer-panel-heading span,
.theme-stackgamer-definitive-preview .footer-link-list a,
.theme-stackgamer-definitive-preview .footer-contact-list a,
.theme-stackgamer-definitive-preview .footer-cookie-link {
    color: #bfdbfe !important;
}

.theme-stackgamer-definitive-preview .footer-bottom-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px 20px !important;
    width: min(100% - 32px, 1320px) !important;
    margin: 0 auto !important;
    padding: var(--sg-space-4) 0 !important;
    color: #cbd5e1 !important;
    border-top: 1px solid rgba(219, 228, 240, .14) !important;
}

.theme-stackgamer-definitive-preview .preferences-modal,
.theme-stackgamer-definitive-preview .preferences-prompt-modal {
    color: var(--sg-color-text) !important;
}

.theme-stackgamer-definitive-preview .preferences-modal-shell,
.theme-stackgamer-definitive-preview .preferences-prompt-shell {
    width: min(100% - 32px, 760px) !important;
    max-height: min(86vh, 760px) !important;
    overflow: auto !important;
    background: #ffffff !important;
    border: 1px solid var(--sg-color-border) !important;
    border-radius: var(--sg-radius-lg) !important;
    box-shadow: var(--sg-shadow-lg) !important;
}

.theme-stackgamer-definitive-preview .preferences-kicker {
    color: var(--sg-color-primary) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.theme-stackgamer-definitive-preview .theme-option-card,
.theme-stackgamer-definitive-preview .cookie-consent-row {
    color: var(--sg-color-text) !important;
    background: #ffffff !important;
    border: 1px solid var(--sg-color-border) !important;
    border-radius: var(--sg-radius-md) !important;
}

.theme-stackgamer-definitive-preview .theme-option-card small,
.theme-stackgamer-definitive-preview .cookie-consent-row small,
.theme-stackgamer-definitive-preview .preferences-help {
    color: var(--sg-color-muted) !important;
}

.theme-stackgamer-definitive-preview .preferences-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: var(--sg-space-3) !important;
}

@media (max-width: 1024px) {
    .theme-stackgamer-definitive-preview .sg-header-main,
    .theme-stackgamer-definitive-preview .store-main-nav,
    .theme-stackgamer-definitive-preview .navbar.sg-header-main {
        grid-template-columns: minmax(180px, 260px) 1fr !important;
    }

    .theme-stackgamer-definitive-preview .sg-header-actions,
    .theme-stackgamer-definitive-preview .nav-actions {
        grid-column: 1 / -1 !important;
        justify-content: stretch !important;
        overflow-x: auto !important;
        padding-bottom: 2px !important;
    }

    .theme-stackgamer-definitive-preview .premium-footer-grid,
    .theme-stackgamer-definitive-preview .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    .theme-stackgamer-definitive-preview .sg-public-benefit-bar {
        justify-content: flex-start !important;
        overflow-x: auto !important;
    }

    .theme-stackgamer-definitive-preview .sg-header-main,
    .theme-stackgamer-definitive-preview .store-main-nav,
    .theme-stackgamer-definitive-preview .navbar.sg-header-main {
        grid-template-columns: 1fr !important;
        width: min(100% - 16px, 100%) !important;
        gap: var(--sg-space-3) !important;
        padding: 12px 0 !important;
    }

    .theme-stackgamer-definitive-preview .sg-header-search,
    .theme-stackgamer-definitive-preview .search-form {
        width: 100% !important;
    }

    .theme-stackgamer-definitive-preview .sg-header-actions,
    .theme-stackgamer-definitive-preview .nav-actions {
        justify-content: flex-start !important;
    }

    .theme-stackgamer-definitive-preview .premium-footer-grid,
    .theme-stackgamer-definitive-preview .footer-container {
        grid-template-columns: 1fr !important;
        width: min(100% - 16px, 100%) !important;
    }

    .theme-stackgamer-definitive-preview .footer-bottom-bar {
        width: min(100% - 16px, 100%) !important;
        text-align: center !important;
    }

    .theme-stackgamer-definitive-preview .preferences-modal-shell,
    .theme-stackgamer-definitive-preview .preferences-prompt-shell {
        width: min(100% - 16px, 100%) !important;
        max-height: 88vh !important;
    }

    .theme-stackgamer-definitive-preview .preferences-action-buttons,
    .theme-stackgamer-definitive-preview .preferences-action-buttons button {
        width: 100% !important;
    }
}
