/* ============================================================
   NutraXPro — folha de estilo principal
   Identidade da marca: PRETO + DOURADO ("Maximum Innovation")
   ============================================================ */

:root {
    --gold: #c9a227;          /* dourado da marca */
    --gold-dark: #97751a;     /* dourado legível sobre branco */
    --gold-deep: #7d5f12;
    --gold-light: #e6cc72;
    --gold-soft: #fbf4de;     /* fundo dourado bem claro */
    --ink: #141414;           /* preto da marca */
    --ink-2: #2b2b2b;
    --black: #0d0d0d;
    --muted: #6a6a6a;
    --line: #e8e6e0;
    --bg: #ffffff;
    --bg-soft: #f7f6f2;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(20, 20, 20, .08);
    --shadow-lg: 0 24px 60px rgba(20, 20, 20, .16);
    --font: 'Inter', system-ui, sans-serif;
    --display: 'Sora', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--display); font-weight: 700; font-size: .98rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.btn--primary:hover { background: var(--gold-dark); color: #fff; box-shadow: 0 10px 26px rgba(151,117,26,.4); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo img { height: 42px; width: auto; }
.logo-text {
    font-family: var(--display); font-weight: 800; font-size: 1.55rem;
    letter-spacing: -.02em; color: var(--ink);
}
.logo-text span { color: var(--gold); }
.logo-tag {
    font-family: var(--display); font-weight: 600; font-size: .56rem;
    letter-spacing: .42em; color: var(--muted); text-transform: uppercase;
    margin-top: 3px; padding-left: 2px;
}
.main-nav { display: flex; align-items: center; gap: 1.8rem; font-weight: 600; }
.main-nav a { color: var(--ink); transition: color .15s; }
.main-nav a:hover { color: var(--gold-dark); }
.cart-link { display: inline-flex; align-items: center; gap: .45rem; }
.cart-count {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px;
    padding: 0 6px; border-radius: 999px; background: var(--gold);
    color: var(--ink); font-size: .75rem; font-weight: 700;
}

/* ---------- Flash / alertas ---------- */
.flash {
    margin-top: 1rem; padding: .85rem 1.2rem; border-radius: var(--radius-sm);
    background: var(--gold-soft); color: var(--gold-deep); font-weight: 600;
    border: 1px solid var(--gold-light);
}
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 600; }
.alert--error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(120% 120% at 80% -10%, var(--gold-soft) 0%, var(--bg-soft) 45%, #fff 80%);
    overflow: hidden;
}
.hero-inner {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
    padding: 4.5rem 0 4rem;
}
.eyebrow {
    display: inline-block; font-family: var(--display); font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
    color: var(--gold-deep); background: var(--gold-soft); padding: .35rem .8rem;
    border-radius: 999px; margin-bottom: 1.1rem;
}
.hero-text h1 {
    font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05; letter-spacing: -.02em; color: var(--ink); margin-bottom: 1.1rem;
}
.hero-text h1 span { color: var(--gold-dark); }
.hero-text p { font-size: 1.15rem; color: var(--muted); max-width: 38ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }

.hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.blob {
    position: absolute; inset: 0; margin: auto; width: 340px; height: 340px;
    background: linear-gradient(140deg, var(--gold-light), var(--gold-dark));
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    filter: blur(2px); opacity: .95;
    animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
    0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    50% { border-radius: 60% 40% 34% 66% / 56% 60% 40% 44%; }
}
.hero-bottles { position: relative; display: flex; gap: 1rem; z-index: 2; }
.bottle {
    display: grid; place-items: center; text-align: center;
    width: 120px; height: 200px; border-radius: 20px;
    font-family: var(--display); font-weight: 800; line-height: 1.15;
    box-shadow: var(--shadow-lg);
}
.bottle--a { background: linear-gradient(160deg, var(--gold-light), var(--gold)); color: var(--ink); transform: rotate(-6deg); }
.bottle--b { background: linear-gradient(160deg, var(--ink-2), var(--black)); color: var(--gold); transform: rotate(6deg); margin-top: 2rem; }
.hero-img { position: relative; z-index: 2; max-width: 100%; max-height: 400px; width: auto; object-fit: contain; filter: drop-shadow(0 24px 48px rgba(20, 20, 20, .22)); }

