/*
 * Stack Gamer - public recovery theme
 * Escopo: visual publico definitivo. Nao altera regras comerciais, checkout, admin ou integracoes.
 */

body.theme-stackgamer-definitive-preview:not(.admin-mode) {
    --sg-public-bg: #f6f7fa;
    --sg-public-card: #ffffff;
    --sg-public-text: #111827;
    --sg-public-muted: #5b6472;
    --sg-public-border: #e2e8f0;
    --sg-public-purple: #6d28d9;
    --sg-public-cyan: #0e7490;
    --sg-public-success: #047857;
    --sg-public-offer: #b91c1c;
    --sg-public-dark: #10131a;
    --sg-public-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    --sg-public-shadow-strong: 0 18px 46px rgba(15, 23, 42, .13);
    background: var(--sg-public-bg) !important;
    color: var(--sg-public-text) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode)::before,
body.theme-stackgamer-definitive-preview:not(.admin-mode)::after {
    opacity: 0 !important;
    animation: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--sg-public-cyan) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(14, 116, 144, .16) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-t3 {
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid var(--sg-public-border) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .09) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-t3::before,
body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.navbar, .sg-category-nav)::after,
body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.product-card, .conversion-section, .panel)::before {
    display: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-main {
    min-height: 74px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-t3 .brand-logo-container {
    background: var(--sg-public-dark) !important;
    border-color: rgba(14, 116, 144, .4) !important;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, .08), 0 10px 24px rgba(15, 23, 42, .12) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-t3 .nav-logo-text strong,
body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.conversion-hero h1, .conversion-section h2, .sg-product-page-heading h1, .sg-checkout-heading h1, .product-title) {
    color: var(--sg-public-text) !important;
    text-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-t3 .nav-logo-text small,
body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.conversion-kicker, .conversion-hero-eyebrow) {
    color: var(--sg-public-purple) !important;
    text-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .search-input {
    min-height: 46px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--sg-public-text) !important;
    padding: 0 48px 0 16px !important;
    font-size: 1rem !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .search-input::placeholder {
    color: #697586 !important;
    opacity: 1;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-search-submit, .conversion-cta, .btn-mega-setup, .ready-setup-button, .btn-buy-primary, .btn-checkout, .btn-continuar-pagamento, .product-cart-button) {
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--sg-public-purple), var(--sg-public-cyan)) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(109, 40, 217, .18) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-account-link, .sg-orders-link, .btn-nav, .btn-nav-logout, .btn-view, .whatsapp-context-link, .checkout-whatsapp-help) {
    border: 1px solid var(--sg-public-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--sg-public-text) !important;
    box-shadow: none !important;
    text-decoration: none;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .btn-cart {
    border-color: rgba(109, 40, 217, .28) !important;
    background: #f8f5ff !important;
    color: var(--sg-public-text) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .cart-badge {
    background: var(--sg-public-purple) !important;
    color: #fff !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-secondary {
    background: var(--sg-public-dark) !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    border-bottom: 1px solid rgba(15,23,42,.14) !important;
    box-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-secondary a {
    color: #e5e7eb !important;
    border-radius: 6px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-secondary a:hover,
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-secondary a:focus-visible {
    background: rgba(14, 116, 144, .2) !important;
    color: #fff !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home {
    width: min(1320px, calc(100% - 32px));
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero {
    border: 1px solid var(--sg-public-border) !important;
    border-radius: 10px !important;
    background: radial-gradient(circle at 78% 18%, rgba(14,116,144,.16), transparent 26rem), linear-gradient(135deg, #fff 0%, #f8f5ff 48%, #ecfeff 100%) !important;
    box-shadow: var(--sg-public-shadow-strong) !important;
    color: var(--sg-public-text) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.conversion-hero p, .conversion-section-heading p, .conversion-section-copy > p, .product-spec-summary, .product-rating, .product-payment-line, .product-installments) {
    color: var(--sg-public-muted) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.conversion-section, .conversion-category-grid a, .conversion-benefit-grid > *, .ready-setup-card, .sg-product-page-section, .sg-product-page-buybox, .sg-product-page-gallery, .sg-checkout-shell, .sg-checkout-summary, .sg-checkout-main, .checkout-cupom, .checkout-cep-panel) {
    border: 1px solid var(--sg-public-border) !important;
    border-radius: 8px !important;
    background: var(--sg-public-card) !important;
    box-shadow: var(--sg-public-shadow) !important;
    color: var(--sg-public-text) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-configurator {
    border: 1px solid rgba(109, 40, 217, .18) !important;
    background: radial-gradient(circle at 92% 20%, rgba(14,116,144,.14), transparent 20rem), linear-gradient(135deg, #10131a, #1b1432) !important;
    color: #fff !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-configurator :where(h2, p, li) {
    color: #fff !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    border: 1px solid var(--sg-public-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--sg-public-text) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07) !important;
    overflow: hidden;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-card:hover {
    border-color: rgba(109, 40, 217, .32) !important;
    box-shadow: var(--sg-public-shadow-strong) !important;
    transform: translateY(-2px);
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 14px !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.product-img-wrapper, .cyber-carousel, .sg-product-page-image, .ready-setup-image) {
    border: 1px solid #eef2f7 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-img-wrapper,
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .cyber-carousel {
    width: 100%;
    height: 100%;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.cyber-carousel img, .sg-product-page-image img, .ready-setup-image img) {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-title {
    min-height: 48px;
    font-family: var(--sg-font-ui) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-footer {
    margin-top: auto;
    padding: 14px !important;
    border-top: 1px solid #eef2f7 !important;
    background: #fff !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.product-price, .product-price-pix, .sg-product-main-price) {
    color: var(--sg-public-success) !important;
    text-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.discount-tag, .sg-product-promo-badge) {
    background: var(--sg-public-offer) !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.stock-status, .sg-product-stock) {
    border-color: rgba(4,120,87,.24) !important;
    background: #ecfdf5 !important;
    color: var(--sg-public-success) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-thumbnail {
    border: 1px solid var(--sg-public-border) !important;
    background: #fff !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-thumbnail.is-active {
    border-color: var(--sg-public-purple) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .12) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-checkout-wrapper {
    background: var(--sg-public-bg) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-checkout-progress span, .checkout-payment-option) {
    border: 1px solid var(--sg-public-border) !important;
    background: #fff !important;
    color: var(--sg-public-muted) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-checkout-progress .is-active, .sg-checkout-progress .is-complete, .checkout-payment-option.active) {
    border-color: rgba(109,40,217,.3) !important;
    background: #f8f5ff !important;
    color: var(--sg-public-purple) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) #paymentBrick_container {
    border: 1px solid var(--sg-public-border);
    box-shadow: var(--sg-public-shadow);
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.cart-sidebar, .cyber-cart-sidebar) {
    border-left: 1px solid var(--sg-public-border) !important;
    background: #fff !important;
    color: var(--sg-public-text) !important;
    box-shadow: -20px 0 50px rgba(15, 23, 42, .16) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.cart-item, .cart-summary-row) {
    border-color: var(--sg-public-border) !important;
    background: #f8fafc !important;
    color: var(--sg-public-text) !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.premium-footer, .cyber-footer) {
    margin-top: 44px;
    background: radial-gradient(circle at 16% 0%, rgba(14,116,144,.16), transparent 28rem), linear-gradient(180deg, #10131a, #080b12) !important;
    color: #e5e7eb !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .premium-footer :where(p, small, span, a) {
    color: #cbd5e1;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .premium-footer :where(h3, strong, .footer-logo) {
    color: #fff !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.footer-panel, .footer-brand-panel, .payment-card) {
    border-color: rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.04) !important;
}

@media (max-width: 1023px) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-main {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-search {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
}

@media (max-width: 640px) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home {
        width: min(100% - 16px, 1320px);
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-card {
        min-height: 390px;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero {
        clip-path: none !important;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero-actions {
        grid-template-columns: 1fr !important;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-product-page-main, .sg-checkout-layout) {
        grid-template-columns: 1fr !important;
    }
}

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


body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-account-link, .sg-orders-link) {
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-account-link, .sg-orders-link) span:last-child {
    display: grid;
    gap: 1px;
    color: var(--sg-public-muted);
    line-height: 1.05;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) :where(.sg-account-link, .sg-orders-link) strong {
    color: var(--sg-public-purple) !important;
    font-size: .82rem;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-actions :where(.pwa-action-button, .pwa-status) {
    display: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-mobile-menu-actions .sg-orders-link {
    display: flex !important;
    width: 100%;
}

@media (max-width: 760px) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-actions .sg-orders-link,
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-actions .sg-account-link,
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-actions .btn-nav-logout,
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-header-actions .sg-header-logout-form {
        display: none !important;
    }
}

/* Ação 3 - Homepage pública: hierarquia comercial clara */
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-public-benefit-bar {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 7px 16px;
    background: var(--sg-public-dark);
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-public-benefit-bar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-public-benefit-bar span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sg-public-purple), var(--sg-public-cyan));
    box-shadow: 0 0 12px rgba(14, 116, 144, .6);
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 22px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero {
    margin: 22px auto 0;
    width: min(1320px, calc(100% - 32px));
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 4.2rem) !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero h1 span {
    color: var(--sg-public-purple) !important;
    text-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero-secondary {
    display: inline-flex;
    width: fit-content;
    margin: 2px 0 0;
    padding: 7px 10px;
    border: 1px solid rgba(14, 116, 144, .22);
    border-radius: 999px;
    background: #ecfeff;
    color: var(--sg-public-cyan) !important;
    font-weight: 800;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero-visual img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-trust {
    width: min(1320px, calc(100% - 32px));
    margin: 18px auto 0;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > .conversion-categories {
    order: 10;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > #produtos-destaque {
    order: 20;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > #promocoes {
    order: 30;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > #setups-prontos {
    order: 40;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > #configurador {
    order: 50;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > .conversion-coupons {
    order: 60;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > .conversion-why {
    order: 70;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > [aria-labelledby="avaliacoes-title"] {
    order: 80;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > .conversion-about {
    order: 90;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > .conversion-faq {
    order: 100;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home > .conversion-policies {
    order: 110;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-campaign-hero {
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-coupon-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 760px) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-public-benefit-bar {
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        padding-inline: 12px;
        scrollbar-width: none;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-public-benefit-bar::-webkit-scrollbar {
        display: none;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-home {
        gap: 16px;
        padding-top: 14px;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero {
        margin-top: 14px;
        width: min(100% - 20px, 1320px);
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.6rem) !important;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .conversion-trust {
        width: min(100% - 20px, 1320px);
        margin-top: 12px;
    }
}

/* Ação 4 - Card único de produto */
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card {
    position: relative;
    min-height: 520px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 12px;
    mix-blend-mode: multiply;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-img-wrapper.image-unavailable::after {
    content: attr(data-empty);
    display: grid;
    place-items: center;
    min-height: 160px;
    color: var(--sg-public-muted);
    font-weight: 700;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
    max-width: calc(100% - 20px);
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-card-badges:empty {
    display: none;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .product-card-badges :where(.discount-tag, .stockout-tag) {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-brand {
    color: var(--sg-public-purple);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-category-chip {
    max-width: 52%;
    overflow: hidden;
    color: var(--sg-public-muted);
    font-size: .72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-title {
    display: -webkit-box;
    min-height: 50px;
    max-height: 50px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-spec-summary {
    display: -webkit-box;
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-rating {
    min-height: 22px;
    margin-top: auto;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-rating-empty {
    color: var(--sg-public-muted) !important;
    font-size: .82rem;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .price-container {
    display: grid;
    gap: 3px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-price-label {
    color: var(--sg-public-success);
    font-weight: 900;
    text-transform: uppercase;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-stock-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--sg-public-muted);
    font-size: .82rem;
    font-weight: 800;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-stock-line span {
    color: var(--sg-public-success);
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-card-buy {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    font-size: .95rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-page-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

@media (min-width: 900px) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-card .product-card-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* Ação 6 - Catálogo público */
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-header {
    flex: 1 0 100%;
    padding: 22px;
    border: 1px solid var(--sg-public-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--sg-public-shadow);
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--sg-public-muted);
    font-size: .86rem;
    font-weight: 800;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-breadcrumb a {
    color: var(--sg-public-cyan);
    text-decoration: none;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-title-row h1 {
    margin: 4px 0 4px;
    color: var(--sg-public-text);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: 0;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-title-row p {
    margin: 0;
    color: var(--sg-public-muted);
    font-weight: 700;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-filter-toggle,
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-filter-close,
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-active-filters a {
    min-height: 40px;
    border: 1px solid var(--sg-public-border);
    border-radius: 8px;
    background: #fff;
    color: var(--sg-public-text);
    font-weight: 900;
    padding: 0 12px;
    text-decoration: none;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-filter-toggle {
    display: none;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-filter-close {
    display: none;
    width: 100%;
    margin-bottom: 14px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sg-public-muted);
    font-weight: 800;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-sort select {
    min-height: 40px;
    border: 1px solid var(--sg-public-border);
    border-radius: 8px;
    background: #fff;
    color: var(--sg-public-text);
    font-weight: 800;
    padding: 0 10px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-active-filters span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8f5ff;
    color: var(--sg-public-purple);
    font-weight: 900;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-empty {
    padding: 48px 20px;
    border: 1px dashed var(--sg-public-border);
    border-radius: 8px;
    background: #fff;
    color: var(--sg-public-muted);
    text-align: center;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-empty strong {
    display: block;
    color: var(--sg-public-text);
    font-size: 1.2rem;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--sg-public-purple);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-filter-backdrop {
    display: none;
}

@media (max-width: 860px) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-controls {
        align-items: stretch;
        flex-direction: column;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-sort,
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-catalog-sort select {
        width: 100%;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) #sgCatalogFilters {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 10020;
        width: min(92vw, 360px);
        max-width: 100%;
        padding: 18px;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .2s ease;
        background: #fff !important;
        box-shadow: 22px 0 50px rgba(15, 23, 42, .18);
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode).sg-filters-open #sgCatalogFilters {
        transform: translateX(0);
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode).sg-filters-open .sg-filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10010;
        border: 0;
        background: rgba(15, 23, 42, .42);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) #sgCatalogFilters {
        transition: none !important;
    }
}

/* Ação 8 - Página de produto pública */
body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-meta-row span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--sg-public-border);
    border-radius: 999px;
    background: #fff;
    color: var(--sg-public-muted);
    font-size: .84rem;
    font-weight: 900;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-main {
    align-items: flex-start;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-image img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-buy-now {
    min-height: 48px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-add-cart {
    border: 1px solid rgba(109, 40, 217, .28) !important;
    background: #f8f5ff !important;
    color: var(--sg-public-purple) !important;
    box-shadow: none !important;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-support-actions a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--sg-public-border);
    border-radius: 8px;
    background: #fff;
    color: var(--sg-public-text);
    font-weight: 900;
    text-decoration: none;
}

@media (min-width: 760px) {
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-actions {
        grid-template-columns: 1fr 1fr;
    }

    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-actions .sg-product-share,
    body.theme-stackgamer-definitive-preview:not(.admin-mode) .sg-product-page-actions .whatsapp-context-link {
        grid-column: span 2;
    }
}
