/* Loja pública — header, vitrine, produto, carrinho, footer */

:root {
    --shop-max: 1440px;
}

body.shop {
    background: #ffffff;
    padding-bottom: 0;
    /* min-height total: garante que o footer cole no fundo em páginas curtas */
    display: flex; flex-direction: column;
    min-height: 100vh;
    /* Defesa contra overflow horizontal — carrosséis/elementos internos têm seus
       próprios overflow-x:auto. A página inteira nunca deve rolar lateralmente. */
    overflow-x: hidden;
}
body.shop > main,
body.shop > .product-page,
body.shop > .cart-page,
body.shop > .account-shell,
body.shop > .auth-shell,
body.shop > .checkout-shell,
body.shop > #shop-content { flex: 1 0 auto; }
body.shop > .shop-footer { flex-shrink: 0; }
/* index.html: hero + section juntos preenchem o espaço */
body.shop > .shop-hero { flex-shrink: 0; }
body.shop > .shop-section { flex: 1 0 auto; }
/* respira no fim do conteúdo + espaço pro CTA sticky em mobile */
body.shop.has-sticky-cta { padding-bottom: 88px; }
@media (min-width: 901px) {
    body.shop.has-sticky-cta { padding-bottom: 0; }
}

/* ====== HEADER (estilo Imprima por Menos) ====== */
.shop-header { position: relative; z-index: 80; background: #fff; }

/* Top utility bar — vermelho, fininha */
.shop-topbar {
    background: linear-gradient(90deg, var(--accent-hover) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
}
.topbar-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap;
}
.topbar-inner .topbar-cnpj {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    opacity: 0.95;
}
.topbar-inner .topbar-spacer { flex: 1; }
.topbar-inner .topbar-icons {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.topbar-inner .topbar-ico {
    color: #fff;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s ease;
}
.topbar-inner .topbar-ico:hover { opacity: 1; }
.topbar-inner .topbar-ico svg { display: block; }
@media (max-width: 700px) {
    .topbar-inner { padding: 8px 16px; gap: 12px; font-size: 11.5px; }
    .topbar-inner .topbar-icons { gap: 12px; }
}

/* Barra principal: logo · busca · ações */
.shop-header-bar {
    background: #fff;
    border-bottom: 1px solid rgba(60,66,87,0.08);
}
.shop-header-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 36px;
    align-items: center;
}
.shop-logo {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-primary); font-weight: 800; font-size: 20px;
    letter-spacing: -0.01em;
}
.shop-logo .logo-dot {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: none;
}
.shop-logo .logo-dot svg { width: 22px; height: 22px; display: block; }
.shop-logo .logo-dot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-logo .logo-name { color: var(--text-primary); }
/* Quando há logo: sem caixa, sem fundo, mostra completa — limite só altura */
.shop-logo.has-logo .logo-dot {
    width: auto; height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.shop-logo.has-logo .logo-dot img { height: 44px; width: auto; max-width: none; max-height: 44px; }

/* Busca */
.shop-search {
    position: relative;
    display: flex;
    background: #f4f6f9;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 140ms, background 140ms;
}
.shop-search:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.shop-search input {
    flex: 1;
    border: 0; outline: 0; background: transparent;
    padding: 12px 16px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text-primary);
}
.shop-search input::placeholder { color: var(--text-tertiary); }
.shop-search button {
    border: 0;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    width: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 140ms;
}
.shop-search button:hover { background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent-dark) 100%); }
.shop-search button svg { width: 20px; height: 20px; display: block; }
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    box-shadow: none;
    max-height: 480px; overflow-y: auto;
    z-index: 100;
}
.search-dropdown .sd-empty {
    padding: 18px;
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
}
.search-dropdown .sd-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-bottom: 0.5px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 100ms;
}
.search-dropdown .sd-item:last-child { border-bottom: 0; }
.search-dropdown .sd-item:hover { background: var(--bg-hover); }
.search-dropdown .sd-thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    background: var(--bg-base);
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--text-tertiary);
}
.search-dropdown .sd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-dropdown .sd-thumb svg { width: 28px; height: 28px; }
.search-dropdown .sd-info { flex: 1; min-width: 0; }
.search-dropdown .sd-name { font-weight: 600; font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dropdown .sd-desc { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dropdown .sd-price { text-align: right; flex-shrink: 0; }
.search-dropdown .sd-price small { display: block; font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
.search-dropdown .sd-price strong { font-weight: 700; font-size: 14px; color: var(--accent); }

/* Ações (login + carrinho + admin) */
.shop-actions { display: flex; align-items: center; gap: 8px; }
.hdr-action-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    transition: background 140ms, border-color 140ms, transform 140ms;
}
.hdr-action-btn:hover { background: #f4f6f9; }
.hdr-action-btn.active { background: rgba(var(--accent-rgb), 0.06); border-color: rgba(var(--accent-rgb), 0.18); }
.hdr-action-btn .ico {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #f4f6f9;
    color: var(--text-primary);
}
.hdr-action-btn.cart .ico {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: none;
}
.hdr-action-btn .ico svg { width: 20px; height: 20px; display: block; }
.hdr-action-btn .lbl { display: flex; flex-direction: column; line-height: 1.2; }
.hdr-action-btn .acct-line { font-size: 13px; color: var(--text-primary); font-weight: 500; }
.hdr-action-btn .acct-line strong { font-weight: 700; color: var(--text-primary); }
.hdr-action-btn .acct-sub { font-size: 11px; color: var(--text-tertiary); }

.hdr-icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 140ms, color 140ms, border-color 140ms, transform 140ms;
}
.hdr-icon-btn svg { width: 20px; height: 20px; display: block; }
.hdr-icon-btn:hover {
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.18);
}
.hdr-icon-btn.admin-btn {
    background: var(--text-primary); color: #fff;
    border-color: var(--text-primary);
    box-shadow: none;
}
.hdr-icon-btn.admin-btn:hover { background: #1a3a5c; border-color: #1a3a5c; transform: translateY(-1px); color: #fff; }
.hdr-icon-btn.install-btn {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
    animation: none !important;
    box-shadow: none;
}
.hdr-icon-btn.install-btn:hover { background: var(--accent-hover, var(--accent)); border-color: var(--accent-hover, var(--accent)); color: #fff; }

.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #fff; color: var(--accent);
    font-weight: 700; font-size: 10.5px;
    border-radius: 999px;
    padding: 1px 6px; min-width: 18px; text-align: center;
    border: 1.5px solid var(--accent);
    line-height: 1.2;
}

/* Nav inferior — categorias */
.shop-cats-nav {
    background: #fafbfc;
    border-bottom: 1px solid rgba(60,66,87,0.08);
}
.cats-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: stretch; gap: 0;
}
.cats-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2c3641; color: #fff;
    border: 0;
    padding: 14px 20px;
    font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    transition: background 140ms;
}
.cats-toggle:hover { background: #1f2937; }
.cats-toggle svg { width: 18px; height: 18px; }
.cats-scroll {
    display: flex; align-items: stretch;
    overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 13.5px; font-weight: 500;
    white-space: nowrap;
    border-right: 1px solid rgba(60,66,87,0.06);
    transition: color 140ms, background 140ms;
}
.cat-link:hover { color: var(--accent); background: #fff; }

@media (max-width: 900px) {
    .shop-header-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo actions"
            "search search";
        row-gap: 10px;
        padding: 4px 10px;
        align-items: center;
    }
    .shop-logo { grid-area: logo; margin: 0; padding: 0; }
    .shop-logo .logo-dot { width: 56px; height: 56px; font-size: 26px; border-radius: 12px; }
    .shop-logo.has-logo .logo-dot { padding: 0; margin: 0; }
    .shop-logo.has-logo .logo-dot img { height: 56px; max-height: 56px; }
    .shop-actions { grid-area: actions; justify-content: flex-end; gap: 2px; flex-shrink: 0; margin: 0; padding: 0; }
    .shop-search { grid-area: search; width: 100%; }
    .hdr-action-btn .lbl { display: none; }
    /* Botões superiores: mesma forma e mesmo espaçamento entre ícones */
    .shop-actions .hdr-action-btn,
    .shop-actions .hdr-icon-btn {
        width: 44px; height: 44px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        display: inline-flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .shop-actions .hdr-action-btn .ico {
        width: 44px; height: 44px;
        padding: 0;
        margin: 0;
        border-radius: 0;
        background: transparent;
    }
    .shop-actions .hdr-action-btn .ico svg,
    .shop-actions .hdr-icon-btn svg { width: 26px; height: 26px; }
}
@media (max-width: 700px) {
    .shop-logo .logo-name { font-size: 18px; }
    .cats-toggle span { display: none; }
    .cats-toggle { padding: 10px 12px; }
    .cat-link { padding: 10px 12px; font-size: 13px; }
}

/* ====== HERO PROMOCIONAL (estilo IPM) ====== */
.shop-promo-hero {
    background:
        radial-gradient(ellipse at top right, rgba(255,255,255,0.18), transparent 60%),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 60%, var(--accent-dark) 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.shop-promo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.04) 10px 11px);
    pointer-events: none;
}
.promo-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.promo-inner.has-image.has-callouts { grid-template-columns: 200px minmax(0, 1fr) auto; }
.promo-inner.has-image:not(.has-callouts) { grid-template-columns: 200px minmax(0, 1fr); }
.promo-inner.no-image.has-callouts { grid-template-columns: minmax(0, 1fr) auto; }
.promo-inner.no-image:not(.has-callouts) { grid-template-columns: minmax(0, 1fr); }
.promo-image {
    display: flex; align-items: center; justify-content: center;
}
.promo-image img {
    width: 100%; max-width: 150px;
    aspect-ratio: 1/1;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
}
.promo-text { padding: 0; }
.promo-eyebrow {
    display: inline-block;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    background: rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.promo-text h1 {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: #fff;
}
.promo-text p {
    font-size: 13.5px; line-height: 1.45;
    margin: 0;
    color: rgba(255,255,255,0.92);
    max-width: 56ch;
}
.promo-callouts {
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, minmax(150px, auto));
}
.promo-callout {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    color: #fff;
    min-width: 150px;
}
.promo-callout .qty {
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    opacity: 0.92;
    margin-bottom: 2px;
}
.promo-callout .lbl {
    font-size: 11.5px; font-weight: 600;
    opacity: 0.92;
    margin-bottom: 2px;
}
.promo-callout .price {
    font-size: 19px; font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.promo-callout .sub {
    font-size: 10px; opacity: 0.8;
    margin-top: 4px;
}
@media (max-width: 1000px) {
    .promo-inner.has-image.has-callouts,
    .promo-inner.has-image:not(.has-callouts) { grid-template-columns: 160px 1fr; }
    .promo-inner.has-callouts .promo-callouts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .promo-inner.has-image.has-callouts,
    .promo-inner.has-image:not(.has-callouts),
    .promo-inner.no-image.has-callouts,
    .promo-inner.no-image:not(.has-callouts) {
        grid-template-columns: 1fr;
        padding: 28px 16px;
        text-align: center;
    }
    .promo-image img { max-width: 140px; }
    .promo-callouts { grid-template-columns: 1fr; }
    .promo-callout { min-width: 0; }
}

/* ====== BANNER HERO (compat — tela genérica institucional) ====== */
.shop-banner-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 24px 64px;
    border-bottom: 1px solid rgba(60,66,87,0.08);
    background: #fff;
}
.shop-banner-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 60%; height: 160%;
    background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.10) 0%, transparent 60%);
    pointer-events: none;
}
.shop-banner-hero .banner-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.shop-banner-hero .banner-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.10);
    border: 1px solid rgba(var(--accent-rgb), 0.20);
    padding: 6px 12px; border-radius: 999px;
    margin-bottom: 18px;
}
.shop-banner-hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.028em;
    max-width: 22ch;
    margin: 0 0 12px;
    color: var(--text-primary);
}
.shop-banner-hero p {
    font-size: 16px;
    line-height: 1.55;
    max-width: 60ch;
    color: var(--text-secondary);
    margin: 0;
}

