:root {
    --brand-primary: #0A2463;
    --brand-accent: #3E92CC;
    --brand-success: #2EC4B6;
    --text-main: #1E1E1E;
    --text-light: #64748B;
    --bg-main: #FFFFFF;
    --bg-soft: #F8FAFC;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header Clean */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-decoration: none;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--brand-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cart-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dbe4ef;
    background: #f8fbff;
}

.cart-link:hover {
    border-color: #93c5fd;
    background: #eef6ff;
}

.cart-link-label {
    color: var(--brand-primary);
    font-weight: 700;
}

.nav-cta {
    background: var(--brand-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.15);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--brand-primary);
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        gap: 40px;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .header-right {
        gap: 16px;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu-mobile-only {
        display: block !important;
        background: var(--brand-primary);
        color: white !important;
        padding: 12px 40px;
        border-radius: 12px;
    }

    .configurator-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 20px !important;
    }

    .configurator-grid > div:last-child {
        border-left: none !important;
        border-top: 2px dashed #E2E8F0;
        padding-left: 0 !important;
        padding-top: 30px;
    }

    .page-titlebar {
        position: sticky;
        top: 80px;
        z-index: 900;
        background: var(--brand-primary);
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        padding: 14px 5%;
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
    }

    .page-titlebar h1 {
        font-size: 1.2rem !important;
        line-height: 1.15 !important;
        margin: 0 !important;
        color: #ffffff !important;
    }

    .page-titlebar p {
        display: none !important;
    }

    .page-top-row {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 18px !important;
        gap: 12px !important;
    }

    .page-top-row > a.btn-bolt,
    .page-top-row > a.cart-add-more {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.filter-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-soft);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-btn:hover {
    background: #edf2f7;
}

.filter-btn.active {
    background: var(--brand-primary);
    color: white;
}

/* Add-btn in catalog - Modernized */
.add-btn-minimal {
    position: absolute;
    bottom: 12px;
    right: 12px;
    height: 44px;
    width: 44px;
    background: var(--brand-primary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(10, 36, 99, 0.26);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    line-height: 1;
    touch-action: manipulation;
}

.add-btn-minimal:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(10, 36, 99, 0.3);
}

.add-btn-minimal:active {
    transform: scale(0.95);
}

.add-btn-minimal.is-loading {
    background: #1e3a8a;
    cursor: wait;
}

.add-btn-minimal.is-success {
    background: var(--brand-success);
}

@media (max-width: 768px) {
    .add-btn-minimal {
        height: 42px;
        width: 42px;
        bottom: 10px;
        right: 10px;
        font-size: 1.15rem;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    animation: slideUp 0.3s ease-out;
    transition: opacity 0.5s;
}

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

/* Product modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(2px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
    }

    .modal-content {
        max-height: calc(100vh - 24px);
    }
}

/* Close Modal */
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

.pin-price-simple {
    margin-top: 8px;
    font-weight: 700;
    color: var(--brand-primary);
}

/* Loader */
.loader-trigger {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.hero-content { flex: 1; }
.hero-image { flex: 1; display: flex; justify-content: center; }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.1;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding: 40px 0; }
    .hero h1 { font-size: 2.5rem; }
}

