* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --bg: #eef2f7;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --secondary: #0f766e;
    --dark: #0f172a;
    --white: #ffffff;
    --border: #dbe4ee;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

body {
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.small-container {
    width: min(520px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #08122f;
    color: var(--white);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.menu a:hover {
    opacity: 0.8;
}

.site-main {
    min-height: calc(100vh - 160px);
}

.hero-home {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(14, 30, 70, 0.68), rgba(11, 95, 103, 0.58)),
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.20) 55%, rgba(15,23,42,0.10) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(4px);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-content h1 {
    max-width: 820px;
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.section {
    padding: 52px 0;
}

.section-muted {
    background: #f8fafc;
}

.section-title-wrap {
    margin-bottom: 20px;
}

.section-title-wrap h2 {
    font-size: 34px;
    margin-bottom: 8px;
}

.section-title-wrap p {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(219, 228, 238, 0.6);
}

.category-card h3,
.product-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.category-card p,
.product-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-top {
    margin-bottom: 12px;
}

.product-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
}

.product-card strong {
    display: block;
    margin-bottom: 16px;
    font-size: 22px;
    color: var(--primary-dark);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.product-form-inline {
    margin: 0;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96,165,250,0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 140px;
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(29,78,216,0.24);
}

.btn-secondary {
    background: rgba(255,255,255,0.16);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #bfdbfe;
}

.auth-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.auth-card {
    max-width: 100%;
}

.auth-header {
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-top: 8px;
}

.auth-help {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    color: var(--muted);
    line-height: 1.7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.table th,
.table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.info-banner h2 {
    margin-bottom: 8px;
}

.info-banner p {
    color: var(--muted);
}

.site-footer {
    background: #08122f;
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

/* Léo */
.leo-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.leo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    box-shadow: 0 12px 25px rgba(22,163,74,0.28);
    cursor: pointer;
    font-weight: 700;
    width: auto;
}

.leo-toggle-icon {
    font-size: 18px;
}

.leo-box {
    width: 360px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.22);
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #dbeafe;
}

.leo-box-hidden {
    display: none;
}

.leo-header {
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.leo-header p {
    font-size: 13px;
    opacity: 0.92;
    margin-top: 4px;
}

.leo-close {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0;
}

.leo-messages {
    max-height: 320px;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.leo-message {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 14px;
}

.leo-message-bot {
    background: #e0f2fe;
    color: #0f172a;
}

.leo-message-user {
    background: #dcfce7;
    color: #14532d;
    margin-left: 40px;
}

.leo-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0 16px;
    background: #fff;
}

.leo-chip {
    width: auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.leo-form {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #fff;
}

.leo-form input {
    flex: 1;
}

.leo-form button {
    width: auto;
    min-width: 88px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    font-weight: 700;
}

/* Responsivo */
@media (max-width: 980px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .info-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 18px 0;
    }

    .logo {
        font-size: 24px;
    }

    .menu {
        gap: 12px;
    }

    .hero-home {
        min-height: 480px;
    }

    .hero-content {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .leo-widget {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .leo-toggle {
        width: 100%;
        justify-content: center;
    }

    .leo-box {
        width: 100%;
    }
}
/* ===== ADMIN NOVO LAYOUT ===== */
.admin-page {
    padding: 40px 0 56px;
}

.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.admin-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.admin-hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.admin-hero p {
    max-width: 700px;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.admin-kpi-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.admin-kpi-label {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
}

.admin-kpi-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.admin-kpi-note {
    color: #64748b;
    font-size: 14px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-card {
    border-radius: 20px;
    padding: 26px;
}

.admin-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.admin-muted {
    color: #64748b;
    line-height: 1.7;
}

.admin-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.admin-checklist {
    padding-left: 18px;
    color: #334155;
    line-height: 1.9;
}

.admin-card-wide {
    grid-column: 1 / -1;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.admin-action-box {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-action-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15,23,42,0.08);
}

.admin-action-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}

.admin-action-text {
    display: block;
    color: #64748b;
    line-height: 1.6;
}

/* ===== AJUSTE FINO LÉO ===== */
.leo-toggle {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.leo-box {
    border-radius: 20px;
}

.leo-messages {
    max-height: 340px;
}

@media (max-width: 980px) {
    .admin-kpi-grid,
    .admin-grid,
    .admin-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-hero h1 {
        font-size: 32px;
    }
}
.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #bbf7d0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.admin-form-grid label,
.admin-form-block label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.admin-form-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    font-weight: 700;
}

.admin-checkbox-row input[type="checkbox"] {
    width: auto;
}

.table-wrap {
    overflow-x: auto;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-sm {
    min-width: auto;
    padding: 10px 14px;
    font-size: 14px;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.admin-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.admin-thumb-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.admin-image-preview {
    margin-top: 8px;
}

@media (max-width: 980px) {
    .admin-topbar,
    .admin-form-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-form-grid {
        display: grid;
    }

    .admin-form-actions {
        justify-content: flex-start;
    }
}
.status-pill {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-ok {
    background: #dcfce7;
    color: #166534;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}
.admin-mini-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.admin-upload-card h2 {
    margin-bottom: 16px;
}

.xml-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.xml-notes {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

@media (max-width: 980px) {
    .xml-summary-grid {
        grid-template-columns: 1fr;
    }
}
.leo-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.leo-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.leo-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.leo-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

textarea {
    resize: vertical;
}

.leo-offers {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.leo-offer-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 14px;
}

.leo-offer-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.leo-offer-meta,
.leo-offer-stock {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.leo-offer-price {
    font-size: 18px;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 10px;
}

.leo-offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leo-add-cart-btn {
    width: auto;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}