/* ====== HERO ANTIGO (compat páginas internas) ====== */
.shop-hero {
    max-width: var(--shop-max);
    margin: 40px auto 0;
    padding: 40px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.shop-hero h1 {
    font-size: 32px; font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.shop-hero p { font-size: 15px; opacity: 0.92; max-width: 520px; }

/* ====== MODAL DE LOGIN ADMIN ====== */
body.admin-modal-open { overflow: hidden; }
.admin-modal-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(10,37,64,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: amb-fade 160ms ease-out;
}
.admin-modal-backdrop.closing { animation: amb-fade 160ms ease-in reverse; }
@keyframes amb-fade { from { opacity: 0; } to { opacity: 1; } }
.admin-modal {
    width: 100%; max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 28px;
    position: relative;
    box-shadow: none;
    animation: amb-pop 200ms cubic-bezier(.2,.9,.3,1.2);
}
.admin-modal-backdrop.closing .admin-modal { animation: amb-pop 160ms ease-in reverse; }
@keyframes amb-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.admin-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    background: transparent; border: 0;
    border-radius: 8px;
    color: var(--text-tertiary);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 120ms, color 120ms;
}
.admin-modal-close:hover { background: rgba(60,66,87,0.06); color: var(--text-primary); }
.admin-modal-close svg { width: 18px; height: 18px; }

.admin-modal-head { text-align: center; margin-bottom: 22px; }
.admin-modal-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: none;
}
.admin-modal-icon svg { width: 26px; height: 26px; }
.admin-modal h2 {
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.admin-modal-head p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-modal-error {
    display: none;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: rgba(255,59,48,0.08);
    border: 1px solid rgba(255,59,48,0.22);
    border-radius: 8px;
    color: #c0392b;
    font-size: 13px;
}
.admin-modal-error.show { display: block; }

.admin-modal-form .mac-field { margin-bottom: 12px; }
.admin-modal-form .mac-field label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.admin-modal-form .mac-input {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    border-radius: 8px;
}
.admin-modal-submit {
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    font-size: 14.5px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    transition: transform 120ms, background 120ms;
}
.admin-modal-submit:hover { transform: translateY(-1px); }
.admin-modal-submit:active { transform: translateY(0); }
.admin-modal-submit:disabled { opacity: 0.65; cursor: progress; transform: none; }

/* Tabs Entrar / Criar conta no modal de login do cliente */
.cust-modal-tabs {
    display: flex; gap: 0;
    margin: 0 0 16px;
    padding: 4px;
    background: var(--bg-base);
    border-radius: 10px;
    border: 0.5px solid var(--border);
}
.cust-modal-tabs button {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 9px 12px;
    font-size: 13.5px; font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 8px;
    transition: background 140ms, color 140ms;
}
.cust-modal-tabs button:hover { color: var(--text-primary); }
.cust-modal-tabs button.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* ====== VITRINE ====== */
.shop-section {
    max-width: var(--shop-max);
    margin: 56px auto 0;
    padding: 0 24px;
}
.shop-section h2 {
    font-size: 22px; font-weight: 700;
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 10px;
}
.shop-section h2 .ico { font-size: 28px; }

.cat-pills {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.cat-pill {
    padding: 8px 16px;
    border-radius: var(--r-pill);
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    font-size: 13px; font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 120ms;
}
.cat-pill:hover { background: var(--bg-hover); }
.cat-pill.active { background: var(--text-primary); color: var(--bg-elevated); border-color: transparent; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 28px;
}
@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card .pinfo { padding: 12px; }
    .product-card .pname { font-size: 13.5px; }
    .product-card .pprice { font-size: 15px; }
}
@media (max-width: 360px) {
    .product-grid { grid-template-columns: 1fr; }
}
.product-card {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
    border-color: var(--border-strong);
}
.product-card .thumb {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-hover);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
    position: relative;
}
.sale-flag {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--red, #ff3b30);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(255,59,48,0.35);
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}
.sale-flag-lg {
    top: 14px; left: 14px;
    font-size: 13px;
    padding: 6px 14px;
    box-shadow: 0 3px 10px rgba(255,59,48,0.4);
}
.product-gallery .main { position: relative; }

/* Preço riscado (produtos em oferta) */
.unit-compare {
    color: var(--text-tertiary);
    font-weight: 500;
    text-decoration: line-through;
    text-decoration-color: var(--red, #ff3b30);
    margin-right: 4px;
}
.price-block .total-compare {
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    text-decoration-color: var(--red, #ff3b30);
    margin-bottom: 2px;
    font-weight: 500;
}
.price-block .total-compare s { color: inherit; text-decoration: inherit; }
.product-card .thumb svg { width: 48px; height: 48px; opacity: 0.45; }
.product-card .pinfo { padding: 18px; }
.product-card .pname {
    font-weight: 600; font-size: 14.5px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .pmeta { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 8px; }
.product-card .prating {
    display: inline-flex; align-items: center; gap: 4px;
    margin: 2px 0 6px;
    font-size: 12px; color: var(--text-secondary);
}
.product-card .prating strong { color: var(--text-primary); font-weight: 600; font-size: 12px; }
.product-card .prating-count { color: var(--text-tertiary); }
.product-card .pprice {
    font-size: 16px; font-weight: 700;
    color: var(--accent);
}
.product-card .pprice .from { font-size: 11px; color: var(--text-tertiary); font-weight: 400; }

/* Variante CTA — usada no catálogo quando o preço aparece só na página do produto */
.product-card .pprice-cta {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: auto; padding-top: 4px;
}
.product-card .pprice-cta .from {
    display: block;
    font-size: 11px; color: var(--text-tertiary); font-weight: 500;
}
.product-card .pprice-cta strong {
    font-size: 14px; font-weight: 700;
    color: var(--accent);
}
.product-card:hover .pprice-cta strong { text-decoration: underline; }

.empty-state {
    padding: 60px 20px; text-align: center;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
}
.empty-state h3 { color: var(--text-primary); margin-bottom: 6px; }

/* ====== PÁGINA PRODUTO ====== */
.product-page {
    max-width: var(--shop-max);
    margin: 14px auto 4px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(440px, 1.3fr) minmax(420px, 1fr);
    gap: 56px;
    align-items: start;
}
@media (max-width: 1020px) { .product-page { grid-template-columns: 1fr; gap: 32px; margin: 16px auto 4px; } }

.product-page .product-back {
    grid-column: 1 / -1;
    margin-bottom: -24px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.product-page .product-back .back-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: background 140ms, border-color 140ms, color 140ms, transform 140ms;
}
.product-page .product-back .back-link:hover {
    background: var(--bg-base);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(-2px);
}
.product-page .product-back .back-link.back-link-cta {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.30);
    background: rgba(var(--accent-rgb), 0.06);
}
.product-page .product-back .back-link.back-link-cta:hover { transform: none; }
.product-page .product-back .back-link svg { width: 14px; height: 14px; }

/* Pill com a quantidade atual + botão "Trocar quantidade" */
.product-page .product-back .qty-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 4px 4px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.10), rgba(var(--accent-rgb), 0.04));
    border: 0.5px solid rgba(var(--accent-rgb), 0.25);
    font-size: 13px;
    color: var(--text-primary);
}
.product-page .product-back .qty-pill strong { color: var(--accent); font-weight: 800; }
.product-page .product-back .qty-pill-btn {
    background: var(--accent);
    color: var(--accent-contrast);
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: background 140ms;
}
.product-page .product-back .qty-pill-btn:hover { background: var(--accent-hover); }

.product-gallery {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    box-shadow: none;
}
.product-gallery .main {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-hover);
    background-size: contain; background-position: center; background-repeat: no-repeat;
    border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
}
.product-gallery .main svg { width: 80px; height: 80px; opacity: 0.5; }
.product-gallery .thumbs {
    display: flex; gap: 8px; margin-top: 12px;
    overflow-x: auto;
}
.product-gallery .thumbs .thumb {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    background-size: cover; background-position: center;
    background-color: var(--bg-hover);
    border: 1.5px solid transparent;
    cursor: pointer;
}
.product-gallery .thumbs .thumb.active { border-color: var(--accent); }

.product-detail h1 {
    font-size: 28px; font-weight: 700;
    line-height: 1.2; margin-bottom: 6px;
}
.product-detail .ptag { font-size: 12px; color: var(--text-tertiary); margin-bottom: 16px; }
.product-detail .pdesc {
    font-size: 14px; color: var(--text-secondary);
    margin-bottom: 16px; line-height: 1.6;
}
.product-detail .price-block {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: none;
}
.price-block .total {
    font-size: 28px; font-weight: 700; color: var(--accent);
}
.price-block .unit { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.price-block .discount-bar {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(52,199,89,0.1);
    color: #1e7d37;
    border-radius: 8px;
    font-size: 12.5px;
    display: flex; align-items: center; gap: 6px;
}
.price-block .discount-bar svg { flex-shrink: 0; }
@media (prefers-color-scheme: dark) {
    .price-block .discount-bar { background: rgba(52,199,89,0.18); color: #6ee594; }
}

.qty-row { display: flex; gap: 10px; align-items: center; }
.qty-control {
    display: flex; align-items: center;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--r-pill);
    overflow: hidden;
}
.qty-control button {
    width: 38px; height: 38px;
    background: transparent; border: 0; cursor: pointer;
    font-size: 18px; color: var(--text-primary);
}
.qty-control button:hover { background: var(--bg-hover); }
.qty-control input {
    width: 80px; text-align: center;
    border: 0; background: transparent;
    font-size: 16px; font-weight: 600;
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.var-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.var-pill {
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-strong);
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    display: inline-flex; align-items: center; gap: 6px;
}
.var-pill .swatch {
    width: 14px; height: 14px; border-radius: 50%;
    border: 0.5px solid rgba(0,0,0,0.15);
}
.var-pill:hover { background: var(--bg-hover); }
.var-pill.active {
    border-color: var(--accent);
    background: rgba(0,122,255,0.08);
    color: var(--accent);
}

.tier-table {
    width: 100%;
    border-collapse: separate; border-spacing: 0;
    margin-top: 8px;
    font-size: 13px;
}
.tier-table th, .tier-table td {
    padding: 8px 12px;
    border-bottom: 0.5px solid var(--divider);
    text-align: left;
}
.tier-table th { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
.tier-table .applied { color: var(--green); font-weight: 600; }

.template-files {
    display: grid; gap: 8px;
    margin-top: 12px;
}
.template-files.icons-only {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 8px;
}
.tpl-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 10px;
    transition: transform 120ms, box-shadow 120ms;
    text-decoration: none;
}
.tpl-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.tpl-icon svg, .tpl-icon img { width: 40px; height: 40px; display: block; object-fit: contain; }
.tpl-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--text-primary);
    transition: background 120ms;
}
.tpl-link:hover { background: var(--bg-hover); }
.tpl-link .ico { font-size: 18px; }
.tpl-link .arrow { margin-left: auto; opacity: 0.4; }