/* Botões */
.btn-bolt {
    background: var(--brand-primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-bolt:hover { transform: translateY(-2px); opacity: 0.9; }

/* Themes Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.theme-card {
    background: var(--bg-soft);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--brand-primary);
    font-weight: 700;
    transition: all 0.3s;
}

.theme-card:hover { background: var(--brand-accent); color: white; }

/* Grid de Produtos (Catálogo) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

@media (max-width: 480px) {
    .catalog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

.pin-item {
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pin-circle {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 4px solid #f8fafc;
    position: relative;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e2e8f0 100%);
    transition: transform 0.22s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.pin-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
    border-radius: 50%;
    transform: scale(0.9);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.pin-item:hover .pin-circle {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.24);
}

.pin-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 44%),
                radial-gradient(circle at 72% 78%, rgba(10, 36, 99, 0.2) 0%, rgba(10, 36, 99, 0) 56%);
    pointer-events: none;
    z-index: 2;
}

.pin-circle::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    box-shadow: inset 0 6px 18px rgba(255, 255, 255, 0.45),
                inset 0 -10px 16px rgba(2, 6, 23, 0.22),
                0 6px 14px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
    z-index: 3;
}

.pin-circle-product {
    border: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    background: radial-gradient(circle at 32% 30%, #f8fafc 0%, #dbe4ee 46%, #9aa9bc 74%, #e8eef5 100%);
}

.pin-circle-product .pin-face-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
                inset 0 -8px 14px rgba(15, 23, 42, 0.16);
    z-index: 1;
}

.pin-circle-product::before {
    background: radial-gradient(circle at 33% 25%, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0) 40%),
                radial-gradient(circle at 74% 76%, rgba(2, 6, 23, 0.16) 0%, rgba(2, 6, 23, 0) 55%);
    z-index: 2;
}

.pin-circle-product::after {
    inset: 0;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58),
                inset 0 8px 18px rgba(255, 255, 255, 0.22),
                inset 0 -12px 20px rgba(15, 23, 42, 0.24);
    z-index: 3;
}

.pin-item-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.catalog-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    box-shadow: 0 8px 16px rgba(45, 212, 191, 0.2);
}

.catalog-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    color: #ffffff;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    outline: none;
}

.catalog-qty-btn:focus,
.catalog-qty-btn:active {
    outline: none;
    box-shadow: none;
}

.catalog-qty-btn.minus {
    background: #0f766e;
}

.catalog-qty-btn.plus {
    background: #0d9488;
}

.catalog-qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #134e4a;
}

.add-btn-catalog {
    border: none;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 8px 16px rgba(10, 36, 99, 0.22);
}

.add-btn-catalog:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(10, 36, 99, 0.25);
}

.add-btn-catalog:active {
    transform: scale(0.98);
}

.pin-circle-create {
    border: 2px solid rgba(10, 36, 99, 0.25);
    background: radial-gradient(circle at 24% 22%, #6fb8e4 0%, #3e92cc 45%, #0a2463 100%);
    box-shadow: 0 14px 26px rgba(10, 36, 99, 0.3);
}

.pin-create-inner {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #fff;
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 4;
}

.pin-create-plus {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.pin-create-title {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.pin-create-sub {
    font-size: 0.66rem;
    opacity: 0.92;
}

.pin-create-label {
    font-size: 0.88rem;
    color: var(--brand-primary);
    font-weight: 800;
}

/* Form & Inputs */
input, select, textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    background: #F8FAFC;
    outline: none;
}

input:focus { border-color: var(--brand-accent); background: white; }

/* Footer Moderno */
.main-footer {
    background: #020617;
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 20px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    color: var(--brand-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #94A3B8;
    margin-bottom: 10px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 20px auto;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Customizer Mobile Adjustments */
@media (max-width: 1024px) {
    .customizer-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    
    .editor-sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .editor-workspace {
        padding: 20px;
        min-height: auto;
    }

    .canvas-stage {
        transform: none !important;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .canvas-stage {
        transform: none !important;
    }
    .editor-workspace {
        padding: 10px;
    }
}

/* Home Modern */
.home-modern {
    padding-top: 28px;
    padding-bottom: 60px;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}

.home-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf3ff;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
    margin-bottom: 18px;
}

.home-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.home-hero-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 56ch;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-btn-secondary {
    display: inline-block;
    text-decoration: none;
    color: var(--brand-primary);
    background: white;
    border: 2px solid #d5e5f6;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all 0.2s;
}

.home-btn-secondary:hover {
    border-color: var(--brand-accent);
    transform: translateY(-1px);
}

.home-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.home-kpis div {
    background: var(--bg-soft);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

.home-kpis strong {
    display: block;
    color: var(--brand-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.home-kpis span {
    color: var(--text-light);
    font-size: 0.82rem;
}

.home-hero-visual {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow-lg);
}

.home-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(62, 146, 204, 0.25), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(10, 36, 99, 0.28), transparent 50%);
    z-index: 1;
    pointer-events: none;
}

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

.home-section {
    margin-bottom: 56px;
}

.home-section-head {
    margin-bottom: 24px;
    text-align: center;
}

.home-section-head h2 {
    font-size: 2rem;
    color: var(--brand-primary);
}

.home-section-head p {
    color: var(--text-light);
    margin-top: 8px;
}

.home-feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 56px;
}

.home-feature-strip article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.home-feature-strip span {
    font-size: 1.4rem;
}

.home-feature-strip h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    color: var(--brand-primary);
    font-size: 1rem;
}

.home-feature-strip p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.home-b2b {
    background: linear-gradient(135deg, #0a2463 0%, #153b8a 55%, #3e92cc 120%);
    border-radius: 26px;
    padding: clamp(26px, 5vw, 54px);
    color: white;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.home-b2b h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    margin-bottom: 14px;
}

.home-b2b p {
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 52ch;
}

.home-b2b-steps {
    display: grid;
    gap: 12px;
}

.home-b2b-steps div {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 600;
}

.home-b2b-steps strong {
    color: #bbdefb;
    margin-right: 6px;
}

@media (max-width: 992px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 52px;
    }

    .home-hero-visual {
        min-height: 320px;
    }

    .home-feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-b2b {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .home-modern {
        padding-top: 18px;
    }

    .home-kpis {
        grid-template-columns: 1fr;
    }

    .home-feature-strip {
        grid-template-columns: 1fr;
    }
}
