:root {
    --bg: #FDFBF7;
    --card: #fff;
    --line: #c9e6de;
    --teal: #1E7A4F;
    --btn: #1E7A4F;
    --ink: #3a3330;
    --muted: #8a7f76;
    --green: #2f8f5b;
    --green-bg: #e3f4ea;
    --orange: #c9731a;
    --orange-bg: #fdeedb;
    --gray: #8b8b8b;
    --gray-bg: #eee
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 84px;
    max-width: 760px;
    margin: 0 auto;
    min-height: 100vh
}

.serif {
    font-family: Georgia, "Times New Roman", serif
}

.deliver {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    padding: 9px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.deliver b {
    color: var(--ink);
    font-weight: 600
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px
}

.brand svg {
    width: 30px;
    height: 30px
}

.brand span {
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 19px
}

.icons {
    display: flex;
    gap: 6px
}

.icon-btn {
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    color: var(--ink)
}

.icon-btn svg {
    width: 22px;
    height: 22px
}

.badge {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--teal);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center
}

.hero {
    text-align: center;
    padding: 46px 24px 40px;
    background: radial-gradient(circle at 15% 10%, rgba(108, 195, 179, .30), transparent 45%), radial-gradient(circle at 90% 90%, rgba(108, 195, 179, .18), transparent 45%)
}

.hero .mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: block
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(34px, 10vw, 52px);
    line-height: 1.1
}

.hero h1 em {
    color: var(--teal);
    font-style: italic
}

.hero p.sub {
    margin-top: 14px;
    font-size: 16px;
    color: var(--muted)
}

.cta {
    margin-top: 26px;
    background: var(--btn);
    color: #fff;
    border: 0;
    cursor: pointer;
    padding: 15px 34px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(106, 191, 183, .35)
}

.hero small {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted)
}

.section {
    padding: 30px 18px 10px
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px
}

.section-head h2 {
    font-family: Georgia, serif;
    font-weight: 500;
    font-size: 24px
}

.section-head a {
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

@media(min-width:620px) {
    .grid {
        gap: 20px
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 12px rgba(15, 61, 46, .07)
}

.photo {
    height: 220px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.photo .fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center
}

.photo .fallback svg {
    width: 46%;
    height: auto
}

.card.sold .photo img {
    filter: grayscale(.85) opacity(.7)
}

.fav {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer
}

.fav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2
}

.fav.on svg {
    fill: #e8647a;
    stroke: #e8647a
}

.info {
    padding: 13px 13px 15px
}

.info h3 {
    font-family: Georgia, serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.2
}

.price {
    margin-top: 6px;
    font-weight: 700;
    font-size: 15px
}

.tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px
}

.tag.ok {
    color: var(--green);
    background: var(--green-bg)
}

.tag.low {
    color: var(--orange);
    background: var(--orange-bg)
}

.tag.out {
    color: #5f5f5f;
    background: var(--gray-bg)
}

.buy {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--btn);
    color: #FFFFFF;
    font-weight: 600
}

.buy:disabled {
    background: #ddd;
    color: #777;
    cursor: not-allowed
}

.perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 28px 18px 8px
}

.perk {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: center;
    padding: 16px 8px;
    font-size: 12px;
    color: var(--muted)
}

.perk b {
    display: block;
    color: var(--teal);
    font-size: 20px;
    margin-bottom: 4px;
    font-family: Georgia, serif
}

footer {
    background: #0F3D2E;
    color: #FFFFFF;
    text-align: center;
    padding: 34px 20px 20px;
    font-size: 12px
}

footer .mark {
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    display: block
}

footer,
footer p,
footer small,
footer span,
footer div,
footer a,
footer .muted,
footer .rodape-links a {
    color: #FFFFFF;
}

footer .rodape-links a:hover {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

footer .name {
    color: #FFFFFF;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase
}

nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 760px;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom))
}

nav button {
    flex: 1;
    background: none;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 0
}

nav button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

nav button.active {
    color: var(--teal);
    font-weight: 600
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 50;
    max-width: 90%;
    text-align: center
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}
.admin-link {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 18px;
    border: 1px solid var(--teal);
    border-radius: 25px;
    color: var(--teal);
    text-decoration: none;
    font-size: 13px;
    transition: .2s;
}

.admin-link:hover {
    background: var(--teal);
    color: white;
}
/* MENU DE CATEGORIAS */

.categoria-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(35, 28, 23, .48);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
}

.categoria-overlay[hidden] {
    display: none;
}

.categoria-modal {
    background: #fffaf5;
    width: 100%;
    max-width: 480px;
    border-radius: 25px;
    padding: 25px 20px;
    box-shadow: 0 15px 60px #0002;
    animation: categoriaEntrada .3s ease;
}