/* Carrinho */
.cart-page {
    max-width: var(--shop-max); margin: 14px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(480px, 1.6fr) minmax(360px, 1fr);
    gap: 48px;
    align-items: start;
}
@media (max-width: 940px) { .cart-page { grid-template-columns: 1fr; gap: 24px; } }

/* Checkout — fluxo linear em coluna única; o "Resumo / Confirmação" aparece no final. */
.cart-page.checkout-page {
    max-width: var(--shop-max);
    grid-template-columns: 1fr;
    gap: 18px;
}
.cart-page.checkout-page .cart-summary { position: static; top: auto; }

.cart-list {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 22px;
    border-bottom: 0.5px solid var(--divider);
    align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb {
    width: 80px; height: 80px;
    border-radius: 10px;
    background-size: cover; background-position: center;
    background-color: var(--bg-hover);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
}
.cart-item .thumb svg { width: 32px; height: 32px; opacity: 0.45; }
.cart-item .ci-info .name { font-weight: 600; font-size: 14.5px; }
.cart-item .ci-info .meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.cart-item .ci-info .qty-line { margin-top: 8px; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.cart-item .ci-price { text-align: right; }
.cart-item .ci-price .total { font-weight: 700; font-size: 16px; color: var(--accent); }
.cart-item .ci-price .unit { font-size: 11px; color: var(--text-tertiary); }
.cart-item .remove-btn {
    background: #ff3b30; border: 0;
    color: #fff;
    cursor: pointer; font-size: 12px; font-weight: 600;
    padding: 5px 12px;
    margin-top: 8px;
    border-radius: 999px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(255,59,48,0.25);
    transition: background 120ms, transform 120ms, box-shadow 120ms;
}
.cart-item .remove-btn:hover { background: #e0322a; box-shadow: 0 2px 6px rgba(255,59,48,0.35); }
.cart-item .remove-btn:active { transform: translateY(1px); }

.cart-summary {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    position: sticky; top: 80px;
}
.cart-summary h3 { font-size: 16px; margin-bottom: 14px; }
.cart-summary .line {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}
.cart-summary .line.total {
    font-size: 18px; font-weight: 700;
    border-top: 0.5px solid var(--divider);
    margin-top: 10px; padding-top: 10px;
}
.cart-summary .delivery-note {
    margin: 12px 0;
    padding: 10px 12px;
    background: rgba(0,122,255,0.08);
    border-radius: 8px;
    font-size: 12px;
    color: var(--accent);
}
.cart-summary .mac-btn-primary { width: 100%; margin-top: 12px; padding: 12px; font-weight: 600; }

/* ====== AUTENTICAÇÃO CLIENTE ====== */
.auth-shell {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--bg-base) 0%, rgba(0,122,255,0.04) 100%);
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: none;
    padding: 36px;
}
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card p { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 12px; }
.auth-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .auth-card .row { grid-template-columns: 1fr; } }
.auth-card .terms-accept {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 16px 0 4px;
    font-size: 12.5px; color: var(--text-secondary);
    line-height: 1.5;
}
.auth-card .terms-accept input[type="checkbox"] {
    accent-color: var(--accent);
    margin-top: 2px; flex-shrink: 0;
    width: 16px; height: 16px;
}
.auth-card .terms-accept a { color: var(--accent); }
.auth-card .terms-accept a:hover { text-decoration: underline; }

/* Estilos de .pw-field foram movidos para mac.css (uso global, inclusive admin). */

/* ====== PÁGINAS JURÍDICAS / INSTITUCIONAIS ====== */
.legal-shell {
    max-width: var(--shop-max);
    margin: 14px auto 12px;
    padding: 0 24px;
}
.legal-hero {
    background: linear-gradient(135deg, #f6f9fc 0%, #f0f4ff 50%, #ede8ff 100%);
    border: 0.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 48px 48px 40px;
    margin-bottom: 36px;
}
.legal-hero .eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 8px;
}
.legal-hero h1 {
    font-size: 32px; line-height: 1.2; letter-spacing: -0.02em;
    margin: 0 0 10px; color: var(--text-primary);
}
.legal-hero p {
    color: var(--text-secondary);
    font-size: 14px; max-width: 600px;
}
.legal-hero .meta {
    margin-top: 16px;
    font-size: 12px; color: var(--text-tertiary);
    display: flex; flex-wrap: wrap; gap: 14px;
}
.legal-hero .meta strong { color: var(--text-primary); font-weight: 600; }

.legal-content {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: none;
    padding: 40px 44px;
    color: var(--text-primary);
    font-size: 14.5px; line-height: 1.7;
}
.legal-content h2 {
    font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
    margin: 36px 0 12px;
    color: var(--text-primary);
    display: flex; align-items: baseline; gap: 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .num {
    font-size: 13px; font-weight: 700;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.10);
    padding: 3px 9px; border-radius: var(--r-pill);
    letter-spacing: 0.02em;
}
.legal-content h3 {
    font-size: 15px; font-weight: 600;
    margin: 22px 0 8px;
    color: var(--text-primary);
}
.legal-content p { margin: 0 0 14px; color: var(--text-secondary); }
.legal-content ul, .legal-content ol {
    margin: 0 0 16px; padding-left: 22px;
    color: var(--text-secondary);
}
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text-primary); font-weight: 600; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
/* Botões dentro de .legal-content (blog posts CTA) — anula a regra geral acima */
.legal-content a.mac-btn { color: var(--text-primary); text-decoration: none; }
.legal-content a.mac-btn:hover { color: var(--accent); text-decoration: none; }
.legal-content a.mac-btn.mac-btn-primary { color: var(--accent-contrast); }
.legal-content a.mac-btn.mac-btn-primary:hover { color: #fff; }
.legal-content a.mac-btn.mac-btn-ghost { color: var(--text-secondary); }
.legal-content a.mac-btn.mac-btn-ghost:hover { color: var(--text-primary); }
.legal-content .callout {
    background: rgba(var(--accent-rgb), 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 13.5px;
    color: var(--text-primary);
}
.legal-content .callout strong { color: var(--text-primary); }
.legal-content .legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 22px;
    font-size: 13px;
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.legal-content .legal-table th,
.legal-content .legal-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 0.5px solid var(--border);
    vertical-align: top;
}
.legal-content .legal-table thead th {
    background: var(--bg-base);
    font-weight: 600;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-secondary);
}
.legal-content .legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-content .toc {
    background: var(--bg-base);
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
}
.legal-content .toc h4 {
    margin: 0 0 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-tertiary);
}
.legal-content .toc ol {
    margin: 0; padding-left: 22px;
    columns: 2; column-gap: 24px;
}
.legal-content .toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-content .signature {
    margin-top: 32px; padding-top: 20px;
    border-top: 0.5px solid var(--divider);
    font-size: 12.5px; color: var(--text-tertiary);
}

