@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

:root {
    --bg-main: #eef4fb;
    --bg-surface: #ffffff;
    --bg-soft: #f6f9fd;
    --line: #dde8f3;
    --line-strong: #bdd0e6;
    --primary: #1558a0;
    --primary-strong: #0c3d73;
    --primary-light: #e6f0fb;
    --accent: #0d9e7a;
    --accent-light: #e5f7f2;
    --text: #0c1b2e;
    --text-soft: #4e6278;
    --text-muted: #8fa3b5;
    --grad-primary: linear-gradient(135deg, #1558a0 0%, #2d84e0 100%);
    --grad-dark: linear-gradient(140deg, #0b1e33 0%, #123258 100%);
    --grad-accent: linear-gradient(135deg, #0d9e7a 0%, #14c49a 100%);
    --grad-hero: linear-gradient(160deg, #f3f8fe 0%, #e8f2fc 50%, #ddeefa 100%);
    --shadow-sm: 0 2px 8px rgba(8, 28, 52, 0.05);
    --shadow: 0 8px 28px rgba(8, 28, 52, 0.08);
    --shadow-lg: 0 18px 50px rgba(8, 28, 52, 0.13);
    --shadow-colored: 0 8px 28px rgba(21, 88, 160, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --top-card-height: 320px;
    --transition: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html,
body {
    text-rendering: optimizeLegibility;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 780px) {
    html,
    body {
        overflow-y: auto;
        overscroll-behavior-y: auto;
        touch-action: pan-y pinch-zoom;
        min-height: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

::selection {
    background: rgba(21, 88, 160, 0.15);
    color: var(--primary-strong);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #b8cce2 #edf4fb;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #edf4fb;
}

*::-webkit-scrollbar-thumb {
    background: #b8cce2;
    border-radius: 999px;
    border: 2px solid #edf4fb;
}

*::-webkit-scrollbar-thumb:hover {
    background: #98b4d2;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--grad-hero);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 20%, #f7fbff 0%, #e9f2fc 45%, #d7e8f8 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-conteudo {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    text-align: center;
    padding: 1.1rem;
}

.page-loader-circulo {
    width: 64px;
    height: 64px;
    position: relative;
    border-radius: 50%;
    border: 4px solid #c9ddf2;
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    animation: girar-loader 1.05s linear infinite, pulsar-loader 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 10px rgba(21, 88, 160, 0.08);
}

.page-loader-circulo::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 3px solid rgba(45, 132, 224, 0.22);
    border-left-color: rgba(13, 158, 122, 0.62);
}

.page-loader-texto {
    margin: 0;
    font-weight: 700;
    color: var(--primary-strong);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

@keyframes girar-loader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulsar-loader {
    0%,
    100% {
        box-shadow: 0 0 0 10px rgba(21, 88, 160, 0.08);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(21, 88, 160, 0.14);
    }
}

h1, h2, h3 {
    font-family: "Playfair Display", "Georgia", serif;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }

p { line-height: 1.7; }

a {
    color: inherit;
    transition: color var(--transition);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(45, 132, 224, 0.35);
    outline-offset: 2px;
    border-radius: 8px;
}

@supports not selector(:focus-visible) {
    :focus {
        outline: 3px solid rgba(45, 132, 224, 0.35);
        outline-offset: 2px;
    }
}

img {
    display: block;
}

#conteudo-principal {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1.4rem;
    flex: 1;
}

.pagina-inicio {
    display: grid;
    gap: 1rem;
}

.cabecalho {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1.8rem;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(8, 28, 52, 0.06);
    transition: box-shadow var(--transition);
}

.logo-area {
    display: inline-flex;
    align-items: center;
}

.logo-area-admin {
    pointer-events: none;
}

.logo-area-admin .logo {
    pointer-events: auto;
    cursor: pointer;
}

.logo {
    height: 62px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 0;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
}

.menu a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 999px;
    transition: transform var(--transition);
}

.menu a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.menu a:hover::after,
.menu a.ativo::after {
    transform: translateX(-50%) scaleX(1);
}

.menu a.ativo {
    color: var(--primary-strong);
    background: var(--primary-light);
    font-weight: 700;
}

.cabecalho-direita {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.header-carrinho,
.header-conta,
.menu-hamburguer {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    background: var(--bg-surface);
    color: var(--text-soft);
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}

.header-carrinho:hover,
.header-conta:hover,
.menu-hamburguer:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 88, 160, 0.15);
}

.header-conta.ativo,
.header-conta.logado {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(21, 88, 160, 0.3);
}

.contador-carrinho {
    position: absolute;
    top: -6px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.menu-hamburguer {
    display: none;
}

.acesso-central {
    display: none;
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
    margin-bottom: 1.15rem;
}

.acesso-card {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    border-top: 4px solid #2f84d7;
}

.acesso-card.ativo {
    display: block;
}

.acesso-card h2 {
    margin-bottom: 0.35rem;
}

.acesso-card p {
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.acesso-card label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    margin-top: 0.7rem;
}

.acesso-card input {
    width: 100%;
    border: 1px solid #ccdaea;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    color: var(--text);
    font-size: 0.95rem;
}

.acesso-card .btn {
    margin-top: 0.85rem;
    width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius-lg) + 4px);
    box-shadow: var(--shadow);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
    transition: box-shadow var(--transition);
}

.hero-inicio {
    min-height: var(--top-card-height);
    height: var(--top-card-height);
    overflow: hidden;
    background: #ffffff;
    border-color: #eef3f8;
    box-shadow: 0 14px 34px rgba(8, 28, 52, 0.08);
}

.hero-inicio .hero-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.banner-interno > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-inicio .hero-subtitulo {
    max-width: 640px;
    line-height: 1.6;
    color: #445a71;
}

.hero-texto h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    line-height: 1.2;
    margin: 0.7rem 0;
}

.selo {
    display: inline-block;
    background: linear-gradient(90deg, #e0eefa, #d4e9f8);
    color: var(--primary);
    border: 1px solid #b8d4ef;
    border-radius: 999px;
    padding: 0.32rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.hero-botoes {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.banner-interno .hero-botoes {
    justify-content: center;
}

.hero-inicio .hero-imagem {
    height: 100%;
    min-width: 0;
}

.banner-interno .hero-imagem {
    height: 100%;
}

.banner-interno .hero-imagem img {
    height: 100%;
    min-height: 100%;
}

.hero-imagem img,
.banner-interno img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

#hero-produtos-slideshow {
    object-fit: contain;
    background: #ffffff;
    padding: 0.25rem;
    border: 1px solid #b8d8ff;
    box-shadow: 0 0 0 3px rgba(45, 132, 224, 0.18), 0 12px 28px rgba(21, 88, 160, 0.18);
}

#hero-inicio-slideshow {
    object-fit: cover;
    object-position: center;
    background: transparent;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    display: block;
    min-height: 250px;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.hero-video-wrapper .hero-video {
    border: none;
    border-radius: 0;
}

.hero-video-barra {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem 0.6rem;
    background: linear-gradient(to top, rgba(8, 24, 44, 0.72) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hero-video-wrapper:hover .hero-video-barra {
    opacity: 1;
}

.hero-video-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.18s;
}

.hero-video-btn:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-video-progresso-trilha {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    position: relative;
}

.hero-video-progresso-preenchido {
    height: 100%;
    border-radius: 4px;
    background: #fff;
    width: 0%;
    pointer-events: none;
    transition: width 0.1s linear;
}

.hero-video-tempo {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
    min-width: 2.8ch;
}

.btn {
    border: none;
    padding: 0.78rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all var(--transition);
}

.btn-primario {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(21, 88, 160, 0.28);
}

.btn-primario:hover {
    background: linear-gradient(135deg, #0d3d73 0%, #1558a0 100%);
    box-shadow: 0 6px 22px rgba(21, 88, 160, 0.38);
    transform: translateY(-1px);
}

.btn-secundario {
    background: var(--bg-surface);
    color: var(--primary);
    border: 1.5px solid var(--line-strong);
}

.btn-secundario:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.indicadores {
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.indicador-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    min-height: 140px;
    background: linear-gradient(160deg, #ffffff 60%, #eef5fd 100%);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-rows: 40px auto minmax(56px, auto);
    align-items: start;
    justify-items: center;
    row-gap: 0.35rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.indicador-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.indicador-card:hover {
    box-shadow: var(--shadow-colored);
    transform: translateY(-3px);
}

.indicador-card i {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0;
    background: var(--primary-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}

.indicador-numero {
    display: block;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0.1rem 0 0;
    line-height: 1;
    font-family: "Inter", sans-serif;
}

.indicador-card p {
    color: var(--text-soft);
    margin: 0;
}

.destaques-profissionais {
    margin-top: 1rem;
}

.jornada-parceiros {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.jornada,
.parceiros {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.jornada h2,
.parceiros h2 {
    margin-bottom: 0.7rem;
}

.jornada-conteudo {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 1rem;
    align-items: stretch;
}

.jornada-conteudo > div {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.jornada-conteudo p {
    color: var(--text-soft);
    margin-bottom: 0.9rem;
    line-height: 1.65;
    font-weight: 700;
    font-size: 1rem;
}

.jornada-conteudo img {
    width: 100%;
    min-height: 230px;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.parceiros-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
}

.parceiro-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.parceiro-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.parceiro-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0;
    flex: 1;
}

.parceiro-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
}

.parceiro-card:hover {
    box-shadow: var(--shadow-colored);
    transform: translateY(-3px);
}

.parceiro-card i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: grid;
    place-items: center;
    align-self: center;
    line-height: 1;
}

.parceiro-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid #c7dbef;
    border-radius: 50%;
    background: #ffffff;
    padding: 0;
    margin: 0 auto 0.6rem;
    display: block;
    box-shadow: 0 4px 10px rgba(21, 88, 160, 0.15);
}

.neolab-logo {
    object-fit: contain;
    padding: 4px;
}

.destaques-profissionais h2 {
    margin-bottom: 0.8rem;
}

.destaques-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
}

.destaque-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.destaque-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.destaque-card:hover {
    box-shadow: var(--shadow-colored);
    transform: translateY(-3px);
    border-color: #b5cfec;
}

.destaque-card i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: inline-block;
    background: var(--primary-light);
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    line-height: 1;
}

.destaque-card h3 {
    margin-bottom: 0.4rem;
}

.destaque-card p {
    color: var(--text-soft);
}

.banner-interno {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
    min-height: var(--top-card-height);
    height: var(--top-card-height);
    overflow: hidden;
}

.banner-admin {
    grid-template-columns: 1fr;
}

.banner-interno h1 {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    margin: 0.5rem 0;
}

.banner-interno p {
    color: var(--text-soft);
}

.pagina-produtos {
    margin-top: 0.8rem;
}

.barra-pesquisa-produtos {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border: 1px solid #c5d9ee;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    box-shadow: var(--shadow-sm);
}

.barra-pesquisa-produtos i {
    color: var(--primary);
    font-size: 0.95rem;
}

.barra-pesquisa-produtos input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    outline: none;
}

.barra-pesquisa-produtos input::placeholder {
    color: #7f96ac;
}

.aviso-vendas {
    margin: 0.9rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #e9f3ff;
    border: 1px solid #8fbced;
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    color: #0e4f8d;
    font-weight: 700;
    text-align: center;
}

.aviso-vendas i {
    color: #1558a0;
    margin-top: 0;
}

.aviso-vendas p {
    margin: 0;
}

.abas-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.contagem-produtos {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.aba {
    border: 1.5px solid var(--line-strong);
    background: var(--bg-surface);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.aba.ativa,
.aba:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.grade-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 220px));
    gap: 0.7rem;
    align-items: stretch;
    justify-content: center;
}

.cartao-produto {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.78rem;
    display: grid;
    grid-template-rows: auto auto auto auto auto auto;
    align-content: start;
    min-height: 100%;
    height: 100%;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.produto-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 175px;
    padding: 0.65rem;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.produto-badge-indisponivel {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    background: #fff0f0;
    color: #a92828;
    border: 1px solid #efbcbc;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.produto-indisponivel-card {
    border-color: #eacaca;
    background: linear-gradient(180deg, #fffefe 0%, #fff8f8 100%);
}

.produto-indisponivel-card .btn-carrinho {
    border-color: #e4b8b8;
    color: #7b2f2f;
    background: #fff3f3;
}

.cartao-produto::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.cartao-produto:hover {
    border-color: #bad0ea;
    transform: translateY(-4px);
    box-shadow: var(--shadow-colored);
}

.cartao-produto:hover::before {
    opacity: 1;
}

.cartao-produto img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 145px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    padding: 0.25rem;
    background: transparent;
}

.cartao-produto h3 {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    min-height: calc(2 * 1.3em);
    max-height: calc(2 * 1.3em);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.produto-icone {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.produto-icone i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 1px solid #c3d9f0;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    line-height: 1;
}

.produto-icone i,
.indicador-card i,
.destaque-card i,
.parceiro-card i,
.aviso-vendas i {
    line-height: 1;
    text-align: center;
}

.produto-card-resumo {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-soft);
    min-height: 2.15rem;
}

.produto-card-tamanhos {
    display: block;
    margin-top: 0.3rem;
    min-width: 0;
    overflow: hidden;
}

.produto-card-tamanhos-titulo {
    display: none;
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.produto-card-tamanhos-lista {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.26rem;
    min-height: 24px;
    align-items: center;
    overflow: hidden;
    max-height: 24px;
    width: 100%;
    min-width: 0;
}

.tag-tamanho-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 calc((100% - 0.26rem) / 2);
    min-width: 0;
    max-width: calc((100% - 0.26rem) / 2);
    border-radius: 999px;
    border: 1px solid #c6d9ee;
    background: #f2f7fc;
    color: #19538e;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    line-height: 1.2;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-tamanho-unico {
    flex-basis: 100%;
    max-width: 100%;
    border-color: #b9d9c4;
    background: #edf8f0;
    color: #1f7a3f;
}

.tag-tamanho-extra {
    border-style: dashed;
    color: #335c8a;
    flex: 0 0 auto;
    min-width: 44px;
    max-width: 44px;
}

.sem-tamanho-card {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.preco {
    margin: 0.58rem 0 0.34rem;
    font-family: "Inter", sans-serif;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.05rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-carrinho {
    margin-top: 0.15rem;
    border: none;
    border-radius: 999px;
    background: var(--grad-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.55rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(13, 158, 122, 0.22);
}

@media (max-width: 1280px) {
    .grade-produtos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.btn-carrinho:hover {
    background: linear-gradient(135deg, #0a7e61 0%, #0d9e7a 100%);
    box-shadow: 0 5px 14px rgba(13, 158, 122, 0.35);
    transform: translateY(-1px);
}

.bloco-cta {
    margin-top: 1.2rem;
    background: var(--grad-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bloco-cta::before {
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(45, 132, 224, 0.12);
    pointer-events: none;
}

.bloco-cta h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.bloco-cta p {
    color: #c0d8f0;
    margin-bottom: 1rem;
    font-size: 0.97rem;
}

.pagina-contato.profissional {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1rem;
}

.info-contato,
.formulario-mensagem,
.conta-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.info-contato::before,
.formulario-mensagem::before,
.conta-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.info-contato h2,
.formulario-mensagem h2,
.conta-card h2 {
    margin-bottom: 0.8rem;
}

.info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0.85rem 0;
    color: var(--text-soft);
}

.info-item i {
    color: var(--primary);
    width: 22px;
    margin-top: 2px;
}

.mini-mapa-contato {
    margin-top: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #eef4fa;
}

.mini-mapa-contato iframe {
    width: 100%;
    height: 210px;
    border: 0;
    display: block;
}

.campo {
    margin-bottom: 0.8rem;
}

.campo input,
.campo textarea,
.auth-painel input {
    width: 100%;
    border: 1.5px solid var(--line-strong);
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 0.78rem 0.95rem;
    color: var(--text);
    font-size: 0.93rem;
    font-family: "Inter", sans-serif;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.campo input:focus,
.campo textarea:focus,
.auth-painel input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 88, 160, 0.1);
}

.campo textarea {
    resize: vertical;
}

.rodape {
    margin-top: 2rem;
    background: var(--grad-dark);
    color: #d0dff0;
}

.rodape-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
}

.rodape-grid > div:first-child p {
    max-width: 290px;
    margin-left: 0;
    text-align: left;
}

.rodape h3,
.rodape h4 {
    color: #fff;
    margin-bottom: 0.6rem;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rodape ul {
    list-style: none;
}

.rodape li,
.rodape p,
.rodape a {
    color: #a8c0d8;
    text-decoration: none;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.rodape a:hover {
    color: #fff;
}

.rodape-base {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.8rem;
    font-size: 0.88rem;
    color: #7a95b0;
}

.modal-carrinho,
.modal-compra,
.modal-auth,
.modal-produto {
    position: fixed;
    inset: 0;
    background: rgba(6, 16, 32, 0.62);
    backdrop-filter: blur(4px);
    display: none;
    place-items: center;
    padding: clamp(0.95rem, 3.5vw, 1.8rem);
    z-index: 2100;
    animation: fadeInBackdrop 0.22s ease;
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-carrinho.ativo,
.modal-compra.ativo,
.modal-auth.ativo,
.modal-produto.ativo {
    display: grid;
    animation: slideUpModal 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.modal-open .app-bottom-nav,
body.modal-open .whatsapp-flutuante,
body.modal-open .cookie-banner,
body.modal-open .assinatura-nextwebs {
    opacity: 0;
    pointer-events: none;
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-carrinho-card,
.modal-compra-card,
.modal-auth-card,
.modal-produto-card {
    width: min(680px, calc(100vw - 2.8rem));
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 1.5rem;
    position: relative;
    max-height: min(88vh, calc(100dvh - 2.8rem));
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
}

html.modal-open,
body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

/* ===== DESKTOP PREMIUM MODE ===== */
@keyframes desktopReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 781px) {
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(circle at 12% 8%, rgba(45,132,224,0.09) 0, transparent 33%),
            radial-gradient(circle at 84% 14%, rgba(13,158,122,0.08) 0, transparent 28%);
        z-index: -1;
    }

    .cabecalho {
        border-bottom-color: #d6e5f5;
        box-shadow: 0 4px 22px rgba(8, 28, 52, 0.08);
    }

    #conteudo-principal > section,
    .pagina-inicio > section {
        animation: desktopReveal 0.42s ease both;
    }

    .hero,
    .banner-interno,
    .info-contato,
    .formulario-mensagem,
    .conta-card,
    .admin-card,
    .jornada,
    .parceiros,
    .bloco-cta,
    .indicador-card,
    .destaque-card,
    .cartao-produto {
        border-color: #d5e4f3;
        box-shadow: 0 10px 28px rgba(12, 27, 46, 0.09);
    }

    .hero:hover,
    .banner-interno:hover,
    .info-contato:hover,
    .formulario-mensagem:hover,
    .conta-card:hover,
    .admin-card:hover,
    .jornada:hover,
    .parceiros:hover,
    .bloco-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(12, 27, 46, 0.13);
    }

    .menu a {
        font-weight: 650;
    }

    .menu a.ativo {
        box-shadow: inset 0 0 0 1px #bfd6ee;
    }

    .tabela-pedidos thead th {
        background: #f6f9fd;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .tabela-pedidos tbody tr:hover {
        background: linear-gradient(90deg, #f5f9ff 0%, #fbfdff 100%);
    }

    .btn,
    .aba,
    .btn-carrinho,
    .btn-finalizar,
    .btn-status {
        letter-spacing: 0.025em;
    }

    .btn-primario:hover,
    .btn-carrinho:hover,
    .btn-finalizar:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .modal-carrinho-card,
    .modal-compra-card,
    .modal-auth-card,
    .modal-produto-card {
        border-color: #cddff1;
        box-shadow: 0 24px 60px rgba(8, 28, 52, 0.2);
    }

    .rodape {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
}

.modal-auth-card {
    width: min(500px, 100%);
    border: 1.5px solid #8dbfe8;
    box-shadow: 0 24px 60px rgba(10, 45, 90, 0.22);
    background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 30%);
}

.modal-auth-card h2 {
    color: var(--primary-strong);
    font-size: 1.4rem;
}

.modal-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--grad-primary);
}

.modal-carrinho-fechar,
.modal-auth-fechar {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    z-index: 10;
    flex-shrink: 0;
}

.modal-carrinho-fechar:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.modal-auth-fechar {
    top: 0.75rem;
    right: 0.75rem;
}

.modal-auth-fechar:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

#itens-carrinho {
    list-style: none;
    margin: 1rem 0;
    max-height: 300px;
    overflow: auto;
}

#itens-carrinho li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.55rem;
    gap: 0.7rem;
}

.carrinho-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.2rem;
}

.carrinho-item-nome {
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
}

.carrinho-item-preco {
    color: var(--primary-strong);
    font-size: 0.94rem;
    font-weight: 800;
}

.checkout-entrega {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
    padding: 0.85rem;
    margin-top: 0.7rem;
}

.checkout-entrega h4 {
    margin-bottom: 0.55rem;
    font-size: 1rem;
    color: var(--primary-strong);
}

.entrega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.entrega-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.entrega-grid-full {
    grid-column: 1 / -1;
}

.entrega-grid input,
.frete-toolbar select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    padding: 0.48rem 0.55rem;
    font-size: 0.84rem;
}

.frete-toolbar {
    margin-top: 0.6rem;
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
}

.frete-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    flex: 1;
}

.btn-frete {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--primary-strong);
    font-weight: 700;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-frete:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.frete-feedback {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    border-radius: 9px;
    padding: 0.4rem 0.55rem;
    border: 1px solid transparent;
}

.frete-info {
    background: #edf4fd;
    color: #1c4f87;
    border-color: #c8def7;
}

.frete-ok {
    background: #eaf9f4;
    color: #0d7d63;
    border-color: #bdeedb;
}

.frete-erro {
    background: #fff1f1;
    color: #a12a2a;
    border-color: #f4c6c6;
}

.frete-resultado {
    margin-top: 0.55rem;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    padding: 0.5rem 0.55rem;
    display: grid;
    gap: 0.2rem;
    font-size: 0.84rem;
    color: var(--text-soft);
    background: #fff;
}

.checkout-cupom {
    margin-top: 0.7rem;
    border-top: 1px dashed var(--line-strong);
    padding-top: 0.65rem;
}

.checkout-cupom h4 {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    color: var(--primary-strong);
}

.checkout-cupom-linha {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
}

.checkout-cupom-linha input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0.48rem 0.55rem;
    background: #fff;
    color: var(--text);
    font-size: 0.84rem;
}

.cupom-feedback {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    border-radius: 9px;
    padding: 0.4rem 0.55rem;
    border: 1px solid transparent;
}

.cupom-info {
    background: #edf4fd;
    color: #1c4f87;
    border-color: #c8def7;
}

.cupom-ok {
    background: #eaf9f4;
    color: #0d7d63;
    border-color: #bdeedb;
}

.cupom-erro {
    background: #fff1f1;
    color: #a12a2a;
    border-color: #f4c6c6;
}

@media (max-width: 640px) {
    .entrega-grid {
        grid-template-columns: 1fr;
    }

    .frete-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-cupom-linha {
        grid-template-columns: 1fr;
    }

    .btn-frete {
        width: 100%;
    }
}

.carrinho-total {
    border-top: 1px dashed var(--line-strong);
    padding-top: 0.8rem;
    font-weight: 800;
    color: var(--primary-strong);
}

.btn-finalizar {
    width: 100%;
    margin-top: 0.8rem;
    border: none;
    border-radius: 999px;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 800;
    font-family: "Inter", sans-serif;
    padding: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(21, 88, 160, 0.28);
}

.btn-finalizar:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(21, 88, 160, 0.38);
    transform: translateY(-1px);
}

.btn-finalizar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-remover-item {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text-soft);
    cursor: pointer;
}

.btn-remover-item:hover {
    color: #922;
    border-color: #d7a3a3;
}

.toast-carrinho {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1400;
    background: #0d9e7a;
    color: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 12px 30px rgba(8, 40, 34, 0.35);
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s ease;
}

.toast-carrinho.ativo {
    opacity: 1;
    transform: translate(-50%, 0);
}

.modal-compra-card {
    text-align: center;
}

.modal-compra-card i {
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.auth-painel {
    display: none;
}

.auth-painel.ativo {
    display: block;
}

.auth-painel p {
    color: var(--text-soft);
    margin-bottom: 0.9rem;
}

.auth-painel form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#form-recuperar-solicitar,
#form-recuperar-redefinir {
    margin-top: 0.55rem;
}

#form-recuperar-redefinir {
    padding-top: 0.55rem;
    border-top: 1px dashed #d9e4f2;
    margin-top: 0.95rem;
}

.auth-painel label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
    margin-top: 0.95rem;
}

.auth-painel input {
    margin-bottom: 0.2rem;
}

.auth-painel .btn-primario {
    width: 100%;
    min-height: 46px;
    margin-top: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.auth-link {
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.85rem;
    transition: color var(--transition);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-link:hover {
    color: var(--primary-strong);
}

.banner-interno .hero-botoes {
    justify-content: center;
}

.banner-interno .hero-imagem {
    height: 100%;
}

.banner-interno .hero-imagem img {
    height: 100%;
    min-height: 100%;
}

.modal-produto-card {
    width: min(960px, 100%);
    max-height: 90vh;
    overflow: hidden;
    padding: 0.68rem;
}

.modal-produto-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1.05fr) minmax(340px, 1fr);
    gap: 0.42rem;
    align-items: start;
    height: auto;
    max-height: calc(90vh - 1.5rem);
}

.modal-produto-imagem-wrap {
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: default;
    background: #ffffff;
    padding: 0.12rem;
    position: relative;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-produto-grid img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    padding: 0;
    transform-origin: center;
    transition: transform 0.28s ease;
}

.modal-produto-imagem-wrap.zoom-ativo {
    cursor: default;
}

.modal-produto-imagem-wrap.zoom-ativo img {
    transform: none;
}

.modal-produto-info p {
    color: var(--text-soft);
    margin: 0.02rem 0;
    font-size: 0.89rem;
    line-height: 1.22;
}

#modal-produto-descricao {
    display: block;
    overflow: visible;
    max-height: none;
    padding-right: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.35;
}

