/* Stack Gamer 2026 - Capitulo 14: Mobile, PWA, Acessibilidade, Performance, SEO tecnico e Midia */
.theme-stackgamer-definitive-preview {
    --sg14-focus: #2563ff;
    --sg14-focus-ring: rgba(37, 99, 255, .24);
    --sg14-safe-bottom: env(safe-area-inset-bottom, 0px);
    --sg14-safe-top: env(safe-area-inset-top, 0px);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.theme-stackgamer-definitive-preview *,
.theme-stackgamer-definitive-preview *::before,
.theme-stackgamer-definitive-preview *::after {
    box-sizing: border-box;
}

.theme-stackgamer-definitive-preview img,
.theme-stackgamer-definitive-preview picture,
.theme-stackgamer-definitive-preview video,
.theme-stackgamer-definitive-preview canvas,
.theme-stackgamer-definitive-preview svg {
    max-width: 100%;
}

.theme-stackgamer-definitive-preview img,
.theme-stackgamer-definitive-preview video {
    height: auto;
}

.theme-stackgamer-definitive-preview a,
.theme-stackgamer-definitive-preview button,
.theme-stackgamer-definitive-preview input,
.theme-stackgamer-definitive-preview select,
.theme-stackgamer-definitive-preview textarea,
.theme-stackgamer-definitive-preview [role="button"],
.theme-stackgamer-definitive-preview summary {
    touch-action: manipulation;
}

.theme-stackgamer-definitive-preview button,
.theme-stackgamer-definitive-preview input,
.theme-stackgamer-definitive-preview select,
.theme-stackgamer-definitive-preview textarea {
    font: inherit;
}

.theme-stackgamer-definitive-preview :focus-visible {
    outline: 3px solid var(--sg14-focus) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px var(--sg14-focus-ring) !important;
}

.theme-stackgamer-definitive-preview .sg-visually-hidden,
.theme-stackgamer-definitive-preview .sg14-skip-link:not(:focus):not(:focus-visible) {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.theme-stackgamer-definitive-preview .sg14-skip-link {
    background: #0f172a;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    left: 16px;
    padding: 10px 14px;
    position: fixed;
    text-decoration: none;
    top: 16px;
    z-index: 100000;
}

.theme-stackgamer-definitive-preview main,
.theme-stackgamer-definitive-preview .main-content,
.theme-stackgamer-definitive-preview .products-grid,
.theme-stackgamer-definitive-preview .catalog-grid,
.theme-stackgamer-definitive-preview .product-card,
.theme-stackgamer-definitive-preview .premium-card,
.theme-stackgamer-definitive-preview .category-card,
.theme-stackgamer-definitive-preview .panel,
.theme-stackgamer-definitive-preview section[id] {
    scroll-margin-top: 128px;
}

.theme-stackgamer-definitive-preview .product-card,
.theme-stackgamer-definitive-preview .card-produto,
.theme-stackgamer-definitive-preview .premium-card,
.theme-stackgamer-definitive-preview .category-card,
.theme-stackgamer-definitive-preview .setup-card,
.theme-stackgamer-definitive-preview .sg-products-card,
.theme-stackgamer-definitive-preview .sg-admin-panel,
.theme-stackgamer-definitive-preview .panel {
    contain: layout paint style;
}

@supports (content-visibility: auto) {
    .theme-stackgamer-definitive-preview .product-card,
    .theme-stackgamer-definitive-preview .card-produto,
    .theme-stackgamer-definitive-preview .premium-card,
    .theme-stackgamer-definitive-preview .category-card,
    .theme-stackgamer-definitive-preview .setup-card,
    .theme-stackgamer-definitive-preview .sg-products-card,
    .theme-stackgamer-definitive-preview .panel:not(.cart-panel):not(.checkout-panel):not(.preferences-modal-shell) {
        content-visibility: auto;
        contain-intrinsic-size: 320px;
    }
}

.theme-stackgamer-definitive-preview .brand-logo-img,
.theme-stackgamer-definitive-preview .footer-brand-orbit img,
.theme-stackgamer-definitive-preview .product-card img,
.theme-stackgamer-definitive-preview .produto-card img,
.theme-stackgamer-definitive-preview .card-produto img,
.theme-stackgamer-definitive-preview .category-card img,
.theme-stackgamer-definitive-preview .setup-card img,
.theme-stackgamer-definitive-preview .product-gallery img,
.theme-stackgamer-definitive-preview .sg-products-list-thumb,
.theme-stackgamer-definitive-preview .sg-product-image-preview img {
    image-rendering: auto;
}

.theme-stackgamer-definitive-preview .product-card img,
.theme-stackgamer-definitive-preview .produto-card img,
.theme-stackgamer-definitive-preview .card-produto img,
.theme-stackgamer-definitive-preview .category-card img,
.theme-stackgamer-definitive-preview .setup-card img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.theme-stackgamer-definitive-preview .hero-section,
.theme-stackgamer-definitive-preview .hero,
.theme-stackgamer-definitive-preview .sg-home-hero,
.theme-stackgamer-definitive-preview .product-hero,
.theme-stackgamer-definitive-preview .catalog-hero {
    overflow: clip;
}

.theme-stackgamer-definitive-preview .sg-mobile-menu-toggle,
.theme-stackgamer-definitive-preview .sg-search-submit,
.theme-stackgamer-definitive-preview .btn-nav,
.theme-stackgamer-definitive-preview .btn-nav-logout,
.theme-stackgamer-definitive-preview .btn-cart,
.theme-stackgamer-definitive-preview .btn-comprar,
.theme-stackgamer-definitive-preview .btn-buy,
.theme-stackgamer-definitive-preview .btn-submit,
.theme-stackgamer-definitive-preview .preferences-btn,
.theme-stackgamer-definitive-preview .footer-newsletter-action {
    min-height: 44px;
    min-width: 44px;
}

.theme-stackgamer-definitive-preview .search-input,
.theme-stackgamer-definitive-preview input[type="search"],
.theme-stackgamer-definitive-preview input[type="text"],
.theme-stackgamer-definitive-preview input[type="email"],
.theme-stackgamer-definitive-preview input[type="tel"],
.theme-stackgamer-definitive-preview input[type="number"],
.theme-stackgamer-definitive-preview input[type="password"],
.theme-stackgamer-definitive-preview select,
.theme-stackgamer-definitive-preview textarea {
    font-size: max(16px, 1rem);
}

.theme-stackgamer-definitive-preview .cart-drawer,
.theme-stackgamer-definitive-preview .cart-sidebar,
.theme-stackgamer-definitive-preview .carrinho-lateral,
.theme-stackgamer-definitive-preview .preferences-modal,
.theme-stackgamer-definitive-preview .footer-offcanvas {
    padding-bottom: max(16px, var(--sg14-safe-bottom));
}

.theme-stackgamer-definitive-preview .whatsapp-float,
.theme-stackgamer-definitive-preview .whatsapp-floating,
.theme-stackgamer-definitive-preview .sg-whatsapp-float,
.theme-stackgamer-definitive-preview [href*="wa.me"].floating,
.theme-stackgamer-definitive-preview [href*="whatsapp"].floating {
    bottom: max(18px, calc(var(--sg14-safe-bottom) + 14px));
    right: max(14px, env(safe-area-inset-right, 0px));
    z-index: 850;
}

.theme-stackgamer-definitive-preview .sg-header-main,
.theme-stackgamer-definitive-preview .sg-category-nav,
.theme-stackgamer-definitive-preview .store-main-nav {
    max-width: 100%;
}

.theme-stackgamer-definitive-preview .sg-header-search {
    min-width: 0;
}

.theme-stackgamer-definitive-preview .sg-header-actions {
    min-width: max-content;
}

.theme-stackgamer-definitive-preview .sg-account-link,
.theme-stackgamer-definitive-preview .sg-orders-link,
.theme-stackgamer-definitive-preview .btn-cart {
    white-space: nowrap;
}

.theme-stackgamer-definitive-preview .footer-bottom-bar,
.theme-stackgamer-definitive-preview .premium-footer-grid,
.theme-stackgamer-definitive-preview .footer-link-list,
.theme-stackgamer-definitive-preview .footer-contact-list {
    overflow-wrap: anywhere;
}

.theme-stackgamer-definitive-preview .sg14-media-stable {
    background: #f8fafc;
}

.theme-stackgamer-definitive-preview .sg14-media-deferred {
    opacity: .985;
}

.theme-stackgamer-definitive-preview .sg14-a11y-label-added[aria-label] {
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    .theme-stackgamer-definitive-preview *,
    .theme-stackgamer-definitive-preview *::before,
    .theme-stackgamer-definitive-preview *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .theme-stackgamer-definitive-preview a:hover,
    .theme-stackgamer-definitive-preview button:hover,
    .theme-stackgamer-definitive-preview .product-card:hover,
    .theme-stackgamer-definitive-preview .premium-card:hover,
    .theme-stackgamer-definitive-preview .category-card:hover {
        transform: none !important;
    }
}

@media (max-width: 1180px) {
    .theme-stackgamer-definitive-preview .sg-header-main {
        gap: 12px;
    }

    .theme-stackgamer-definitive-preview .sg-header-actions {
        gap: 8px;
    }

    .theme-stackgamer-definitive-preview .sg-account-link span:last-child,
    .theme-stackgamer-definitive-preview .sg-orders-link span:last-child {
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 900px) {
    .theme-stackgamer-definitive-preview {
        overflow-x: hidden;
    }

    .theme-stackgamer-definitive-preview .sg-public-benefit-bar {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        text-align: center;
    }

    .theme-stackgamer-definitive-preview .sg-header-main {
        align-items: stretch;
        display: grid;
        grid-template-columns: auto 1fr;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .theme-stackgamer-definitive-preview .sg-header-brand-zone {
        min-width: 0;
    }

    .theme-stackgamer-definitive-preview .brand-wrapper {
        min-width: 0;
    }

    .theme-stackgamer-definitive-preview .nav-logo-text {
        min-width: 0;
    }

    .theme-stackgamer-definitive-preview .nav-logo-text strong,
    .theme-stackgamer-definitive-preview .nav-logo-text small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .theme-stackgamer-definitive-preview .sg-header-search {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
    }

    .theme-stackgamer-definitive-preview .sg-header-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
        order: 4;
        width: 100%;
    }

    .theme-stackgamer-definitive-preview .sg-header-actions > *,
    .theme-stackgamer-definitive-preview .sg-header-logout-form,
    .theme-stackgamer-definitive-preview .sg-header-logout-form button {
        flex: 1 1 140px;
    }

    .theme-stackgamer-definitive-preview .sg-category-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 8px max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px));
        scroll-padding-left: 12px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .theme-stackgamer-definitive-preview .sg-category-nav a {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
    }

    .theme-stackgamer-definitive-preview .products-grid,
    .theme-stackgamer-definitive-preview .catalog-grid,
    .theme-stackgamer-definitive-preview .product-grid,
    .theme-stackgamer-definitive-preview .category-grid,
    .theme-stackgamer-definitive-preview .setups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .theme-stackgamer-definitive-preview .premium-footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 640px) {
    .theme-stackgamer-definitive-preview .sg-public-benefit-bar {
        grid-template-columns: 1fr;
    }

    .theme-stackgamer-definitive-preview .brand-logo-img {
        height: auto;
        max-width: 116px;
    }

    .theme-stackgamer-definitive-preview .sg-header-actions > *,
    .theme-stackgamer-definitive-preview .sg-account-link,
    .theme-stackgamer-definitive-preview .sg-orders-link,
    .theme-stackgamer-definitive-preview .btn-cart {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .theme-stackgamer-definitive-preview .products-grid,
    .theme-stackgamer-definitive-preview .catalog-grid,
    .theme-stackgamer-definitive-preview .product-grid,
    .theme-stackgamer-definitive-preview .category-grid,
    .theme-stackgamer-definitive-preview .setups-grid {
        grid-template-columns: 1fr !important;
    }

    .theme-stackgamer-definitive-preview .product-card,
    .theme-stackgamer-definitive-preview .card-produto,
    .theme-stackgamer-definitive-preview .premium-card,
    .theme-stackgamer-definitive-preview .category-card {
        min-width: 0 !important;
    }

    .theme-stackgamer-definitive-preview .cart-drawer,
    .theme-stackgamer-definitive-preview .cart-sidebar,
    .theme-stackgamer-definitive-preview .carrinho-lateral {
        border-radius: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .theme-stackgamer-definitive-preview .preferences-modal,
    .theme-stackgamer-definitive-preview .footer-offcanvas {
        max-height: 100dvh;
        width: 100vw;
    }

    .theme-stackgamer-definitive-preview .premium-footer-grid,
    .theme-stackgamer-definitive-preview .footer-bottom-bar {
        grid-template-columns: 1fr !important;
        text-align: left;
    }

    .theme-stackgamer-definitive-preview .footer-social-links,
    .theme-stackgamer-definitive-preview .footer-live-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .theme-stackgamer-definitive-preview .sg-header-main {
        grid-template-columns: 1fr;
    }

    .theme-stackgamer-definitive-preview .sg-header-brand-zone,
    .theme-stackgamer-definitive-preview .brand-wrapper {
        width: 100%;
    }

    .theme-stackgamer-definitive-preview .sg-header-actions > *,
    .theme-stackgamer-definitive-preview .sg-account-link,
    .theme-stackgamer-definitive-preview .sg-orders-link,
    .theme-stackgamer-definitive-preview .btn-cart {
        flex-basis: 100%;
    }
}

@media print {
    .theme-stackgamer-definitive-preview .sg-public-benefit-bar,
    .theme-stackgamer-definitive-preview .sg-mobile-menu-toggle,
    .theme-stackgamer-definitive-preview .sg-header-actions,
    .theme-stackgamer-definitive-preview .sg-category-nav,
    .theme-stackgamer-definitive-preview .premium-footer,
    .theme-stackgamer-definitive-preview .whatsapp-float,
    .theme-stackgamer-definitive-preview .preferences-modal,
    .theme-stackgamer-definitive-preview .cart-drawer,
    .theme-stackgamer-definitive-preview .cart-sidebar {
        display: none !important;
    }

    .theme-stackgamer-definitive-preview {
        background: #fff !important;
        color: #000 !important;
    }
}