@keyframes categoriaEntrada {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categoria-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.categoria-top span {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--teal);
    font-weight: 700;
}

.categoria-top h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    margin-top: 7px;
}

#fecharCategorias {
    border: 0;
    background: #f1e9e0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
}

.categoria-lista {
    display: grid;
    gap: 11px;
}

.categoria-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: .2s;
    color: var(--ink);
}

.categoria-item:hover {
    border-color: var(--teal);
    background: #f4fbf9;
    transform: translateY(-2px);
}

.categoria-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: #e9f5f1;
    color: var(--teal);
    display: grid;
    place-items: center;
    font-size: 24px;
}

.categoria-item span:nth-child(2) {
    flex: 1;
}

.categoria-item b,
.categoria-item small {
    display: block;
}

.categoria-item b {
    font-size: 14px;
}

.categoria-item small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.categoria-item strong {
    color: var(--teal);
    font-size: 20px;
}

@media(min-width: 600px) {
    .categoria-overlay {
        align-items: center;
    }
}

/* ÁREA DE FAVORITOS VAZIOS */

.favoritos-vazio {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 45px 20px;
    background: #fffaf5;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.favoritos-coracao {
    font-size: 65px;
    color: var(--teal);
    margin-bottom: 12px;
}

.favoritos-vazio h3 {
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    color: var(--ink);
}

.favoritos-vazio p {
    color: var(--muted);
    font-size: 13px;
    margin: 12px 0 22px;
}

.favoritos-vazio button {
    border: 0;
    border-radius: 30px;
    padding: 13px 24px;
    background: var(--btn);
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
}

/* =====================================
   ANIMAÇÕES PREMIUM SOLUNE
===================================== */

/* Entrada dos produtos */
#grid .card {
    animation: soluneEntrada .55s ease both;
    transition: transform .3s ease, box-shadow .3s ease;
}

#grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .09);
}

@keyframes soluneEntrada {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Imagens dos perfumes */
#grid .photo img {
    transition: transform .5s ease;
}

#grid .card:hover .photo img {
    transform: scale(1.06);
}

/* Botões */
.buy,
#explore,
.favoritos-vazio button {
    transition: transform .25s ease, opacity .25s ease;
}

.buy:hover,
#explore:hover,
.favoritos-vazio button:hover {
    transform: translateY(-2px);
    opacity: .88;
}

/* Coração dos favoritos */
.fav {
    transition: transform .25s ease;
}

.fav:hover {
    transform: scale(1.15);
}

.fav.on {
    animation: soluneCoracao .3s ease;
}

@keyframes soluneCoracao {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Modais */
.categoria-overlay,
#pesquisaModal {
    animation: soluneFundo .25s ease;
}

@keyframes soluneFundo {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Respeitar utilizadores que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    #grid .card,
    #grid .photo img,
    .buy,
    .fav,
    .categoria-overlay,
    #pesquisaModal {
        animation: none !important;
        transition: none !important;
    }
}
/* =====================================
   CHECKOUT PREMIUM - SOLUNE
===================================== */

.checkout-produto {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-imagem {
    width: 78px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 13px;
    background: #d3eee7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkout-imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-imagem span {
    font-size: 30px;
    color: var(--teal);
}

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

.checkout-info h3 {
    font-size: 14px;
    margin-bottom: 7px;
}

.checkout-info strong {
    font-size: 13px;
}

.checkout-info small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
}

.checkout-controles {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 10px;
}

.checkout-quantidade {
    width: 29px;
    height: 29px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 18px;
    color: var(--ink);
}

.checkout-quantidade:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.checkout-lado {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    text-align: right;
}

.checkout-lado strong {
    font-size: 13px;
    white-space: nowrap;
}

.checkout-remover {
    border: 0;
    background: transparent;
    color: #b45b54;
    font-size: 11px;
    cursor: pointer;
}

.checkout-vazio {
    text-align: center;
    padding: 30px 15px;
}

.checkout-vazio > span {
    font-size: 48px;
    color: var(--teal);
}

.checkout-vazio h3 {
    margin: 10px 0;
    font-family: Georgia, serif;
}

.checkout-vazio p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.checkout-vazio a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 30px;
    background: var(--btn);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
}
/* =====================================
   LOGOTIPO SEMPRE A GIRAR
   Para mudar a velocidade, altere os 12s (menor = mais rápido).
===================================== */