.modal-descricao-expandivel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.08rem;
    align-items: flex-start;
}

.modal-descricao-texto {
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.24;
}

.modal-descricao-expandivel.expandido .modal-descricao-texto {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.modal-descricao-toggle {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    margin-top: 0.05rem;
}

.modal-descricao-expandivel.sem-toggle {
    gap: 0;
}

.modal-descricao-toggle:hover {
    text-decoration: underline;
}

.modal-produto-especificacoes {
    display: grid;
    gap: 0.12rem;
    margin-top: 0.04rem;
    margin-bottom: 0.05rem;
}

.modal-produto-especificacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff;
    border: 1px solid #d7e6f6;
    border-radius: 10px;
    padding: 0.22rem 0.44rem;
}

.modal-produto-especificacao-item span {
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-produto-especificacao-item strong {
    color: var(--text);
    font-size: 0.82rem;
    text-align: right;
}

.modal-produto-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    background: #f8fbff;
    border: 1px solid #dbe9f8;
    border-radius: 14px;
    padding: 0.32rem 0.44rem 0.38rem;
    overflow: hidden;
    justify-content: flex-start;
    gap: 0.06rem;
    align-self: start;
}

.modal-produto-info h3 {
    margin: 0;
    line-height: 1.08;
}

#modal-produto-descricao {
    margin-top: 0;
}