/* ====== Componentes ricos para páginas institucionais ====== */
.legal-content .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.legal-content .info-card {
    background: var(--bg-base);
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 20px;
    transition: border-color 140ms, transform 140ms;
}
.legal-content .info-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.legal-content .info-card .ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--accent);
    margin-bottom: 12px;
}
.legal-content .info-card .ic svg { width: 20px; height: 20px; }
.legal-content .info-card .emoji { font-size: 26px; margin-bottom: 10px; display: block; line-height: 1; }
.legal-content .info-card h3 { font-size: 15px; margin: 0 0 6px; color: var(--text-primary); }
.legal-content .info-card p { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

.legal-content .feature-row {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0;
    border-bottom: 0.5px solid var(--divider);
}
.legal-content .feature-row:last-child { border-bottom: 0; }
.legal-content .feature-row .ic {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.legal-content .feature-row .ic svg { width: 22px; height: 22px; }
.legal-content .feature-row .ic.emoji { font-size: 24px; background: rgba(var(--accent-rgb), 0.06); }
.legal-content .feature-row .body { flex: 1; min-width: 0; }
.legal-content .feature-row h3 { font-size: 15.5px; margin: 0 0 4px; }
.legal-content .feature-row p { font-size: 13.5px; margin: 0; line-height: 1.55; }

.legal-content .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.legal-content .stat {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, rgba(var(--accent-rgb), 0.02) 100%);
    border: 0.5px solid rgba(var(--accent-rgb), 0.18);
    border-radius: var(--r-md);
    padding: 18px 16px;
    text-align: center;
}
.legal-content .stat .num {
    display: block;
    font-size: 28px; font-weight: 800; line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.legal-content .stat .lbl {
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.04em;
}

.legal-content .step-list {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 18px 0 24px;
    display: grid; gap: 14px;
}
.legal-content .step-list li {
    counter-increment: step;
    background: var(--bg-base);
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px 16px 64px;
    position: relative;
    color: var(--text-primary);
    font-size: 14px; line-height: 1.6;
}
.legal-content .step-list li::before {
    content: counter(step);
    position: absolute;
    left: 18px; top: 14px;
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.legal-content .step-list li strong { color: var(--text-primary); display: block; margin-bottom: 4px; }

.legal-content .badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--accent);
    font-size: 11px; font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.legal-content .badge.green { background: rgba(52,199,89,0.14); color: #1f7a3a; }
.legal-content .badge.gray  { background: rgba(0,0,0,0.06);   color: var(--text-secondary); }
.legal-content .badge.red   { background: rgba(255,59,48,0.10); color: #b91d18; }
.legal-content .badge.amber { background: rgba(255,159,10,0.14); color: #a35900; }

.legal-content .cover-image {
    width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 12px 0 28px;
    aspect-ratio: 21/9;
    background: var(--bg-base);
}
.legal-content .cover-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.legal-content .cta-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 28px 32px;
    margin: 28px 0 12px;
    display: grid; grid-template-columns: 1fr auto; gap: 18px;
    align-items: center;
}
.legal-content .cta-card h3 { color: #fff; margin: 0 0 4px; font-size: 18px; }
.legal-content .cta-card p  { color: rgba(255,255,255,0.92); margin: 0; font-size: 13.5px; }
.legal-content .cta-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.legal-content .cta-card .actions a {
    background: #fff; color: var(--accent);
    font-weight: 700; font-size: 13px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 120ms;
}
.legal-content .cta-card .actions a:hover { transform: translateY(-1px); text-decoration: none; }
.legal-content .cta-card .actions a.ghost {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.legal-content .icon-list {
    list-style: none;
    padding: 0; margin: 14px 0 22px;
    display: grid; gap: 10px;
}
.legal-content .icon-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 13.5px; line-height: 1.55;
}
.legal-content .icon-list li::before {
    content: '';
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(52,199,89,0.16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
}
.legal-content .icon-list.cross li::before {
    background: rgba(255,59,48,0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91d18' stroke-width='3' stroke-linecap='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center / 12px no-repeat;
}

.legal-content .quote-block {
    background: var(--bg-base);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin: 22px 0;
    font-size: 15px; line-height: 1.65;
    color: var(--text-primary);
    font-style: italic;
}
.legal-content .quote-block .author {
    display: block;
    margin-top: 10px;
    font-size: 12.5px; font-style: normal; font-weight: 600;
    color: var(--text-tertiary);
}

.legal-content .section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--accent);
    font-size: 11.5px; font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin: 28px 0 8px;
}

@media (max-width: 700px) {
    .legal-shell { padding: 0 10px; margin: 8px auto 4px; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
    .legal-hero { padding: 12px 12px 10px; border-radius: var(--r-md); margin-bottom: 8px; }
    .legal-hero h1 { font-size: 14px !important; line-height: 1.25; word-wrap: break-word; overflow-wrap: anywhere; margin: 0 0 6px; }
    .legal-hero p { font-size: 10px; line-height: 1.45; }
    .legal-hero .eyebrow { font-size: 8px; margin-bottom: 4px; }
    .legal-hero .meta { font-size: 8.5px; gap: 6px; margin-top: 8px; }
    /* base: a página inteira não pode rolar lateralmente */
    .legal-content {
        padding: 12px 12px; font-size: 10px;
        border-radius: var(--r-md);
        overflow-wrap: anywhere; word-break: break-word;
        max-width: 100%; box-sizing: border-box;
        line-height: 1.5;
    }
    .legal-content * { max-width: 100%; box-sizing: border-box; }
    .legal-content h2 {
        font-size: 11.5px !important; flex-wrap: wrap; gap: 5px;
        word-wrap: break-word; overflow-wrap: anywhere;
        margin: 16px 0 6px;
    }
    .legal-content h2 .num { font-size: 8.5px; padding: 1px 5px; }
    .legal-content h3 { font-size: 10.5px !important; margin: 10px 0 3px; }
    .legal-content p { font-size: 10px; margin: 0 0 8px; line-height: 1.5; }
    .legal-content code { font-size: 9px; word-break: break-all; }
    .legal-content a { word-break: break-word; overflow-wrap: anywhere; }

    /* TOC */
    .legal-content .toc { padding: 8px 10px; font-size: 9.5px; margin-bottom: 16px; }
    .legal-content .toc h4 { font-size: 8px; margin-bottom: 4px; }
    .legal-content .toc ol { columns: 1; padding-left: 14px; }
    .legal-content .toc li { font-size: 9.5px; margin-bottom: 2px; }

    /* Tabelas — scroll horizontal pra não rebentar a tela */
    .legal-content .legal-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 9px;
    }
    .legal-content .legal-table th,
    .legal-content .legal-table td {
        padding: 5px 7px;
        white-space: normal;
    }
    .legal-content .legal-table thead th { font-size: 8px; }

    /* Grids: 1 coluna */
    .legal-content .info-grid { grid-template-columns: 1fr; gap: 6px; margin: 10px 0 14px; }
    .legal-content .info-card { padding: 10px 12px; }
    .legal-content .info-card h3 { font-size: 10.5px !important; margin-bottom: 3px; }
    .legal-content .info-card p { font-size: 9.5px; line-height: 1.45; }
    .legal-content .info-card .ic { width: 26px; height: 26px; margin-bottom: 5px; border-radius: 7px; }
    .legal-content .info-card .ic svg { width: 13px; height: 13px; }
    .legal-content .info-card .emoji { font-size: 15px; margin-bottom: 5px; }

    /* Stats: 2 cols com números menores */
    .legal-content .stat-grid { grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 14px; }
    .legal-content .stat { padding: 10px 8px; }
    .legal-content .stat .num { font-size: 15px; margin-bottom: 2px; }
    .legal-content .stat .lbl { font-size: 7.5px; }

    /* CTA card vira coluna, botões ocupam 100% */
    .legal-content .cta-card {
        grid-template-columns: 1fr;
        padding: 14px 12px;
        gap: 8px;
        margin: 18px 0 6px;
    }
    .legal-content .cta-card h3 { font-size: 12px !important; }
    .legal-content .cta-card p { font-size: 9.5px; }
    .legal-content .cta-card .actions { width: 100%; gap: 6px; }
    .legal-content .cta-card .actions a {
        flex: 1;
        text-align: center;
        padding: 7px 10px;
        font-size: 9.5px;
    }

    /* Step list */
    .legal-content .step-list { gap: 6px; margin: 10px 0 14px; }
    .legal-content .step-list li {
        padding: 8px 10px 8px 38px;
        font-size: 9.5px; line-height: 1.45;
    }
    .legal-content .step-list li strong { font-size: 10px; margin-bottom: 2px; }
    .legal-content .step-list li::before {
        left: 8px; top: 7px;
        width: 22px; height: 22px; font-size: 9.5px;
    }

    /* Feature row */
    .legal-content .feature-row { gap: 9px; padding: 9px 0; }
    .legal-content .feature-row .ic { width: 26px; height: 26px; border-radius: 7px; }
    .legal-content .feature-row .ic svg { width: 13px; height: 13px; }
    .legal-content .feature-row .ic.emoji { font-size: 14px; }
    .legal-content .feature-row h3 { font-size: 10.5px !important; }
    .legal-content .feature-row p { font-size: 9.5px; line-height: 1.45; }

    /* Icon list */
    .legal-content .icon-list { gap: 4px; margin: 8px 0 14px; }
    .legal-content .icon-list li { font-size: 10px; gap: 6px; padding: 3px 0; line-height: 1.45; }
    .legal-content .icon-list li::before { width: 16px; height: 16px; background-size: 11px !important; }

    /* Quote block */
    .legal-content .quote-block {
        padding: 10px 12px; font-size: 10.5px;
        margin: 12px 0; border-left-width: 2px;
        line-height: 1.5;
    }
    .legal-content .quote-block .author { font-size: 9px; margin-top: 6px; }

    /* Callout */
    .legal-content .callout { padding: 8px 10px; font-size: 9.5px; margin: 12px 0; line-height: 1.5; }

    /* Section eyebrow */
    .legal-content .section-eyebrow { font-size: 8px; padding: 2px 7px; margin: 14px 0 4px; gap: 5px; }

    /* Detalhes (FAQ accordion com inline styles) */
    .legal-content details { padding: 8px 10px !important; }
    .legal-content details summary { font-size: 10.5px; }
    .legal-content details p { font-size: 9.5px; line-height: 1.5; }
    .legal-content details ul li { font-size: 9.5px; }

    /* Imagens nunca estouram */
    .legal-content img { max-width: 100%; height: auto; border-radius: var(--r-md); }

    /* Cover image */
    .legal-content .cover-image { aspect-ratio: 16/9; margin: 6px 0 12px; }

    /* Badges */
    .legal-content .badge { white-space: nowrap; font-size: 7.5px; padding: 1px 6px; gap: 3px; }

    /* Listas comuns */
    .legal-content ul, .legal-content ol { padding-left: 16px; margin: 0 0 10px; }
    .legal-content li {
        font-size: 10px; line-height: 1.5;
        word-wrap: break-word; overflow-wrap: anywhere;
        margin-bottom: 3px;
    }
    .legal-content strong { font-weight: 600; }

    /* Signature */
    .legal-content .signature { font-size: 9px; padding-top: 12px; margin-top: 18px; }

    /* Posts do blog */
    .post-meta { font-size: 8.5px !important; gap: 5px !important; margin-bottom: 10px; }
    .post-back { font-size: 9.5px; margin-bottom: 8px; }
    .post-tag { font-size: 7.5px; padding: 2px 7px; margin-bottom: 6px; }
}

@media (max-width: 380px) {
    .legal-content { padding: 12px 10px; font-size: 9.5px; }
    .legal-content h2 { font-size: 11px !important; }
    .legal-content h3 { font-size: 10px !important; }
    .legal-content p { font-size: 9.5px; }
    .legal-content .stat-grid { grid-template-columns: 1fr; }
    .legal-content .stat .num { font-size: 16px; }
    .legal-content .cta-card .actions { flex-direction: column; }
    .legal-content .cta-card .actions a { width: 100%; }
    .legal-hero h1 { font-size: 13px !important; }
    .legal-hero p { font-size: 9.5px; }
}

.auth-card .submit { width: 100%; padding: 12px; margin-top: 16px; font-weight: 600; }
.auth-card .alt {
    text-align: center; margin-top: 20px;
    font-size: 13px; color: var(--text-secondary);
}
.auth-error {
    display: none;
    padding: 10px 12px; margin-bottom: 14px;
    background: rgba(255,59,48,0.1);
    border: 0.5px solid rgba(255,59,48,0.3);
    border-radius: var(--r-sm);
    color: var(--red); font-size: 13px;
}
.auth-error.show { display: block; }

/* ====== CHECKOUT ====== */
.checkout-panel {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.checkout-panel h3 {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 0.5px solid var(--divider);
}
.address-grid { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.address-grid .full { grid-column: 1 / -1; }
.address-grid .row3 { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 10px; grid-column: 1 / -1; }
@media (max-width: 600px) {
    .address-grid { grid-template-columns: 1fr; }
    .address-grid .row3 { grid-template-columns: 1fr; }
}

.co-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 0.5px solid var(--divider);
    align-items: start;
}
.co-item:last-child { border-bottom: 0; }
.co-item .thumb {
    width: 64px; height: 64px;
    border-radius: 10px;
    background-size: cover; background-position: center;
    background-color: var(--bg-hover);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
}
.co-item .thumb svg { width: 28px; height: 28px; opacity: 0.45; }
.co-item .info .nm { font-weight: 600; font-size: 14px; }
.co-item .info .mt { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.co-item .info .total { font-weight: 700; color: var(--accent); margin-top: 4px; font-size: 14px; }

.art-slot {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-base);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    font-size: 12.5px;
    display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary);
}
.art-slot.has-art {
    border-style: solid;
    border-color: var(--green);
    background: rgba(52,199,89,0.06);
    color: var(--text-primary);
}
.art-slot .grow { flex: 1; min-width: 0; }
.art-slot .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-slot .mac-btn { padding: 4px 10px; font-size: 12px; }
.art-slot.art-faces { align-items: flex-start; }
.art-slot.art-faces .art-faces-head { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.art-slot.art-faces .art-faces-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.art-slot.art-faces .art-faces-list li {
    font-size: 12px;
    display: flex; align-items: center; gap: 6px;
    color: var(--text-secondary);
}
.art-slot.art-faces .art-faces-list .ok { color: var(--green); font-weight: 700; }
.art-slot.art-faces .art-faces-list .warn { color: var(--orange); font-weight: 700; }
.art-slot.art-faces .art-faces-list .art-name { color: var(--text-primary); }
.art-slot.art-faces .art-faces-list .art-pending { color: var(--orange); }
.art-slot.art-faces .art-faces-list .btn-mini { padding: 2px 8px; font-size: 11px; min-height: 0; margin-left: auto; }

/* Detalhe do pedido — edição de arte por face */
.btn-mini { padding: 4px 10px; font-size: 11.5px; min-height: 0; }
.order-art-line {
    margin-top: 6px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 12.5px;
}
.order-art-line.ok    { color: var(--green); }
.order-art-line.warn  { color: var(--orange); }
.order-art-line .ok-mark, .order-art-line .warn-mark { font-weight: 700; }
.order-art-line .art-name-link { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.order-art-line .mac-btn { margin-left: auto; }
.art-faces-list li {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 12.5px;
    padding: 4px 0;
}
.art-faces-list li .ok { color: var(--green); font-weight: 700; }
.art-faces-list li .warn { color: var(--orange); font-weight: 700; }
.art-faces-list li .btn-mini { margin-left: auto; }

.tpl-mini {
    display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap;
}
.tpl-mini a {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--bg-hover);
    color: var(--text-secondary);
}
.tpl-mini a:hover { background: var(--bg-active); color: var(--text-primary); }

.ship-list { display: flex; flex-direction: column; gap: 8px; }
.ship-opt {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 120ms, background 120ms;
}
.ship-opt:hover { border-color: var(--border-strong); }
.ship-opt.active {
    border-color: var(--accent);
    background: rgba(0,122,255,0.04);
}
.ship-opt input { accent-color: var(--accent); }
.ship-opt .grow { flex: 1; min-width: 0; }
.ship-opt .lbl { font-weight: 600; font-size: 13.5px; }
.ship-opt .eta { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }
.ship-opt .price { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.ship-opt .price.free { color: var(--green); }

/* ====== Conta do cliente ====== */
.account-shell {
    max-width: var(--shop-max);
    width: 100%;
    margin: 14px auto;
    padding: 0 24px;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .account-shell { padding: 0 16px; margin: 16px 0; }
}
/* Grid em 2 colunas para os painéis (perfil/detalhe). Os filhos diretos do
   shell que NÃO sejam o cabeçalho (tabs / botão voltar / order-detail) ganham
   grid-template-columns. Como o markup atual usa innerHTML direto, aplicamos
   no nível dos painéis específicos via classes existentes. */
.account-shell .account-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 900px) {
    .account-shell .account-grid-2col { grid-template-columns: 1fr; }
}
.account-tabs {
    display: flex; gap: 4px;
    margin-bottom: 18px;
    border-bottom: 0.5px solid var(--divider);
}
.account-tabs button {
    background: transparent; border: 0;
    padding: 10px 16px;
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.account-tabs button.active { color: var(--text-primary); border-bottom-color: var(--accent); }

.order-card {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}
.order-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.order-card .oc-thumb {
    width: 64px; height: 64px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 0.5px solid var(--border);
    background-color: var(--bg-base);
}
.order-card .oc-thumb-empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
}
.order-card .oc-body { flex: 1; min-width: 0; }
.order-card .oc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-card .oc-prod {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-card .oc-tail { text-align: right; flex-shrink: 0; }
.order-card .oc-cta { font-size: 11.5px; color: var(--text-tertiary); margin-top: 4px; }
.order-card .num { font-weight: 700; font-size: 15px; }
.order-card .meta { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.order-card .total { font-weight: 700; font-size: 17px; color: var(--accent); }
@media (max-width: 600px) {
    .order-card { gap: 12px; padding: 14px; }
    .order-card .oc-thumb { width: 52px; height: 52px; }
    .order-card .oc-tail { text-align: left; }
}

.status-badge {
    font-size: 11px; font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    text-transform: uppercase; letter-spacing: 0.03em;
    display: inline-block;
}
.status-aguardando_pagamento { background: rgba(255,149,0,0.14); color: #b35900; }
.status-aguardando_confirmacao { background: rgba(0,122,255,0.14); color: var(--accent); }
.status-pago { background: rgba(52,199,89,0.16); color: #1f7a3a; }
.status-em_producao { background: rgba(175,82,222,0.14); color: #7a1fbf; }
.status-enviado { background: rgba(0,200,200,0.14); color: #006266; }
.status-entregue { background: rgba(52,199,89,0.22); color: #155a2a; }
.status-cancelado { background: rgba(255,59,48,0.14); color: var(--red); }

/* ====== FOOTER (estilo Imprima por Menos) ====== */
.shop-footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid rgba(60,66,87,0.08);
    color: var(--text-secondary);
}

/* Bloco superior: contato + logo */
.shop-footer-top {
    border-bottom: 1px solid rgba(60,66,87,0.08);
    background: #fff;
}
.shop-footer-top-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 36px 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    flex-wrap: wrap;
}
.shop-footer .contact-cluster {
    border-left: 2px solid var(--accent);
    padding-left: 18px;
}
.shop-footer .contact-line {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--text-primary);
    margin-bottom: 6px;
}
.shop-footer .contact-line .ico {
    color: var(--accent);
    display: inline-flex;
}
.shop-footer .contact-line .ico svg { width: 18px; height: 18px; }
.shop-footer .contact-line strong { font-weight: 600; color: var(--text-primary); }
.shop-footer .contact-line a { color: var(--text-primary); }
.shop-footer .contact-line a:hover { color: var(--accent); }
.shop-footer .contact-meta {
    font-size: 12.5px; color: var(--text-tertiary);
    margin-top: 2px;
}
.shop-footer .footer-brand {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--text-primary);
}
.shop-footer .footer-brand-dot {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: none;
}
.shop-footer .footer-brand-dot svg { width: 24px; height: 24px; display: block; }
.shop-footer .footer-brand-dot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-footer .footer-brand.has-logo .footer-brand-dot {
    width: auto; height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.shop-footer .footer-brand.has-logo .footer-brand-dot img { height: 52px; width: auto; max-width: none; max-height: 52px; }
.shop-footer .footer-brand-name {
    display: flex; flex-direction: column; line-height: 1.05;
    font-size: 22px; font-weight: 800; color: var(--accent);
    letter-spacing: -0.02em;
}
.shop-footer .footer-brand-name small {
    font-size: 11px; font-weight: 500; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-top: 2px;
}

/* Grid de colunas */
.shop-footer-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 36px 64px 32px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 48px;
}
.shop-footer h4 {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin: 0 0 14px;
}
.shop-footer h4.mt { margin-top: 22px; }
.shop-footer .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shop-footer .footer-col ul a {
    color: var(--text-primary); font-size: 13.5px; font-weight: 500;
    transition: color 120ms;
}
.shop-footer .footer-col ul a:hover { color: var(--accent); }

.pay-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}
.pay-pill {
    display: inline-flex; align-items: center; justify-content: center;
    height: 22px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}
.pay-pill svg, .pay-pill img { display: block; width: auto; height: 22px; max-width: 100%; object-fit: contain; }
.seal-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.seal {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e4e8ee;
    font-size: 11.5px; font-weight: 600;
    color: var(--text-secondary);
}
.seal svg { width: 18px; height: 18px; display: block; }
.seal.seal-secure { color: #1f7a3a; border-color: rgba(52,199,89,0.30); }
.seal.seal-ssl { color: #1f7a3a; border-color: rgba(52,199,89,0.30); }

/* Linha legal (razão social, CNPJ, endereço) — acima da barra de copyright */
.shop-footer-legal {
    background: rgba(0,0,0,0.04);
    border-top: 0.5px solid var(--border);
    padding: 22px 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.shop-footer-legal-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 0 64px;
    line-height: 1.7;
    text-align: center;
}
.shop-footer-legal strong { color: var(--text-primary); font-weight: 700; }

/* Barra inferior escura */
.shop-footer-bottom {
    background: var(--footer-dark, #1f2937);
    color: rgba(255,255,255,0.78);
    padding: 32px 0;
}
.shop-footer-bottom-inner {
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    font-size: 12.5px;
}
.shop-footer-bottom .copy { color: rgba(255,255,255,0.78); }
.shop-footer-bottom .social { display: flex; gap: 10px; }
.shop-footer-bottom .social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: background 140ms;
}
.shop-footer-bottom .social a:hover { background: var(--accent); }
.shop-footer-bottom .social svg { width: 18px; height: 18px; display: block; }

@media (max-width: 1000px) {
    .shop-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 20px 24px; }
    .shop-footer .footer-payments { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .shop-footer-top-inner { padding: 28px 16px 22px; }
    .shop-footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px 22px; }
    .shop-footer-bottom-inner { padding: 0 16px; }
}

/* ====== CTA STICKY (mobile na página de produto) ======
   Aparece só ≤900px (quando o grid vira 1 coluna) e mostra
   preço + botão de "Adicionar ao carrinho" sempre visíveis. */
.product-sticky-cta {
    display: none;
}
@media (max-width: 900px) {
    .product-sticky-cta {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 90;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--bg-surface);
        backdrop-filter: saturate(180%) blur(22px);
        -webkit-backdrop-filter: saturate(180%) blur(22px);
        border-top: 0.5px solid var(--divider);
        gap: 12px; align-items: center;
        box-shadow: none;
    }
    .product-sticky-cta .price-info {
        flex-shrink: 0;
        display: flex; flex-direction: column;
        line-height: 1.2;
    }
    .product-sticky-cta .price-info .ttl {
        font-size: 17px; font-weight: 700; color: var(--accent);
    }
    .product-sticky-cta .price-info .qty {
        font-size: 11px; color: var(--text-tertiary);
        margin-top: 2px;
    }
    .product-sticky-cta .mac-btn {
        flex: 1; padding: 12px 18px; font-size: 14.5px; font-weight: 600;
        min-height: 48px;
    }
}

/* ====== Página produto: ajustes mobile ====== */
@media (max-width: 900px) {
    .product-page { gap: 22px; margin: 16px auto; }
    .product-detail h1 { font-size: 22px; }
    .product-gallery { padding: 12px; border-radius: var(--r-lg); }
    .price-block .total { font-size: 26px; }
    .product-page .product-back {
        margin-bottom: -10px;
        gap: 8px;
    }
    .product-page .product-back .back-link {
        flex: 1 1 auto; min-width: 0;
        justify-content: center;
    }
    .product-page .product-back .qty-pill {
        flex: 1 1 100%;
        justify-content: space-between;
        padding-left: 14px;
    }
}
@media (max-width: 640px) {
    .qty-control input { width: 60px; font-size: 15px; }
    .qty-control button { width: 42px; height: 42px; font-size: 20px; }
    .var-pill { padding: 9px 14px; font-size: 13px; }
}
/* ====== AI Art modal — empilhar grids em mobile ====== */
@media (max-width: 560px) {
    #ai-art-modal .admin-modal { padding: 18px 16px !important; }
    #ai-art-modal [style*="grid-template-columns:1fr 1fr"] {
        display: block !important;
    }
    #ai-art-modal [style*="grid-template-columns:1fr 1fr"] > * {
        margin-top: 10px;
    }
    #ai-art-modal [style*="grid-template-columns:1fr 1fr"] > *:first-child {
        margin-top: 0;
    }
    #ai-step-result [style*="grid-template-columns:1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    #ai-art-modal .admin-modal-head h2 { font-size: 17px !important; }
}

/* ====== Faces (múltiplas faces de personalização no produto) ====== */
.faces-stack { display: flex; flex-direction: column; gap: 16px; }
.face-card {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 14px 16px;
    box-shadow: none;
}
.face-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.face-label {
    font-weight: 600; font-size: 13.5px;
    color: var(--text-primary);
}
.face-status {
    font-size: 11.5px; font-weight: 500;
    color: var(--text-tertiary);
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--bg-hover);
}
.face-status.ok { color: var(--green); background: rgba(52,199,89,0.12); }
.face-card .mock-host {
    background: var(--bg-base);
    border-radius: var(--r-sm);
    padding: 12px;
    text-align: center;
    min-height: 80px;
}
.face-controls {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--text-secondary);
}
.face-controls .zoom-icon { font-size: 13px; }
.face-controls .zoom-slider { flex: 1; min-width: 140px; }
.face-controls .zoom-val { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.face-hint { font-size: 11.5px; color: var(--text-tertiary); margin: 6px 0 0; }
.face-hint.inline { margin: 0; }
.face-actions {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-top: 10px;
}
.face-art-name {
    font-size: 12.5px; color: var(--green);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 240px;
}
.face-art-name { display: inline-flex; align-items: center; gap: 4px; }
.face-art-name::before {
    content: '';
    width: 12px; height: 12px; flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* Prévia do arquivo de produção enviado */
.file-preview {
    display: flex; align-items: center; gap: 14px;
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-base);
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
}
.file-preview .fp-thumb {
    flex-shrink: 0;
    width: 96px; height: 96px;
    background: #fff;
    border: 0.5px solid var(--border);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
}
.file-preview .fp-thumb canvas,
.file-preview .fp-thumb img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    display: block;
}
.file-preview .fp-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.file-preview .fp-eyebrow {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 700;
    color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.file-preview .fp-name {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-preview .fp-open {
    font-size: 12px; color: var(--accent);
    text-decoration: none;
    margin-top: 4px;
    align-self: flex-start;
}
.file-preview .fp-open:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .file-preview { padding: 8px; gap: 10px; margin-top: 10px; }
    .file-preview .fp-thumb { width: 70px; height: 70px; padding: 3px; }
    .file-preview .fp-name { font-size: 11.5px; }
    .file-preview .fp-eyebrow { font-size: 9px; }
    .file-preview .fp-open { font-size: 11px; }
}

/* ====== Header: ajustes mobile ====== */
@media (max-width: 640px) {
    .shop-header-inner { padding: 4px 10px; gap: 4px; row-gap: 10px; }
    .shop-logo { font-size: 18px; }
    .shop-search input { padding: 10px 12px; font-size: 14px; }
    .shop-search button { width: 46px; }
    .shop-banner-hero { padding: 36px 20px 56px; }
    .shop-banner-hero .banner-eyebrow { margin-bottom: 14px; font-size: 11px; padding: 5px 10px; }
    .shop-banner-hero p { font-size: 15px; }
    .shop-hero { padding: 24px 20px; margin-top: 16px; border-radius: var(--r-lg); }
    .shop-hero h1 { font-size: 24px; }
    .shop-hero p { font-size: 14px; }
    .shop-section { margin-top: 24px; padding: 0 16px; }
    .shop-section h2 { font-size: 18px; }
}

/* ====== Container e cabeçalhos compartilhados das seções da home ====== */
.home-section {
    width: 100%;
    max-width: var(--shop-max);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.home-section + .home-section { margin-top: 72px; }
.home-promo-hero + .home-section,
.shop-promo-hero + .home-section { margin-top: 64px; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(60,66,87,0.10);
}
.section-head h2,
.section-head h3 {
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    display: flex; align-items: center; gap: 10px;
}
.section-head h2::before,
.section-head h3::before {
    content: '';
    width: 4px; height: 20px;
    background: var(--accent);
    border-radius: 2px;
}
.section-head .accent { color: var(--accent); }
.section-head .head-link {
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.section-head .head-link:hover { text-decoration: underline; }

/* ====== Banner de quantidade ativa (pill compacta) ====== */
.qty-banner {
    max-width: var(--shop-max);
    margin: 24px auto 0;
    padding: 0 32px;
}
@media (max-width: 1200px) { .qty-banner { padding: 0 24px; } }
.qty-banner-inner {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02));
    border: 0.5px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.qty-banner-text {
    flex: 1; min-width: 220px;
    font-size: 13.5px; line-height: 1.4;
    color: var(--text-primary);
}
.qty-banner-text .qty-val { color: var(--accent); font-weight: 800; }
@media (max-width: 700px) {
    .qty-banner { padding: 0 16px; }
    .qty-banner-inner { padding: 10px 14px; gap: 10px; }
    .qty-banner-text { font-size: 12.5px; min-width: 0; flex: 1 1 100%; }
    .qty-banner-inner .mac-btn { width: 100%; }
}

.qty-alert {
    max-width: var(--shop-max);
    margin: 14px auto 0;
    padding: 0 32px;
}
@media (max-width: 1200px) { .qty-alert { padding: 0 24px; } }
.qty-alert-inner {
    background: rgba(255,149,0,0.08);
    border: 0.5px solid rgba(255,149,0,0.30);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px; color: var(--text-primary);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.qty-alert-inner > span { flex: 1 1 220px; min-width: 0; }
.qty-alert-inner strong { color: #a8590b; }
@media (max-width: 600px) {
    .qty-alert { padding: 0 16px; }
    .qty-alert-inner { padding: 10px 12px; font-size: 12.5px; gap: 8px; }
    .qty-alert-inner .qty-alert-action { width: 100%; }
}

/* ====== Gate de quantidade: produtos embaçados + overlay com pergunta ====== */
.qty-gate { position: relative; }
.qty-gate.is-locked > #grid {
    filter: blur(6px) saturate(0.9);
    pointer-events: none;
    user-select: none;
    transform: scale(1.005); /* esconde os "halos" do blur nas bordas */
    min-height: 480px;
}
.qty-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 64px 20px 40px;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
    z-index: 5;
    pointer-events: auto;
}
.qty-gate:not(.is-locked) .qty-gate-overlay { display: none; }
.qty-gate-card {
    background: var(--bg-elevated);
    border: 0.5px solid rgba(var(--accent-rgb), 0.20);
    border-radius: 18px;
    padding: 28px 28px 24px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(var(--accent-rgb), 0.06);
    max-width: 460px; width: 100%;
    text-align: center;
}
.qty-gate-card .qty-gate-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.06));
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.qty-gate-card .qty-gate-icon svg { width: 32px; height: 32px; }
.qty-gate-card h3 {
    margin: 0 0 6px;
    font-size: 22px; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.qty-gate-card p {
    margin: 0 0 18px;
    font-size: 13.5px; line-height: 1.5;
    color: var(--text-secondary);
}
.qty-gate-card .qty-banner-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: center;
}
.qty-gate-card input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0.5px solid var(--border-strong);
    background: var(--bg-base);
    font-size: 17px; font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}
.qty-gate-card input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}
.qty-gate-card .mac-btn-primary {
    width: 100%;
    height: 48px; padding: 0 22px; font-size: 14px; font-weight: 700;
}
.qty-gate-error {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 59, 48, 0.08);
    border: 0.5px solid rgba(255, 59, 48, 0.30);
    color: #b71c1c;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.qty-gate-hints {
    margin-top: 16px;
    font-size: 11.5px; color: var(--text-tertiary);
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px;
}
.qty-gate-hints button {
    background: var(--bg-base);
    border: 0.5px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px; font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 120ms, border-color 120ms, color 120ms;
}
.qty-gate-hints button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
}
@media (max-width: 600px) {
    .qty-gate-card { padding: 22px 18px 18px; border-radius: 16px; }
    .qty-gate-card h3 { font-size: 18px; }
    .qty-gate-card p { font-size: 13px; margin-bottom: 14px; }
    .qty-gate-overlay { padding: 24px 12px; align-items: flex-start; }
    .qty-gate-card input { height: 46px; font-size: 16px; }
    .qty-gate-card .mac-btn-primary { height: 46px; padding: 0 16px; }
    .qty-gate-hints { margin-top: 14px; font-size: 11px; gap: 6px 5px; }
    .qty-gate-hints button { padding: 6px 11px; font-size: 12.5px; }
    .qty-gate-card .qty-gate-icon { width: 56px; height: 56px; margin-bottom: 10px; }
    .qty-gate-card .qty-gate-icon svg { width: 28px; height: 28px; }
    .qty-gate.is-locked > #grid { min-height: 380px; }
}
@media (max-width: 380px) {
    .qty-gate-overlay { padding: 18px 8px; }
    .qty-gate-card { padding: 20px 14px 16px; }
    .qty-gate-card h3 { font-size: 17px; }
    .qty-gate-hints { font-size: 10.5px; }
    .qty-gate-hints button { padding: 5px 9px; font-size: 12px; }
}

