body {
    background: #f4f6fa;
    color: #17202a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
    background: #0f1115;
    color: #d8dde5;
    padding: .55rem 0;
}

.navbar-brand {
    letter-spacing: -.03em;
}

.hero-home {
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(244,246,250,.96), rgba(244,246,250,.82), rgba(244,246,250,.40)),
        radial-gradient(circle at 80% 30%, rgba(0,200,83,.18), transparent 30%),
        #f4f6fa;
}

.min-vh-60 { min-height: 60vh; }

.text-primary-custom { color: var(--cor-principal); }

.btn-primary-custom {
    --bs-btn-bg: var(--cor-principal);
    --bs-btn-border-color: var(--cor-principal);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #111827;
    --bs-btn-hover-border-color: #111827;
}

.page-title {
    background: #111827;
    color: white;
    padding: 4rem 0;
}

.page-title p { color: #cbd5e1; margin: 0; }

.filter-box,
.cta-card,
.detail-summary {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.moto-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e7ebf2;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.moto-card-img {
    position: relative;
    display: block;
    height: 245px;
    background: #e5e7eb;
    overflow: hidden;
}

.moto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.moto-card:hover .moto-card-img img { transform: scale(1.04); }

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    background: #111827;
    color: #fff;
}

.moto-card-img .status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.status-disponivel { background: var(--cor-principal); }
.status-reservado { background: #f59e0b; }
.status-vendido { background: #64748b; }
.status-inativo { background: #111827; }

.moto-card-body { padding: 1.25rem; flex: 1; }
.moto-card-body h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.moto-card-body p { color: #64748b; margin: .25rem 0 1rem; }

.moto-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    color: #475569;
    font-size: .9rem;
}

.moto-card-price {
    background: #111827;
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moto-card-price strong { font-size: 1.25rem; }
.moto-card-price a { color: white; text-decoration: none; font-weight: 700; }

.detail-main-img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e5e7eb;
}

.detail-thumbs {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.detail-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: #111827;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.detail-grid div {
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    padding: .85rem;
}

.detail-grid small { display: block; color: #64748b; }
.detail-grid strong { display: block; }

.site-footer {
    background: #111827;
    color: #cbd5e1;
}

@media (max-width: 767px) {
    .hero-home { min-height: auto; padding: 4rem 0; }
    .moto-card-img { height: 220px; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* Etapa 4 - formularios publicos, detalhes e mobile */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.form-card,
.content-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 22px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.form-card-header {
    margin-bottom: 1.25rem;
}

.form-card-header h2 {
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -.035em;
    margin: 0 0 .25rem;
}

.form-card-header p {
    color: #64748b;
    margin: 0;
}

.form-control,
.form-select {
    border-color: #dbe3ee;
    border-radius: 12px;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--cor-principal) 20%, transparent);
}

.lgpd-box {
    background: #f8fafc;
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    padding: .9rem .9rem .9rem 2.65rem;
    color: #475569;
}

.feature-list {
    display: grid;
    gap: .65rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.45rem;
    color: #475569;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55rem;
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: var(--cor-principal);
}

.contact-info-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.contact-info-list div {
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    padding: .9rem;
    background: #f8fafc;
}

.contact-info-list small,
.contact-info-list strong {
    display: block;
}

.contact-info-list small {
    color: #64748b;
    margin-bottom: .2rem;
}

.detail-sticky {
    top: 1rem;
}

.optional-tags {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.optional-tags span {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 700;
    color: #334155;
}

.js-thumb-detail {
    cursor: pointer;
    border: 2px solid transparent;
}

.js-thumb-detail:hover {
    border-color: var(--cor-principal);
}

@media (max-width: 991px) {
    .page-title {
        padding: 3rem 0;
    }

    .detail-summary.sticky-lg-top {
        position: static !important;
    }

    .filter-box .btn,
    .filter-box .btn-primary-custom {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .navbar {
        padding-top: .8rem !important;
        padding-bottom: .8rem !important;
    }

    .page-title {
        padding: 2.5rem 0;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .moto-card-img {
        height: 210px;
    }

    .moto-specs {
        grid-template-columns: 1fr 1fr;
    }

    .moto-card-price {
        align-items: flex-start;
        flex-direction: column;
        gap: .3rem;
    }

    .detail-price {
        font-size: 1.9rem;
    }

    .detail-thumbs img {
        width: 78px;
        height: 62px;
    }

    .form-card,
    .content-card,
    .cta-card,
    .filter-box,
    .detail-summary {
        border-radius: 18px;
        padding: 1rem;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 46px;
    }

}

/* Etapa 5 - configuracoes e identidade visual dinamica */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}

.site-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    padding: .25rem;
}

.brand-pills {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
}

.brand-pills a {
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 999px;
    padding: .7rem 1rem;
    transition: all .2s ease;
}

.brand-pills a:hover {
    color: #fff;
    border-color: var(--cor-principal);
    background: var(--cor-principal);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: .85rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.privacy-content {
    line-height: 1.8;
    color: #334155;
}

.privacy-content h2 {
    font-weight: 900;
    color: #111827;
}

@media (max-width: 575px) {
    .site-brand img {
        width: 36px;
        height: 36px;
    }

    .site-brand span {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-pills a {
        width: 100%;
        text-align: center;
    }
}

/* Etapa 6 - Header e footer modernos */
.site-header-modern {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 14px 42px rgba(15, 23, 42, .08);
}

.topbar-modern {
    background: #080d16;
    color: #cbd5e1;
    padding: .62rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.navbar-modern {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226,232,240,.9);
    padding: .85rem 0;
}

.site-brand-modern {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    color: #111827;
    text-decoration: none;
}

.site-brand-modern:hover {
    color: #111827;
}

.brand-logo-wrap {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: .42rem;
}

.brand-logo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-weight: 950;
    letter-spacing: -.06em;
    font-size: 1.25rem;
}

.brand-text-wrap {
    display: grid;
    line-height: 1.05;
    min-width: 0;
}

.brand-text-wrap strong {
    font-size: 1.18rem;
    font-weight: 950;
    letter-spacing: -.04em;
    color: #111827;
}

.brand-text-wrap small {
    margin-top: .26rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.menu-modern {
    gap: .15rem;
}

.menu-modern .nav-link {
    color: #334155;
    font-weight: 800;
    border-radius: 999px;
    padding: .62rem .82rem !important;
    transition: all .2s ease;
}

.menu-modern .nav-link:hover,
.menu-modern .nav-link:focus {
    color: #111827;
    background: #f1f5f9;
}

.btn-header-whatsapp {
    border-radius: 999px;
    padding: .68rem 1rem;
    font-weight: 900;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--cor-principal) 30%, transparent);
}

.menu-toggler-modern {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: .7rem;
    box-shadow: none !important;
}

.site-footer-modern {
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--cor-principal) 22%, transparent), transparent 32%),
        linear-gradient(135deg, #070b13, #111827 55%, #020617);
    color: #cbd5e1;
    padding: 4rem 0 1.25rem;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(160px, .85fr));
    gap: 2rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand:hover {
    color: #fff;
}

.footer-logo-wrap {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    overflow: hidden;
}

.footer-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: .45rem;
}

.footer-logo-wrap span {
    font-weight: 950;
    color: #fff;
    letter-spacing: -.06em;
}

.footer-brand strong {
    font-size: 1.2rem;
    font-weight: 950;
    letter-spacing: -.04em;
}

.footer-brand-block p {
    max-width: 420px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
}

.site-footer-modern h3 {
    color: #fff;
    font-size: .92rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .95rem;
}

.footer-list {
    list-style: none;
    display: grid;
    gap: .68rem;
    padding: 0;
    margin: 0;
}

.footer-list a,
.footer-list span {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.55;
}

.footer-list a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    color: #94a3b8;
    font-size: .9rem;
}

@media (max-width: 1199px) {
    .brand-logo-wrap {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .menu-modern .nav-link {
        padding-left: .65rem !important;
        padding-right: .65rem !important;
    }
}

@media (max-width: 991px) {
    .site-header-modern {
        position: sticky;
    }

    .navbar-modern {
        padding: .75rem 0;
    }

    .brand-logo-wrap {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 18px;
    }

    .brand-text-wrap small {
        display: none;
    }

    .menu-modern {
        align-items: stretch !important;
        gap: .25rem;
        padding: 1rem 0 .25rem;
    }

    .menu-modern .nav-link {
        border-radius: 14px;
        padding: .85rem 1rem !important;
        background: #f8fafc;
    }

    .btn-header-whatsapp {
        width: 100%;
        padding: .85rem 1rem;
    }

    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .site-header-modern {
        top: 0;
    }

    .brand-logo-wrap {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px;
    }

    .brand-text-wrap strong {
        font-size: 1.02rem;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .site-footer-modern {
        padding: 3rem 0 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: .4rem;
    }
}


/* Etapa 7 - Detalhes da moto, icones e relacionadas */
.moto-specs-icons {
    gap: .65rem;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-width: 0;
    font-weight: 800;
    color: #475569;
}

.spec-item svg,
.detail-icon svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spec-item svg {
    color: var(--cor-principal);
}

.detail-info-card-icon {
    display: flex;
    align-items: center;
    gap: .78rem;
}

.detail-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--cor-principal) 12%, #fff);
    color: var(--cor-principal);
    border: 1px solid color-mix(in srgb, var(--cor-principal) 24%, #e7ebf2);
}

.detail-info-card-icon small,
.detail-info-card-icon strong {
    display: block;
}

.related-motos-section {
    padding-top: .5rem;
}

.related-motos-section .section-title h2 {
    letter-spacing: -.045em;
    font-weight: 950;
}

@media (max-width: 575px) {
    .moto-specs-icons {
        grid-template-columns: 1fr;
    }

    .spec-item {
        font-size: .92rem;
    }

    .detail-info-card-icon {
        align-items: flex-start;
    }

    .detail-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

/* Etapa 9 - WhatsApp nos detalhes, favoritos e compartilhamento */
.moto-card-img-wrap {
    position: relative;
}

.favorite-toggle {
    border: 0;
    background: #fff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.favorite-toggle:hover {
    transform: translateY(-1px) scale(1.03);
}

.favorite-toggle-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    line-height: 1;
}

.favorite-toggle.is-favorited,
.favorite-toggle-card.is-favorited {
    background: #fff1f2;
    color: #e11d48;
}

.detail-actions .btn {
    border-radius: 14px;
    font-weight: 850;
}

.btn-whatsapp-detail {
    --bs-btn-bg: #1f9d5a;
    --bs-btn-border-color: #1f9d5a;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #157347;
    box-shadow: 0 12px 28px rgba(31, 157, 90, .22);
}

.detail-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .55rem;
}

.detail-secondary-actions .btn {
    font-size: .92rem;
    padding: .72rem .8rem;
    color: #334155;
    background: #fff;
}

.favoritos-page .favoritos-help {
    border-radius: 18px;
    color: #475569;
}

.empty-favorites-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 22px;
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.empty-favorites-card h3 {
    font-weight: 950;
    letter-spacing: -.04em;
    margin-bottom: .5rem;
}

.empty-favorites-card p {
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 1.25rem;
}

.favorite-card .moto-card-img img {
    object-fit: cover;
}

@media (max-width: 767px) {
    .detail-secondary-actions {
        grid-template-columns: 1fr;
    }

    .favorite-toggle-card {
        width: 40px;
        height: 40px;
        top: .75rem;
        right: .75rem;
    }
}

/* Etapa 10 - Estoque com filtros responsivos e compartilhamento desktop */
.estoque-page-title {
    background:
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--cor-principal) 24%, transparent), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #111827 58%, #1f2937 100%);
    padding: clamp(3.5rem, 7vw, 5.25rem) 0;
}