.modal-zoom-ajuda {
    display: none;
}

.btn-add-modal {
    margin-top: 0.08rem;
    align-self: stretch;
}

.modal-preco {
    font-family: "Inter", sans-serif;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.05rem;
}

.modal-disponibilidade {
    margin-top: 0;
    margin-bottom: 0.04rem;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.2rem 0.75rem;
}

.modal-disponibilidade-on {
    color: #0a7e61;
    background: var(--accent-light);
    border: 1px solid #a8e0ce;
}

.modal-disponibilidade-off {
    color: #a92828;
    background: #fff0f0;
    border: 1px solid #efbcbc;
}

.btn-add-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.titulo-tamanhos {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.05rem;
}

.opcoes-tamanho {
    display: flex;
    flex-wrap: wrap;
    gap: 0.18rem;
    margin-bottom: 0.08rem;
}

.btn-tamanho {
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text-soft);
    font-weight: 700;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
}

.btn-tamanho.ativo,
.btn-tamanho:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.btn-tamanho-fixo,
.btn-tamanho-fixo:hover {
    color: #1f7a3f;
    border-color: #a8d6b6;
    background: #edf8f0;
    cursor: default;
}

.sem-tamanho {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.conta-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1rem;
    align-items: start;
}

.conta-coluna-info {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.conta-grid > .conta-card {
    height: fit-content;
}

.admin-resumo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-metrica {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    min-height: 116px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.admin-metrica::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
}

.admin-metrica:hover {
    box-shadow: var(--shadow-colored);
    transform: translateY(-2px);
}

.admin-metrica h3 {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.admin-metrica p {
    color: var(--primary-strong);
    font-weight: 900;
    font-size: 1.35rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    width: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
}

.admin-card h2 {
    margin-bottom: 0.8rem;
}

.admin-card-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.admin-card-topo h2 {
    margin-bottom: 0;
}

.admin-filtro-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-filtro-wrap select {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text);
    padding: 0.38rem 0.55rem;
    font-size: 0.84rem;
}

.admin-card-full {
    grid-column: 1 / -1;
}

.admin-cupom-form-wrap {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 0.55rem;
    align-items: end;
    margin-bottom: 0.65rem;
}

.admin-cupom-campo {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.admin-cupom-campo label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-soft);
}

