:root {
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f9fafb;
    --brand: #033958;
    --brand-dark: #022f42;
    --emerald: #059669;
    --plantain-deep: #2f6b3a;
    --chili: #c1432a;
    --orange: #f97316;
    --pink: #ec4899;
    --danger: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229,231,235,.8);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 900;
}
.brand-logo {
    display: block;
    height: 40px;
    width: auto;
}
.brand-logo--footer {
    filter: brightness(0) invert(1);
}
.brand span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 18px 36px rgba(3,57,88,.16);
}
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #4b5563;
    font-size: .92rem;
    font-weight: 800;
}
.nav a:hover { color: var(--brand); }
.page {
    width: min(1240px, calc(100% - 32px));
    margin: 30px auto 80px;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    min-height: 620px;
    padding: clamp(34px, 7vw, 78px);
    background:
        radial-gradient(circle at 82% 18%, rgba(249,115,22,.22), transparent 26%),
        radial-gradient(circle at 64% 72%, rgba(236,72,153,.18), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f8fbfc 46%, #eef7f4 100%);
    border: 1px solid #eef2f7;
    border-radius: 38px;
}
.hero:before {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(3,57,88,.06);
    border-radius: 30px;
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .88;
    margin: 10px 0 24px;
    max-width: 820px;
    letter-spacing: 0;
    font-weight: 900;
    color: #0b1220;
}
.hero p {
    color: #4b5563;
    max-width: 640px;
    font-size: 1.12rem;
    line-height: 1.8;
    font-weight: 600;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.eyebrow, .category {
    color: var(--orange);
    font-size: .76rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .18em;
}
.hero-showcase {
    position: relative;
    min-height: 450px;
    display: grid;
    place-items: center;
}
.hero-pack {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 12px;
    width: min(360px, 82vw);
    aspect-ratio: 4 / 5;
    padding: 42px;
    color: #fff;
    background: linear-gradient(160deg, var(--brand), var(--brand-dark));
    border-radius: 42px;
    box-shadow: 0 45px 90px rgba(3,57,88,.26);
    transform: rotate(3deg);
}
.hero-pack span, .hero-pack em {
    font-style: normal;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,255,255,.72);
    font-weight: 900;
}
.hero-pack strong {
    font-size: clamp(2.6rem, 6vw, 4.3rem);
    line-height: .9;
    font-weight: 900;
}
.snack-orbit {
    position: absolute;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 28px 60px rgba(0,0,0,.14);
}
.snack-orbit.one { left: 2%; top: 12%; background: var(--orange); }
.snack-orbit.two { right: 0; bottom: 14%; background: var(--pink); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(3,57,88,.16);
}
.button:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.button.secondary { background: var(--ink); }
.button.light { background: #fff; color: var(--ink); border: 1px solid #edf0f4; }
.button.merchant { background: var(--emerald); }
.button.small { min-height: 38px; padding: 9px 14px; border-radius: 14px; }
.button.full { width: 100%; }
.button:disabled { opacity: .55; cursor: not-allowed; }

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 72px;
}
.feature-strip div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.04);
}
.feature-strip strong { display: block; font-size: 1.08rem; }
.feature-strip span { color: var(--muted); font-weight: 700; font-size: .92rem; }

.shop-tools {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}
.shop-tools h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: 0;
}
.search-panel, .panel, .auth-card {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 46px rgba(15,23,42,.05);
}
.search-panel { display: grid; gap: 12px; }
input, select, textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font: inherit;
    background: #f9fafb;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(3,57,88,.18);
    border-color: transparent;
    background: #fff;
}
label { display: grid; gap: 8px; font-weight: 800; margin-bottom: 14px; color: #374151; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 22px;
}
.product-card {
    background: var(--paper);
    border: 1px solid #edf0f4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(15,23,42,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15,23,42,.1);
}
.product-image, .detail-image {
    min-height: 238px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 25%, rgba(249,115,22,.3), transparent 28%),
        linear-gradient(135deg, #fff7ed, #ecfdf5);
    color: var(--brand);
    font-size: 3.2rem;
    font-weight: 900;
}
.product-image img, .detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px; }
.product-body h2 { font-size: 1.18rem; margin: 0 0 10px; font-weight: 900; }
.product-body p { color: var(--muted); font-weight: 600; line-height: 1.55; }
.product-foot, .summary, .section-title, .admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.product-foot { margin: 18px 0; }
.product-foot strong { color: var(--brand); font-size: 1.2rem; }
.product-foot span { color: var(--muted); font-size: .88rem; font-weight: 800; }