/* Selo de preço calculado nos cards quando há quantidade ativa */
.product-card .pprice-qty {
    display: flex; flex-direction: column; gap: 1px;
    margin-top: auto; padding-top: 4px;
}
.product-card .pprice-qty .lbl {
    font-size: 10.5px; color: var(--text-tertiary); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.product-card .pprice-qty .unit {
    font-size: 13px; font-weight: 700; color: var(--accent);
}
.product-card .pprice-qty .total {
    font-size: 11.5px; color: var(--text-secondary); font-weight: 500;
}

/* ====== HOME — NAVEGUE POR CATEGORIAS (sidebar + grid) ====== */
.home-cats {
    width: 100%;
    max-width: var(--shop-max);
    margin: 20px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}
@media (max-width: 700px)  { .home-cats { padding: 0 16px; margin-top: 14px; } }
.home-cats-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(60,66,87,0.10);
}
.home-cats-head h2 {
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    display: flex; align-items: center; gap: 10px;
}
.home-cats-head h2::before {
    content: '';
    width: 4px; height: 20px;
    background: var(--accent);
    border-radius: 2px;
}
.home-cats-head h2 .accent { color: var(--accent); }
.home-cats-head .head-link {
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.home-cats-head .head-link:hover { text-decoration: underline; }

/* Layout em coluna — barra de categorias por cima, painel de produtos full-width abaixo. */
.home-cats-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ====== Categorias como pills horizontais (substituem a sidebar) ====== */
.home-cats-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 6px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.home-cats-tabs::-webkit-scrollbar { display: none; }
.home-cats-tabs button {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13.5px; font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 140ms, color 140ms, border-color 140ms, box-shadow 140ms, transform 140ms;
}
.home-cats-tabs button .ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    color: currentColor;
}
.home-cats-tabs button .ico svg { width: 16px; height: 16px; display: block; }
.home-cats-tabs button .arrow { display: none; }
.home-cats-tabs button:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.home-cats-tabs button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.25);
}
.home-cats-tabs button.active:hover {
    background: var(--accent-hover);
    color: var(--accent-contrast);
}