.admin-cupom-campo input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0.52rem 0.6rem;
    background: #fff;
    color: var(--text);
    font-size: 0.88rem;
}

.admin-cupom-feedback {
    margin: 0.2rem 0 0.7rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    min-height: 34px;
}

.admin-cupom-info {
    background: #edf4fd;
    color: #1c4f87;
    border-color: #c8def7;
}

.admin-cupom-ok {
    background: #eaf9f4;
    color: #0d7d63;
    border-color: #bdeedb;
}

.admin-cupom-erro {
    background: #fff1f1;
    color: #a12a2a;
    border-color: #f4c6c6;
}

.lista-conta {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lista-conta li {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.6rem;
}

.tabela-pedidos-wrap {
    width: 100%;
    overflow: auto;
}

.tabela-pedidos {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.tabela-pedidos th,
.tabela-pedidos td {
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0.55rem;
    text-align: left;
    font-size: 0.88rem;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tabela-pedidos tbody tr {
    transition: background var(--transition);
}

.tabela-pedidos tbody tr:hover {
    background: var(--bg-soft);
}

.tabela-pedidos thead th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: "Inter", sans-serif;
}

.status-pedido {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 0.22rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: normal;
    line-height: 1.25;
}

.status-recebendo {
    background: #fffbe6;
    color: #92690a;
    border: 1px solid #fcd05a;
}

.status-separando {
    background: #e8f2fc;
    color: #1558a0;
    border: 1px solid #b3d0f5;
}

.status-saiu-entrega {
    background: #fff0e6;
    color: #c2440a;
    border: 1px solid #f7b07a;
}

.status-entregue {
    background: var(--accent-light);
    color: #0a7e61;
    border: 1px solid #a8e0ce;
}

#admin-produtos-disponibilidade .status-pedido {
    white-space: nowrap;
    min-width: max-content;
}

.admin-status-acoes {
    white-space: nowrap;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-status {
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1.4;
}

.btn-status:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-status:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--line);
    color: var(--text-muted);
    background: #f4f7fb;
    box-shadow: none;
}

.btn-status-ativo {
    font-weight: 700;
}

.btn-status-recebendo-ativo {
    background: #fffbe6;
    color: #92690a;
    border-color: #d4a017;
    box-shadow: 0 0 0 2px rgba(212,160,23,0.18);
}

.btn-status-separando-ativo {
    background: #e8f2fc;
    color: #1558a0;
    border-color: #1558a0;
    box-shadow: 0 0 0 2px rgba(21,88,160,0.15);
}

.btn-status-saiu-ativo {
    background: #fff0e6;
    color: #c2440a;
    border-color: #e07240;
    box-shadow: 0 0 0 2px rgba(194,68,10,0.15);
}

.btn-status-entregue-ativo {
    background: var(--accent-light);
    color: #0a7e61;
    border-color: #0d9e7a;
    box-shadow: 0 0 0 2px rgba(13,158,122,0.15);
}

.btn-pag-aprovar {
    background: var(--accent-light);
    color: #0a7e61;
    border-color: #0d9e7a;
    font-weight: 600;
}

.btn-pag-aprovar:hover:not(:disabled) {
    background: #0d9e7a;
    color: #fff;
}

.btn-pag-rejeitar {
    background: #fff0f0;
    color: #b91c1c;
    border-color: #e57373;
    font-weight: 600;
}

.btn-pag-rejeitar:hover:not(:disabled) {
    background: #b91c1c;
    color: #fff;
}

.whatsapp-flutuante {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: linear-gradient(135deg, #18a96c 0%, #25d366 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(18, 132, 88, 0.4);
    z-index: 1000;
    transition: all var(--transition);
}

.whatsapp-flutuante:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 28px rgba(18, 132, 88, 0.5);
}