.community-cta {
    margin-top: 86px;
    padding: clamp(36px, 6vw, 72px);
    text-align: center;
    color: #fff;
    background: #111827;
    border-radius: 34px;
}
.community-cta h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 900;
}
.community-cta p {
    max-width: 540px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.78);
    font-size: 1.08rem;
}
.community-cta div {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.detail {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) 1fr;
    gap: 32px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 24px;
}
.detail h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; margin: 12px 0; font-weight: 900; }
.inline-form { display: flex; gap: 12px; max-width: 380px; }
.inline-form input { max-width: 110px; }
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-card.wide { max-width: 760px; }
.form-grid, .two-col, .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.stats { grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.stats div {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
}
.stats span { color: var(--muted); display: block; font-weight: 800; }
.stats strong { font-size: 1.6rem; }
.table-wrap {
    overflow-x: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.qty {
    max-width: 88px;
    min-width: 72px;
    background: #fff;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
    border: 1px solid var(--line);
    text-align: center;
    font-weight: 700;
    -webkit-appearance: auto;
    appearance: auto;
}
.summary { margin-top: 18px; justify-content: flex-end; }
.line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.line.total { font-size: 1.2rem; border-bottom: 0; }
.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 900;
    font-size: .8rem;
}
.alert, .empty {
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
}
.alert.success { border-color: #9fd7bd; background: #effaf4; }
.alert.error { border-color: #f2aaa5; background: #fff1f0; }
.actions { display: flex; gap: 12px; align-items: center; }
.actions form { margin: 0; }
.link-danger { border: 0; background: transparent; color: var(--danger); cursor: pointer; padding: 0; font: inherit; font-weight: 800; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.check input { width: auto; }
small { color: var(--muted); }

.site-footer {
    border-top: 1px solid #f0f2f5;
    padding: 70px clamp(18px, 4vw, 56px) 30px;
    background: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 34px;
    max-width: 1240px;
    margin: 0 auto 40px;
}
.footer-brand p {
    color: var(--muted);
    max-width: 380px;
    font-weight: 600;
    line-height: 1.7;
}
.site-footer h4 {
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 900;
}
.site-footer a:not(.brand) {
    display: block;
    margin: 12px 0;
    color: var(--muted);
    font-weight: 800;
    font-size: .92rem;
}
.site-footer a:hover { color: var(--brand); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.socials a {
    padding: 9px 12px;
    border-radius: 999px;
    background: #f9fafb;
}
.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: rgba(3,57,88,.8);
    font-size: .8rem;
    font-weight: 900;
}
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 12px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 18px 36px rgba(37,211,102,.3);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.whatsapp-float__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
}

.whatsapp-float__label {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

@media (max-width: 860px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .hero, .detail, .two-col, .form-grid, .stats, .shop-tools, .feature-strip, .footer-grid { grid-template-columns: 1fr; }
    .hero { min-height: 0; border-radius: 28px; }
    .hero-showcase { min-height: 340px; }
    .hero h1 { font-size: clamp(2.8rem, 16vw, 4.8rem); }
    .inline-form { flex-direction: column; }
    .inline-form input { max-width: none; }
}

@media (max-width: 520px) {
    .page { width: min(100% - 20px, 1240px); }
    .nav { gap: 12px; font-size: .86rem; }
    .hero { padding: 28px 20px; }
    .feature-strip { margin-bottom: 48px; }
    .community-cta { border-radius: 24px; }
}