/* ====== Painel principal — amplo, full-width dentro da seção ====== */
.home-cats-main {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    min-height: 280px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) {
    .home-cats-main { padding: 18px 16px; border-radius: 12px; }
}
.home-cats-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}
@media (min-width: 1400px) {
    .home-cats-grid-inner { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
}
.home-cats-grid-inner .product-card {
    background: #fff;
    border: 1px solid rgba(60,66,87,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 200ms, box-shadow 200ms, border-color 200ms;
    text-align: center;
    padding: 14px 14px 16px;
    display: flex; flex-direction: column;
}
.home-cats-grid-inner .product-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: none;
}
.home-cats-grid-inner .product-card .thumb {
    aspect-ratio: 1/1;
    background-color: #fafbfc;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 12px;
}
.home-cats-grid-inner .product-card .pname {
    font-size: 13.5px; font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.home-cats-grid-inner .product-card .pmeta {
    font-size: 11px; color: var(--text-tertiary);
    margin-bottom: 8px;
}
.home-cats-grid-inner .product-card .pprice {
    font-size: 15px; font-weight: 800;
    color: var(--accent);
    margin-top: auto;
}
.home-cats-grid-inner .product-card .pprice .from {
    display: block;
    font-size: 10.5px; color: var(--text-tertiary); font-weight: 500;
}

@media (max-width: 900px) {
    .home-cats-tabs button { padding: 8px 14px; font-size: 13px; }
    .home-cats-grid-inner { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
    .home-cats-grid-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ====== HOME — NAVEGUE POR SEGMENTOS ====== */
.home-segments {
    width: 100%;
    max-width: var(--shop-max);
    margin: 48px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}
.home-segments h3 {
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(60,66,87,0.10);
    display: flex; align-items: center; gap: 10px;
}
.home-segments h3::before {
    content: '';
    width: 4px; height: 20px;
    background: var(--accent);
    border-radius: 2px;
}
.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.segment-card {
    background: #fff;
    border: 1px solid rgba(60,66,87,0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    transition: transform 200ms, box-shadow 200ms, border-color 200ms;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    min-height: 92px;
}
.segment-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: none;
}
.segment-card .label {
    font-size: 15px; font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.segment-card .pin {
    background: var(--accent);
    color: #fff;
    font-size: 9.5px; font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}
.segment-card .seg-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #fff1f1;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 200ms, background 140ms;
}
.segment-card:hover .seg-icon {
    background: var(--accent); color: #fff;
    transform: scale(1.06);
}
.segment-card .seg-icon svg { width: 24px; height: 24px; }

/* ====== HOME — STRIP DE BENEFÍCIOS ====== */
.home-benefits {
    width: 100%;
    max-width: var(--shop-max);
    margin: 8px auto 14px;
    padding: 0 24px;
    box-sizing: border-box;
}
.benefits-grid {
    background: linear-gradient(135deg, #fafbfc 0%, #f4f6f9 100%);
    border: 1px solid rgba(60,66,87,0.08);
    border-radius: 12px;
    padding: 12px 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.benefit {
    display: flex; align-items: flex-start; gap: 14px;
}
.benefit .b-ico {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff1f1;
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.benefit .b-ico svg { width: 22px; height: 22px; }
.benefit .b-title {
    font-size: 14px; font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.benefit .b-text {
    font-size: 13px; line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 800px) {
    .benefits-grid { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
}

/* ============================================================
   HERO BANNER (slide / carousel)
   ============================================================ */
.hero-banner {
    --hb-h: 200px;
    position: relative;
    width: 100%;
    max-width: var(--shop-max);
    margin: 16px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}
.hero-banner .hb-stage {
    position: relative;
    width: 100%;
    height: var(--hb-h);
    border-radius: 16px;
    overflow: hidden;
    background: #f1f3f5;
}
.hero-banner .hb-slide {
    position: absolute; inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease;
}
.hero-banner .hb-slide.active { opacity: 1; pointer-events: auto; }
.hero-banner .hb-slide img,
.hero-banner .hb-slide picture {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.hero-banner .hb-slide picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner .hb-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: background 140ms;
    z-index: 2;
}
.hero-banner .hb-arrow:hover { background: #fff; }
.hero-banner .hb-arrow svg { width: 18px; height: 18px; }
.hero-banner .hb-prev { left: 36px; }
.hero-banner .hb-next { right: 36px; }
.hero-banner .hb-dots {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: 14px;
    display: flex; gap: 6px;
    z-index: 2;
}
.hero-banner .hb-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 0; cursor: pointer;
    transition: background 160ms, width 160ms;
}
.hero-banner .hb-dot.active { background: #fff; width: 22px; border-radius: 4px; }

.hero-carousel {
    width: 100%;
    max-width: var(--shop-max);
    margin: 16px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-carousel .hc-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / var(--ipv, 2)) - 12px);
    gap: 12px;
}
.hero-carousel .hc-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f1f3f5;
}
.hero-carousel .hc-item img,
.hero-carousel .hc-item picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel .hc-item picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel[data-ipv="1"] { --ipv: 1; }
.hero-carousel[data-ipv="2"] { --ipv: 2; }
.hero-carousel[data-ipv="3"] { --ipv: 3; }
.hero-carousel[data-ipv="4"] { --ipv: 4; }

@media (max-width: 1024px) {
    .hero-banner { --hb-h: 160px; }
}
@media (max-width: 700px) {
    .hero-banner { padding: 0 12px; --hb-h: 110px; }
    .hero-banner .hb-stage { border-radius: 12px; }
    .hero-banner .hb-prev { left: 18px; }
    .hero-banner .hb-next { right: 18px; }
    .hero-banner .hb-arrow { width: 32px; height: 32px; }
    .hero-carousel { padding: 0 12px; }
    .hero-carousel .hc-track { grid-auto-columns: 78%; }
}

/* ============================================================
   DESTAQUES (stories Instagram-like)
   ============================================================ */
.destaques {
    width: 100%;
    max-width: var(--shop-max);
    margin: 18px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}
.destaques-scroll {
    display: flex; gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.destaques-scroll::-webkit-scrollbar { display: none; }
.dq-item {
    flex-shrink: 0;
    background: transparent; border: 0; cursor: pointer;
    padding: 0;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    width: 84px;
}
.dq-ring {
    width: 84px; height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: inline-flex;
}
.dq-cover {
    flex: 1;
    border-radius: 50%;
    background: #f1f3f5 center / cover no-repeat;
    border: 2.5px solid #fff;
}
.dq-name {
    font-size: 11.5px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    max-width: 84px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .destaques { padding: 0 12px; margin-top: 12px; }
    .destaques-scroll { gap: 10px; }
    .dq-item { width: 70px; }
    .dq-ring { width: 70px; height: 70px; padding: 2.5px; }
    .dq-name { font-size: 10.5px; max-width: 70px; }
}

/* Viewer (overlay tipo stories) */
.dq-viewer {
    position: fixed; inset: 0;
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    animation: dqIn 180ms ease;
}
.dq-viewer.closing { animation: dqOut 180ms ease forwards; }
@keyframes dqIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes dqOut { from { opacity: 1; } to { opacity: 0; } }
.dq-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.dq-shell {
    position: relative;
    width: min(420px, 100vw);
    height: min(92vh, 740px);
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    color: #fff;
}
@media (max-width: 480px) {
    .dq-shell { width: 100vw; height: 100vh; border-radius: 0; }
}
.dq-progress {
    position: absolute; top: 8px; left: 12px; right: 12px;
    display: flex; gap: 4px;
    z-index: 4;
}
.dq-bar {
    flex: 1; height: 3px;
    background: rgba(255,255,255,0.30);
    border-radius: 999px; overflow: hidden;
}
.dq-bar i {
    display: block; height: 100%;
    width: 0;
    background: #fff;
    transition: width linear;
}
.dq-bar i.done { width: 100%; }
.dq-head {
    position: absolute; top: 18px; left: 0; right: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 0 12px;
    z-index: 5;
}
.dq-cap-mini {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #333 center / cover no-repeat;
    border: 2px solid #fff;
    flex-shrink: 0;
}
.dq-meta { flex: 1; min-width: 0; padding-top: 4px; }
.dq-title {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block;
}
.dq-close {
    width: 36px; height: 36px;
    background: transparent; border: 0; color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dq-close svg { width: 22px; height: 22px; }
.dq-stage {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}
.dq-photo, .dq-photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.dq-photo img { object-fit: contain; display: block; }
.dq-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.30);
    border: 0; border-radius: 50%;
    color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 160ms;
}
.dq-shell:hover .dq-nav { opacity: 1; }
.dq-nav svg { width: 22px; height: 22px; }
.dq-prev { left: 8px; }
.dq-next { right: 8px; }
.dq-foot {
    background: linear-gradient(0deg, rgba(0,0,0,0.86), transparent);
    padding: 18px 16px 16px;
    z-index: 4;
}
.dq-caption {
    font-size: 13px; color: rgba(255,255,255,0.92);
    margin: 0; line-height: 1.4;
}
.dq-link {
    display: inline-block;
    margin-bottom: 6px;
    color: #fff; font-weight: 600; font-size: 12.5px;
    background: rgba(255,255,255,0.16);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
}
.dq-link:hover { background: rgba(255,255,255,0.26); }

/* ============ Web Radio chip (no header, discreto) ============ */
.shop-radio-slot {
    position: relative;
    display: inline-flex; align-items: center;
}
.shop-radio-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 8px;
    background: var(--bg-base, rgba(0,0,0,0.04));
    border: 0.5px solid var(--border, rgba(0,0,0,0.10));
    border-radius: 999px;
    cursor: pointer;
    transition: background 120ms, border-color 120ms;
}
.shop-radio-chip:active { transform: scale(0.96); }
.shop-radio-chip:hover {
    background: var(--bg-hover, rgba(0,0,0,0.06));
    border-color: var(--border-strong, rgba(0,0,0,0.15));
}

.shop-radio-chip .rd-toggle {
    background: transparent; border: 0; padding: 4px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}
.shop-radio-chip .rd-equalizer {
    width: 14px; height: 14px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 2px;
    flex-shrink: 0;
}
.shop-radio-chip .rd-equalizer span {
    display: inline-block; width: 2.5px; background: var(--accent, #635bff);
    border-radius: 2px;
    animation: rd-eq 1s ease-in-out infinite;
}
.shop-radio-chip .rd-equalizer span:nth-child(2) { animation-delay: 0.2s; }
.shop-radio-chip .rd-equalizer span:nth-child(3) { animation-delay: 0.4s; }
.shop-radio-slot.is-muted .rd-equalizer span { animation-play-state: paused; opacity: 0.4; }
@keyframes rd-eq {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

/* Slider de volume — minimalista */
.shop-radio-chip .rd-volume {
    -webkit-appearance: none; appearance: none;
    width: 80px; height: 4px;
    background: var(--border-strong, rgba(0,0,0,0.18));
    border-radius: 2px; outline: none;
    cursor: pointer; padding: 0; margin: 0;
}
.shop-radio-chip .rd-volume::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent, #635bff);
    border: 2px solid var(--bg-elevated, #fff);
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    cursor: pointer; transition: transform 120ms;
}
.shop-radio-chip .rd-volume::-webkit-slider-thumb:hover { transform: scale(1.15); }
.shop-radio-chip .rd-volume::-moz-range-thumb {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent, #635bff);
    border: 2px solid var(--bg-elevated, #fff);
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    cursor: pointer;
}

/* Iframe do YouTube — visível em 1x1 com opacity 0 (fora da viewport o browser bloqueia autoplay). */
.shop-radio-slot .rd-yt,
.shop-radio-slot #rd-yt {
    position: fixed;
    bottom: 0; right: 0;
    width: 1px !important; height: 1px !important;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}
@media (max-width: 700px) {
    .shop-radio-chip .rd-volume { width: 60px; }
}
@media (max-width: 480px) {
    .shop-radio-chip .rd-volume { width: 50px; }
}

/* ============ Produtos relacionados (página do produto) ============ */
.related-section {
    max-width: var(--shop-max);
    margin: 14px auto 4px;
    padding: 0 24px;
}
.related-section h2 {
    font-size: 20px; font-weight: 600;
    margin: 0 0 18px;
    color: var(--text-primary);
}
.related-section h2 .small {
    font-size: 13px; font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 8px;
}
/* Carrossel horizontal — todos os relacionados em uma única linha com scroll snap.
   O carrossel contém o overflow internamente para nunca disparar scroll horizontal
   na página, mesmo com cards/botões que se estendem visualmente. */
.related-carousel {
    position: relative;
}
.related-track {
    /* grid em coluna automática permite definir a largura fixa de cada card
       em função do número desejado de cards visíveis (--related-visible). */
    --related-visible: 5;
    --related-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--related-visible) - 1) * var(--related-gap)) / var(--related-visible));
    gap: var(--related-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 14px;
    -webkit-overflow-scrolling: touch;
}
.related-track::-webkit-scrollbar { display: none; }
.related-track .product-card {
    scroll-snap-align: start;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 160ms, box-shadow 160ms, border-color 160ms;
    display: flex; flex-direction: column;
    min-width: 0;
}
/* Breakpoints — número de cards visíveis por largura */
@media (max-width: 1200px) { .related-track { --related-visible: 4; } }
@media (max-width: 900px)  { .related-track { --related-visible: 3; } }
@media (max-width: 640px)  { .related-track { --related-visible: 2; --related-gap: 12px; } }
@media (max-width: 420px)  { .related-track { --related-visible: 1.4; } }
.related-track .product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.related-track .product-card .thumb {
    aspect-ratio: 1 / 1;
    background-size: cover; background-position: center;
    background-color: var(--bg-base);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
}
.related-track .product-card .body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.related-track .product-card .pname { font-weight: 600; font-size: 13.5px; line-height: 1.3; margin-bottom: 4px; }
.related-track .product-card .pmeta { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; }
.related-track .product-card .pprice { margin-top: auto; font-size: 13px; }
.related-track .product-card .pprice .from { font-size: 10px; color: var(--text-tertiary); display: block; }
.related-track .product-card .pprice strong { font-size: 15px; font-weight: 700; color: var(--accent); }
.related-track .product-card .per-piece { font-size: 10.5px; color: var(--text-tertiary); display: block; margin-top: 2px; }

.related-nav {
    position: absolute;
    top: calc(50% - 7px); /* compensa o padding-bottom do track */
    transform: translateY(-50%);
    width: 44px; height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 3;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    transition: opacity 160ms, transform 160ms, background 160ms, color 160ms, box-shadow 160ms;
}
.related-nav.prev { left: 6px; }
.related-nav.next { right: 6px; }
.related-nav svg { width: 20px; height: 20px; display: block; }
.related-nav:hover {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}
.related-nav:active { transform: translateY(-50%) scale(0.97); }
.related-nav:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
    .related-nav { display: none; }
    .related-section { margin: 16px auto 4px; padding: 0; }
    .related-section h2 { padding: 0 16px; }
    .related-track { padding-left: 16px; padding-right: 16px; }
}

/* ============ Modal de confirmação ao adicionar ao carrinho ============ */
.cart-added-backdrop {
    position: fixed; inset: 0; z-index: 11000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 200ms;
}
.cart-added-backdrop.show { opacity: 1; }

.cart-added-modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    width: 100%; max-width: 460px;
    padding: 28px 26px 24px;
    transform: scale(0.95) translateY(8px);
    transition: transform 240ms cubic-bezier(.16,1,.3,1);
    text-align: center;
}
.cart-added-backdrop.show .cart-added-modal { transform: scale(1) translateY(0); }

.cart-added-close {
    position: absolute; top: 10px; right: 12px;
    background: transparent; border: 0;
    font-size: 28px; line-height: 1; color: var(--text-tertiary);
    cursor: pointer; padding: 4px 10px; border-radius: 8px;
}
.cart-added-close:hover { color: var(--text-primary); background: var(--bg-base); }

.cart-added-icon {
    color: #30d158;
    margin: 0 auto 12px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(48,209,88,0.12);
    border-radius: 50%;
    animation: cartAddedPop 360ms cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cartAddedPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.cart-added-title {
    font-size: 20px; font-weight: 700;
    margin: 0 0 18px; color: var(--text-primary);
}

.cart-added-card {
    display: flex; gap: 14px; align-items: center;
    text-align: left;
    background: var(--bg-base);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}
.cart-added-thumb {
    width: 64px; height: 64px;
    border-radius: 10px;
    background-size: cover; background-position: center;
    background-color: var(--bg-hover);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
}
.cart-added-thumb.empty svg { width: 28px; height: 28px; opacity: 0.5; }
.cart-added-info { flex: 1; min-width: 0; }
.cart-added-name {
    font-weight: 600; font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-added-meta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.cart-added-var { display: inline-block; }
.cart-added-extras, .cart-added-designs { font-size: 11.5px; color: var(--text-secondary); margin-top: 3px; }
.cart-added-qty { font-size: 13px; color: var(--text-primary); margin-top: 4px; }

.cart-added-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.cart-added-actions .mac-btn { padding: 11px 14px; font-size: 13.5px; font-weight: 500; }
.cart-added-actions .mac-btn-primary { font-weight: 600; }
@media (max-width: 480px) {
    .cart-added-actions { grid-template-columns: 1fr; }
    .cart-added-modal { padding: 24px 20px 20px; }
}

/* ============ PDF preview card (gabarito) ============ */
.pdf-preview-card {
    display: flex; align-items: center; gap: 14px;
    padding: 12px;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 120ms, border-color 120ms, transform 120ms;
    margin-top: 8px;
}
.pdf-preview-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.pdf-preview-thumb {
    width: 84px; height: 110px;
    background: #fff;
    border: 0.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pdf-preview-thumb canvas { max-width: 100%; max-height: 100%; display: block; }
.pdf-preview-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
}
.pdf-preview-thumb.has-canvas .pdf-preview-fallback { display: none; }
.pdf-preview-info { flex: 1; min-width: 0; line-height: 1.35; }
.pdf-preview-info strong { display: block; font-size: 13.5px; font-weight: 600; }
.pdf-preview-info span { display: block; font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.pdf-preview-arrow { color: var(--text-tertiary); font-size: 18px; flex-shrink: 0; }

/* ============ Título do produto + botão wishlist ============ */
.product-title-row {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 4px;
}
.product-title-row h1 { flex: 1; margin: 0; }

.wishlist-btn {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-tertiary);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 120ms, background 120ms, color 120ms, border-color 120ms;
}
.wishlist-btn:hover {
    background: rgba(227, 30, 36, 0.06);
    color: #e31e24;
    border-color: rgba(227, 30, 36, 0.3);
    transform: scale(1.05);
}
.wishlist-btn.active {
    background: rgba(227, 30, 36, 0.1);
    border-color: rgba(227, 30, 36, 0.45);
    color: #e31e24;
}
.wishlist-btn.active svg { fill: #e31e24; stroke: #e31e24; }
.wishlist-btn:disabled { opacity: 0.5; cursor: progress; }

.rating-row { color: var(--text-secondary); font-size: 13px; }
.rating-row .rating-count {
    color: var(--accent); font-size: 12.5px; text-decoration: none;
}
.rating-row .rating-count:hover { text-decoration: underline; }
.rating-row .stars svg { display: block; }

/* ============ Seção de Perguntas ============ */
.extra-sections { max-width: 1200px; margin: 32px auto 0; padding: 0 20px; }
.qa-section {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}
.qa-section h2 {
    font-size: 20px; font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-primary);
}
.qa-empty {
    margin: 0; padding: 16px;
    background: var(--bg-base);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-align: center;
}

/* ============ Perguntas e Respostas ============ */
.qa-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.qa-form { background: var(--bg-base); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; border: 0.5px dashed var(--border); }
.qa-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.qa-item {
    background: var(--bg-base);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.qa-q, .qa-a { display: flex; gap: 10px; align-items: flex-start; }
.qa-a { margin-top: 10px; padding-top: 10px; border-top: 0.5px dashed var(--divider); }
.qa-bullet {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: rgba(0, 122, 255, 0.12);
    color: #0a5fcf;
}
.qa-bullet.ans { background: rgba(48, 209, 88, 0.14); color: #1f7a3a; }
.qa-q p, .qa-a p { margin: 0 0 4px; font-size: 13.5px; color: var(--text-primary); white-space: pre-wrap; line-height: 1.55; }
.qa-q small, .qa-a small { font-size: 11.5px; color: var(--text-tertiary); }

@media (max-width: 640px) {
    .qa-section { padding: 18px; }
    .product-title-row h1 { font-size: 22px; line-height: 1.2; }
    .wishlist-btn { width: 38px; height: 38px; }
}

/* ============ Lista de Desejos (conta) ============ */
.wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.wish-card {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 120ms, box-shadow 120ms;
}
.wish-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wish-thumb {
    display: flex; align-items: center; justify-content: center;
    height: 180px;
    background-color: var(--bg-base);
    background-size: cover; background-position: center;
    color: var(--text-tertiary);
    text-decoration: none;
    position: relative;
}
.wish-off {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.65); color: #fff;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}
.wish-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column; gap: 6px;
    flex: 1;
}
.wish-name {
    font-weight: 600; font-size: 14.5px;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
}
.wish-name:hover { color: var(--accent); }
.wish-meta { font-size: 12px; color: var(--text-tertiary); }
.wish-price { font-size: 13px; color: var(--text-secondary); }
.wish-price strong { color: var(--text-primary); font-weight: 700; }
.wish-actions {
    display: grid; grid-template-columns: 1fr auto; gap: 8px;
    margin-top: 8px;
}
.wish-actions .mac-btn { padding: 8px 12px; font-size: 12.5px; }