/* ---------- Seções ---------- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-soft); }
.section-title { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; color: var(--ink); letter-spacing: -.02em; }
.section-subtitle { text-align: center; color: var(--muted); margin: .6rem auto 2.8rem; max-width: 50ch; }
.page-title { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--ink); margin-bottom: 2rem; }

/* ---------- Grid de produtos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-media { position: relative; display: block; aspect-ratio: 1/1; background: var(--gold-soft); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    background: var(--ink); color: var(--gold); font-weight: 700; font-size: .78rem;
    padding: .3rem .7rem; border-radius: 999px; font-family: var(--display);
}
.product-card-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card-body h3 { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.product-sub { color: var(--muted); font-size: .95rem; }

/* ---------- Placeholder de garrafa ---------- */
.bottle-placeholder {
    width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: .3rem;
    font-family: var(--display); padding: 1rem;
}
.bottle-placeholder span { font-size: 1.6rem; font-weight: 800; }
.bottle-placeholder small { font-weight: 600; opacity: .9; }
.bottle-placeholder--beauty-shield { background: linear-gradient(150deg, var(--gold-light), var(--gold)); color: var(--ink); }
.bottle-placeholder--cartx { background: linear-gradient(150deg, var(--ink-2), var(--black)); color: var(--gold); }

/* ---------- Preço ---------- */
.price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price-now { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--gold-dark); }
.price--lg .price-now { font-size: 2.2rem; }
.price-installments { width: 100%; color: var(--muted); font-size: .9rem; }
.product-card .btn { margin-top: .8rem; }

/* ---------- Diferenciais ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.feature { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; }
.feature-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.feature h3 { font-family: var(--display); color: var(--ink); margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---------- Detalhe do produto ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-media { position: relative; }
.product-detail-media img { width: 100%; height: 100%; object-fit: contain; }

/* Galeria de fotos do produto (deslizante) */
.gallery { display: flex; flex-direction: column; gap: .8rem; }
.gallery-main { position: relative; aspect-ratio: 1/1; background: var(--gold-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; }
.gallery-slide.is-active { opacity: 1; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 999px; border: none; background: rgba(20,20,20,.55); color: #fff; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; z-index: 4; transition: background .15s; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-arrow:hover { background: var(--ink); }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); background: var(--gold-soft); cursor: pointer; padding: 0; transition: border-color .15s; }
.gallery-thumb.is-active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--gold-dark); }
.product-detail-info h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); letter-spacing: -.02em; }
.tagline { color: var(--gold-dark); font-weight: 600; font-size: 1.15rem; margin: .4rem 0 1.2rem; }
.product-description { color: var(--muted); margin: 1.4rem 0; }
.benefits { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.benefits li { position: relative; padding-left: 2rem; color: var(--ink); }
.benefits li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold-dark); border-radius: 999px; font-weight: 800; font-size: .8rem;
}
.buy-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.8rem; }
.qty-control { display: flex; flex-direction: column; gap: .3rem; }
.qty-control label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.qty-control input { width: 80px; padding: .8rem; border: 2px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; text-align: center; }
.product-meta { border-top: 1px solid var(--line); padding-top: 1.4rem; display: grid; gap: .6rem; color: var(--muted); font-size: .95rem; }
.product-meta strong { color: var(--ink); }

/* ---------- Avaliações ---------- */
.stars { display: inline-flex; gap: 1px; line-height: 1; }
.stars .star { color: var(--line); font-size: 1rem; }
.stars .star.is-on { color: var(--gold); }
.rating-inline { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.rating-inline:hover { color: var(--ink); }
.card-rating { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; }
.card-rating .stars .star { font-size: .9rem; }
.reviews-wrap { max-width: 760px; }
.reviews-avg { display: flex; align-items: center; gap: .8rem; justify-content: center; margin-bottom: 1.6rem; flex-wrap: wrap; }
.reviews-avg-num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--ink); }
.reviews-avg .stars .star { font-size: 1.3rem; }
.reviews-avg-count { color: var(--muted); }
.reviews-list { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.review-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.review-head strong { color: var(--ink); }
.review p { color: var(--muted); font-size: .95rem; margin: 0; }
.review-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.review-form-wrap h3 { font-family: var(--display); color: var(--ink); margin-bottom: 1rem; }
.review-form textarea { width: 100%; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: 1rem; resize: vertical; }
.review-form textarea:focus { outline: none; border-color: var(--gold); }
.review-form select { padding: .8rem; border: 2px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); width: 100%; }