@keyframes soluneGirar {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero .mark,
.brand svg,
footer .mark {
    transform-origin: 50% 50%;
    animation: soluneGirar 12s linear infinite;
}

/* Quem prefere menos movimento não vê a rotação */
@media (prefers-reduced-motion: reduce) {
    .hero .mark,
    .brand svg,
    footer .mark {
        animation: none !important;
    }
}

/* Consultoria (página, banner e sugestão) */
.pacotes{display:grid;gap:14px;padding:6px 18px 0}
.pacote{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px}
.pacote.destaque{border:2px solid var(--teal)}
.pacote h3{font-family:Georgia,serif;font-weight:500;font-size:22px}
.pacote-preco{font-size:24px;font-weight:700;color:var(--teal);margin:4px 0 6px}
.pacote-sub{color:var(--muted);font-size:14px;line-height:1.5;margin-bottom:8px}
.pacote ul{margin:0;padding-left:18px;font-size:14px;line-height:1.6}
.cta-wa{display:inline-block;padding:12px 22px;border-radius:50px;background:var(--btn);color:#fff;text-decoration:none;font-weight:700}
.banner-consultoria{display:block;margin:18px 18px 0;padding:18px;border-radius:18px;background:#D8E8DD;color:var(--ink);text-decoration:none;border:1px solid var(--line)}
.banner-consultoria small{text-transform:uppercase;letter-spacing:.12em;font-size:11px;color:var(--teal);font-weight:700}
.banner-consultoria b{display:block;font-family:Georgia,serif;font-weight:500;font-size:21px;margin:4px 0}
.banner-consultoria span{font-size:14px;color:var(--muted);display:block}
.banner-consultoria em{display:inline-block;margin-top:10px;font-style:normal;font-weight:700;color:var(--teal)}
.atalhos-info{display:flex;gap:10px;flex-wrap:wrap;margin:12px 18px 0}
.atalhos-info a{padding:8px 14px;border-radius:50px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:13px;text-decoration:none;font-weight:600}
.sugestao{position:fixed;left:12px;right:12px;bottom:80px;z-index:60;max-width:420px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.sugestao[hidden]{display:none}
.sugestao h3{font-family:Georgia,serif;font-weight:500;font-size:19px;margin-right:24px}
.sugestao p{font-size:14px;color:var(--muted);margin:6px 0 10px;line-height:1.5}
.sugestao ul{list-style:none;margin:0 0 12px;padding:0;font-size:13.5px;line-height:1.7}
.sugestao .sug-acoes{display:flex;gap:8px;flex-wrap:wrap}
.sugestao .sug-acoes a{padding:10px 16px;border-radius:50px;background:var(--btn);color:#fff;text-decoration:none;font-weight:700;font-size:14px}
.sugestao .sug-acoes a.sec{background:#fff;color:var(--ink);border:1px solid var(--line)}
.sugestao .sug-x{position:absolute;top:8px;right:10px;border:0;background:none;font-size:22px;cursor:pointer;color:var(--muted)}

/* ------------------------------------------------------------------ */
/* Tema escuro                                                         */
/* ------------------------------------------------------------------ */
html[data-tema="escuro"] {
  --bg: #1a1816;
  --card: #24211e;
  --line: #3a3530;
  --teal: #5bc4b3;
  --btn: #2f9e6a;
  --ink: #f2ebe4;
  --muted: #a89f96;
  --green: #4caf7a;
  --green-bg: #1e3a2c;
  --orange: #e09a4a;
  --orange-bg: #3a2a18;
  --gray: #9a9a9a;
  --gray-bg: #2e2b28;
  color-scheme: dark;
}
html[data-tema="escuro"] body { background: var(--bg); color: var(--ink); }
html[data-tema="escuro"] .deliver { background: var(--card); }
html[data-tema="escuro"] header { background: var(--bg); }
html[data-tema="escuro"] .card,
html[data-tema="escuro"] .caixa,
html[data-tema="escuro"] .panel,
html[data-tema="escuro"] .info-intro,
html[data-tema="escuro"] .bloco { background: var(--card); }
html[data-tema="escuro"] input,
html[data-tema="escuro"] select,
html[data-tema="escuro"] textarea {
  background: #1a1816;
  color: var(--ink);
  border-color: var(--line);
}
html[data-tema="escuro"] .btn-sec,
html[data-tema="escuro"] .btn.secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
html[data-tema="escuro"] nav { background: var(--card); border-color: var(--line); }
html[data-tema="escuro"] .menu-painel { background: var(--card); }
html[data-tema="escuro"] .toast { background: #2e2b28; color: var(--ink); }

/* Revendedor: preço grosso + preço normal */
.p-grosso{display:block}
.p-normal{display:block;font-size:.78em;font-weight:400;opacity:.75;margin-top:2px}

/* Marca de novidades no separador Perfil */
nav a { position: relative; }
.nav-badge {
    position: absolute; top: 4px; left: calc(50% + 6px);
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: #d94a3d; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.nav-badge[hidden] { display: none; }
