:root {
    --bg: #08101f;
    --bg-soft: #101a33;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-border: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --primary: #d7263d;
    --primary-dark: #9f1239;
    --secondary: #7c3aed;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(215, 38, 61, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 28%),
        linear-gradient(180deg, #060d19 0%, #0b1428 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.shell {
    padding-left: 24px;
    padding-right: 24px;
}

.page-main {
    padding-bottom: 72px;
}

.site-header {
    background: rgba(5, 10, 20, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.brand strong,
.brand span {
    display: block;
}

.brand span {
    color: var(--muted);
    font-size: 0.92rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.main-nav a:hover,
.link-button:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
}

.badge,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 6px 12px;
}

.badge {
    background: rgba(124, 58, 237, 0.16);
    color: #d8b4fe;
}

.pill {
    background: rgba(215, 38, 61, 0.14);
    color: #fecdd3;
}

.hero-section,
.content-section {
    padding: 64px 0;
}

.hero-grid,
.auth-grid,
.checkout-grid,
.account-grid,
.admin-layout,
.footer-grid {
    display: grid;
    gap: 24px;
}

.hero-grid,
.checkout-grid,
.account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.card h1,
.card h2 {
    margin: 0;
    line-height: 1.1;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    max-width: 12ch;
}

.hero-copy p,
.section-heading p,
.card p,
.card li,
.faq-answer p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.product-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.hero-metrics div,
.hero-media-copy,
.alert,
.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-metrics div {
    padding: 18px;
}

.hero-metrics strong,
.product-bottom strong,
.total-line strong {
    display: block;
    font-size: 1.12rem;
}

.hero-metrics span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-media {
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.hero-media-copy {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 24px;
}

.card {
    padding: 28px;
}

.muted-section {
    background: rgba(255, 255, 255, 0.02);
}

.section-heading {
    margin-bottom: 28px;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    color: #ddd6fe;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grid-cards,
.three-col-grid,
.four-col-grid {
    display: grid;
    gap: 22px;
}

.grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.three-col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-card {
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: "Destaque";
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 0.72rem;
    font-weight: 700;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
}

.product-top h3 {
    margin: 12px 0 8px;
    font-size: 1.2rem;
}

.product-bottom {
    margin-top: auto;
}

.price {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.btn,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    border: 0;
    padding: 0 18px;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover,
.link-button:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-danger {
    color: #fff;
    background: var(--danger);
}

.link-button {
    background: transparent;
    color: var(--muted);
    padding: 0;
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.faq-shell {
    max-width: 900px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    border-radius: 20px;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 1rem;
    font-weight: 600;
}

.faq-answer {
    padding: 0 24px 20px;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.narrow-shell {
    max-width: 960px;
}

.empty-state {
    text-align: center;
}

.cart-table,
.form-grid,
.order-stack,
.checkout-list,
.table-like,
.admin-content {
    display: grid;
    gap: 18px;
}

.cart-row,
.table-row,
.order-head,
.status-form,
.cart-summary,
.total-line,
.customer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-row {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.cart-product img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 18px;
}

.cart-quantity input,
.form-grid input,
.form-grid textarea,
.form-grid select,
.status-form select {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 16, 31, 0.7);
    color: var(--text);
}

.form-grid label {
    display: block;
}

.full-width {
    grid-column: 1 / -1;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
    margin-top: 0;
}

.auth-grid,
.checkout-grid,
.account-grid {
    align-items: start;
}

.admin-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.admin-nav {
    position: sticky;
    top: 110px;
}

.admin-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.order-card,
.table-row {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.order-card:last-child,
.table-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.small-note,
code {
    color: #fcd34d;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 10, 20, 0.85);
    padding: 36px 0 20px;
}

.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-copy {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.alert {
    margin-top: 20px;
    padding: 16px 18px;
}

.alert-success {
    border-color: rgba(22, 163, 74, 0.5);
}

.alert-warning {
    border-color: rgba(245, 158, 11, 0.5);
}

.alert-error {
    border-color: rgba(220, 38, 38, 0.5);
}

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    padding: 14px 20px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(22, 163, 74, 0.35);
}

@media (max-width: 1080px) {
    .hero-grid,
    .checkout-grid,
    .account-grid,
    .footer-grid,
    .three-col-grid,
    .four-col-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        position: static;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 24px 24px;
        background: rgba(5, 10, 20, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav.open {
        display: flex;
    }

    .hero-metrics,
    .cart-row,
    .table-row,
    .order-head,
    .status-form,
    .cart-summary,
    .total-line,
    .customer-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section,
    .content-section {
        padding: 48px 0;
    }

    .card {
        padding: 22px;
    }
}
