/* RESET E FUNDO */
:root {
    /* Altura aproximada do header fixo (barra de busca + faixa de filtros em uma linha) */
    --loja-header-offset: 108px;
}

html,
body,
#root {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    /* evita scroll indesejado fora da loja */
}

body.light-mode {
    background-color: #ffffff;
    color: #333;
}

.loja-container {
    height: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* overflow: hidden;   ← REMOVIDO — isso impedia a rolagem */
}

/* HEADER */
.header-fixo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
}

/* NOVO / ADIÇÃO: Ajuste no header para 4 ícones não ficarem feios nem cortados no mobile */
.header-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4px;
    box-sizing: border-box;
    /* min-width: 0 — permite a coluna da busca encolher sem cortar os ícones à direita */
}

/* Coluna do meio: empurra a busca para a direita, sem esticar até o logo */
.search-bar {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-topo>a {
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: clamp(18px, 5vw, 22px);
    /* responsivo: menor no mobile */
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.search-input-container {
    flex: 0 0 auto;
    width: clamp(168px, 38vw, 260px);
    max-width: 260px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    min-height: 0;
}

.search-input-container input {
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    margin-left: 6px;
    padding: 0;
    font-size: 16px;
    line-height: 1.25;
    min-height: 0;
    min-width: 0;
    flex: 1;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.search-input-container input:focus,
.search-input-container input:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.header-icons {
    display: flex;
    gap: 0px;
    /* NOVO: gap de 10px fica bonito e espaçado com 4 ícones */
    flex-shrink: 0;
    margin-right: 0;
}

.icon-btn {
    background: none;
    border: none;
    font-size: clamp(18px, 4.5vw, 22px);
    /* responsivo: ícones não ficam gigantes nem minúsculos */
    cursor: pointer;
    position: relative;
    color: #555;
    padding: 3px;
    /* NOVO: área de toque maior no mobile */
    min-width: 36px;
    /* NOVO: garante bom clique/toque */
}

.icon-btn:focus-visible,
.filtro-btn:focus-visible,
.btn-adicionar:focus-visible,
.btn-checkout:focus-visible,
.close-btn:focus-visible,
.filtro-select:focus-visible,
.sidebar-item:focus-visible {
    outline: 2px solid #2e7dff;
    outline-offset: 2px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge de quantidade no menu lateral (Comparar) */
#badgeCompareCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    font-weight: 900;
    font-size: 12px;
    min-width: 22px;
}

/* FILTRO — uma linha; em telas estreitas rolagem horizontal suave */
.filtro-produtos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 6px auto 0;
    padding: 4px 4px 10px;
    max-width: 1200px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

.filtro-produtos::-webkit-scrollbar {
    height: 5px;
}

.filtro-produtos::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.filtro-produtos .filtro-btn,
.filtro-produtos .filtro-select {
    flex-shrink: 0;
}

.filtro-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.filtro-btn:hover:not(.active) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filtro-btn.active {
    background: #e5e7eb;
    border-color: transparent;
    color: #111827;
    box-shadow: none;
}

.filtro-select {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 14px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    max-width: 155px;
}

.filtro-limpar {
    background: #fff5f5;
    color: #b00020;
    border: 1px solid #f4c7cd;
}

.filtro-limpar:hover {
    background: #ffe9ec;
}

/* BANNER PRINCIPAL */
.banner-principal {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    max-width: 1200px;
    margin: 16px 20px 0;
    height: 220px;
    max-height: 220px;
    padding: 0;
    box-sizing: border-box;
    background-color: #020617;
}

.banner-media {
    position: absolute;
    inset: 0;
    background-image: var(--banner-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-principal::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.55) 100%);
    pointer-events: none;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}

/* Carrossel do banner (desativado — reativar depois)
.banner-carousel {
    position: absolute;
    inset: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.42s ease;
    background:
        radial-gradient(120% 90% at 12% 12%, rgba(59, 130, 246, 0.2) 0%, transparent 65%),
        radial-gradient(120% 90% at 88% 88%, rgba(16, 185, 129, 0.18) 0%, transparent 68%),
        linear-gradient(140deg, #111827 0%, #1f2937 55%, #0f172a 100%);
}

.banner-slide.is-active {
    opacity: 1;
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: var(--banner-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.52;
}

.banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--banner-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
*/

.banner-principal h1 {
    font-size: 42px;
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-principal p {
    font-size: 18px;
    color: #cccccc;
    margin-top: 10px;
}

/* Bolinhas do carrossel (desativado — reativar depois)
.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.banner-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.banner-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
*/

/* GRID DE PRODUTOS — área que deve rolar (header é position: fixed) */
.conteudo-rolavel {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--loja-header-offset);
    padding-bottom: 60px;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
    background-color: #ffffff;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
}

.empty-state-produtos {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed #d9d9d9;
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    color: #555;
}

.empty-state-produtos h3 {
    margin: 0 0 8px;
}

/* CARDS DE PRODUTO */
.produto-card {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    box-sizing: border-box;
    min-height: 380px;
    /* permite crescer para baixo quando expande descrição */
}

.produto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 220px;
    /* altura fixa → texto não empurra imagem */
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 16px;
}

.card-imagem {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    border-radius: 16px;
}

.card-conteudo {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.card-nome {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px;
}

.descricao-wrapper {
    flex: 1;
    min-height: 0;
    margin-bottom: 8px;
}

.card-descricao {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    transition: all 0.35s ease;
}

.card-descricao.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ver-mais {
    color: #0066ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-top: 4px;
    transition: color 0.2s;
}

.ver-mais:hover {
    color: #004ccc;
    text-decoration: underline;
}

.preco-container {
    margin: 8px 0;
    font-weight: 700;
}

.preco-normal {
    color: #2ecc71;
    font-size: 18px;
}

.preco-antigo {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.preco-promocional {
    color: #2ecc71;
    font-size: 20px;
}

.btn-adicionar {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
}

/* Ações do card (favoritar / comparar): barra no topo do card, acima da foto — sem sobrepor a imagem */
.produto-card > .card-header {
    order: -1;
    position: static;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 4px 8px;
    margin: 0;
    background: #ffffff;
    border-bottom: none;
    opacity: 1;
    visibility: visible;
    z-index: auto;
}

/* Botões compactos com contraste legível em qualquer foto */
.produto-card > .card-header button {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    width: auto;
    height: auto;
    min-width: 30px;
    min-height: 30px;
    padding: 4px 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.produto-card > .card-header button:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.produto-card > .card-header i {
    font-size: 15px;
    color: #64748b;
    transition: color 0.2s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Quando está favoritado → vermelho + animação Instagram (somente coração) */
.produto-card.favorito .card-header i.fa-heart {
    color: #ff3b30 !important;
    animation: heartBeat 0.6s ease-in-out;
}

/* Botão de comparar dentro do header do card */
.produto-card > .card-header .compare-btn i {
    color: #64748b;
}

.produto-card > .card-header .compare-active i {
    color: #2563eb !important;
}

.produto-card > .card-header .compare-btn i.fa-scale-balanced {
    font-size: 15px;
}

.produto-card > .card-header .compare-btn.compare-btn-muted:not(.compare-active) i {
    color: #cbd5e1;
    opacity: 0.85;
}

.produto-card > .card-header .compare-btn.compare-btn-muted:not(.compare-active):hover i {
    color: #94a3b8;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* MENUS LATERAIS */
.menu-lateral {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: none;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-lateral.aberto {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

/* =========================
   Comparador de produtos
   ========================= */
.compare-menu-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-item-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
}

.compare-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f5f5f5;
    object-fit: cover;
}

.compare-item-meta {
    min-width: 0;
}

.compare-item-name {
    font-weight: 800;
    font-size: 13px;
    line-height: 1.2;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-item-stats {
    font-size: 12px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.compare-remove-btn {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 700;
}

.compare-remove-btn:hover {
    background: #fafafa;
}

.compare-remove-btn--primary {
    width: 100%;
    max-width: 100%;
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

.compare-remove-btn--primary:hover {
    background: #f1f5f9;
}

.compare-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.compare-panel-hint {
    margin: 0 0 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

.compare-empty-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.compare-need-more {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.compare-need-more i {
    margin-top: 2px;
    color: #2563eb;
    flex-shrink: 0;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 8px 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.compare-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13px;
}

.compare-table th,
.compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    text-align: left;
}

.compare-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
}

.compare-table-corner {
    width: 96px;
    min-width: 96px;
}

.compare-table-rowhead {
    width: 96px;
    min-width: 96px;
    font-weight: 700;
    color: #475569;
    background: #fafafa;
    white-space: nowrap;
}

.compare-table-col {
    min-width: 140px;
}

.compare-table-product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.compare-table-thumb {
    width: 100%;
    max-width: 120px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
    margin: 0 auto;
}

.compare-table-name {
    margin: 0;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.25;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compare-table-open-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: #2563eb;
}

.compare-table-open-btn:hover {
    background: #eff6ff;
}

.compare-table-cell {
    color: #334155;
}

.compare-price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 12px;
    margin-right: 6px;
}

.compare-price-now {
    color: #0f172a;
}

.compare-items--below {
    margin-top: 6px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff3b30;
}

/* CONTAINER ROLÁVEL */
.menu-itens-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    margin-bottom: 15px;
    min-width: 0;
}

/* ITENS DO CARRINHO */
.item-carrinho {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 8px;
    min-width: 0;
}

.item-carrinho img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-carrinho>div {
    flex: 1;
    min-width: 0;
}

.qtd-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.qtd-controls button {
    background: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.btn-edit {
    background: #007bff;
    border: none;
    padding: 6px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
    color: #fcfdfd;
}

.btn-checkout {
    width: 100%;
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    font-size: 14px;
}


/* CIRCLE CHECKBOX */
.circle-checkbox {
    appearance: none;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circle-checkbox:checked {
    border-color: #2ecc71;
}

.circle-checkbox:checked::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
}

/* MODAL - CARD DETALHADO */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-conteudo {
    background: white;
    width: 100%;
    max-width: 280px;
    max-height: 600px;
    border-radius: 20px;
    padding: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-conteudo h3 {
    margin: 8px 0;
}

.modal-conteudo::-webkit-scrollbar {
    display: none;
}

.modal-imagem {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 12px;
}

.modal-conteudo > .carousel-container {
    border-radius: 16px;
    overflow: hidden;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    text-align: left;
}

.modal-options label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.modal-options select,
.modal-options input {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-options input[type="number"] {
    -moz-appearance: textfield;
}

.modal-options input[type="number"]::-webkit-outer-spin-button,
.modal-options input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-botoes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-compartilhar {
    background: #f0f0f0;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    width: 50px;
}

/* TEXTOS DO MODAL */
.modal-conteudo h3 {
    font-size: 16px;
    margin: 8px 0 4px;
}

.modal-desc {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
    line-height: 1.3;
}

.modal-desc.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.35s ease;
}

.ver-mais {
    color: #0520f0;
    font-size: 13px;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 8px;
}

/* Reorganização das infos em grid para compactar */
.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

.modal-info-grid div {
    text-align: left;
}

.modal-preco {
    font-size: 18px;
    margin: 8px 0 4px;
    color: #2ecc71;
}

.modal-preco s {
    margin-right: 8px;
    color: red;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 8px;
}

.card-badges span {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Badge de avaliação (★ x.xx) */
.badge-rating {
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    font-weight: 700;
}

/* Seção de avaliação no modal */
.rating-area {
    margin: 8px 0 4px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.rating-area .rating-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}

.rating-stars {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.star-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.star-btn i {
    color: #bbb;
    font-size: 16px;
}

.star-btn.selected {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
}

.star-btn.selected i {
    color: #2563eb;
}

.rating-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* =========================
   Compre junto (modal) — compacto, secundário ao CTA principal
   ========================= */
.modal-botoes+.bundle-area {
    margin-top: 16px;
}

.bundle-area {
    margin: 14px 0 0;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 16px;
    background: linear-gradient(148deg, #f8fafc 0%, #eef2ff 42%, #f1f5f9 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.bundle-area[open] {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) inset;
}

.bundle-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    background: rgba(255, 255, 255, 0.72);
    transition: background 0.15s ease;
}

.bundle-summary::-webkit-details-marker {
    display: none;
}

.bundle-summary:hover {
    background: rgba(15, 23, 42, 0.04);
}

.bundle-summary-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bundle-summary-icon {
    font-size: 14px;
    color: #2563eb;
    opacity: 0.95;
}

.bundle-summary-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bundle-chevron {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.bundle-area[open] .bundle-chevron {
    transform: rotate(-180deg);
}

.bundle-summary-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.bundle-area[open] .bundle-summary {
    border-bottom: 1px solid #e8eaed;
    background: rgba(255, 255, 255, 0.65);
}

.bundle-area[open] .bundle-summary-badge {
    background: #cbd5e1;
    color: #1e293b;
}

.bundle-intro {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    padding: 8px 12px 0;
    line-height: 1.35;
}

.bundle-intro strong {
    color: #475569;
    font-weight: 700;
}

.bundle-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 12px;
    max-height: min(280px, 44vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bundle-row {
    display: grid;
    grid-template-columns: auto 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.bundle-check-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-check-col input {
    width: 16px;
    height: 16px;
    accent-color: #0f172a;
    cursor: pointer;
}

.bundle-check-col input:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.bundle-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.bundle-row-body {
    min-width: 0;
}

.bundle-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.bundle-name {
    font-weight: 700;
    font-size: 12px;
    margin: 0;
    line-height: 1.25;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.bundle-price {
    font-size: 12px;
    margin: 0;
    color: #15803d;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.bundle-hint {
    font-size: 10px;
    margin: 0 0 4px;
    color: #b45309;
    font-weight: 600;
}

.bundle-row-opts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 6px;
    align-items: end;
}

.bundle-opt-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bundle-opt-key {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bundle-opt-label select,
.bundle-opt-label .bundle-qty {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    width: 100%;
    box-sizing: border-box;
}

.bundle-opt-qty {
    max-width: 52px;
}

.bundle-opt-qty .bundle-qty {
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

.bundle-submit-btn {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

.bundle-submit-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
    color: #fff;
}

.bundle-submit-btn:active {
    transform: scale(0.995);
}

.bundle-open-btn {
    margin-top: 4px;
    border: none;
    background: transparent;
    padding: 2px 0;
    font-weight: 700;
    cursor: pointer;
    color: #2563eb;
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 380px) {
    .bundle-row-opts {
        grid-template-columns: 1fr 1fr;
    }

    .bundle-opt-qty {
        grid-column: 1 / -1;
        max-width: none;
    }

    .bundle-opt-qty .bundle-qty {
        max-width: 72px;
    }
}

@media (max-width: 767px) {
    .bundle-opt-label select,
    .bundle-opt-label .bundle-qty {
        font-size: 16px;
        min-height: 44px;
    }
}

/* BANNER INFERIOR E FOOTER */
.bottom-hero {
    margin: 30px 20px;
    border-radius: 20px;
    overflow: hidden;
    height: 200px;
}

.hero-img {
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28)),
        url('https://images.unsplash.com/photo-1584735935682-2f2b69dff9d2?auto=format&fit=crop&w=1800&q=88');
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.hero-text h2 {
    color: white;
    margin: 0;
    font-size: 28px;
}

.hero-text p {
    color: #e8c547;
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.store-benefits {
    max-width: 1200px;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 20px;
}

.benefit-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.benefit-card i {
    color: #2563eb;
}

.main-footer {
    background: #000;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

#btnAdminSidebar.admin-active {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    font-weight: 700;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    color: white;
}

/* ITENS DOS FAVORITOS */
.item-fav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    min-width: 0;
}

.item-fav:last-child {
    border-bottom: none;
}

.item-fav img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.item-fav>div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-fav>div p:first-child {
    font-weight: 700;
    font-size: 14.5px;
    margin: 0 0 4px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-fav>div p:last-child {
    font-weight: 700;
    font-size: 16px;
    color: #2ecc71;
    margin: 0;
}

.item-fav button {
    background: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-fav button:first-of-type {
    background: #ffffff;
    border: 1px solid #ddd;
    color: #666;
    margin-right: 6px;
}

.item-fav button:first-of-type:hover {
    background: #f9f9f9;
}

.item-fav button:last-of-type {
    background: #007bff;
    color: white;
}

.item-fav button:last-of-type:hover {
    background: #0056b3;
}

/* Responsivo para favoritos - mobile */
@media (max-width: 480px) {
    .item-fav {
        gap: 10px;
        padding: 10px 0;
    }

    .item-fav img {
        width: 50px;
        height: 50px;
    }

    .item-fav button {
        padding: 7px 10px;
        font-size: 12.5px;
    }
}

/* RESPONSIVIDADE */
@media (min-width: 768px) {
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .icon-btn {
        padding: 2px;
    }
}

@media (min-width: 1024px) {
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .produto-card > .card-header {
        padding: 3px 6px;
    }

    .produto-card > .card-header button {
        min-width: 28px;
        min-height: 28px;
        padding: 3px 5px;
    }

    .produto-card > .card-header i {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .menu-lateral {
        max-width: 100%;
    }
}

@media (max-width: 280px) {
    .logo {
        font-size: 18px;
    }

    .icon-btn {
        font-size: 16px;
    }

    .banner-principal h1 {
        font-size: 28px;
    }

    .banner-principal p {
        font-size: 14px;
    }

    .produto-card {
        font-size: 12px;
    }

    .card-imagem {
        height: 120px;
    }
}

/* OVERLAY ESCURO QUANDO MENU ABRE */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Quando o menu está aberto, mostra o overlay */
.menu-lateral.aberto~.menu-overlay,
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MELHORAR ANIMAÇÃO DO MENU LATERAL */
.menu-lateral {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: none;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-lateral.aberto {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

/* ADMIN LOGIN MODAL */
.admin-login-modal {
    max-width: 420px;
    width: 95%;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.admin-login-modal .close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.admin-login-title {
    margin: 0;
    padding: 24px 28px 20px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    position: relative;
}

.admin-login-form {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.btn-admin-login {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.btn-admin-login:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* ADMIN PRODUCT MODAL */
.admin-product-modal {
    max-width: 640px;
    width: 95%;
    max-height: 92vh;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-modal-header {
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    position: relative;
}

.admin-modal-header .close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.admin-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.admin-form-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px;
    padding-bottom: 100px;
    scrollbar-width: thin;
    scrollbar-color: #aaa #f1f1f1;
    scroll-behavior: smooth;
}

.admin-form-container::-webkit-scrollbar {
    width: 6px;
}

.admin-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.admin-form-container::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 3px;
}

.admin-form-container::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.admin-form-grid {
    display: grid;
    gap: 22px;
    max-width: 560px;
    margin: 0 auto;
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    min-height: 130px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.checkboxes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2ecc71;
    cursor: pointer;
}

.image-section {
    margin-top: 10px;
}

.admin-img-mode-fieldset {
    border: none;
    margin: 0 0 16px;
    padding: 0;
}

.admin-img-mode-legend {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    padding: 0;
}

.admin-img-mode-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.admin-img-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.admin-img-mode-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2ecc71;
    cursor: pointer;
}

.admin-img-block {
    margin-bottom: 16px;
}

.admin-img-sublabel {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-img-preview-toolbar {
    margin: 8px 0 16px;
}

.btn-add-url,
.btn-clear-images {
    margin-top: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-url {
    background: #2ecc71;
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.btn-add-url:hover {
    background: #27ae60;
}

.btn-clear-images {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-clear-images:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.upload-hint {
    text-align: center;
    font-style: italic;
    color: #666;
    margin: 16px 0 12px;
    font-size: 14px;
}

.file-input {
    width: 100%;
    padding: 16px;
    border: 2px dashed #aaa;
    border-radius: 12px;
    background: #f8f9fa;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #2ecc71;
    background: #f0f9f5;
}

.img-preview {
    margin-top: 24px;
    text-align: center;
}

.preview-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.preview-placeholder {
    color: #aaa;
    padding: 60px;
    font-size: 16px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.admin-modal-footer {
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-save-product,
.btn-duplicate-product,
.btn-delete-product {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    background: #ffffff;
    border-radius: 8px;
    border: 1.5px solid;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-save-product {
    color: #15803d;
    border-color: #22c55e;
}

.btn-save-product:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #166534;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}

.btn-duplicate-product {
    color: #1d4ed8;
    border-color: #3b82f6;
}

.btn-duplicate-product:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.btn-delete-product {
    color: #b91c1c;
    border-color: #ef4444;
}

.btn-delete-product:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

/* OUTROS AJUSTES */
.admin-add-btn {
    margin: 20px auto;
    display: block;
}

.admin-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    font-size: 16px;
    padding: 4px;
}

.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.badge-limited {
    background: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.badge-outstock {
    background: #ff0000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-promo {
    background: #2ecc71;
    color: #fff;
}

.badge-new {
    background: #3498db;
    color: #fff;
}

.badge-bestseller {
    background: #e67e22;
    color: #fff;
}

.badge-ibjjf {
    background: #8e44ad;
    color: #fff;
}

.modal-badge-limited {
    background: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.modal-badge-outstock {
    background: #ff0000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.modal-badge-promo {
    background: #2ecc71;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.modal-badge-new {
    background: #3498db;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.modal-badge-bestseller {
    background: #e67e22;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.modal-badge-ibjjf {
    background: #8e44ad;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.modal-add-btn {
    flex: 1;
}

.outstock-msg {
    color: #ff0000;
    flex: 1;
    text-align: center;
    margin: 0;
}

.empty-cart,
.empty-fav {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.select-all-label {
    font-size: 14px;
    cursor: pointer;
    margin-top: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
}

.cart-item-details {
    margin: 3px 0 0;
    font-size: 12px;
    color: #666;
}

.cart-item-price {
    margin: 6px 0 0;
    color: #2ecc71;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.fav-item-info {
    flex: 1;
}

.fav-item-name {
    margin: 0;
    font-weight: 600;
}

.fav-item-price {
    margin: 0;
    color: #2ecc71;
    font-weight: 700;
}

.btn-fav-remove {
    color: red;
    padding: 6px 10px;
    font-size: 12px;
    background: none;
    border: 1px solid #ff0000;
    border-radius: 6px;
    cursor: pointer;
}

.btn-fav-buy {
    padding: 6px 10px;
    font-size: 12px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.cart-footer {
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    z-index: 10;
    /* evita ficar atrás de outros elementos */
}


/* NOVO / ADIÇÃO: Estilos para o rodapé do carrinho com frete, cupom e resumo */
.cart-footer {
    padding: 12px 16px;
}

.frete-container,
.cupom-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.frete-container input,
.cupom-container input {
    flex: 0 0 90px;
    /* largura fixa menor */
    padding: 4px 6px;
    /* menor altura */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
}

.frete-container button,
.cupom-container button {
    background: #0066ff;
    color: white;
    border: none;
    padding: 4px 8px;
    /* botão menor */
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
}



.valores-resumo {
    margin: 12px 0;
}

.valores-resumo p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
}

.valores-resumo p span {
    white-space: nowrap;
}

.valores-resumo h3 {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}


.total-price {
    text-align: center;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
}

.whatsapp-btn {
    background: #25D366 !important;
    margin: 0 0 8px;
}

.instagram-btn {
    background: #E1306C !important;
}

/* NOVO / ADIÇÃO: Histórico de pedidos */
.pedido-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pedido-data {
    font-size: 12px;
    color: #777;
}

.pedido-valores {
    margin-top: 8px;
    font-size: 14px;
}

.pedido-status {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* Responsivo */
@media (max-width: 480px) {

    .admin-login-modal,
    .admin-product-modal {
        width: 98%;
        margin: 0 auto;
    }

    .admin-form-container {
        padding: 20px;
    }

    .checkboxes-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-modal-footer {
        padding: 16px 20px;
    }

    /* Ajustes mobile para modal */
    .modal-conteudo {
        max-width: 82%;
        max-height: 72vh;
        padding: 10px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .card-badges {
        justify-content: flex-start;
    }

    .modal-preco {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .preco-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .preco-antigo {
        font-size: 13px;
        margin-right: 0;
    }

    .preco-promocional,
    .preco-normal {
        font-size: 20px;
    }

    .filtro-select {
        min-width: 126px;
    }

    .modal-imagem {
        height: 108px;
        margin-bottom: 8px;
    }

    .modal-options {
        gap: 8px;
        margin-bottom: 8px;
    }

    .modal-options select,
    .modal-options input {
        padding: 8px;
        font-size: 13px;
    }

    .admin-modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .store-benefits {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 481px) {

    .modal-preco,
    .preco-container {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .preco-antigo {
        font-size: 15px;
    }

    .preco-promocional {
        font-size: 22px;
    }

    .preco-normal {
        font-size: 20px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.instagram-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
}

.carousel-images {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease-out;
}

.carousel-images img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.4);
}

.modal-conteudo.modal-scrollable {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.insta-carousel {
    display: flex;
    overflow-x: auto;
    background: #ffffff;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* pan-x + pan-y: rolagem vertical da página funciona ao passar o dedo na imagem;
       gestos claramente horizontais continuam movendo o carrossel */
    touch-action: pan-x pan-y;
    cursor: grab;
}

.insta-carousel:active {
    cursor: grabbing;
}

.insta-carousel::-webkit-scrollbar {
    display: none;
}

.insta-carousel img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    object-fit: contain;
    border-radius: 16px;
}

/* card */
.card-imagem {
    height: 220px;
}

/* modal */
.modal-imagem {
    height: 130px;
}

/* bolinhas dentro da imagem com fundo */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background: #fff;
}

/* Pop-up personalizada (toast) */
.popup-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    max-width: 90%;
    padding: 14px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    z-index: 5000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.popup-info {
    background: #2c3e50;
}

.popup-success {
    background: #27ae60;
}

.popup-error {
    background: #c0392b;
}

.popup-warning {
    background: #f39c12;
}

.popup-message.fade-out {
    opacity: 0;
    transform: translate(-50%, 20px);
}

.pix-modal {
    max-width: 350px !important;
    text-align: center;
}

#pixQrCodeArea img {
    margin: 20px 0;
    border: 5px solid white;
    border-radius: 10px;
}

.pix-copy-area {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.pix-copy-area input {
    flex: 1;
    background: #222;
    border: 1px solid #444;
    color: #eee;
    padding: 8px;
    font-size: 0.8rem;
}

.pix-copy-area button {
    background: #d4af37;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    font-weight: bold;
}

.btn-confirmar-pix {
    background: #25d366;
    /* Cor WhatsApp/Sucesso */
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.pix-btn {
    background: #00bfa5 !important;
    /* Cor do PIX */
    color: white !important;
    margin-top: 10px;
}

.aviso-pix {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
}

.frete-accordion {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}

.frete-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    background: #f8f8f8;
    font-weight: 600;
    font-size: 13px;
}

.frete-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 8px;
}

.frete-accordion.open .frete-accordion-body {
    max-height: 3200px;
    overflow: visible;
    padding-bottom: 6px;
}

/* RESUMO NA MESMA LINHA */
.valores-resumo p {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin: 4px 0;
}

.valores-resumo h3 {
    display: flex;
    justify-content: space-between;
}

#valorFrete {
    font-size: 12px;
    /* diminui um pouco */
}

#valorFrete span {
    white-space: nowrap;
}

/* Card flutuante — avaliação opcional após checkout */
.floating-rating-card {
    position: fixed;
    z-index: 9800;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    left: auto;
    width: min(360px, calc(100vw - 32px));
    max-height: min(70vh, 420px);
    overflow-y: auto;
    padding: 16px 40px 14px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.floating-rating-card--visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-rating-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    border-radius: 8px;
}

.floating-rating-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.floating-rating-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.floating-rating-lead {
    margin: 0 0 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.floating-rating-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-rating-item {
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.floating-rating-item:last-of-type {
    border-bottom: none;
    padding-bottom: 4px;
}

.floating-rating-name {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.3;
}

.floating-rating-stars {
    display: flex;
    gap: 4px;
}

.floating-star-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.floating-star-btn i {
    font-size: 13px;
    color: #cbd5e1;
}

.floating-star-btn.selected {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
}

.floating-star-btn.selected i {
    color: #2563eb;
}

.floating-rating-dismiss {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 700;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
}

@media (max-width: 520px) {
    .floating-rating-card {
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* ==================================================
   UI SYSTEM (SaaS Premium) — visual only
   ================================================== */
:root {
    --ui-bg: #ffffff;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f8faff;
    --ui-border: #e3e9f3;
    --ui-text: #111827;
    --ui-text-soft: #5d6678;
    --ui-primary: #2563eb;
    --ui-primary-strong: #1d4ed8;
    --ui-success: #16a34a;
    --ui-danger: #dc2626;
    --ui-warning: #d97706;
    --ui-radius-sm: 10px;
    --ui-radius-md: 14px;
    --ui-radius-lg: 18px;
    --ui-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --ui-shadow-md: 0 14px 36px rgba(15, 23, 42, 0.1);
}

body.light-mode {
    background: #ffffff;
    color: var(--ui-text);
}

.header-fixo {
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
}

.logo {
    color: #0b1220;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.search-input-container {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    box-shadow: none;
}

.search-icon {
    color: #64748b;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.search-input-container:focus-within {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.icon-btn {
    border-radius: 12px;
    color: #334155;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: #eef4ff;
    color: var(--ui-primary-strong);
    transform: translateY(-1px);
}

.filtro-produtos {
    padding-top: 6px;
}

.filtro-btn,
.filtro-select {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.filtro-btn:hover:not(.active) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filtro-btn.active {
    color: #111827;
    border-color: transparent;
    background: #e5e7eb;
    box-shadow: none;
}

.filtro-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filtro-limpar {
    background: #fff6f7;
    border-color: #f7cdd4;
    color: #b42318;
}

.filtro-limpar:hover {
    background: #ffeef1;
    border-color: #f0b6c1;
}

.banner-principal,
.bottom-hero {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ui-shadow-md);
}

.banner-principal {
    margin: 16px auto 0;
}

.banner-principal h1 {
    letter-spacing: -0.03em;
}

.produtos-grid {
    gap: 18px;
}

.produto-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
    background: #ffffff;
}

.produto-card:hover {
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
}

.card-imagem {
    background: #ffffff;
}

.produto-card > .card-header {
    background: #ffffff;
}

.card-nome {
    color: #0f172a;
}

.card-descricao {
    color: var(--ui-text-soft);
}

.preco-normal,
.preco-promocional {
    color: var(--ui-success);
}

.btn-adicionar,
.btn-checkout {
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-adicionar {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.btn-adicionar:hover,
.btn-checkout:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-checkout {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.menu-lateral,
.sidebar {
    background: #ffffff;
    border-left: 1px solid var(--ui-border);
}

.menu-header {
    border-bottom-color: var(--ui-border);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.menu-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.sidebar-item {
    color: #1f2937;
    border-bottom-color: #edf2f8;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: #eff6ff;
    color: var(--ui-primary-strong);
}

.item-carrinho,
.item-fav,
.compare-item-row {
    border-bottom-color: #edf2f8;
}

.item-carrinho img,
.item-fav img,
.compare-thumb {
    border: 1px solid #e8eef7;
    background: #f8fafc;
}

.empty,
.empty-cart,
.empty-fav {
    color: #7b8497;
}

.modal-conteudo,
.admin-login-modal,
.admin-product-modal {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
}

.modal-conteudo {
    width: min(92vw, 360px);
    max-width: 360px;
}

.modal-options select,
.modal-options input,
.form-input,
.form-textarea,
.frete-container input,
.cupom-container input {
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
}

.modal-options select:focus,
.modal-options input:focus,
.form-input:focus,
.form-textarea:focus,
.frete-container input:focus,
.cupom-container input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.frete-accordion,
.pedido-item,
.rating-area,
.bundle-area,
.compare-item-row,
.benefit-card {
    border-color: var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
}

.status-aguardando {
    background: #fff7ed;
    color: var(--ui-warning);
}

.status-concluido {
    background: #ecfdf3;
    color: var(--ui-success);
}

.preview-wrapper {
    position: relative;
    display: inline-block;
    margin: 6px;
}

.preview-wrapper .preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--ui-border);
}

.remove-preview {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
}

.remove-preview:hover {
    filter: brightness(0.95);
}

.btn-copy,
.frete-container button,
.cupom-container button,
.btn-add-url,
.btn-clear-images {
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.frete-container button,
.cupom-container button,
.btn-copy {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
}

.frete-container button:hover,
.cupom-container button:hover,
.btn-copy:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.main-footer {
    background:
        radial-gradient(900px 220px at 15% 0%, rgba(37, 99, 235, 0.2), transparent 60%),
        radial-gradient(900px 220px at 85% 0%, rgba(22, 163, 74, 0.16), transparent 60%),
        #06080f;
}

.footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1024px) {

    .banner-principal,
    .bottom-hero {
        margin-left: 16px;
        margin-right: 16px;
    }

    .produtos-grid,
    .store-benefits {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 767px) {
    .header-fixo {
        padding-left: max(6px, env(safe-area-inset-left, 0px));
        padding-right: max(6px, env(safe-area-inset-right, 0px));
    }

    .banner-principal {
        height: 180px;
        max-height: 180px;
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 16px;
    }

    .banner-overlay {
        padding: 32px 16px;
    }

    .banner-principal h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .banner-principal p {
        font-size: clamp(14px, 4vw, 17px);
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(168px, 100%), 1fr));
        gap: 11px;
        padding: 14px 16px;
    }

    .produto-card .carousel-container {
        height: 148px;
    }

    .produto-card .card-conteudo {
        padding: 8px 10px 10px;
    }

    .produto-card .card-nome {
        font-size: 13px;
    }

    .produto-card .card-descricao {
        font-size: 12px;
    }

    .produto-card .descricao-wrapper {
        margin-bottom: 4px;
    }

    .produto-card .preco-normal,
    .produto-card .preco-promocional {
        font-size: 16px;
    }

    .produto-card .btn-adicionar {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 40px;
    }

    .menu-lateral {
        width: min(100%, 390px);
    }

    .store-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .benefit-card {
        font-size: 12.5px;
    }

    .admin-modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header-topo {
        gap: 10px;
    }

    .header-topo > a {
        margin-left: 12px;
        margin-right: 14px;
    }

    .logo {
        font-size: clamp(16px, 4.8vw, 18px);
    }

    .search-bar {
        justify-content: flex-end;
        padding-left: 2px;
    }

    .search-input-container {
        width: clamp(148px, 42vw, 192px);
        max-width: 192px;
        padding: 4px 9px;
    }

    .filtro-produtos {
        padding-bottom: 8px;
        gap: 6px;
    }

    .filtro-btn,
    .filtro-select {
        font-size: 12px;
        padding: 7px 14px;
    }

    .produtos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-conteudo {
        width: min(94vw, 360px);
        max-height: 78vh;
    }

    .preview-wrapper .preview-img {
        width: 96px;
        height: 96px;
    }
}

/* ==================================================
   Premium refinements (v2)
   ================================================== */
html,
body,
#root {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.main-footer .logo {
    color: #fff;
}

.header-icons .icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.filtro-btn,
.filtro-select,
.btn-adicionar,
.btn-checkout,
.btn-edit,
.compare-remove-btn {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.produto-card .btn-adicionar {
    margin-top: 10px;
}

.produto-card .btn-adicionar:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.15);
}

.card-badges span,
.modal-badge-limited,
.modal-badge-outstock,
.modal-badge-promo,
.modal-badge-new,
.modal-badge-bestseller,
.modal-badge-ibjjf {
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 4px 8px;
}

.modal-overlay {
    backdrop-filter: blur(2px);
}

.modal-conteudo,
.admin-login-modal,
.admin-product-modal {
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
}

/* Sombra só com painel aberto — fechado (right: -100%) vazava sombra na borda direita */
.menu-lateral:not(.aberto),
.sidebar:not(.aberto) {
    box-shadow: none !important;
}

.menu-itens-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.menu-itens-container::-webkit-scrollbar {
    width: 7px;
}

.menu-itens-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.pedido-item {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.pedido-status {
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-aguardando {
    border-color: rgba(217, 119, 6, 0.25);
}

.status-concluido {
    border-color: rgba(22, 163, 74, 0.25);
}

/* Skeleton loading inicial para melhorar percepção de performance */
.skeleton-card {
    pointer-events: none;
    user-select: none;
}

.skeleton-line {
    position: relative;
    overflow: hidden;
    background: #e9eef6;
    border-radius: 10px;
    height: 12px;
    margin-bottom: 10px;
}

.skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(233, 238, 246, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(233, 238, 246, 0) 100%);
    animation: skeletonSweep 1.35s infinite;
}

.skeleton-media {
    height: 220px;
    border-radius: 0;
    margin-bottom: 12px;
}

.skeleton-btn {
    height: 38px;
    margin-top: 14px;
}

.w-100 {
    width: 100%;
}

.w-95 {
    width: 95%;
}

.w-80 {
    width: 80%;
}

.w-75 {
    width: 75%;
}

.w-70 {
    width: 70%;
}

.w-60 {
    width: 60%;
}

.w-55 {
    width: 55%;
}

.w-50 {
    width: 50%;
}

@keyframes skeletonSweep {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 767px) {
    .header-icons .icon-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .modal-conteudo {
        border-radius: 16px;
    }

    .skeleton-media {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        gap: 12px;
    }

    .card-badges {
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Sidebar (menu hamburguer) */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: min(86vw, 340px);
    height: auto;
    max-height: none;
    z-index: 2300;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: right 240ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 240ms ease;
    box-shadow: none;
}

.sidebar.aberto {
    right: 0;
    box-shadow: -14px 0 36px rgba(15, 23, 42, 0.22);
}

.overlay-menu {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 24, 0.5);
    z-index: 2250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.overlay-menu.aberto {
    opacity: 1;
    visibility: visible;
}