.page-eyebrow,
.toolbar-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: color-mix(in srgb, var(--cor-principal) 86%, #ffffff);
    font-weight: 900;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin-bottom: .45rem;
}

.estoque-page-title h1 {
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    font-weight: 950;
    letter-spacing: -.06em;
    margin-bottom: .65rem;
}

.estoque-page-title p {
    max-width: 680px;
    font-size: 1.08rem;
}

.stock-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
}

.stock-toolbar h2 {
    font-weight: 950;
    letter-spacing: -.045em;
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.stock-toolbar p {
    margin: .35rem 0 0;
    color: #64748b;
}

.stock-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .7rem;
    flex-wrap: wrap;
}

.btn-clear-all,
.stock-toolbar-actions .btn,
.filter-actions .btn {
    border-radius: 999px;
    font-weight: 850;
    white-space: nowrap;
}

.active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    border: 1px solid color-mix(in srgb, var(--cor-principal) 22%, #dbe3ee);
    color: #334155;
    background: color-mix(in srgb, var(--cor-principal) 8%, #ffffff);
    border-radius: 999px;
    padding: .5rem .68rem .5rem .82rem;
    text-decoration: none;
    font-size: .9rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.active-filter-chip:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--cor-principal) 44%, #dbe3ee);
    background: #fff;
    color: #111827;
}

