/* ============================================================
   Template "Impacto" — vitrine moderna mobile-first
   Cores vindas de --im-* (definidas em impacto.php a partir das
   settings da loja). Nada aqui usa marca de terceiros.
   ============================================================ */

/* ---------------- GAVETA DO CLIENTE (Perfil da topbar) ---------------- */
.im-mem-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .2s; }
.im-mem-overlay.open { opacity: 1; pointer-events: auto; }
.im-mem { position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 400px; z-index: 1001; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
.im-mem.open { transform: translateX(0); }
.im-mem-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; border-bottom: 1px solid rgba(0,0,0,.07); }
.im-mem-title { font-size: 17px; font-weight: 800; color: var(--im-text, #1a1a2e); }
.im-mem-close { background: none; border: none; font-size: 18px; line-height: 1; cursor: pointer; color: #64748b; }
.im-mem-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.im-mem-loading { color: #94a3b8; font-size: 13px; padding: 24px 0; text-align: center; }
.im-mem-intro { font-size: 13px; color: #64748b; margin: 0 0 14px; }
.im-mem-form { display: flex; flex-direction: column; gap: 6px; }
.im-mem-form label { font-size: 12.5px; font-weight: 700; color: var(--im-text, #1a1a2e); margin-top: 6px; }
.im-mem-form label small { font-weight: 500; color: #94a3b8; }
.im-mem-form input { height: 44px; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 0 14px; font-size: 14px; outline: none; color: var(--im-text, #1a1a2e); }
.im-mem-form input:focus { border-color: var(--im-button, #f97316); }
.im-mem-sub { margin-top: 14px; height: 46px; border: none; border-radius: 10px; background: var(--im-button, #f97316); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.im-mem-sub:disabled { opacity: .7; cursor: default; }
.im-mem-alt { margin-top: 12px; background: none; border: none; padding: 4px 0; color: var(--im-button, #f97316); font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.im-mem-err { color: #dc2626; font-size: 12.5px; margin-top: 10px; min-height: 16px; }
.im-mem-user { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.im-mem-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--im-button, #f97316); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.im-mem-userinfo { flex: 1; min-width: 0; }
.im-mem-userinfo b { display: block; font-size: 14px; color: var(--im-text, #1a1a2e); }
.im-mem-userinfo small { font-size: 12px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.im-mem-out { background: none; border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 700; color: #64748b; cursor: pointer; }
.im-mem-subtitle { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; margin: 4px 0 10px; }
.im-mem-list { display: flex; flex-direction: column; gap: 10px; }
.im-mem-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #edf0f3; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.im-mem-thumb { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 12px; background: #f1f5f9 center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(16,24,40,.06); }
.im-mem-info { flex: 1; min-width: 0; }
.im-mem-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.35; color: var(--im-text, #1a1a2e); }
.im-mem-info small { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; font-size: 11.5px; font-weight: 700; color: #64748b; }
.im-mem-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 24px 0; }
.im-mem-dl { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--im-button, #f97316); color: #fff; font-size: 12.5px; font-weight: 800; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: filter .15s, transform .15s; }
.im-mem-dl:hover { filter: brightness(.94); transform: translateY(-1px); }
.im-mem-dl:active { transform: translateY(0); }
.im-mem-pending { background: none !important; padding: 0 !important; color: #94a3b8 !important; font-weight: 600 !important; }

.im-body * { box-sizing: border-box; }
.im-body {
    margin: 0;
    background: var(--im-bg, #fff);
    color: var(--im-text, #1a1a2e);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}

.im-shell { max-width: 880px; margin: 0 auto; padding: 16px; }

/* ---------------- TOPBAR (sticky) ---------------- */
.im-topbar {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--im-bg, #fff) 82%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.im-topbar-inner {
    max-width: 880px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: relative;
}
.im-topbar-name {
    font-size: 14px; font-weight: 800; color: var(--im-text, #1a1a2e);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; min-width: 0;
}
/* Logo na barra do topo (im_logo_pos = topbar): ocupa o vão entre o menu e o
   perfil/carrinho e se alinha pelo seletor "Alinhamento" do editor. */
.im-topbar-logo {
    flex: 1; min-width: 0; display: flex; align-items: center;
}
.im-topbar-logo-left   { justify-content: flex-start; }
.im-topbar-logo-center { justify-content: center; }
.im-topbar-logo-right  { justify-content: flex-end; }
/* "Central" precisa ancorar no centro do header, não no vão flex: os lados têm
   larguras diferentes (menu = 1 botão; perfil+carrinho = 2), então centralizar
   no vão fica deslocado. A logo é tirada do fluxo e centrada no próprio header,
   mantendo os lados fixos. */
.im-topbar-logo-center img {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(55%, calc(100% - 220px));
}
.im-topbar-logo img {
    max-height: 34px; max-width: 100%; width: auto; object-fit: contain; display: block;
}
/* Formato do logo na topbar: "Arredondado"/"Original" desenham o logo numa caixa
   (círculo ou quadrado), igual ao logo do hero. "Sem fundo" usa a regra acima. */
.im-topbar-logo img.im-topbar-logo-boxed {
    max-height: none; max-width: none;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.14);
}
.im-topbar-menu {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--im-button, #f97316);
    border: 1.5px solid rgba(var(--im-button-rgb, 249,115,22), .22);
    box-shadow: 0 1px 4px rgba(0,0,0,.06); font-size: 16px;
}
.im-topbar-menu:hover { background: rgba(var(--im-button-rgb, 249,115,22), .06); }

/* Busca na topbar (desktop). No mobile a busca continua na seção (.im-toolbar). */
.im-topbar-search { display: none; align-items: center; position: relative; flex: 1; max-width: 440px; }
.im-topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--im-button, #f97316) 70%, #888); font-size: 13px; }
.im-topbar-search input { width: 100%; height: 38px; padding: 0 14px 0 38px; border-radius: 999px; border: 1.5px solid rgba(var(--im-button-rgb, 249,115,22), .2); background: #fff; font-size: 13px; color: var(--im-text, #1a1a2e); outline: none; }
.im-topbar-search input:focus { border-color: var(--im-button, #f97316); }
@media (min-width: 769px) {
    .im-topbar-search { display: flex; }
    .im-topbar-name { flex: 0 1 auto; }
    .im-topbar-logo { flex: 0 1 auto; }
    /* Desktop: a busca já está na topbar — some a barra solta da seção. */
    .im-toolbar { display: none; }
}

/* ---------------- GAVETA DE CATEGORIAS (hambúrguer) ---------------- */
.im-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1100;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.im-menu-overlay.open { opacity: 1; pointer-events: auto; }
.im-menu {
    position: fixed; top: 0; left: 0; height: 100%; width: 300px; max-width: 84vw;
    background: #fff; z-index: 1101; transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,.12); display: flex; flex-direction: column;
}
.im-menu.open { transform: translateX(0); }
.im-menu-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; background: var(--im-button, #f97316);
}
.im-menu-title { font-size: 16px; font-weight: 800; color: #fff; }
.im-menu-close { background: none; border: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: .9; }
.im-menu-close:hover { opacity: 1; }
.im-menu-list { flex: 1; overflow-y: auto; padding: 6px 0; }
.im-menu-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left; padding: 15px 20px; border: none; background: none;
    font-size: 13px; font-weight: 500; color: var(--im-text, #1a1a2e); cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.im-menu-item:hover { background: rgba(var(--im-button-rgb, 249,115,22), .06); }
.im-menu-ico {
    width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    color: var(--im-button, #f97316);
}
.im-menu-ico img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; display: block; }
.im-menu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-menu-chev { color: #bbb; font-size: 16px; font-weight: 300; }

/* ---------------- PERFIL (botão da topbar) ---------------- */
.im-topbar-profile {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--im-button, #f97316);
    border: 1.5px solid rgba(var(--im-button-rgb, 249,115,22), .22);
    box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: .15s;
}
.im-topbar-profile:hover { background: rgba(var(--im-button-rgb, 249,115,22), .06); }
.im-topbar-profile-ico { width: 18px; height: 18px; fill: currentColor; display: block; }
.im-topbar-cart {
    position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--im-button, #f97316);
    border: 1.5px solid rgba(var(--im-button-rgb, 249,115,22), .22);
    box-shadow: 0 1px 4px rgba(0,0,0,.06); font-size: 16px;
}
.im-topbar-cart:hover { background: rgba(var(--im-button-rgb, 249,115,22), .06); }

/* ---------------- HERO ---------------- */
.im-hero { position: relative; margin-bottom: 54px; }
.im-hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--im-button, #f97316), color-mix(in srgb, var(--im-button, #f97316) 55%, #000));
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 22px rgba(0,0,0,.10);
}

/* Carrossel de banners (hero) */
.im-hero-carousel { position: relative; }
.im-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.im-slide.active { opacity: 1; }
.im-hero-carousel:not(.im-hero-fade) .im-slide { transition: none; }
.im-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Exibição por dispositivo (banner_display: both/desktop/mobile) */
@media (max-width: 768px) { .im-slide[data-display="desktop"] { display: none; } }
@media (min-width: 769px) { .im-slide[data-display="mobile"]  { display: none; } }
.im-hero-dots {
    position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
    display: flex; gap: 6px; justify-content: center;
}
.im-hero-dot {
    width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,.55); cursor: pointer; transition: .2s;
}
.im-hero-dot.active { background: #fff; width: 18px; border-radius: 4px; }

.im-hero-banner-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 20px; opacity: .92;
}
.im-hero-logo {
    position: absolute; left: 16px; bottom: -44px;
    width: 88px; height: 88px; border-radius: 50%;
    border: 4px solid #fff; overflow: hidden;
    background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.16);
    display: flex; align-items: center; justify-content: center;
}
.im-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.im-hero-logo-fallback {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--im-button, #f97316), color-mix(in srgb, var(--im-button, #f97316) 60%, #111));
    color: #fff; font-size: 30px;
}
/* Modo "logo livre" (logo_shape = none): sem fundo, borda nem formato — PNG transparente */
.im-hero-logo.im-hero-logo-bare {
    width: auto; height: auto; background: transparent; border: none; box-shadow: none;
    border-radius: 0; overflow: visible; align-items: flex-end; justify-content: flex-start;
}
.im-hero-logo.im-hero-logo-bare img { width: auto; height: auto; object-fit: contain; display: block; }
/* Posição do logo (Impacto): "debaixo do banner" — flui abaixo do hero */
.im-hero-logo.im-hero-logo-static { position: static; left: auto; right: auto; bottom: auto; }
.im-hero.im-hero-logo-below { margin-bottom: 18px; }
.im-logo-below-wrap { padding: 0 16px; }

/* ---------------- INFO DA LOJA ---------------- */
.im-store {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; padding: 6px 2px 4px; margin-top: 6px;
}
.im-store-main { min-width: 0; flex: 1; }
.im-store-name { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.im-store-desc { margin: 6px 0 0; font-size: 13px; line-height: 1.5; opacity: .72; max-width: 520px; }
/* Alinhamento do bloco da loja (opção no painel "Loja info") */
.im-store.im-store-center { flex-direction: column; align-items: center; }
.im-store.im-store-center .im-store-main { text-align: center; width: 100%; }
.im-store.im-store-center .im-store-desc { max-width: 640px; margin-left: auto; margin-right: auto; }
.im-store.im-store-right { flex-direction: column; align-items: flex-end; }
.im-store.im-store-right .im-store-main { text-align: right; width: 100%; }

/* Avaliação da loja (nota + nº) — painel "Informações da loja" */
.im-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.im-store.im-store-center .im-rating { justify-content: center; }
.im-store.im-store-right  .im-rating { justify-content: flex-end; }
.im-rating-stars { display: inline-flex; gap: 2px; font-size: 14px; color: #FFD700; }
.im-rating-stars .im-star-off { color: #ddd; }
.im-rating-text { font-size: 13px; font-weight: 600; }
.im-rating-count { opacity: .6; font-weight: 500; }

/* Faixa de entrega (Status / Pedido mín. / Taxa / Tempo) */
.im-delivery { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.im-store.im-store-center .im-delivery { justify-content: center; }
.im-store.im-store-right  .im-delivery { justify-content: flex-end; }
.im-delivery-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.im-delivery-item i { color: var(--im-button, #f97316); }
.im-delivery-label { opacity: .6; }
.im-wa-btn {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    padding: 10px 16px; border-radius: 999px; text-decoration: none;
    background: #25D366; color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(37,211,102,.35);
}
.im-wa-btn i { font-size: 15px; }

/* ---------------- SELOS ---------------- */
.im-selos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .im-selos { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.im-selo {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 12px 16px; border-radius: 18px; text-align: center;
    background: color-mix(in srgb, var(--im-button, #f97316) 4%, var(--im-bg, #fff));
    border: 1px solid rgba(var(--im-button-rgb, 249,115,22), .16);
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 22px -16px rgba(16,24,40,.35);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.im-selo::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--im-button, #f97316) 35%, #fff),
        var(--im-button, #f97316));
}
.im-selo:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--im-button-rgb, 249,115,22), .34);
    box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 18px 30px -16px rgba(var(--im-button-rgb, 249,115,22), .75);
}
.im-selo-ico {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0;
    color: var(--im-button, #f97316);
    background: rgba(var(--im-button-rgb, 249,115,22), .1);
    box-shadow: inset 0 0 0 1px rgba(var(--im-button-rgb, 249,115,22), .18);
}
.im-selo-ico svg { width: 26px; height: 26px; display: block; }
.im-selo-emoji { font-size: 24px; line-height: 1; }
.im-selo-txt { display: flex; flex-direction: column; gap: 3px; }
.im-selo-title { font-size: 12px; font-weight: 800; line-height: 1.25; letter-spacing: .2px; text-transform: uppercase; color: var(--im-text, #1a1a2e); }
.im-selo-desc { font-size: 11px; line-height: 1.35; color: var(--im-text, #1a1a2e); opacity: .6; }

/* ---------------- CUPONS ---------------- */
.im-coupons {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin: 16px auto 4px; padding: 10px 16px; width: fit-content; max-width: 100%;
    border-radius: 999px; font-size: 12px; font-weight: 600;
    background: rgba(var(--im-button-rgb, 249,115,22), .08);
    border: 1.5px dashed var(--im-button, #f97316);
    color: var(--im-text, #1a1a2e);
}
.im-coupon-code { cursor: pointer; text-decoration: underline dotted; }
.im-coupon-code:hover { opacity: .75; }

/* ---------------- TOOLBAR / BUSCA ---------------- */
.im-toolbar { display: flex; gap: 8px; margin-top: 16px; }
.im-search { position: relative; flex: 1; }
.im-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--im-button, #f97316) 70%, #888); font-size: 14px; }
.im-search input {
    width: 100%; padding: 13px 14px 13px 40px; border-radius: 16px; font-size: 14px;
    background: #fff; color: var(--im-text, #1a1a2e);
    border: 1px solid rgba(var(--im-button-rgb, 249,115,22), .18); box-shadow: 0 1px 4px rgba(0,0,0,.04);
    outline: none;
}
.im-search input:focus { border-color: var(--im-button, #f97316); }
.im-cart-btn {
    position: relative; width: 48px; flex-shrink: 0; border-radius: 16px; cursor: pointer;
    background: #fff; border: 1px solid rgba(var(--im-button-rgb, 249,115,22), .18);
    color: var(--im-button, #f97316); font-size: 17px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.im-cart-count {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--im-button, #f97316); color: var(--im-button-tx, #fff);
    font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center;
}
.im-cart-count.show { display: inline-flex; }

/* ---------------- CATEGORIAS ---------------- */
.im-cats {
    display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.im-cats::-webkit-scrollbar { display: none; }
.im-cat {
    flex-shrink: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
    font-size: 12px; font-weight: 700; transition: .15s;
    background: #fff; color: var(--im-text, #1a1a2e);
    border: 1px solid rgba(var(--im-button-rgb, 249,115,22), .18); box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.im-cat.active { background: var(--im-button, #f97316); color: var(--im-button-tx, #fff); border-color: var(--im-button, #f97316); }

/* Cabeçalho e fundo da seção (painel "Categorias" do VE2) */
.im-cats-section { margin: 2px 0; }
.im-cats-section-bg { padding: 20px 14px; border-radius: 18px; }
.im-cats-head { margin: 16px 2px 1px; }
.im-cats-title { margin: 0 0 4px; font-weight: 800; letter-spacing: -.3px; color: var(--im-text, #1a1a2e); }
.im-cats-sub { margin: 0 0 6px; font-size: 14px; font-weight: 400; opacity: .55; color: var(--im-text, #1a1a2e); }

/* Variante COM mídia: círculo com a foto da categoria + nome abaixo (opção no VE2) */
/* --im-cat-d = diâmetro do avatar; sobrescrito por .im-cats-icons-* (painel do VE2) */
.im-cats-media { gap: 12px; padding: 14px 2px 8px; --im-cat-d: 60px; --im-cat-ico: 20px; --im-cat-label: 11px; }
.im-cats-icons-small  { --im-cat-d: 44px; --im-cat-ico: 15px; --im-cat-label: 10px; }
.im-cats-icons-large  { --im-cat-d: 76px; --im-cat-ico: 26px; --im-cat-label: 12.5px; }
.im-cat-photo {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: calc(var(--im-cat-d, 60px) + 8px); padding: 0; background: transparent;
    border: none; box-shadow: none; border-radius: 0; white-space: normal;
}
.im-cat-photo .im-cat-circle {
    width: var(--im-cat-d, 60px); height: var(--im-cat-d, 60px); border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #f3f4f6; color: #9ca3af; font-size: var(--im-cat-ico, 20px);
    border: 2px solid rgba(var(--im-button-rgb, 249,115,22), .18); transition: .15s;
}
.im-cat-photo .im-cat-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-cat-photo .im-cat-label {
    font-size: var(--im-cat-label, 11px); font-weight: 700; color: var(--im-text, #1a1a2e); text-align: center;
    max-width: calc(var(--im-cat-d, 60px) + 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Formato quadrado (categories_shape = square) */
.im-cats-shape-square .im-cat-circle { border-radius: calc(var(--im-cat-d, 60px) * .16); }
.im-cat-photo.active { background: transparent; color: inherit; border: none; }
.im-cat-photo.active .im-cat-circle { border-color: var(--im-button, #f97316); }
.im-cat-photo.active .im-cat-label { color: var(--im-button, #f97316); }

/* ---------------- BANNERS PROMOCIONAIS ---------------- */
.im-promo { margin: 18px 0; }
.im-promo-title { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: var(--im-text, #1a1a2e); }
.im-promo-carousel { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: #f3f4f6; }
.im-promo-slide { display: none; width: 100%; line-height: 0; }
.im-promo-slide.active { display: block; }
.im-promo-slide[data-display="mobile"] { display: none; }
@media (max-width: 768px) {
    .im-promo-slide[data-display="desktop"] { display: none; }
    .im-promo-slide[data-display="mobile"].active { display: block; }
}
.im-promo-slide a { display: block; line-height: 0; }
.im-promo-slide img { display: block; width: 100%; height: auto; }
.im-promo-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.im-promo-dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(0,0,0,.18); transition: all .25s; }
.im-promo-dot.active { background: #fff; transform: scale(1.15); }

/* ---------------- BANNERS DE NOVIDADES ---------------- */
.im-news { margin: 18px 0; }
.im-news-title { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: var(--im-text, #1a1a2e); }
.im-news-wrap { display: grid; gap: 16px; }
.im-news-wrap.is-carousel { display: flex; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.im-news-wrap.is-carousel::-webkit-scrollbar { display: none; }
.im-news-wrap.is-carousel .im-news-item { flex: 0 0 auto; min-width: 280px; }
.im-news-item { border-radius: 14px; overflow: hidden; background: #f3f4f6; }
.im-news-item[data-display="mobile"] { display: none; }
@media (max-width: 768px) {
    .im-news-item[data-display="desktop"] { display: none; }
    .im-news-item[data-display="mobile"] { display: block; }
    .im-news-wrap:not(.is-carousel) { grid-template-columns: 1fr !important; }
}

/* ---------------- VITRINE (carrossel horizontal) ---------------- */
.im-vitrine { margin-top: 24px; }
.im-vitrine-bg { padding: 20px 14px; border-radius: 18px; }
.im-vitrine-head { text-align: center; margin: 0 0 12px; }
.im-vitrine-title { margin: 0; font-weight: 800; }

/* Countdown da vitrine */
.im-vitrine-cd {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 0 0 12px; font-size: 12px; font-weight: 800; color: var(--im-button, #f97316);
}
.im-vitrine-cd .im-cd {
    display: inline-flex; align-items: baseline; gap: 1px; padding: 2px 6px; border-radius: 8px;
    background: rgba(var(--im-button-rgb, 249,115,22), .12); color: var(--im-button, #f97316);
}
.im-vitrine-cd .im-cd b { font-size: 13px; font-weight: 900; }
.im-vitrine-cd .im-cd i { font-style: normal; font-size: 9px; opacity: .7; }

.im-vitrine-swiper { position: relative; }
.im-vitrine-scroll {
    display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px;
    scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none;
}
.im-vitrine-scroll::-webkit-scrollbar { display: none; }
/* Mesmas colunas da grade (2 / 3 / 4 visíveis) para o card ficar idêntico */
.im-vcard { flex: 0 0 calc(50% - 6px); width: calc(50% - 6px); scroll-snap-align: start; }
@media (min-width: 640px)  { .im-vcard { flex-basis: calc(33.333% - 8px); width: calc(33.333% - 8px); } }
@media (min-width: 1024px) { .im-vcard { flex-basis: calc(25% - 9px);    width: calc(25% - 9px); } }

/* Se os cards não preenchem a linha, centraliza em vez de deixar espaço só à direita */
@media (max-width: 639px)  { .im-vitrine-scroll.im-d-cnt-1 { justify-content: center; } }
@media (min-width: 640px) and (max-width: 1023px) {
    .im-vitrine-scroll.im-d-cnt-1, .im-vitrine-scroll.im-d-cnt-2 { justify-content: center; }
}
@media (min-width: 1024px) {
    .im-vitrine-scroll.im-d-cnt-1, .im-vitrine-scroll.im-d-cnt-2, .im-vitrine-scroll.im-d-cnt-3 { justify-content: center; }
}

/* Setas de navegação do carrossel */
.im-vitrine-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: #fff; color: var(--im-button, #f97316); font-size: 13px;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    display: flex; align-items: center; justify-content: center; transition: opacity .15s;
}
.im-vitrine-nav:hover { opacity: .85; }
.im-vitrine-prev { left: -6px; }
.im-vitrine-next { right: -6px; }
@media (max-width: 560px) { .im-vitrine-nav { display: none; } }

/* Efeito dos cards de produto (vitrine + grade) */
.im-card { transition: transform .2s ease, box-shadow .2s ease; }
.im-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.13); }
.im-card-media img { transition: transform .3s ease; }
.im-card:hover .im-card-media img { transform: scale(1.05); }

/* ---------------- GRADE ---------------- */
.im-products-head { text-align: center; margin: 22px 0 14px; }
.im-kicker { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--im-button, #f97316); }
.im-products-title { margin: 0; font-size: 20px; font-weight: 800; }
.im-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .im-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .im-grid { grid-template-columns: repeat(4, 1fr); } }
.im-empty { grid-column: 1 / -1; text-align: center; opacity: .6; padding: 30px 0; }
/* Paginação da grade */
.im-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.im-pager:empty { display: none; }
.im-page {
    min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(0,0,0,.1); background: #fff; color: var(--im-text, #1a1a2e);
    font-size: 13px; font-weight: 700; transition: .15s;
}
.im-page:hover { border-color: var(--im-button, #f97316); color: var(--im-button, #f97316); }
.im-page.active { background: var(--im-button, #f97316); border-color: var(--im-button, #f97316); color: var(--im-button-tx, #fff); }

.im-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.im-card-media {
    position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: #fff;
}
.im-card-media img { width: 100%; height: 100%; object-fit: cover; }
.im-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(var(--im-button-rgb, 249,115,22), .35); font-size: 32px; background: #f8f9fa; }
.im-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
    background: var(--im-button, #f97316); color: var(--im-button-tx, #fff); box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.im-badge-discount { background: #e11d48; color: #fff; }
.im-badge-out { left: auto; right: 8px; background: #334155; color: #fff; }

.im-card-body { display: flex; flex-direction: column; flex: 1; padding: 10px; }
.im-card-name { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.im-card-price {
    display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
    margin: 8px 0 0; padding: 5px 8px; background: linear-gradient(135deg,#f9fafb 0%,#f3f4f6 100%);
    border-radius: 8px; min-height: 40px; width: 100%; box-sizing: border-box;
}
.im-price-old { font-size: 12px; color: #fff; text-decoration: line-through; font-weight: 600; background: #dc2626; padding: 1px 8px; border-radius: 4px; display: inline-block; }
.im-price { font-size: 18px; font-weight: 800; color: var(--im-button, #f97316); }
.im-installments { flex-basis: 100%; text-align: center; font-size: 10px; color: #2563eb; font-weight: 600; }
.im-add {
    margin-top: auto; width: 100%; padding: 9px; border: none; border-radius: 999px; cursor: pointer;
    font-size: 12px; font-weight: 800; color: var(--im-button-tx, #fff); margin-top: 10px;
    background: linear-gradient(135deg, var(--im-button, #f97316), color-mix(in srgb, var(--im-button, #f97316) 55%, #000));
    transition: opacity .15s;
}
.im-add:hover { opacity: .9; }
.im-add[disabled] { background: #cbd5e1; color: #64748b; cursor: not-allowed; }

/* Efeito "pulsar" no botão de compra (opção do painel Produtos em destaque) */
@keyframes imBtnPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(var(--im-button-rgb, 249,115,22), .45); }
    50%      { transform: scale(1.045); box-shadow: 0 0 0 9px rgba(var(--im-button-rgb, 249,115,22), 0); }
}
.im-add.im-pulse { animation: imBtnPulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .im-add.im-pulse { animation: none; } }
.im-detail-wa {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 10px; padding: 12px; border-radius: 999px; text-decoration: none;
    font-size: 13px; font-weight: 800; color: #fff; background: #25d366;
}
.im-detail-wa:hover { opacity: .9; color: #fff; }

/* ---------------- BLOCOS (como comprar / depoimentos / redes) ---------------- */
.im-block { margin-top: 34px; }
.im-video { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 8px 28px rgba(0,0,0,.15); }
.im-video iframe, .im-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; }
.im-video.im-video-native { padding-bottom: 0; height: auto; }
.im-video.im-video-native video { position: static; width: 100%; height: auto; }

/* Prévia: botão de play por cima do primeiro quadro */
.im-video-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 66px; height: 66px; border: none; border-radius: 50%; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55); color: #fff; font-size: 21px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    transition: transform .18s, opacity .2s, background .18s;
}
.im-video-play i { transform: translateX(2px); }
.im-video-play:hover { background: rgba(0,0,0,.72); transform: translate(-50%, -50%) scale(1.06); }
.im-video-play.is-hidden { opacity: 0; pointer-events: none; }

/* Selo "X pessoas assistindo agora" */
.im-video-live {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(15,23,42,.75); color: #fff;
    font-size: 11.5px; font-weight: 700; letter-spacing: .1px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    pointer-events: none; white-space: nowrap;
}
.im-video-live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #ef4444; flex: none;
    animation: imLivePulse 1.6s infinite;
}
.im-video-live-n { display: inline-block; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.im-video-live-n.is-bump { animation: imLiveBump .45s ease; }
@keyframes imLivePulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.65); }
    70%  { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes imLiveBump {
    50% { transform: scale(1.28); }
}
.im-block-head { text-align: center; margin-bottom: 16px; }
.im-block-head h2 { margin: 6px 0 0; font-size: 20px; font-weight: 800; }
.im-chip {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: rgba(var(--im-button-rgb, 249,115,22), .1); color: var(--im-button, #f97316);
}

.im-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.im-step {
    position: relative; flex: 0 1 calc(50% - 6px); max-width: 240px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 22px 14px 16px; border-radius: 18px; text-align: center;
    background: color-mix(in srgb, var(--im-button, #f97316) 4%, var(--im-bg, #fff));
    border: 1px solid rgba(var(--im-button-rgb, 249,115,22), .16);
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 22px -16px rgba(16,24,40,.35);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.im-step:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--im-button-rgb, 249,115,22), .34);
    box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 18px 30px -16px rgba(var(--im-button-rgb, 249,115,22), .55);
}
.im-step-num {
    position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    background: var(--im-button, #f97316); color: var(--im-button-tx, #fff); font-size: 11px; font-weight: 800;
    box-shadow: 0 4px 10px -3px rgba(var(--im-button-rgb, 249,115,22), .8);
}
.im-step-emoji {
    display: flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 50%; font-size: 25px; line-height: 1; flex-shrink: 0;
    background: rgba(var(--im-button-rgb, 249,115,22), .1);
    box-shadow: inset 0 0 0 1px rgba(var(--im-button-rgb, 249,115,22), .16);
}
.im-step-title { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--im-text, #1a1a2e); }
.im-step-desc { margin: 0; font-size: 11px; opacity: .6; line-height: 1.4; }
@media (min-width: 640px) {
    .im-steps { gap: 14px; }
    .im-step { flex: 0 1 200px; }
}

.im-payments {
    text-align: center; padding: 20px 16px 18px; border-radius: 18px;
    background: color-mix(in srgb, var(--im-button, #f97316) 4%, var(--im-bg, #fff));
    border: 1px solid rgba(var(--im-button-rgb, 249,115,22), .16);
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 22px -16px rgba(16,24,40,.35);
}
.im-pay-label {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; color: var(--im-button, #f97316);
}
.im-pay-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.im-pay {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 7px;
    border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--im-text, #1a1a2e);
    background: var(--im-bg, #fff);
    border: 1px solid rgba(16,24,40,.08);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.im-pay > span {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 50%; font-size: 14px; line-height: 1;
    background: rgba(var(--im-button-rgb, 249,115,22), .1);
}
.im-pay:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--im-button-rgb, 249,115,22), .3);
    box-shadow: 0 10px 18px -12px rgba(16,24,40,.65);
}

.im-depos { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .im-depos { grid-template-columns: repeat(2, 1fr); } }
.im-depo {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 16px 16px 18px; border-radius: 18px;
    background: var(--im-bg, #fff);
    border: 1px solid rgba(16,24,40,.08);
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 22px -16px rgba(16,24,40,.35);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.im-depo::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg,
        var(--im-button, #f97316),
        color-mix(in srgb, var(--im-button, #f97316) 20%, transparent));
}
.im-depo::after {
    content: '\201C'; position: absolute; top: 2px; right: 14px; pointer-events: none;
    font-size: 54px; line-height: 1; font-weight: 800; font-family: Georgia, serif;
    color: rgba(var(--im-button-rgb, 249,115,22), .12);
}
.im-depo:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--im-button-rgb, 249,115,22), .3);
    box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 18px 30px -16px rgba(16,24,40,.55);
}
.im-depo-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.im-depo-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; color: #fff;
    background: linear-gradient(135deg,
        var(--im-button, #f97316),
        color-mix(in srgb, var(--im-button, #f97316) 55%, #000));
    box-shadow: 0 6px 14px -6px rgba(var(--im-button-rgb, 249,115,22), .9);
}
.im-depo-name { margin: 0 0 3px; font-size: 13px; font-weight: 700; color: var(--im-text, #1a1a2e); }
.im-stars { color: #f59e0b; font-size: 11px; letter-spacing: 1px; }
.im-stars i { margin-right: 1px; }
.im-depo-text { position: relative; z-index: 1; margin: 0; font-size: 13px; line-height: 1.55; opacity: .75; }

.im-social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.im-social-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 18px 26px; border-radius: 16px; text-decoration: none; min-width: 130px;
    color: var(--im-text, #1a1a2e); border: 1px solid rgba(0,0,0,.08);
}
.im-social-card i { font-size: 30px; }
.im-social-ig { background: rgba(var(--im-button-rgb, 249,115,22), .06); }
.im-social-ig i { color: #e1306c; }
.im-social-wa { background: #ecfdf5; }
.im-social-wa i { color: #25D366; }
.im-social-name { font-size: 12px; font-weight: 800; }
.im-social-handle { font-size: 11px; opacity: .65; }

/* ---------------- RODAPÉ (mesmo visual do catálogo 2) ---------------- */
footer { background: var(--primary-color) !important; border-top: none; padding: 48px 20px 0; margin-top: 60px; color: white; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 {
    font-size: .812rem; font-weight: 700; color: var(--footer-title-color, #fff);
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: .5px;
}

.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; font-size: .75rem; color: var(--footer-text-color); }
.footer-contact li i { color: var(--footer-title-color, #fff); font-size: .875rem; width: 20px; text-align: center; opacity: .7; }
.footer-contact li a { color: var(--footer-text-color); text-decoration: none; transition: color .25s; }
.footer-contact li a:hover { color: #fff; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-icon {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .12);
    text-decoration: none; transition: all .3s ease; font-size: .812rem;
    transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); color: #fff;
}
.footer-social-icon[data-social="instagram"] { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.footer-social-icon[data-social="whatsapp"]  { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.footer-social-icon[data-social="facebook"]  { background: #1877f2; border-color: #1877f2; }
.footer-social-icon[data-social="tiktok"]    { background: #000; border-color: #333; }
.footer-social-icon[data-social="youtube"]   { background: #ff0000; border-color: #ff0000; }

.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.payment-icon {
    height: 34px; width: auto; padding: 0 10px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--footer-text-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--footer-text-color) 14%, transparent);
    transition: all .25s ease;
}
.payment-icon img { height: 22px; width: auto; max-width: 44px; object-fit: contain; }
.payment-icon:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--footer-text-color) 32%, transparent); }

.payment-seal { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.payment-seal i { font-size: 1.5rem; color: var(--footer-title-color, #fff); flex-shrink: 0; }
.payment-seal span { display: block; font-size: .688rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--footer-text-color); }
.payment-seal small { display: block; font-size: .563rem; opacity: .7; letter-spacing: 1.2px; text-transform: uppercase; color: var(--footer-text-color); margin-top: 2px; }

.footer-location {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    font-size: .75rem; color: var(--footer-text-color); padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-location i { color: var(--footer-title-color, #fff); font-size: .875rem; }
.footer-location strong { color: rgba(255, 255, 255, .9); }
.footer-bottom { text-align: center; font-size: .7rem; opacity: .75; padding: 24px 0; }
.footer-bottom .footer-powered {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
    color: var(--footer-text-color); text-decoration: none; opacity: .9; transition: opacity .2s;
}
.footer-bottom .footer-powered:hover { opacity: 1; }
.footer-powered strong { font-weight: 800; letter-spacing: .3px; }

.fc-badge {
    display: flex; align-items: center; gap: 12px;
    width: max-content; margin: 26px auto 0;
    padding: 8px 18px 8px 8px;
    border-radius: 999px; text-decoration: none; background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
    -webkit-tap-highlight-color: transparent;
}
.fc-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .24); }
.fc-badge-logo {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: #ff6b35; color: #fff; font-size: .938rem; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.fc-badge-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.15; }
.fc-badge-label { font-size: .562rem; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #6b7280 !important; }
.fc-badge-brand { font-size: .78rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #ff6b35 !important; }
.fc-badge-arrow { font-size: .625rem; color: #ff6b35 !important; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.fc-badge:hover .fc-badge-arrow { transform: translateX(3px); }

footer p, footer span, footer a, footer .footer-contact li { color: var(--footer-text-color) !important; }
footer h4, footer .footer-col h4, footer .footer-location i { color: var(--footer-title-color) !important; }

@media (max-width: 768px) {
    footer { padding: 32px 16px 0; }
    .footer-row { grid-template-columns: 1fr; gap: 28px; }
    .payment-icon { height: 30px; padding: 0 8px; }
    .payment-icon img { height: 18px; }
    .footer-social-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .footer-social { gap: 8px; }
    .footer-location { flex-direction: column; gap: 4px; }
}

/* ---------------- WHATSAPP FLUTUANTE ---------------- */
.im-wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 900;
    width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    transition: bottom .25s ease;
    box-shadow: 0 6px 18px rgba(37,211,102,.45); text-decoration: none;
}
/* Sobe quando o "voltar ao topo" aparece, pra não ficar por baixo dele */
.im-wa-float.is-up { bottom: 92px; }
@media (max-width: 768px) { .im-wa-float.is-up { bottom: 78px; } }

/* ---------------- DRAWER DO CARRINHO ---------------- */
.im-cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.im-cart-overlay.open { opacity: 1; pointer-events: auto; }
.im-cart {
    position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 400px; z-index: 1001;
    background: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.im-cart.open { transform: translateX(0); }
.im-cart-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 18px 12px; border-bottom: 1px solid rgba(0,0,0,.07);
}
.im-cart-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.im-cart-head button { background: none; border: none; font-size: 18px; cursor: pointer; color: #64748b; }
.im-cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
/* Frete grátis (barra de progresso no carrinho) — ferramenta /dashboard/tools */
.im-freeship { padding: 10px 18px 4px; }
.im-freeship-text { font-size: 12px; color: #334155; line-height: 1.35; margin-bottom: 6px; }
.im-freeship-text b { color: var(--im-button, #f97316); }
.im-freeship-bar { height: 6px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.im-freeship-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--im-button, #f97316), #22c55e); transition: width .3s ease; }
.im-cart-empty { text-align: center; opacity: .55; padding: 40px 0; font-size: 13px; }

.im-citem { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.im-citem-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.im-citem-info { flex: 1; min-width: 0; }
.im-citem-name { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.3; }
.im-citem-price { margin: 2px 0 0; font-size: 13px; font-weight: 800; color: var(--im-button, #f97316); }
.im-citem-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.im-qty { display: flex; align-items: center; gap: 8px; }
.im-qty-btn {
    width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); background: #fff;
    cursor: pointer; font-weight: 700; line-height: 1; color: var(--im-text, #1a1a2e);
}
.im-qty-val { min-width: 18px; text-align: center; font-size: 13px; font-weight: 700; }
.im-citem-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 13px; }

.im-cart-foot { padding: 16px 18px 22px; border-top: 1px solid rgba(0,0,0,.07); }
.im-cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.im-cart-total strong { font-size: 18px; }
.im-checkout {
    width: 100%; padding: 14px; border: none; border-radius: 14px; cursor: pointer;
    font-size: 15px; font-weight: 800; color: var(--im-button-tx, #fff);
    background: linear-gradient(135deg, var(--im-button, #f97316), color-mix(in srgb, var(--im-button, #f97316) 55%, #000));
}
.im-checkout:hover { opacity: .92; }

/* ---------------- TOAST ---------------- */
.im-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
    background: #0f172a; color: #fff; padding: 11px 20px; border-radius: 12px; font-size: 13px;
    z-index: 1100; opacity: 0; pointer-events: none; transition: .2s; max-width: 90%;
}
.im-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- DARK (quando a loja usa fundo escuro) ---------- */
@media (prefers-color-scheme: dark) { }

/* ============================================================
   DETALHE DO PRODUTO (sem reload)
   ============================================================ */
#imDetailView { display: block; }
#imDetailView[hidden] { display: none; }
.im-detail-back {
    background: none; border: 1px solid rgba(0,0,0,.14); border-radius: 999px;
    padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
    color: var(--im-text, #1a1a2e); margin-bottom: 18px;
}
.im-detail-back:hover { border-color: var(--im-button, #f97316); color: var(--im-button, #f97316); }
.im-detail-loading { text-align: center; padding: 60px 0; color: #94a3b8; }
.im-detail { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 780px) { .im-detail { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 28px; align-items: start; } }

.im-detail-main { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 20px; background: #f1f5f9; display: block; cursor: zoom-in; }
.im-detail-noimg { width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 40px; }
.im-detail-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.im-detail-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #f1f5f9; cursor: pointer; padding: 0; }
.im-detail-thumb.active { border-color: var(--im-button, #f97316); }
.im-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- zoom da imagem (lightbox) ---------- */
.im-zoom-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,.92); overflow: hidden; touch-action: none;
}
.im-zoom-overlay.is-open { display: flex; }
.im-zoom-img {
    max-width: 94vw; max-height: 92vh; width: auto; height: auto;
    object-fit: contain; transform-origin: center center; will-change: transform;
    cursor: zoom-out; user-select: none; -webkit-user-select: none;
    -webkit-user-drag: none; touch-action: none;
    transition: transform .16s ease;
}
.im-zoom-overlay.is-zoomed .im-zoom-img { transition: none; cursor: grab; }
.im-zoom-overlay.is-zoomed .im-zoom-img:active { cursor: grabbing; }
.im-zoom-close {
    position: fixed; top: 14px; right: 14px; width: 42px; height: 42px;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.im-zoom-close:hover { background: rgba(255,255,255,.3); }
html.im-zoom-open, html.im-zoom-open body { overflow: hidden; }

/* ---------- "Mais produtos" no detalhe ---------- */
.im-rel { margin-top: 34px; }
.im-rel-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--im-text, #1a1a2e); }
.im-rel-row {
    display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.im-rel-card { flex: 0 0 150px; scroll-snap-align: start; cursor: pointer; }
@media (min-width: 640px) { .im-rel-card { flex: 0 0 180px; } }

.im-detail-crumb { font-size: 11px; color: #94a3b8; margin-bottom: 8px; }
.im-detail-crumb a { color: #94a3b8; text-decoration: none; }
.im-detail-name { margin: 0 0 10px; font-size: 22px; font-weight: 800; color: var(--im-text, #1a1a2e); }
.im-detail-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.im-detail-price-now { font-size: 26px; font-weight: 800; color: var(--im-button, #f97316); }
.im-detail-price-old { font-size: 15px; text-decoration: line-through; color: #94a3b8; }
.im-detail-discount { font-size: 12px; font-weight: 800; color: #fff; background: #e11d48; padding: 3px 9px; border-radius: 999px; }
.im-detail-desc { font-size: 14px; line-height: 1.6; color: #475569; margin: 22px 0 16px; white-space: pre-line; }

.im-detail-qtyrow { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; font-size: 14px; font-weight: 700; }
.im-detail-qtyctrl { display: flex; align-items: center; gap: 10px; }
.im-detail-qtyctrl button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); background: #fff; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--im-text, #1a1a2e); }
.im-detail-qtyctrl span { min-width: 24px; text-align: center; font-weight: 800; }

.im-detail-add {
    width: 100%; padding: 15px; border: none; border-radius: 14px; cursor: pointer;
    font-size: 15px; font-weight: 800; color: var(--im-button-tx, #fff); margin-top: 6px;
    background: linear-gradient(135deg, var(--im-button, #f97316), color-mix(in srgb, var(--im-button, #f97316) 55%, #000));
}
.im-detail-add[disabled] { background: #cbd5e1; color: #64748b; cursor: not-allowed; }

.im-detail-ship { margin-top: 16px; }
.im-detail-ship-row { display: flex; gap: 8px; }
.im-detail-ship-row input { flex: 1; padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); font-size: 14px; background: #f8fafc; color: var(--im-text, #1a1a2e); }
.im-detail-ship-row button { padding: 0 18px; border: none; border-radius: 12px; background: var(--im-button, #f97316); color: var(--im-button-tx, #fff); font-weight: 800; cursor: pointer; }
.im-detail-ship-result { font-size: 13px; font-weight: 700; margin-top: 8px; }

.im-detail-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.im-detail-share a, .im-detail-share button {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
    border: 1px solid rgba(0,0,0,.1); background: #fff; color: #334155; font-size: 12px; font-weight: 700;
    text-decoration: none; cursor: pointer;
}
.im-detail-share .fa-whatsapp { color: #25D366; }
.im-detail-share .fa-facebook { color: #1877F2; }

/* Extras/variantes inline no detalhe */
.im-xgroup { margin: 14px 0; border-top: 1px solid rgba(0,0,0,.06); padding-top: 12px; }
.im-xgroup-head { font-size: 13px; font-weight: 800; color: var(--im-text, #1a1a2e); margin-bottom: 8px; }
.im-xreq { color: #e11d48; font-size: 10px; font-weight: 800; margin-left: 6px; }
.im-xsect { font-size: 11px; font-weight: 700; color: #94a3b8; margin: 8px 0 6px; text-transform: uppercase; }
.im-xopt { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.im-xopt.is-sub { padding-left: 14px; }
.im-ximg { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.im-xnoimg { display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.im-xstep { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.im-xstep button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); background: #fff; cursor: pointer; font-weight: 700; color: var(--im-text, #1a1a2e); }
.im-xstep .pd-qty-num { min-width: 18px; text-align: center; font-weight: 700; }
.im-xtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.im-xname { font-size: 13px; font-weight: 700; }
.im-xprice { font-size: 12px; color: var(--im-button, #f97316); font-weight: 700; }
.im-xline { font-size: 11px; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.im-xtotal { font-size: 12px; font-weight: 800; text-align: right; color: var(--im-text, #1a1a2e); margin-top: 6px; }

/* Variações selecionáveis: swatches de cor e pills de texto */
.im-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 4px 0 2px; }
.im-swatch-grid.is-pill { display: flex; flex-wrap: wrap; gap: 8px; }
.im-cchildren { margin-top: 10px; }
.im-child-wrap[hidden] { display: none !important; }
.im-child-label {
    margin: 0 0 6px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: #94a3b8;
}
.im-var-selected {
    margin: 12px 0 2px;
    padding: 9px 12px;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--im-text, #1a1a2e);
    background: rgba(0, 0, 0, .04);
    border-radius: 8px;
}
.im-swatch {
    -webkit-appearance: none; appearance: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; min-width: 0; padding: 8px 4px;
    background: transparent; border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-family: inherit; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.im-swatch:hover { border-color: var(--im-button, #f97316); }
.im-swatch-dot {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, .15);
    box-shadow: inset 0 0 0 2px #fff;
}
.im-swatch-label {
    width: 100%; padding: 0 2px;
    font-size: 11.5px; line-height: 1.15; font-weight: 600;
    color: var(--im-text, #1a1a2e); text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.im-swatch.is-selected {
    border-color: var(--im-button, #f97316);
    background: rgba(var(--im-button-rgb, 249, 115, 22), .08);
}
.im-swatch.is-selected .im-swatch-dot {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--im-button, #f97316);
}
.im-pill {
    flex-direction: row; gap: 0;
    padding: 9px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700;
    color: var(--im-text, #1a1a2e); white-space: nowrap;
}
.im-pill.is-selected {
    border-color: var(--im-button, #f97316);
    background: var(--im-button, #f97316);
    color: #fff;
}
.im-pill.is-selected .im-swatch-label { color: #fff; }
@media (max-width: 420px) {
    .im-swatch-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
    .im-swatch-dot { width: 30px; height: 30px; }
    .im-swatch-label { font-size: 11px; }
    .im-pill { padding: 8px 12px; font-size: 12px; }
}

.im-detail-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
    background: #0f172a; color: #fff; padding: 11px 20px; border-radius: 12px; font-size: 13px;
    z-index: 1400; opacity: 0; pointer-events: none; transition: .2s; max-width: 90%;
}
.im-detail-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== WIDGETS DE FERRAMENTAS (/dashboard/tools) ===================== */

/* Cupons — widget flutuante + gaveta */
.coupon-widget { position: fixed; top: 60%; right: 0; transform: translateY(-50%); z-index: 99998; display: flex; flex-direction: column; align-items: flex-end; }
.coupon-btn { background: var(--im-button, #000); box-shadow: 0 4px 16px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; position: relative; padding: 18px 12px; border-radius: 12px 0 0 12px; transition: all .3s; }
.coupon-btn:hover { opacity: .85; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.coupon-btn svg { width: 28px; height: 28px; }
.coupon-btn-badge { position: absolute; top: -6px; right: -6px; background: #ff4757; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 2px solid #fff; }
.coupon-drawer { position: fixed; bottom: 0; left: 0 !important; right: 0 !important; z-index: 99999; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.15); display: none; max-height: 85vh; min-height: 40vh; }
.coupon-drawer-header { display: flex; align-items: center; justify-content: center; padding: 14px 16px 0; position: relative; }
.coupon-drawer-handle { width: 40px; height: 4px; border-radius: 2px; background: #d1d5db; }
.coupon-drawer-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: transparent; border: none; cursor: pointer; padding: 4px; color: #64748b; display: flex; align-items: center; justify-content: center; }
.coupon-drawer-body { padding: 4px 20px 24px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 75vh; }
.coupon-drawer-info { text-align: center; padding: 4px 0; }
.coupon-drawer-info strong { font-size: 16px; font-weight: 700; color: #1e293b; display: block; }
.coupon-drawer-info p { font-size: 13px; color: #64748b; margin: 4px 0 0; }
.coupon-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; transition: all .2s; }
.coupon-card:hover { border-color: #cbd5e1; background: #f8fafc; }
.coupon-card-icon { width: 40px; height: 40px; flex-shrink: 0; }
.coupon-card-icon img { width: 100%; height: 100%; }
.coupon-card-info { flex: 1; min-width: 0; }
.coupon-card-title { font-size: 12px; font-weight: 600; color: #1e293b; display: block; line-height: 1.4; }
.coupon-card-sub { font-size: 12px; color: #8c8c8c; margin: 2px 0; }
.coupon-card-sub strong { font-weight: 700; color: #1e293b; }
.coupon-card-min { font-size: 11px; color: #059669; display: block; margin-top: 2px; }
.coupon-card-status { font-size: 10px; color: #8c8c8c; display: block; margin-top: 2px; }
.coupon-card-btn { font-size: 12px; font-weight: 700; color: var(--im-button-tx, #fff); background: var(--im-button, #000); padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; align-self: center; transition: all .2s; }
.coupon-card-btn:hover { opacity: .85; }
.coupon-card-btn.copied { background: #22c55e; color: #fff; }

/* Brindes / Presentes */
.gifts-widget { position: fixed; bottom: 100px; left: 16px; z-index: 998; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gifts-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--im-button, #ee5a24); box-shadow: 0 4px 16px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; position: relative; transition: transform .2s, box-shadow .2s; animation: giftsShake 3s ease-in-out infinite; }
.gifts-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.25); animation: none; }
.gifts-btn svg { width: 28px; height: 28px; fill: #fff; }
.gifts-btn .gifts-btn-badge { position: absolute; top: -4px; right: -4px; background: #ff4757; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 2px solid #fff; }
.gifts-btn-text { background: rgba(255,255,255,.95); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #1e293b; box-shadow: 0 2px 12px rgba(0,0,0,.1); white-space: nowrap; border: 1px solid rgba(0,0,0,.06); display: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.gifts-btn-text strong { color: var(--im-button, #3ad4f3); }
.gifts-panel { background: #fff; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.15); padding: 16px; width: 340px; max-width: 90vw; border: 1px solid #e2e8f0; display: none; position: relative; animation: giftsSlideUp .25s ease; max-height: 80vh; overflow-y: auto; }
@keyframes giftsSlideUp { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.gifts-panel-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.gifts-panel-title { font-size: 16px; font-weight: 800; color: #1e293b; margin: 0 0 2px; }
.gifts-panel-subtitle { font-size: 12px; color: #64748b; font-weight: 400; }
.gifts-panel-close { width: 28px; height: 28px; border-radius: 50%; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gifts-panel-close:hover { background: #f1f5f9; }
.gifts-progress-wrap { margin-bottom: 20px; }
.gifts-progress-label { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 16px; }
.gifts-progress-label strong { color: var(--im-button, #3ad4f3); }
.gifts-bar-container { position: relative; padding-top: 8px; }
.gifts-bar-bg { background: #e2e8f0; height: 8px; border-radius: 6px; overflow: hidden; position: relative; }
.gifts-bar-fill { background: var(--im-button, #3ad4f3); height: 100%; width: 0%; border-radius: 6px; transition: width .5s ease; }
.gifts-bar-markers { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 6px; }
.gifts-bar-dot { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; text-align: center; }
.gifts-bar-dot-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; border: 2px solid #e2e8f0; transition: all .3s; }
.gifts-bar-dot-icon.conquered { background: #dcfce7; border-color: #22c55e; }
.gifts-bar-dot-icon svg { width: 14px; height: 14px; transition: fill .3s; }
.gifts-bar-dot-icon.conquered svg { fill: #22c55e !important; }
.gifts-bar-dot-label { font-size: 10px; font-weight: 700; color: #64748b; white-space: nowrap; transition: color .3s; }
.gifts-bar-dot-label.conquered { color: #22c55e; }
.gifts-rules { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.gifts-rule { background: #f8fafc; border-radius: 10px; padding: 12px; border: 1px solid #e2e8f0; }
.gifts-rule.conquered { background: #f0fdf4; border-color: #bbf7d0; }
.gifts-rule-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gifts-rule-header h5 { font-size: 13px; font-weight: 700; color: #1e293b; margin: 0; }
.gifts-rule-status { flex-shrink: 0; }
.gifts-rule-products { list-style: none; padding: 0; margin: 0; }
.gifts-rule-products li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.gifts-rule-products li > span:first-child { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.gifts-rule-products li img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.gifts-rule-icon { width: 36px; height: 36px; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--im-button, #3ad4f3); font-size: 16px; flex-shrink: 0; }
.gifts-rule-products li strong { font-size: 12px; font-weight: 600; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gifts-rule-btn { font-size: 11px; font-weight: 700; color: var(--im-button-tx, #fff); background: var(--im-button, #3ad4f3); padding: 6px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; border: none; flex-shrink: 0; transition: opacity .2s; }
.gifts-rule-btn:hover { opacity: .85; }
.gifts-rule.conquered .gifts-rule-btn { background: #22c55e; pointer-events: none; }
.gifts-rule.conquered .gifts-rule-header h5 { color: #16a34a; }
.gifts-footer-note { font-size: 11px; color: #94a3b8; text-align: center; margin: 0; line-height: 1.5; }
.gifts-widget.conquered .gifts-btn { background: linear-gradient(135deg, #22c55e, #16a34a); }
.gifts-widget.conquered .gifts-bar-fill { background: linear-gradient(90deg, #22c55e, #4ade80); }
@keyframes giftsShake { 0%,100% { transform: translateX(0) rotate(0deg); } 15% { transform: translateX(-2px) rotate(-2deg); } 30% { transform: translateX(2px) rotate(2deg); } 45% { transform: translateX(-2px) rotate(-1deg); } 60% { transform: translateX(1px) rotate(1deg); } 75%,100% { transform: translateX(0) rotate(0deg); } }

/* Frete grátis — faixa lateral */
@keyframes imSlideIn { 0% { transform: translateY(-50%) translateX(300px); opacity: 0; } 100% { transform: translateY(-50%) translateX(0); opacity: 1; } }
#freeShippingRibbon { animation: imSlideIn .6s ease-out; max-width: 90vw; position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 999; display: none; transition: opacity .3s, transform .3s; }
#freeShippingRibbon.is-hidden { opacity: 0; transform: translateY(-50%) translateX(30px); pointer-events: none; }
#freeShippingRibbon .ribbon-card { background: linear-gradient(145deg, #f97316, #ea580c); color: #fff; padding: 18px 22px 16px 16px; border-radius: 14px 0 0 14px; box-shadow: -4px 4px 20px rgba(249,115,22,.35); min-width: 190px; cursor: pointer; position: relative; }
#freeShippingRibbon .ribbon-close { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; background: rgba(0,0,0,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 700; cursor: pointer; color: #fff; border: none; padding: 0; }
#freeShippingRibbon .ribbon-body { display: flex; align-items: center; gap: 12px; }
#freeShippingRibbon .ribbon-icon { font-size: 1.6rem; color: #fff; flex-shrink: 0; }
#freeShippingRibbon .ribbon-title { font-weight: 800; font-size: .9rem; line-height: 1.2; margin-bottom: 3px; }
#freeShippingRibbon .ribbon-sub { font-size: .72rem; opacity: .9; font-weight: 600; }
#freeShippingRibbon .ribbon-progress-track { background: rgba(255,255,255,.2); height: 5px; border-radius: 10px; overflow: hidden; margin-top: 10px; }
#freeShippingRibbon .ribbon-progress-fill { background: #fff; height: 100%; width: 0%; transition: width .6s cubic-bezier(.34,1.56,.64,1); border-radius: 10px; }
#freeShippingRibbon.frete-gratis-ativo .ribbon-card { background: linear-gradient(145deg, #22c55e, #16a34a); }

@media (max-width: 640px) {
    .coupon-btn { padding: 14px 10px; } .coupon-btn svg { width: 22px; height: 22px; } .coupon-drawer { max-height: 70dvh; }
    .gifts-widget { bottom: 80px; left: 12px; } .gifts-btn { width: 70px; height: 70px; } .gifts-panel { width: 400px; } .gifts-btn-text { display: none !important; }
}

/* WhatsApp no Produto (botão abaixo do "Comprar" em cada card) */
.im-card-wa {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 8px; padding: 9px; background: rgb(14,134,9); color: #fff;
    border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 800;
    transition: opacity .2s;
}
.im-card-wa:hover { opacity: .85; color: #fff; }

/* Voltar ao topo (mesmo widget do catálogo 2) */
.scroll-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--im-button, #f97316), color-mix(in srgb, var(--im-button, #f97316) 87%, transparent));
    color: #fff; border: none; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(var(--im-button-rgb, 249,115,22), .4);
    z-index: 999; transition: all .3s ease;
}
.scroll-to-top:hover { transform: translateY(-3px); }
.scroll-to-top.show { display: flex; }
@media (max-width: 768px) { .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.25rem; } }

/* Mini toast "Adicionado" (mesmo widget do catálogo 2) */
.cart-mini-toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #1a1a2e; color: #fff; border-radius: 50px; padding: 10px 18px 10px 10px;
    display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.3);
    z-index: 99998; opacity: 0; transition: all .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none; max-width: 320px; white-space: nowrap;
}
.cart-mini-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-mini-toast img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-mini-toast .cmt-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.125rem; }
.cart-mini-toast .cmt-text { display: flex; flex-direction: column; overflow: hidden; }
.cart-mini-toast .cmt-title { font-size: .688rem; font-weight: 700; color: #10b981; text-transform: uppercase; letter-spacing: .5px; }
.cart-mini-toast .cmt-name { font-size: .812rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cart-mini-toast .cmt-check { width: 22px; height: 22px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .688rem; flex-shrink: 0; margin-left: auto; }
@media (max-width: 768px) { .cart-mini-toast { bottom: 75px; max-width: 86vw; } }