/* ---------- Carrinho ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.cart-items { display: grid; gap: 1rem; }
.cart-item {
    display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 1rem; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.cart-item-media { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gold-soft); }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-media .bottle-placeholder span { font-size: .8rem; }
.cart-item-media .bottle-placeholder small { display: none; }
.cart-item-info h3 { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.cart-item-info p { color: var(--muted); font-size: .88rem; }
.cart-item-unit { font-size: .85rem; color: var(--muted); }
.cart-item-qty input { width: 64px; padding: .55rem; text-align: center; border: 2px solid var(--line); border-radius: var(--radius-sm); }
.cart-item-total { font-family: var(--display); font-weight: 700; color: var(--gold-dark); }
.cart-item-remove button { background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; }
.cart-item-remove button:hover { color: var(--ink); }

.cart-summary, .checkout-summary {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow); position: sticky; top: 94px;
}
.cart-summary h2, .checkout-summary h2 { font-family: var(--display); font-size: 1.25rem; color: var(--ink); margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; }
.summary-row--muted { color: var(--muted); font-size: .9rem; }
.summary-row--total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: 1rem; font-size: 1.2rem; }
.summary-row--total strong { font-family: var(--display); color: var(--gold-dark); }
.cart-summary .btn, .checkout-summary .btn { margin-top: 1rem; }
.continue-link { display: block; text-align: center; margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.continue-link:hover { color: var(--gold-dark); }

/* ---------- Estado vazio ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; display: grid; gap: 1.4rem; justify-items: center; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.checkout-fields { display: grid; gap: 1.6rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
legend { font-family: var(--display); font-weight: 700; color: var(--ink); padding: 0 .5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input {
    padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
    font-size: 1rem; font-family: var(--font); transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--sm { max-width: 180px; }
.field--xs { max-width: 90px; }
.field-error { color: #b3261e; font-size: .82rem; font-weight: 600; }
.summary-items { list-style: none; display: grid; gap: .6rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.summary-items li { display: flex; justify-content: space-between; font-size: .92rem; }
.secure-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* ---------- Páginas de status ---------- */
.status-page { max-width: 560px; margin-inline: auto; text-align: center; display: grid; gap: 1.2rem; justify-items: center; padding: 2rem 0; }
.status-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 2rem; background: var(--bg-soft); color: var(--ink); }
.status-icon--ok { background: var(--gold-soft); color: var(--gold-dark); }
.status-icon--fail { background: #fdecea; color: #b3261e; }
.status-page h1 { font-family: var(--display); color: var(--ink); font-size: 2rem; }
.status-note { color: var(--muted); }
.status-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--bg-soft); font-size: .82rem; font-weight: 600; }
.tag--ok { background: var(--gold-soft); color: var(--gold-dark); }
.order-recap { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.order-recap h2 { font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin-bottom: .8rem; }
.order-recap ul { list-style: none; display: grid; gap: .5rem; }
.order-recap li { display: flex; justify-content: space-between; font-size: .92rem; }
.order-recap-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.order-recap-total strong { font-family: var(--display); color: var(--gold-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c4; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo img { height: 40px; width: auto; margin-bottom: .8rem; }
.footer-logo-text { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: .6rem; }
.footer-logo-text span { color: var(--gold); }
.footer-inner p { color: #9a9a93; max-width: 32ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-cols h4 { font-family: var(--display); color: #fff; margin-bottom: .8rem; font-size: 1rem; }
.footer-cols a { display: block; color: #9a9a93; padding: .25rem 0; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom { padding-top: 1.5rem; color: #7c7c75; }

/* ---------- Botão flutuante WhatsApp (canto esquerdo) ---------- */
.wa-float { position: fixed; left: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); z-index: 60; transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; left: 16px; bottom: 16px; } .wa-float svg { width: 30px; height: 30px; } }

/* ---------- Assistente de IA (chat, canto direito) ---------- */
.nx-chat-bubble { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(20,20,20,.3); z-index: 61; cursor: pointer; transition: transform .15s ease; }
.nx-chat-bubble:hover { transform: scale(1.07); }
.nx-chat-bubble svg { width: 32px; height: 32px; fill: var(--gold); }
.nx-chat-panel { position: fixed; right: 20px; bottom: 92px; width: 350px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 130px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 61; display: flex; flex-direction: column; overflow: hidden; }
.nx-chat-panel[hidden] { display: none; }
.nx-chat-head { background: var(--ink); color: #fff; padding: .9rem 1.1rem; font-family: var(--display); display: flex; align-items: center; justify-content: space-between; }
.nx-chat-head strong { color: var(--gold); }
.nx-chat-head button { background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.nx-chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg-soft); }
.nx-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.nx-msg--user { align-self: flex-end; background: var(--gold); color: var(--ink); border-bottom-right-radius: 4px; }
.nx-msg--bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.nx-typing { color: var(--muted); font-style: italic; }
.nx-chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: #fff; }
.nx-chat-form input { flex: 1; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 999px; font-size: .95rem; font-family: var(--font); }
.nx-chat-form input:focus { outline: none; border-color: var(--gold); }
.nx-chat-form button { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--gold); color: var(--ink); font-size: 1.1rem; cursor: pointer; flex-shrink: 0; }
.nx-chat-form button:hover { background: var(--gold-dark); color: #fff; }
@media (max-width: 640px) {
    .nx-chat-bubble { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .nx-chat-panel { right: 16px; left: 16px; bottom: 82px; width: auto; }
}

/* ---------- Admin ---------- */
.admin-login { max-width: 380px; margin: 8vh auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 5%; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.admin-main { padding: 2rem 0 4rem; display: grid; gap: 2rem; }
.admin-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.admin-section h2 { font-family: var(--display); color: var(--ink); font-size: 1.25rem; margin-bottom: 1.2rem; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-section-head h2 { margin-bottom: 0; }
.admin-section-head input[type="month"] { padding: .6rem .8rem; border: 2px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0; }
.admin-card { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.admin-card span { color: var(--muted); font-size: .85rem; }
.admin-card strong { font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.admin-table code { background: var(--gold-soft); color: var(--gold-deep); padding: .15rem .5rem; border-radius: 6px; font-weight: 700; }
.admin-table input[readonly] { border: 1px solid var(--line); border-radius: 6px; padding: .35rem .5rem; background: var(--bg-soft); color: var(--ink); }
.admin-create { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
.admin-create .field { margin-bottom: 0; }
.admin-nav { display: flex; gap: .4rem; }
.admin-nav a { padding: .5rem 1rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.admin-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.admin-nav a.is-active { background: var(--ink); color: #fff; }
.admin-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-pill { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; }
.filter-pill:hover { border-color: var(--gold); color: var(--ink); }
.filter-pill.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.tag--fail { background: #fdecea; color: #b3261e; }
.btn-del { background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem; line-height: 1; padding: .4rem .6rem; transition: all .15s; }
.btn-del:hover { background: #fdecea; border-color: #f5c6c2; }
.status-select { border: 1px solid var(--line); border-radius: 999px; padding: .35rem 1.6rem .35rem .7rem; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: var(--font); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; }
.status-select.s-paid { background-color: var(--gold-soft); color: var(--gold-deep); }
.status-select.s-pending { background-color: var(--bg-soft); color: var(--muted); }
.status-select.s-failed, .status-select.s-cancelled { background-color: #fdecea; color: #b3261e; }
.status-select.s-refunded { background-color: #ececf7; color: #3a3a8a; }
@media (max-width: 700px) {
    .admin-cards { grid-template-columns: 1fr; }
    .admin-create { grid-template-columns: 1fr; }
    .admin-table { font-size: .82rem; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-inline: auto; }
    .hero-actions, .hero-badges { justify-content: center; }
    .hero-art { min-height: 300px; margin-top: 1rem; }
    .product-detail { grid-template-columns: 1fr; gap: 1.8rem; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary { position: static; }
    .features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .main-nav { gap: 1rem; font-size: .9rem; }
    .main-nav a:not(.cart-link) { display: none; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 64px 1fr auto; grid-template-areas: "media info total" "media qty remove"; }
    .cart-item-media { grid-area: media; width: 64px; height: 64px; }
    .cart-item-info { grid-area: info; }
    .cart-item-total { grid-area: total; }
    .cart-item-qty { grid-area: qty; }
    .cart-item-remove { grid-area: remove; }
    .field-row { grid-template-columns: 1fr; }
}