.active-filter-chip span {
    color: #64748b;
    font-weight: 750;
}

.active-filter-chip strong {
    font-weight: 900;
}

.active-filter-chip i {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    font-style: normal;
    line-height: 1;
    font-weight: 900;
}

.filter-box-modern {
    border-radius: 26px;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
        radial-gradient(circle at top right, color-mix(in srgb, var(--cor-principal) 12%, transparent), transparent 34%);
}

.filter-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.filter-box-header span {
    color: var(--cor-principal);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.filter-box-header h3 {
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -.04em;
    margin: .15rem 0 0;
}

.filter-box-header small {
    border-radius: 999px;
    padding: .42rem .68rem;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e7ebf2;
    font-weight: 800;
    white-space: nowrap;
}

.filter-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e7ebf2, transparent);
    margin: .25rem 0;
}

.filter-box-modern .form-label {
    font-size: .82rem;
    font-weight: 850;
    color: #475569;
    margin-bottom: .42rem;
}

.filter-box-modern .form-control,
.filter-box-modern .form-select {
    min-height: 48px;
    background-color: #f8fafc;
    border-radius: 14px;
}

.filter-box-modern .form-control:focus,
.filter-box-modern .form-select:focus {
    background-color: #fff;
}

.filter-actions .btn {
    min-height: 48px;
    flex: 1;
}