.app-bottom-nav {
    display: none;
}

.assinatura-nextwebs {
    position: fixed;
    left: 0.85rem;
    bottom: 0.85rem;
    z-index: 980;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(12, 27, 46, 0.7);
    color: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: all var(--transition);
    pointer-events: none;
}

.assinatura-nextwebs:hover {
    background: rgba(12, 27, 46, 0.84);
    color: #ffffff;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #0d1f30;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(8, 24, 44, 0.32);
    animation: cookieEntrar 0.4s cubic-bezier(0.34,1.12,0.64,1) both;
}

.cookie-banner[hidden] {
    display: none;
}

@keyframes cookieEntrar {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-conteudo {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner-icone {
    font-size: 1.5rem;
    color: #f0c060;
    flex-shrink: 0;
}

.cookie-banner-conteudo p {
    flex: 1;
    min-width: 200px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

.cookie-banner-acoes {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-cookie-aceitar {
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
}

.btn-cookie-recusar {
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
    background: transparent;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cookie-recusar:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}

@media (max-width: 1100px) {
    .grade-produtos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .indicadores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .destaques-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hero,
    .banner-interno,
    .pagina-contato.profissional,
    .conta-grid,
    .modal-produto-grid,
    .jornada-conteudo {
        grid-template-columns: 1fr;
    }

    .modal-produto-imagem-wrap {
        min-height: 220px;
        max-height: 100%;
    }

    .modal-produto-grid img {
        max-height: 100%;
    }

    .banner-interno {
        height: auto;
        min-height: auto;
    }

    .grade-produtos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .acesso-central {
        grid-template-columns: 1fr;
    }

    .rodape-grid {
        grid-template-columns: 1fr;
    }

    .admin-resumo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-card-topo {
        flex-direction: column;
        align-items: flex-start;
    }

    .parceiros-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .cabecalho {
        grid-template-columns: 1fr auto;
        padding: 0.65rem 0.9rem;
    }

    .menu {
        display: none;
        position: fixed;
        top: 4.1rem;
        right: 0.7rem;
        width: min(84vw, 240px);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 0.7rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .menu.ativo {
        display: flex;
    }

    .menu-hamburguer {
        display: inline-grid;
        place-items: center;
    }

    .menu a {
        width: 100%;
        border-bottom: 1px solid transparent;
        padding-bottom: 0.2rem;
    }

    .grade-produtos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .destaques-grid,
    .indicadores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-resumo {
        grid-template-columns: 1fr;
    }

    .hero-inicio {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 520px) {
    .indicadores {
        grid-template-columns: 1fr;
    }

    /* Cards de produto menores */
    .produto-media {
        min-height: 110px;
        padding: 0.4rem;
    }

    .cartao-produto img {
        height: 90px;
    }

    .cartao-produto h3 {
        font-size: 0.78rem;
        min-height: auto;
    }

    .preco {
        font-size: 0.88rem;
    }

    .btn-carrinho {
        font-size: 0.72rem;
        padding: 0.4rem 0.5rem;
    }

    .cartao-produto {
        padding: 0.45rem;
    }

    /* Header menor */
    .logo {
        height: 36px;
        width: auto;
        max-width: 150px;
    }

    .header-carrinho,
    .header-conta,
    .menu-hamburguer {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* Indicadores menores */
    .indicador-numero {
        font-size: 1.6rem;
    }

    .indicador-card {
        padding: 0.7rem;
    }

    /* Parceiros menores */
    .parceiro-logo {
        width: 38px;
        height: 38px;
    }

    .parceiro-card {
        padding: 0.8rem 0.6rem;
    }

    /* Destaques menores */
    .destaque-card {
        padding: 0.75rem;
    }

    /* Rodapé menor */
    .rodape-grid {
        gap: 0.6rem;
    }

    /* Conta/Admin cards menores */
    .conta-card,
    .admin-card {
        padding: 0.7rem;
    }

    /* Formulário de contato */
    .info-contato,
    .formulario-mensagem {
        padding: 0.75rem;
    }
}

/* ===== MOBILE APP MODE ===== */
@media (max-width: 780px) {
    html,
    body {
        background: #e9f1fa;
    }

    body {
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    }

    .cabecalho-direita {
        display: none;
    }

    .menu {
        display: none !important;
    }

    .app-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1250;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        height: calc(86px + env(safe-area-inset-bottom, 0px));
        padding: 0.45rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
        background: rgba(246, 251, 255, 0.97);
        border-top: 1px solid #cfe0f2;
        border-radius: 0;
        box-shadow: 0 -8px 24px rgba(8, 28, 52, 0.14);
        backdrop-filter: blur(14px);
    }

    .app-nav-link {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 0.15rem;
        color: #5f7488;
        text-decoration: none;
        font-size: 0.66rem;
        font-weight: 700;
        min-height: 52px;
        line-height: 1;
    }

    .app-nav-link i {
        font-size: 1rem;
    }

    .app-nav-link.ativo {
        color: var(--primary-strong);
    }

    .app-nav-inicio { grid-column: 1; }
    .app-nav-produtos { grid-column: 2; }
    .app-nav-contato { grid-column: 4; }
    .app-nav-conta { grid-column: 5; }

    .app-nav-cart {
        grid-column: 3;
        justify-self: center;
        align-self: start;
        width: 64px;
        height: 64px;
        margin-top: -1.5rem;
        border-radius: 50%;
        border: 3px solid #d7e8fb;
        background: linear-gradient(160deg, #2f84d7 0%, #1558a0 100%);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 1.35rem;
        box-shadow: 0 10px 24px rgba(21, 88, 160, 0.38);
    }

    .whatsapp-flutuante {
        bottom: calc(116px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-banner {
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(110px + env(safe-area-inset-bottom, 0px));
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.12);
        padding: 0.8rem;
    }

    #conteudo-principal {
        width: 100%;
        max-width: 520px;
        padding: 0.6rem 0.5rem 0.8rem;
    }

    .cabecalho {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 0.45rem 0.6rem;
        background: rgba(248, 252, 255, 0.94);
        border-bottom: 1px solid #d6e6f6;
    }

    .logo {
        height: 54px;
        width: auto;
        max-width: 180px;
    }

    .cabecalho-direita {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        z-index: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        gap: 0.3rem;
        box-shadow: none;
    }

    .header-carrinho,
    .header-conta,
    .menu-hamburguer {
        width: 48px;
        height: 48px;
    }

    .menu {
        top: 4.25rem;
        right: 0.65rem;
        left: auto;
        bottom: auto;
        transform: none;
        width: min(90vw, 320px);
        border-radius: 18px;
        padding: 0.8rem;
    }

    .menu a {
        padding: 0.48rem 0.4rem;
    }

    .banner-interno,
    .info-contato,
    .formulario-mensagem,
    .conta-card,
    .admin-card,
    .jornada,
    .parceiros,
    .bloco-cta {
        border-radius: 18px;
    }

    .tabela-pedidos-wrap {
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }

    .tabela-pedidos th,
    .tabela-pedidos td {
        font-size: 0.82rem;
        padding: 0.58rem 0.48rem;
    }

    .modal-carrinho-card,
    .modal-compra-card,
    .modal-auth-card,
    .modal-produto-card {
        width: min(560px, calc(100vw - 2.2rem));
        border-radius: 20px;
        padding: 0.95rem;
        max-height: calc(100dvh - 2.2rem);
    }

    .modal-auth-card {
        width: min(440px, calc(100vw - 2.2rem));
        padding-top: 1.15rem;
    }

    .modal-produto-card {
        width: min(620px, calc(100vw - 2.2rem));
    }

    .whatsapp-flutuante {
        right: 0.9rem;
        bottom: calc(116px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 520px) {
    #conteudo-principal {
        padding: 0.75rem 0.62rem 0.9rem;
    }

    .app-bottom-nav {
        height: 82px;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .app-nav-cart {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .banner-interno,
    .info-contato,
    .formulario-mensagem,
    .conta-card,
    .admin-card,
    .bloco-cta {
        padding: 1rem;
    }

    .modal-carrinho,
    .modal-compra,
    .modal-auth,
    .modal-produto {
        align-items: center;
        justify-content: center;
        padding: 0.85rem;
    }

    .modal-carrinho-card,
    .modal-compra-card,
    .modal-auth-card,
    .modal-produto-card {
        width: min(560px, calc(100vw - 1.7rem));
        max-height: calc(100dvh - 1.7rem);
        border-radius: 18px;
    }

    .modal-carrinho-fechar,
    .modal-auth-fechar {
        width: 42px;
        height: 42px;
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.4rem;
        border-width: 2px;
        background: #fff;
        color: #1a1a2e;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    .rodape {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.6rem);
    }

    .rodape-grid {
        padding: 1rem 0.8rem;
    }

    .grade-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 680px) {
    .conta-card .tabela-pedidos-wrap,
    .admin-card .tabela-pedidos-wrap {
        border: none;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .conta-card .tabela-pedidos thead,
    .admin-card .tabela-pedidos thead {
        display: none;
    }

    .conta-card .tabela-pedidos,
    .conta-card .tabela-pedidos tbody,
    .admin-card .tabela-pedidos,
    .admin-card .tabela-pedidos tbody {
        display: block;
        width: 100%;
    }

    .conta-card .tabela-pedidos tr,
    .admin-card .tabela-pedidos tr {
        display: block;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 0.8rem 1rem;
        margin-bottom: 0.65rem;
        transition: box-shadow var(--transition);
    }

    .conta-card .tabela-pedidos tr:last-child,
    .admin-card .tabela-pedidos tr:last-child {
        margin-bottom: 0;
    }

    .conta-card .tabela-pedidos tr:hover,
    .admin-card .tabela-pedidos tr:hover {
        box-shadow: var(--shadow-sm);
    }

    .conta-card .tabela-pedidos td,
    .admin-card .tabela-pedidos td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.3rem 0;
        border: none;
        font-size: 0.9rem;
        gap: 0.6rem;
        border-bottom: 1px solid var(--line);
    }

    .conta-card .tabela-pedidos td:last-child,
    .admin-card .tabela-pedidos td:last-child {
        border-bottom: none;
    }

    .conta-card .tabela-pedidos td::before,
    .admin-card .tabela-pedidos td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-soft);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
    }

    .admin-card .tabela-pedidos .admin-status-acoes {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.4rem;
        padding-top: 0.4rem;
    }

    .admin-card .tabela-pedidos .admin-status-acoes::before {
        align-self: flex-start;
    }

    .admin-card .tabela-pedidos .btn-status {
        width: 100%;
        justify-content: center;
    }

    .admin-cupom-form-wrap {
        grid-template-columns: 1fr;
    }
}

/* ===== PREMIUM MOBILE FINISH ===== */
@keyframes appRevealUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 780px) {
    .banner-interno,
    .bloco-cta,
    .info-contato,
    .formulario-mensagem,
    .conta-card,
    .admin-card,
    .indicador-card,
    .destaque-card,
    .cartao-produto {
        box-shadow: 0 8px 20px rgba(12, 27, 46, 0.09);
    }

    #conteudo-principal > section,
    .grade-produtos > .cartao-produto,
    .conta-grid > .conta-card,
    .admin-grid > .admin-card,
    .indicadores > .indicador-card,
    .destaques-grid > .destaque-card {
        animation: appRevealUp 0.38s ease both;
    }

    .grade-produtos > .cartao-produto:nth-child(2),
    .conta-grid > .conta-card:nth-child(2),
    .admin-grid > .admin-card:nth-child(2),
    .indicadores > .indicador-card:nth-child(2),
    .destaques-grid > .destaque-card:nth-child(2) {
        animation-delay: 0.06s;
    }

    .grade-produtos > .cartao-produto:nth-child(3),
    .admin-grid > .admin-card:nth-child(3),
    .indicadores > .indicador-card:nth-child(3),
    .destaques-grid > .destaque-card:nth-child(3) {
        animation-delay: 0.12s;
    }

    .grade-produtos > .cartao-produto:nth-child(4),
    .indicadores > .indicador-card:nth-child(4) {
        animation-delay: 0.16s;
    }

    .btn,
    .btn-carrinho,
    .btn-finalizar,
    .btn-status,
    .aba,
    .header-carrinho,
    .header-conta,
    .menu-hamburguer {
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active,
    .btn-carrinho:active,
    .btn-finalizar:active,
    .btn-status:active,
    .aba:active,
    .header-carrinho:active,
    .header-conta:active,
    .menu-hamburguer:active {
        transform: scale(0.98);
    }

    .menu,
    .cabecalho-direita {
        backdrop-filter: blur(12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #conteudo-principal > section,
    .grade-produtos > .cartao-produto,
    .conta-grid > .conta-card,
    .admin-grid > .admin-card,
    .indicadores > .indicador-card,
    .destaques-grid > .destaque-card {
        animation: none !important;
    }
}

/* ===== PASSWORD & FORM VALIDATION ===== */
.campo-senha-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.campo-senha-wrap input {
    padding-right: 2.8rem !important;
    width: 100%;
}

.btn-ver-senha {
    position: absolute;
    right: 0.65rem;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.3rem;
    line-height: 1;
    border-radius: 4px;
}

.btn-ver-senha:hover {
    color: var(--primary);
}

.forca-senha-bar {
    height: 5px;
    background: var(--line);
    border-radius: 999px;
    margin-top: 0.45rem;
    overflow: hidden;
}

.forca-senha-bar > div {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.forca-senha-texto {
    font-size: 0.78rem;
    font-weight: 700;
    display: block;
    margin-top: 0.25rem;
    min-height: 1.1em;
}

.campo-msg {
    font-size: 0.78rem;
    font-weight: 600;
    display: block;
    min-height: 1.1em;
    margin-top: 0.2rem;
    margin-bottom: 0.1rem;
}

.campo-msg.campo-erro {
    color: #d93025;
}

.campo-msg.campo-ok {
    color: #1c8f6f;
}

.msg-form-erro {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c0392b;
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.4rem;
    min-height: 0;
}

.msg-form-erro:empty {
    display: none;
}

/* ===== CONTA PAGE — NAO LOGADO ===== */
.conta-nao-logado {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.conta-nao-logado-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.8rem 2.2rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.conta-nao-logado-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.conta-nao-logado-card > i {
    font-size: 2.8rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.9rem;
    background: var(--primary-light);
    width: 72px; height: 72px;
    border-radius: 50%;
    line-height: 72px;
    text-align: center;
    margin: 0 auto 1rem;
}

.conta-nao-logado-card h2 {
    margin-bottom: 0.5rem;
}

.conta-nao-logado-card p {
    color: var(--text-soft);
    margin-bottom: 1.2rem;
}

.conta-nao-logado-acoes {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CONTA PAGE — DASHBOARD ===== */
.conta-dashboard {
    display: grid;
    gap: 1rem;
}

.conta-boas-vindas {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, var(--bg-surface) 60%, #eef5fd 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.conta-boas-vindas::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.conta-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avatar-grad-start, #1558a0) 0%, var(--avatar-grad-end, #2f84d7) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(21, 88, 160, 0.25);
}

.conta-boas-vindas-info {
    display: grid;
    gap: 0;
    min-width: 0;
}

#conta-nome-display {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.conta-card-topo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.conta-card-topo i {
    color: #2f84d7;
    font-size: 0.95rem;
}

.conta-card-topo h2 {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.lista-conta li {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 0.18rem;
    padding: 0.5rem 0.7rem;
}

.lista-conta-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.lista-conta-label i {
    color: #2f84d7;
    width: 1rem;
    text-align: center;
}

.lista-conta li > span:last-child {
    color: var(--text);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.35;
}

.conta-card .tabela-pedidos-wrap {
    margin-top: 0.2rem;
}

.conta-ajuda-pedidos {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid #b7e4d2;
    background: #eefaf4;
    color: #155a45;
    font-size: 0.88rem;
}

.conta-ajuda-pedidos a {
    color: #0f7d5f;
    font-weight: 700;
    text-decoration: underline;
}

.conta-card .tabela-pedidos th,
.conta-card .tabela-pedidos td {
    padding: 0.72rem 0.65rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

.conta-card .status-pedido {
    white-space: nowrap;
}

/* ===== SECURITY CARD ===== */
.conta-seguranca-itens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.conta-seg-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
}

.conta-seg-item > i {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
    background: var(--accent-light);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.conta-seg-item strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
}

.conta-seg-item p {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.conta-seguranca-compacta {
    padding: 0.8rem;
}

.conta-seguranca-compacta .conta-card-topo {
    margin-bottom: 0.45rem;
    padding-bottom: 0.4rem;
}

.conta-seguranca-compacta .conta-seguranca-itens {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0;
}

.conta-seguranca-compacta .conta-seg-item {
    padding: 0.5rem;
    gap: 0.5rem;
}

.conta-seguranca-compacta .conta-seg-item > i {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
}

.conta-seguranca-compacta .conta-seg-item strong {
    font-size: 0.81rem;
    margin-bottom: 0.1rem;
}

.conta-seguranca-compacta .conta-seg-item p {
    font-size: 0.74rem;
    line-height: 1.3;
}

@media (max-width: 860px) {
    .conta-seguranca-itens {
        grid-template-columns: 1fr;
    }
    .conta-boas-vindas {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== RESPONSIVE HARDENING ===== */
.cabecalho,
.hero,
.banner-interno,
.conta-grid,
.admin-grid,
.admin-resumo,
.jornada-conteudo,
.parceiros-cards,
.destaques-grid,
.indicadores,
.grade-produtos {
    min-width: 0;
}

iframe {
    max-width: 100%;
}

@media (max-width: 1024px) {
    #conteudo-principal {
        padding: 1rem 0.8rem;
    }

    .admin-resumo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookie-banner {
        padding: 0.85rem 0.8rem;
    }

    .cookie-banner-conteudo {
        align-items: flex-start;
    }
}

@media (max-width: 860px) {
    .grade-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-inicio,
    .banner-interno {
        height: auto;
        min-height: auto;
    }

    .produto-media {
        min-height: 155px;
    }

    .cartao-produto img {
        height: 128px;
    }
}

@media (max-width: 640px) {
    .cookie-banner-conteudo p {
        min-width: 0;
    }

    .cookie-banner-acoes {
        width: 100%;
    }

    .btn-cookie-aceitar,
    .btn-cookie-recusar {
        flex: 1;
        justify-content: center;
    }

    .admin-metrica {
        min-height: auto;
    }

    .checkout-entrega,
    .checkout-cupom {
        padding: 0.7rem;
    }
}

@media (max-width: 420px) {
    .grade-produtos {
        grid-template-columns: 1fr;
    }

    .abas-categorias {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .aba {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .app-nav-link {
        font-size: 0.62rem;
    }

    .whatsapp-flutuante {
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
    }

    .conta-card .tabela-pedidos td,
    .admin-card .tabela-pedidos td {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== APP-LIKE COMPACT VISUAL ===== */
:root {
    --radius-lg: 16px;
    --radius-md: 12px;
    --top-card-height: 280px;
}

#conteudo-principal {
    width: min(1040px, 100%);
    padding: 1rem;
}

.cabecalho {
    padding: 0.55rem 1rem;
}

.hero,
.banner-interno,
.jornada,
.parceiros,
.conta-card,
.admin-card,
.info-contato,
.formulario-mensagem,
.bloco-cta {
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.hero,
.banner-interno {
    gap: 0.85rem;
}

.hero-imagem img,
.banner-interno img,
.hero-video,
.hero-video-wrapper {
    min-height: 220px;
}

.indicador-card {
    min-height: 122px;
    padding: 0.9rem;
}

.destaque-card,
.parceiro-card,
.cartao-produto,
.admin-metrica {
    padding: 0.9rem;
}

.produto-media {
    min-height: 150px;
}

.cartao-produto img {
    height: 130px;
}

.jornada-conteudo > div {
    min-height: 210px;
    padding: 0.95rem;
}

.jornada-conteudo img {
    min-height: 210px;
}

.rodape-grid {
    gap: 0.8rem;
}

@media (max-width: 1024px) {
    :root {
        --top-card-height: 250px;
    }

    #conteudo-principal {
        padding: 0.9rem 0.75rem;
    }

    .hero,
    .banner-interno,
    .jornada,
    .parceiros,
    .conta-card,
    .admin-card,
    .info-contato,
    .formulario-mensagem,
    .bloco-cta {
        padding: 0.9rem;
    }
}

@media (max-width: 780px) {
    .indicadores {
        gap: 0.55rem;
        margin: 0.7rem 0;
        justify-items: stretch;
    }

    .indicador-card {
        width: 100%;
        min-height: 118px;
        padding: 0.78rem 0.72rem;
        grid-template-rows: auto auto auto;
        row-gap: 0.24rem;
    }

    .indicador-card i {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        font-size: 0.8rem;
    }

    .indicador-numero {
        font-size: 1.45rem;
        margin: 0;
    }

    .indicador-card p {
        font-size: 0.82rem;
        line-height: 1.32;
    }
}

@media (max-width: 520px) {
    .indicadores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .indicador-card {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        padding: 0.66rem 0.58rem;
        row-gap: 0.24rem;
    }

    .indicador-card i {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 0.84rem;
    }

    .indicador-numero {
        font-size: 1.38rem;
        font-weight: 900;
    }

    .indicador-card p {
        font-size: 0.8rem;
        line-height: 1.3;
        font-weight: 600;
    }
}

/* ===== AJUSTE FINAL: VER DETALHES (REFERENCIA VISUAL) ===== */
.modal-produto-card {
    width: min(1080px, 96vw);
    max-height: 88vh;
    padding: 0.9rem;
    border-radius: 24px;
    background: #ffffff;
}

.modal-produto-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 1cm;
    align-items: stretch;
    height: calc(88vh - 1.8rem);
    max-height: calc(88vh - 1.8rem);
}

.modal-produto-imagem-wrap {
    min-height: 0;
    height: 100%;
    max-height: none;
    padding: 0.28rem;
    border-radius: 18px;
    border: 1px solid #dee7f1;
    background: #ffffff;
    align-items: center;
}

.modal-produto-grid img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.modal-produto-info {
    height: 100%;
    max-height: 100%;
    padding: 0.72rem 0.7rem 0.68rem;
    border-radius: 18px;
    border: 1px solid #e7edf5;
    background: #ffffff;
    gap: 0.42rem;
    overflow: hidden;
}

.modal-produto-info h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
}

#modal-produto-descricao {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.42;
}

.modal-descricao-texto {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.modal-produto-especificacoes {
    display: none;
}

.modal-preco {
    font-size: 2.05rem;
    line-height: 1;
    margin: 0.08rem 0 0.05rem;
}

.modal-disponibilidade {
    font-size: 0.82rem;
    margin-bottom: 0.12rem;
}

#container-tamanhos {
    margin-top: 0;
}

.btn-add-modal {
    margin-top: auto;
    min-height: 52px;
    border-radius: 999px;
}

@media (max-width: 860px) {
    .modal-produto-card {
        width: min(740px, 98vw);
        max-height: 92vh;
        overflow: auto;
    }

    .modal-produto-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .modal-produto-imagem-wrap {
        height: 280px;
    }

    .modal-produto-info {
        height: auto;
        max-height: none;
    }

    .modal-preco {
        font-size: 1.8rem;
    }
}

/* ===== SIMETRIA FINAL: PAGINA PRODUTOS ===== */
.pagina-produtos .grade-produtos {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 0.78rem;
}

.pagina-produtos .cartao-produto {
    display: flex;
    flex-direction: column;
    height: 430px;
    min-height: 430px;
    padding: 0.72rem;
}

.pagina-produtos .produto-media {
    height: 170px;
    min-height: 170px;
    padding: 0.38rem;
}

.pagina-produtos .cartao-produto img {
    height: 130px;
    max-height: 130px;
}

.pagina-produtos .cartao-produto h3 {
    min-height: 2.55rem;
    margin-top: 0.45rem;
}

.pagina-produtos .produto-card-resumo {
    min-height: 2.2rem;
    max-height: 2.2rem;
    margin-top: 0.2rem;
}

.pagina-produtos .produto-card-tamanhos {
    margin-top: 0.2rem;
    min-height: 1.55rem;
    max-height: 1.55rem;
}

.pagina-produtos .produto-card-tamanhos-lista {
    min-height: 1.45rem;
    max-height: 1.45rem;
}

.pagina-produtos .preco {
    margin-top: auto;
    margin-bottom: 0.35rem;
}

.pagina-produtos .btn-carrinho {
    margin-top: 0;
}

.modal-produto-card {
    width: min(980px, 96vw);
    max-height: 88vh;
    padding: 0.78rem;
}

.modal-produto-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: stretch;
    height: calc(88vh - 1.56rem);
    max-height: calc(88vh - 1.56rem);
}

.modal-produto-imagem-wrap {
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: 0.3rem;
    align-items: center;
}

.modal-produto-grid img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
}

.modal-produto-info {
    height: 100%;
    max-height: 100%;
    padding: 0.7rem 0.72rem 0.66rem;
    gap: 0.32rem;
}

.modal-carrinho-fechar {
    z-index: 2;
}

@media (max-width: 860px) {
    .pagina-produtos .grade-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pagina-produtos .cartao-produto {
        height: 405px;
        min-height: 405px;
    }

    .pagina-produtos .produto-media {
        height: 156px;
        min-height: 156px;
    }

    .pagina-produtos .cartao-produto img {
        height: 120px;
        max-height: 120px;
    }

    .modal-produto-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .modal-produto-card {
        max-height: 92vh;
        overflow: auto;
    }

    .modal-produto-imagem-wrap {
        height: 260px;
    }

    .modal-produto-info {
        height: auto;
        max-height: none;
    }
}

@media (max-width: 520px) {
    .pagina-produtos .grade-produtos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.55rem;
    }

    .pagina-produtos .cartao-produto {
        height: 345px;
        min-height: 345px;
        padding: 0.55rem;
    }

    .pagina-produtos .produto-media {
        height: 124px;
        min-height: 124px;
    }

    .pagina-produtos .cartao-produto img {
        height: 96px;
        max-height: 96px;
    }

    .pagina-produtos .cartao-produto h3 {
        font-size: 0.88rem;
        min-height: 2.25rem;
        max-height: 2.25rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    .pagina-produtos .produto-card-resumo {
        min-height: 1.9rem;
        max-height: 1.9rem;
        font-size: 0.76rem;
    }

    .pagina-produtos .produto-card-tamanhos {
        min-height: 1.55rem;
        max-height: 1.55rem;
    }

    .pagina-produtos .tag-tamanho-card {
        font-size: 0.64rem;
        padding: 0.08rem 0.34rem;
    }

    .pagina-produtos .tag-tamanho-extra {
        min-width: 40px;
        max-width: 40px;
    }

    .pagina-produtos .preco {
        font-size: 0.84rem;
        white-space: nowrap;
        line-height: 1.15;
        letter-spacing: -0.01em;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pagina-produtos .btn-carrinho {
        padding: 0.48rem 0.6rem;
        font-size: 0.78rem;
    }
}

/* Final mobile override: keep centered modals fully visible */
@media (max-width: 520px) {
    .modal-carrinho,
    .modal-compra,
    .modal-auth,
    .modal-produto {
        align-items: center;
        justify-content: center;
        padding: 0.85rem;
    }

    .modal-carrinho-card,
    .modal-compra-card,
    .modal-auth-card,
    .modal-produto-card {
        width: min(520px, calc(100vw - 1.7rem));
        max-height: calc(100dvh - 1.7rem);
        margin: 0 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-produto-card {
        padding: 0.62rem;
    }

    .modal-produto-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        gap: 0.5rem;
    }

    .modal-produto-imagem-wrap {
        height: 200px;
        min-height: 200px;
    }

    .modal-produto-info {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 380px) {
    .modal-produto-imagem-wrap {
        height: 170px;
        min-height: 170px;
    }
}

@media (max-width: 780px) {
    .assinatura-nextwebs {
        display: none;
    }
}

/* Ajuste extra solicitado: modal "Ver detalhes" bem menor */
.modal-produto-card {
    width: min(760px, calc(100vw - 5rem));
    max-height: min(82vh, calc(100dvh - 5rem));
}

@media (max-width: 860px) {
    .modal-produto-card {
        width: min(500px, calc(100vw - 2.6rem));
        max-height: calc(100dvh - 2.2rem);
    }

    .modal-produto-imagem-wrap {
        height: 210px;
        min-height: 210px;
    }
}

@media (max-width: 520px) {
    .modal-produto-card {
        width: min(420px, calc(100vw - 1.8rem));
        max-height: calc(100dvh - 1.8rem);
        padding: 0.52rem;
    }

    .modal-produto-imagem-wrap {
        height: 160px;
        min-height: 160px;
    }

    .modal-produto-info {
        padding: 0.52rem 0.56rem;
    }
}

/* Ajuste fino solicitado: cards de modal um pouco menores */
.modal-auth-card {
    width: min(460px, calc(100vw - 3.1rem));
}

.modal-produto-card {
    width: min(640px, calc(100vw - 6rem));
    max-height: min(78vh, calc(100dvh - 6rem));
}

@media (max-width: 780px) {
    .modal-auth-card {
        width: min(410px, calc(100vw - 2.6rem));
    }

    .modal-produto-card {
        width: min(430px, calc(100vw - 2.8rem));
        max-height: calc(100dvh - 2.6rem);
    }

    .modal-produto-imagem-wrap {
        height: 145px;
        min-height: 145px;
    }
}

@media (max-width: 520px) {
    .modal-auth-card {
        width: min(390px, calc(100vw - 2rem));
    }

    .modal-produto-card {
        width: min(340px, calc(100vw - 1.8rem));
        max-height: calc(100dvh - 1.8rem);
        padding: 0.44rem;
    }

    .modal-produto-imagem-wrap {
        height: 130px;
        min-height: 130px;
    }

    .modal-produto-info {
        padding: 0.46rem 0.5rem;
    }
}

/* Override final: modal Ver detalhes com todo conteudo dentro do card */
.modal-produto-card {
    width: min(1080px, calc(100vw - 2.4rem));
    max-height: calc(100dvh - 2.4rem);
    padding: 1rem;
    overflow: auto;
}

.modal-produto-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(320px, 1fr);
    gap: 1rem;
    align-items: start;
    height: auto;
    max-height: none;
}

.modal-produto-imagem-wrap {
    min-height: 360px;
    max-height: 520px;
    padding: 0.4rem;
    align-items: center;
}

.modal-produto-grid img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.modal-produto-info {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0.9rem;
    gap: 0.5rem;
}

.modal-produto-info h3 {
    font-size: 1.45rem;
    line-height: 1.2;
}

#modal-produto-descricao {
    font-size: 0.98rem;
    line-height: 1.5;
}

.modal-produto-especificacoes {
    display: grid;
    gap: 0.45rem;
}

.modal-preco {
    font-size: 2rem;
    margin: 0.1rem 0 0.2rem;
}

.modal-disponibilidade {
    margin: 0 0 0.15rem;
}

.btn-add-modal {
    margin-top: 0.25rem;
    min-height: 48px;
}

@media (max-width: 980px) {
    .modal-produto-card {
        width: min(920px, calc(100vw - 1.8rem));
        max-height: calc(100dvh - 1.8rem);
        padding: 0.85rem;
    }

    .modal-produto-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .modal-produto-imagem-wrap {
        min-height: 250px;
        max-height: 360px;
    }

    .modal-produto-grid img {
        max-height: 340px;
    }
}

@media (max-width: 560px) {
    .modal-produto-card {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        padding: 0.7rem;
    }

    .modal-produto-imagem-wrap {
        min-height: 200px;
        max-height: 260px;
    }

    .modal-produto-grid img {
        max-height: 240px;
    }

    .modal-produto-info {
        padding: 0.72rem;
    }

    .modal-produto-info h3 {
        font-size: 1.2rem;
    }

    .modal-preco {
        font-size: 1.7rem;
    }
}

/* Ajustes finais de usabilidade e consistencia visual */
@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cabecalho {
    background: #ffffff;
}

.logo-area {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.pagina-inicio .hero-inicio {
    min-height: auto;
    height: auto;
}

.pagina-inicio .hero-inicio .hero-video-wrapper,
.pagina-inicio .hero-inicio .hero-video,
.pagina-inicio #hero-inicio-slideshow {
    min-height: 0;
    height: auto;
}

.pagina-inicio .hero-inicio .hero-video-wrapper {
    line-height: 0;
}

@media (max-width: 780px) {
    .app-nav-link {
        width: 100%;
    }

    .banner-interno .hero-botoes {
        width: 100%;
    }

    .banner-interno .hero-botoes .btn {
        width: 100%;
        flex: 1 1 100%;
    }

    .checkout-entrega input,
    .checkout-cupom-linha input,
    .frete-toolbar select {
        font-size: 16px;
    }

    .app-nav-cart {
        width: 56px;
        height: 56px;
        margin-top: -1.1rem;
    }

    .app-nav-cart:active,
    .header-carrinho:active,
    .btn-frete:active,
    .btn-finalizar:active {
        transform: none !important;
    }
}

@media (max-width: 520px) {
    .app-nav-cart {
        width: 54px;
        height: 54px;
        margin-top: -1rem;
    }
}