.empty-stock-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.25rem);
    text-align: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.empty-stock-card h3 {
    font-weight: 950;
    letter-spacing: -.04em;
    margin-bottom: .45rem;
}

.empty-stock-card p {
    color: #64748b;
    margin-bottom: 1.25rem;
}

.stock-pagination .page-link {
    border: 0;
    border-radius: 12px;
    margin: 0 .15rem;
    color: #334155;
    font-weight: 850;
}

.stock-pagination .active .page-link {
    background: var(--cor-principal);
    color: #fff;
}

.share-feedback-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.4rem + env(safe-area-inset-bottom));
    transform: translate(-50%, 16px);
    z-index: 1080;
    background: #111827;
    color: #fff;
    padding: .78rem 1rem;
    border-radius: 999px;
    font-weight: 850;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    max-width: calc(100vw - 2rem);
    text-align: center;
}

.share-feedback-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 992px) {
    .stock-filter-collapse.collapse:not(.show) {
        display: block;
        height: auto !important;
        visibility: visible;
    }
}

@media (max-width: 991px) {
    .stock-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .stock-toolbar-actions {
        justify-content: flex-start;
    }

    .stock-toolbar-actions .btn {
        flex: 1 1 auto;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .estoque-page {
        padding-top: 2.25rem !important;
    }

    .stock-toolbar-actions {
        width: 100%;
    }

    .stock-toolbar-actions .btn {
        width: 100%;
    }

    .active-filter-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .25rem;
        margin-left: -.2rem;
        margin-right: -.2rem;
        scroll-snap-type: x proximity;
    }

    .active-filter-chip {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .filter-box-modern {
        border-radius: 22px;
        padding: 1rem;
    }

    .filter-box-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-box-header small {
        align-self: flex-start;
    }

    .share-feedback-toast {
        width: calc(100vw - 2rem);
        border-radius: 18px;
    }
}

/* Etapa 12 - acabamento final, detalhes e financiamento pre-preenchido */
.btn-financing-detail {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    border-width: 1.5px;
}

.selected-moto-financing {
    margin: 1.15rem 0;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.selected-moto-financing span,
.selected-moto-financing small,
.selected-moto-financing a {
    display: block;
}

.selected-moto-financing span {
    color: var(--cor-principal);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.selected-moto-financing strong {
    display: block;
    color: #111827;
    font-size: 1.2rem;
    font-weight: 950;
    margin-top: .25rem;
}

.selected-moto-financing small {
    color: #64748b;
    margin-top: .15rem;
    font-weight: 700;
}

.selected-moto-financing a {
    margin-top: .8rem;
    color: #111827;
    font-weight: 850;
    text-decoration: none;
}

.selected-moto-financing a:hover {
    color: var(--cor-principal);
}

.form-card .form-control,
.form-card .form-select {
    min-height: 48px;
}

.form-card textarea.form-control {
    min-height: 132px;
}

@media (max-width: 575px) {
    .detail-actions .btn {
        min-height: 50px;
        font-size: .98rem;
    }

    .selected-moto-financing {
        border-radius: 16px;
    }
}

/* Etapa 16 - financiamento com parcelas e selecao de moto */
.financing-info-card {
    overflow: hidden;
}

.installment-options-card {
    margin: 1.15rem 0;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.installment-options-header small,
.installment-options-header strong {
    display: block;
}

.installment-options-header small {
    color: var(--cor-principal);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.installment-options-header strong {
    color: #111827;
    font-size: 1rem;
    margin-top: .15rem;
}

.installment-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .9rem;
}

.installment-option {
    min-width: 0;
    padding: .9rem .75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e7ebf2;
}

.installment-option span,
.installment-option strong,
.installment-option small {
    display: block;
}

.installment-option span {
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
}

.installment-option strong {
    color: #111827;
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    line-height: 1.05;
    margin-top: .25rem;
}

.installment-option small {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.25;
    margin-top: .25rem;
}

.financing-form-card .form-select {
    border-radius: 16px;
    border-color: #dbe3ef;
    color: #111827;
    font-weight: 700;
}

.form-help {
    display: block;
    margin-top: .45rem;
    color: #64748b;
    font-size: .84rem;
}

@media (max-width: 575px) {
    .installment-options-grid {
        grid-template-columns: 1fr;
    }

    .installment-option {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: .25rem .75rem;
    }

    .installment-option small {
        grid-column: 1 / -1;
    }
}
