/* CONECT-R RESPONSIVE SYSTEM - V4
   Escopo: test 110825. Camada final carregada depois dos estilos da home. */

:root {
    --page-gutter: clamp(0.875rem, 3vw, 1.75rem);
    --content-max: 75rem;
    --card-min: 13.75rem;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
}

.motion3d-progress,
.motion3d-stage {
    display: none !important;
}

body {
    min-height: 100vh;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
svg,
video,
canvas,
iframe {
    max-width: 100% !important;
}

img,
video {
    height: auto;
}

.container,
.nav-container-shell,
.page-shell,
main.container {
    width: min(100% - (var(--page-gutter) * 2), var(--content-max)) !important;
    max-width: var(--content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

main.container {
    flex-shrink: 0;
}

main.container > .container,
main.container > section > .container {
    width: 100% !important;
    max-width: 100% !important;
}

section,
main,
header,
footer {
    min-width: 0;
}

button,
a,
input,
select,
textarea {
    max-width: 100%;
}

button,
a {
    touch-action: manipulation;
}

input,
select,
textarea {
    width: 100%;
}

.hero {
    width: 100%;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(18.75rem, 0.85fr) !important;
}

.hero-copy,
.hero-panel,
.project-item-info,
.card-content {
    min-width: 0;
}

.hero-copy h1,
.hero-copy p,
.project-item-info h2,
.project-item-info p,
.view-header h3,
.promo-card h2,
.promo-card p {
    overflow-wrap: anywhere;
}

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr)) !important;
    align-items: stretch;
}

.products-grid .card {
    min-width: 0 !important;
    height: 100%;
}

.card-img,
.event-card-img,
.destaques-track .card-img {
    aspect-ratio: 4 / 3;
    height: auto !important;
    min-height: 9.375rem;
}

.products-grid.list-view-active {
    grid-template-columns: 1fr !important;
}

.products-grid.list-view-active .card {
    flex-direction: row;
    min-height: 10.625rem;
}

.products-grid.list-view-active .card-img {
    width: clamp(9.375rem, 28vw, 17.5rem) !important;
    min-width: clamp(9.375rem, 28vw, 17.5rem) !important;
    align-self: stretch;
    border-radius: 1.125rem 0 0 1.125rem;
    aspect-ratio: auto;
}

.promo-grid,
.events-mosaic,
.eventos-grid,
.cards-grid,
.business-grid,
.relationship-grid,
.feed-grid,
.grid,
.stats-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)) !important;
}

.project-item,
.view-header,
.destaques-header {
    min-width: 0;
}

.chips-container,
.type-filter,
.horizontal-scroll,
.destaques-track {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.chips-container::-webkit-scrollbar,
.type-filter::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar,
.destaques-track::-webkit-scrollbar {
    display: none;
}

.destaques-track {
    max-width: 100%;
    scroll-padding-left: var(--page-gutter);
}

.destaques-track .destaque-card,
.destaques-track .card {
    flex: 0 0 clamp(13.75rem, 30vw, 17.5rem) !important;
}

.home-events-swiper-container,
.swiper,
.swiper-wrapper,
.swiper-slide {
    min-width: 0;
}

.event-modal-overlay,
.cr-modal-overlay,
.p-modal-overlay {
    padding: var(--page-gutter) !important;
}

.event-modal-content,
.cr-modal-container,
.p-modal-content {
    width: min(100%, 68.75rem) !important;
    max-width: 100% !important;
}

.table-container,
.admin-table-wrap,
.responsive-table,
.table-wrapper,
.reports-table,
.items-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.layout-busca-corpo,
.dashboard-layout,
.panel-layout,
.report-page-layout,
.product-hero,
.content-grid,
.profile-grid,
.comments-layout,
.comments-top {
    min-width: 0;
}

.layout-busca-corpo {
    grid-template-columns: minmax(13rem, 16.25rem) minmax(0, 1fr) !important;
}

.sidebar-filtros,
.side-column,
.product-summary,
.panel-card,
.admin-card,
.business-profile-header,
.table-container {
    min-width: 0;
}

.busca-interna-form,
.preco-row,
.event-footer,
.project-contact-row,
.form-grid,
.form-grid-2,
.grid-2 {
    min-width: 0;
}

.card-img-fix,
.profile-banner,
.image-panel,
.ml-card-img,
.img-produto-destaque {
    max-width: 100%;
}

.image-panel {
    height: auto !important;
    min-height: clamp(18rem, 48vw, 40rem) !important;
    aspect-ratio: 4 / 3;
}

.profile-cover {
    height: clamp(10rem, 28vw, 17.5rem) !important;
}

.avatar,
.profile-avatar,
.business-logo,
.profile-photo,
.rank-img,
.project-admin-img,
.prod-img {
    flex: 0 0 auto;
}

.navbar-top .nav-content,
.topbar,
.panel-top,
.business-profile-header,
.comments-top,
.edit-top,
.profile-top {
    min-width: 0;
}

.global-search {
    min-width: min(100%, 12rem);
}

.profiles-grid,
.grid-mode {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)) !important;
}

.list-mode {
    grid-template-columns: 1fr !important;
}

.empty-state {
    padding: clamp(2rem, 8vw, 5rem) var(--page-gutter) !important;
}

.ranking-container,
.chat-layout,
.request-shell,
.faq-page-container,
.edit-shell,
.profile-shell,
.comments-shell,
.panel-shell,
.error-shell {
    width: min(100% - (var(--page-gutter) * 2), var(--content-max)) !important;
    max-width: var(--content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 90em) {
    :root {
        --content-max: 85rem;
        --card-min: 15rem;
    }

    .hero-copy h1 {
        font-size: clamp(3.7rem, 4vw, 4.8rem) !important;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)) !important;
    }
}

@media (min-width: 64.0625em) and (max-width: 80em) {
    :root {
        --card-min: 13.125rem;
    }

    .hero-grid {
        gap: 2.125rem !important;
    }
}

@media (max-width: 64em) {
    :root {
        --content-max: 58.75rem;
        --card-min: 13.125rem;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 1.875rem !important;
    }

    .hero-copy,
    .hero-copy p,
    .hero-copy h1 {
        max-width: none !important;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .project-item,
    .panel-layout,
    .dashboard-layout,
    .report-page-layout,
    .product-hero,
    .content-grid,
    .profile-grid,
    .comments-layout {
        grid-template-columns: 1fr !important;
    }

    .layout-busca-corpo,
    .dashboard-layout {
        grid-template-columns: 1fr !important;
    }

    .sidebar-filtros {
        position: static !important;
        top: auto !important;
    }

    .navbar-top {
        height: auto !important;
        min-height: var(--header-height, 4.5rem) !important;
    }

    body:has(.navbar-top) {
        padding-top: clamp(5rem, 14vw, 7rem) !important;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-actions,
    .project-item-link {
        width: 100%;
    }
}

@media (max-width: 952px) {
    :root {
        --page-gutter: 1rem;
        --header-height: 4.25rem;
        --radius: 1rem;
        --card-min: 10.625rem;
    }

    body {
        font-size: 1rem !important;
    }

    header,
    .u-header-main {
        height: auto !important;
        min-height: var(--header-height) !important;
        padding: 0.5rem 0 !important;
    }

    nav {
        min-height: 54px !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .logo {
        max-width: 180px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 0 1 auto !important;
    }

    .nav-btns,
    .u-nav-right,
    .u-nav-links {
        flex-wrap: wrap;
        min-width: 0;
    }

    .btn-user,
    .btn-slide,
    .hero-link,
    .project-item-link,
    .type-btn,
    .chip,
    .toggle-filters-btn {
        min-height: 2.75rem !important;
        font-size: 0.92rem !important;
    }

    .mobile-menu-btn {
        display: inline-flex;
        margin-left: auto;
    }

    .desktop-overflow-btn {
        display: none !important;
    }

    nav.has-mobile-menu .desktop-overflow-menu,
    nav.has-mobile-menu.mobile-menu-open .desktop-overflow-menu,
    .u-header-nav.has-mobile-menu .desktop-overflow-menu,
    .u-header-nav.has-mobile-menu.mobile-menu-open .desktop-overflow-menu {
        display: none !important;
    }

    nav.has-mobile-menu .nav-btns,
    nav.has-mobile-menu .u-nav-right,
    nav.has-mobile-menu .u-nav-links {
        position: absolute !important;
        top: calc(100% + 0.625rem);
        left: 0;
        right: 0;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.625rem !important;
        padding: 0.75rem !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 0.0625rem solid var(--border) !important;
        border-radius: 1rem !important;
        box-shadow: 0 1.125rem 2.8125rem rgba(15, 23, 42, 0.14) !important;
        z-index: 1300 !important;
        max-height: calc(100vh - 5.75rem);
        overflow-y: auto;
    }

    nav.has-mobile-menu.mobile-menu-open .nav-btns,
    nav.has-mobile-menu.mobile-menu-open .u-nav-right,
    nav.has-mobile-menu.mobile-menu-open .u-nav-links {
        display: flex !important;
    }

    nav.has-mobile-menu .nav-btns > *,
    nav.has-mobile-menu .u-nav-right > *,
    nav.has-mobile-menu .u-nav-links > * {
        justify-content: center !important;
        text-align: center !important;
        margin-left: 0 !important;
    }

    nav.has-mobile-menu.mobile-menu-open .nav-btns > *,
    nav.has-mobile-menu.mobile-menu-open .u-nav-right > *,
    nav.has-mobile-menu.mobile-menu-open .u-nav-links > * {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 3rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
        gap: 0.625rem !important;
    }

    nav.has-mobile-menu.mobile-menu-open .hide-mobile,
    nav.has-mobile-menu.mobile-menu-open .mobile-menu-label {
        display: inline !important;
    }

    .hero {
        padding: 2.25rem 0 3.625rem !important;
    }

    .topbar,
    .navbar-top .nav-content,
    header nav {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    .navbar-top .nav-content {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .global-search {
        order: 3;
        flex-basis: 100% !important;
        max-width: none !important;
        width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 9vw, 3rem) !important;
        line-height: 1.08 !important;
    }

    .hero-copy p {
        font-size: 1rem !important;
    }

    .hero-actions,
    .project-actions {
        width: 100%;
    }

    .hero-link,
    .hero-actions .btn-slide,
    .project-item-link {
        width: 100%;
    }

    .hero-panel {
        width: 100%;
        padding: 0.875rem !important;
        border-radius: 1.25rem !important;
    }

    .search-container form,
    .search-container-full,
    .busca-interna-form {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 0.5rem !important;
        border-radius: 1rem !important;
    }

    .search-container button,
    .search-container-full button,
    .busca-interna-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .promo-grid {
        grid-template-columns: 1fr !important;
        margin-top: -1.125rem !important;
    }

    .promo-card {
        min-height: 10.625rem !important;
        padding: 1.25rem !important;
        border-radius: 1.125rem !important;
    }

    .view-header,
    .destaques-header,
    .resultados-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .view-switcher {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
    }

    .view-switcher button {
        width: 100%;
    }

    .sticky-filters {
        margin-left: calc(var(--page-gutter) * -1);
        margin-right: calc(var(--page-gutter) * -1);
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .filters-wrapper {
        border-radius: 1rem !important;
    }

    .chips-container,
    .type-filter {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    .chip,
    .type-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .busca-page-container,
    .panel-shell,
    .chat-layout,
    .ranking-container,
    .report-page-layout,
    .comments-shell,
    .edit-shell,
    .profile-shell {
        margin-top: 1.5rem !important;
        padding-bottom: 3rem !important;
    }

    .sidebar-filtros {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .preco-row,
    .form-grid,
    .form-grid-2,
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .profile-main,
    .business-profile-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left;
    }

    .profile-info,
    .business-info,
    .actions {
        min-width: 0;
        width: 100%;
    }

    .profile-stats,
    .actions {
        flex-wrap: wrap;
    }

    .profile-location {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: anywhere;
        align-items: flex-start !important;
    }

    .image-panel {
        min-height: clamp(15rem, 70vw, 28rem) !important;
        border-radius: 1.125rem !important;
    }

    .product-summary,
    .info-card,
    .panel-card,
    .edit-card,
    .profile-card,
    .comment-card {
        border-radius: 1.125rem !important;
    }

    .content-grid,
    .product-hero {
        gap: 1.25rem !important;
    }

    .project-admin-item,
    .comments-top {
        grid-template-columns: 1fr !important;
    }

    .project-admin-img,
    .comments-cover {
        width: min(100%, 12rem) !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

    .card {
        border-radius: 1rem !important;
    }

    .card-content {
        padding: 0.75rem !important;
    }

    .card-title {
        min-height: 0 !important;
        font-size: 0.96rem !important;
        line-height: 1.3 !important;
    }

    .card-price,
    .destaque-price {
        font-size: 1.08rem !important;
    }

    .card-owner,
    .card-link,
    .destaque-cat {
        font-size: 0.82rem !important;
    }

    .products-grid.list-view-active .card {
        min-height: 8.75rem !important;
    }

    .products-grid.list-view-active .card-img {
        width: 38% !important;
        min-width: 7.5rem !important;
    }

    .destaques-section {
        padding: 1rem !important;
        border-radius: 1.125rem !important;
    }

    .destaques-track {
        margin-left: calc(var(--page-gutter) * -1) !important;
        margin-right: calc(var(--page-gutter) * -1) !important;
        padding-left: var(--page-gutter) !important;
        padding-right: var(--page-gutter) !important;
    }

    .destaques-track .destaque-card,
    .destaques-track .card {
        flex-basis: min(78vw, 16.875rem) !important;
    }

    .event-modal-content,
    .cr-modal-container {
        flex-direction: column !important;
        width: min(100%, 96vw) !important;
        height: auto !important;
        max-height: 92vh !important;
        border-radius: 1.25rem !important;
        overflow-y: auto !important;
    }

    .event-modal-left,
    .event-modal-right,
    .cr-media-side,
    .cr-info-side {
        width: 100% !important;
    }

    .event-modal-left,
    .cr-media-side {
        height: 42vh !important;
        min-height: 15rem;
    }

    .event-modal-right,
    .cr-info-side,
    .p-modal-body,
    .p-modal-header-simple,
    .p-modal-footer {
        padding: 1.25rem !important;
    }

    .hide-mobile {
        display: none !important;
    }

    /* Logic: Keeping account items outside the sandwich and visible in the header bar */
    .mobile-outside-source {
        display: none !important;
    }

    nav.has-mobile-menu .nav-btns > .account-menu-item,
    nav.has-mobile-menu .u-nav-right > .account-menu-item,
    nav.has-mobile-menu .u-nav-links > .account-menu-item,
    .u-header-nav.has-mobile-menu .u-nav-right > .account-menu-item,
    .u-header-nav.has-mobile-menu .u-nav-links > .account-menu-item {
        display: none !important;
    }

    .mobile-auth-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        margin-right: 10px !important;
        order: 1 !important;
    }

    .mobile-auth-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        font-size: 1.2rem !important;
        text-decoration: none !important;
    }

    .mobile-auth-link span:not(.mobile-menu-label) {
        display: none !important; /* Hide names, keep icons */
    }

    .mobile-auth-link i {
        margin: 0 !important;
    }

    .mobile-auth-link[href*="logout"] {
        color: #ef4444 !important;
    }

    .mobile-menu-btn {
        order: 2 !important;
    }

    .desktop-overflow-btn {
        display: none !important;
    }

    nav.has-mobile-menu .desktop-overflow-menu,
    nav.has-mobile-menu.mobile-menu-open .desktop-overflow-menu,
    .u-header-nav.has-mobile-menu .desktop-overflow-menu,
    .u-header-nav.has-mobile-menu.mobile-menu-open .desktop-overflow-menu {
        display: none !important;
    }
}

@media (min-width: 953px) and (max-width: 1124px) {
    nav.has-desktop-overflow,
    .u-header-nav.has-desktop-overflow {
        position: relative !important;
    }

    nav.has-desktop-overflow .mobile-menu-btn,
    .u-header-nav.has-desktop-overflow .mobile-menu-btn {
        display: none !important;
    }

    nav.has-desktop-overflow .desktop-overflow-btn,
    .u-header-nav.has-desktop-overflow .desktop-overflow-btn {
        display: inline-flex !important;
        margin-left: 4px !important;
        margin-right: 14px !important;
        flex: 0 0 auto !important;
    }

    nav.has-desktop-overflow .desktop-overflow-source,
    .u-header-nav.has-desktop-overflow .desktop-overflow-source {
        display: none !important;
    }

    nav.has-desktop-overflow .desktop-overflow-menu,
    .u-header-nav.has-desktop-overflow .desktop-overflow-menu {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        display: none !important;
        min-width: max-content !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid var(--border) !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14) !important;
        z-index: 1300 !important;
    }

    nav.has-desktop-overflow.mobile-menu-open .desktop-overflow-menu,
    .u-header-nav.has-desktop-overflow.mobile-menu-open .desktop-overflow-menu {
        display: flex !important;
    }

    nav.has-desktop-overflow .desktop-overflow-menu > *,
    .u-header-nav.has-desktop-overflow .desktop-overflow-menu > * {
        margin-bottom: 8px !important;
    }

    nav.has-desktop-overflow .desktop-overflow-menu .hide-mobile,
    .u-header-nav.has-desktop-overflow .desktop-overflow-menu .hide-mobile {
        display: inline !important;
    }
}

@media (max-width: 35em) {
    :root {
        --page-gutter: 0.875rem;
        --card-min: 100%;
    }

    .logo {
        font-size: 1.2rem !important;
    }

    .hero {
        padding-top: 1.875rem !important;
    }

    .hero-copy h1 {
        font-size: clamp(1.85rem, 10vw, 2.4rem) !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .products-grid:not(.list-view-active),
    .profiles-grid,
    .grid-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .products-grid.list-view-active {
        grid-template-columns: 1fr !important;
    }

    .products-grid.list-view-active .card {
        flex-direction: row !important;
    }

    .products-grid.list-view-active .card-img {
        width: 7rem !important;
        min-width: 7rem !important;
    }

    .card-img,
    .event-card-img,
    .destaques-track .card-img {
        min-height: 10.625rem;
    }

    .event-footer,
    .project-contact-row,
    .form-grid,
    .form-grid-2,
    .grid-2,
    .panel-top,
    .business-info,
    .top-nav {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .list-mode .profile-card,
    .products-grid.list-view-active .card {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .list-mode .profile-avatar {
        margin: -2.25rem auto 0.625rem !important;
    }

    .products-grid.list-view-active .card-img,
    .products-grid.list-view-active .card-img-fix {
        width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 4 / 3;
        border-radius: 1rem 1rem 0 0 !important;
    }

    .view-buttons,
    .view-switcher {
        width: 100%;
    }

    .empty-state {
        padding: 2rem 1rem !important;
    }

    .btn-event-details-simple,
    .btn-event-action {
        width: 100%;
    }
}

@media (max-width: 23.75em) {
    :root {
        --page-gutter: 0.75rem;
    }

    .btn-user,
    .btn-slide,
    .hero-link,
    .project-item-link,
    .type-btn,
    .chip,
    .toggle-filters-btn {
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
        font-size: 0.84rem !important;
    }

    .hero-copy h1 {
        font-size: 1.72rem !important;
    }

    .products-grid.list-view-active .card {
        flex-direction: column !important;
    }

    .products-grid.list-view-active .card-img {
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 1rem 1rem 0 0 !important;
        aspect-ratio: 4 / 3;
    }
}

/* Reduced motion support removed to prioritize animations in this environment. */


/* Home phone grids: keep nearby modern phone widths in two columns. */
.products-grid .card,
.home-grid-section .destaques-track .destaque-card {
    min-width: 0 !important;
}

.home-grid-section .destaques-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
    gap: 18px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 10px 0 4px !important;
    scroll-snap-type: none !important;
}

.home-grid-section .destaques-track .destaque-card {
    width: 100% !important;
    flex: none !important;
}

@media (min-width: 390px) and (max-width: 768px) {
    .products-grid:not(.list-view-active),
    .home-grid-section .destaques-track {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}


@media (max-width: 380px) {
    .products-grid:not(.list-view-active),
    .home-grid-section .destaques-track {
        gap: 12px !important;
    }
}


/* Recent items and smart suggestions become horizontal carousels on phones. */
@media (max-width: 1038px) {
    .smart-suggestions-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }

    .smart-suggestions-section .container {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .recent-items-section .destaques-track,
    .smart-suggestions-section .destaques-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 14px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        margin-left: calc(-1 * var(--page-gutter)) !important;
        margin-right: calc(-1 * var(--page-gutter)) !important;
        padding: 10px var(--page-gutter) 18px !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: var(--page-gutter) !important;
        -webkit-overflow-scrolling: touch;
    }

    .recent-items-section .destaques-track .destaque-card,
    .smart-suggestions-section .destaques-track .destaque-card {
        flex: 0 0 min(76vw, 260px) !important;
        width: auto !important;
        scroll-snap-align: start;
    }
}

@media (max-width: 380px) {
    .recent-items-section .destaques-track .destaque-card,
    .smart-suggestions-section .destaques-track .destaque-card {
        flex-basis: min(82vw, 250px) !important;
    }
}


/* Vitrine: keep two columns on very small phones. */
@media (max-width: 389px) {
    .products-grid:not(.list-view-active) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Home recommendation sections: carousels for top-rated, suggestions and recent. */
.top-rated-section .destaques-track,
.smart-suggestions-section .destaques-track,
.recent-items-section .destaques-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 2px 24px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 2px !important;
    -webkit-overflow-scrolling: touch !important;
    align-items: stretch !important;
    scrollbar-width: none; /* Firefox */
}

.top-rated-section .destaques-track::-webkit-scrollbar,
.smart-suggestions-section .destaques-track::-webkit-scrollbar,
.recent-items-section .destaques-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.top-rated-section .destaques-track .destaque-card,
.smart-suggestions-section .destaques-track .destaque-card,
.recent-items-section .destaques-track .destaque-card {
    flex: 0 0 clamp(220px, 26vw, 280px) !important;
    width: clamp(220px, 26vw, 280px) !important;
    min-width: 220px !important;
    height: auto !important;
    align-self: stretch !important;
    scroll-snap-align: start !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 18px !important;
}

@media (max-width: 768px) {
    .top-rated-section .destaques-track,
    .smart-suggestions-section .destaques-track,
    .recent-items-section .destaques-track {
        gap: 14px !important;
        margin-left: calc(-1 * var(--page-gutter, 16px)) !important;
        margin-right: calc(-1 * var(--page-gutter, 16px)) !important;
        padding: 12px var(--page-gutter, 16px) 24px !important;
        scroll-padding-left: var(--page-gutter, 16px) !important;
    }

    .top-rated-section .destaques-track .destaque-card,
    .smart-suggestions-section .destaques-track .destaque-card,
    .recent-items-section .destaques-track .destaque-card {
        flex: 0 0 min(82vw, 270px) !important;
        width: min(82vw, 270px) !important;
        min-width: min(82vw, 270px) !important;
    }
}

@media (max-width: 380px) {
    .top-rated-section .destaques-track .destaque-card,
    .smart-suggestions-section .destaques-track .destaque-card,
    .recent-items-section .destaques-track .destaque-card {
        flex-basis: min(86vw, 260px) !important;
        width: min(86vw, 260px) !important;
    }
}

/* Equal carousel card sizing for top-rated, suggestions and recent. */
.top-rated-section,
.smart-suggestions-section,
.recent-items-section {
    --home-carousel-card-w: clamp(240px, 24vw, 280px);
    --home-carousel-card-h: 360px;
}

.top-rated-section .destaques-track,
.smart-suggestions-section .destaques-track,
.recent-items-section .destaques-track {
    align-items: stretch !important;
}

.top-rated-section .destaques-track .destaque-card,
.smart-suggestions-section .destaques-track .destaque-card,
.recent-items-section .destaques-track .destaque-card {
    flex: 0 0 var(--home-carousel-card-w) !important;
    width: var(--home-carousel-card-w) !important;
    min-width: var(--home-carousel-card-w) !important;
    height: var(--home-carousel-card-h) !important;
    min-height: var(--home-carousel-card-h) !important;
    max-height: var(--home-carousel-card-h) !important;
}

.top-rated-section .destaques-track .card-img,
.smart-suggestions-section .destaques-track .card-img,
.recent-items-section .destaques-track .card-img {
    height: 155px !important;
    min-height: 155px !important;
    max-height: 155px !important;
    aspect-ratio: auto !important;
}

.top-rated-section .destaques-track .card-content,
.smart-suggestions-section .destaques-track .card-content,
.recent-items-section .destaques-track .card-content {
    min-height: 0 !important;
    overflow: hidden !important;
}

.top-rated-section .destaques-track .card-owner,
.smart-suggestions-section .destaques-track .card-owner,
.recent-items-section .destaques-track .card-owner {
    min-height: 24px !important;
}

.top-rated-section .destaques-track .destaque-price,
.smart-suggestions-section .destaques-track .destaque-price,
.recent-items-section .destaques-track .destaque-price {
    min-height: 28px !important;
}

@media (max-width: 768px) {
    .top-rated-section,
    .smart-suggestions-section,
    .recent-items-section {
        --home-carousel-card-w: min(78vw, 270px);
        --home-carousel-card-h: 350px;
    }
}

@media (max-width: 380px) {
    .top-rated-section,
    .smart-suggestions-section,
    .recent-items-section {
        --home-carousel-card-w: min(84vw, 260px);
        --home-carousel-card-h: 345px;
    }
}

/* Home events carousel: responsive cards with visible side arrows on small screens. */
.events-section {
    overflow: hidden;
}

.events-section .events-container-home,
.events-section .home-events-swiper-container {
    width: 100% !important;
    max-width: 100% !important;
}

.events-section .home-events-swiper {
    overflow: hidden !important;
    padding: 8px 44px 52px !important;
}

.events-section .home-events-swiper .swiper-wrapper {
    align-items: stretch !important;
}

.events-section .home-events-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
}

.events-section .event-card-mosaic {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
}

.events-section .event-card-img {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: 0 !important;
}

.events-section .home-swiper-next,
.events-section .home-swiper-prev {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 42px !important;
    height: 42px !important;
    top: 48% !important;
    z-index: 30 !important;
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
    backdrop-filter: blur(10px);
}

.events-section .home-swiper-next::after,
.events-section .home-swiper-prev::after {
    font-size: 1rem !important;
}

.events-section .home-swiper-next { right: 2px !important; }
.events-section .home-swiper-prev { left: 2px !important; }

@media (max-width: 768px) {
    .events-section {
        margin-top: 28px !important;
        margin-bottom: 44px !important;
    }

    .events-section > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .events-section .view-header {
        padding-left: var(--page-gutter, 16px) !important;
        padding-right: var(--page-gutter, 16px) !important;
        margin-bottom: 14px !important;
    }

    .events-section .home-events-swiper-container {
        padding: 0 !important;
    }

    .events-section .home-events-swiper {
        padding: 8px 48px 48px !important;
    }

    .events-section .event-card-mosaic {
        border-radius: 18px !important;
    }

    .events-section .event-card-info {
        padding: 16px !important;
    }

    .events-section .event-card-info h3 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    .events-section .event-card-info p {
        font-size: 0.78rem !important;
    }

    .events-section .event-footer {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .events-section .home-swiper-next,
    .events-section .home-swiper-prev {
        width: 38px !important;
        height: 38px !important;
        top: 46% !important;
    }

    .events-section .home-swiper-next { right: 6px !important; }
    .events-section .home-swiper-prev { left: 6px !important; }
}

@media (max-width: 420px) {
    .events-section .home-events-swiper {
        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    .events-section .home-swiper-next,
    .events-section .home-swiper-prev {
        width: 34px !important;
        height: 34px !important;
    }

    .events-section .home-swiper-next { right: 4px !important; }
    .events-section .home-swiper-prev { left: 4px !important; }
}

/* Marketplace-grade responsive polish: fluid, dense, and stable from 320px to desktop. */
:root {
    --market-gutter: clamp(12px, 3.5vw, 28px);
    --market-shell: min(100% - (var(--market-gutter) * 2), var(--content-max, 1320px));
    --market-card-min: clamp(150px, 42vw, 238px);
    --market-touch: 44px;
}

html {
    scroll-padding-top: calc(var(--header-height, 72px) + 12px);
}

body {
    min-width: 320px;
}

.container,
.nav-container-shell,
.page-shell,
main.container,
.ranking-container,
.faq-page-container,
.edit-shell,
.profile-shell,
.comments-shell,
.panel-shell,
.busca-page-container {
    width: var(--market-shell) !important;
    max-width: var(--content-max, 1320px) !important;
}

main.container {
    padding-bottom: clamp(44px, 8vw, 96px) !important;
}

header,
.u-header-main,
.navbar-top {
    max-width: 100vw !important;
}

header nav,
.u-header-main nav,
.navbar-top .nav-content {
    min-width: 0 !important;
}

.logo {
    flex: 0 1 auto;
    min-width: 0;
}

.nav-btns,
.u-nav-right,
.u-nav-links {
    min-width: 0;
}

.btn-user,
.btn-user-dark,
.btn-user-primary,
.btn-slide,
.hero-link,
.project-item-link,
.card-link,
.btn-event-details-simple,
.btn-event-action,
.search-btn-full,
.busca-interna-btn,
button,
[type="button"],
[type="submit"] {
    min-height: var(--market-touch) !important;
}

.products-grid:not(.list-view-active),
.profiles-grid,
.grid-mode,
.eventos-grid,
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--market-card-min)), 1fr)) !important;
    gap: clamp(12px, 2.4vw, 24px) !important;
    align-items: stretch !important;
}

.products-grid > .card,
.profiles-grid > *,
.grid-mode > *,
.project-public-grid > *,
.eventos-grid > *,
.cards-grid > * {
    min-width: 0 !important;
    height: 100% !important;
}

.card,
.event-card-mosaic,
.project-public-card,
.profile-card,
.panel-card,
.info-card,
.promo-card,
.project-item,
.sidebar-filtros,
.busca-interna-wrapper {
    max-width: 100% !important;
}

.card-img,
.card-img-fix,
.event-card-img,
.project-carousel-track,
.destaques-track .card-img {
    width: 100% !important;
    object-fit: contain;
}

.card-title,
.destaque-title,
.event-card-info h3,
.project-public-content h2,
.profile-card h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.card-content,
.event-card-info,
.project-public-content,
.profile-info,
.business-info,
.project-item-info,
.panel-card,
.info-card {
    min-width: 0 !important;
}

.horizontal-scroll,
.destaques-track,
.chips-container,
.type-filter,
.photo-carousel,
.home-events-swiper {
    overscroll-behavior-inline: contain;
    scroll-snap-stop: always;
}

.destaques-track,
.horizontal-scroll,
.chips-container,
.type-filter {
    scrollbar-width: none;
}

.destaques-track::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar,
.chips-container::-webkit-scrollbar,
.type-filter::-webkit-scrollbar {
    display: none;
}

.search-container form,
.search-container-full,
.busca-interna-form,
.global-search {
    min-width: 0 !important;
}

.search-container input,
.search-input-full,
.busca-interna-input,
.global-search input {
    min-width: 0 !important;
}

.table-container,
.admin-table-wrap,
.responsive-table,
.table-wrapper,
.reports-table,
.items-table {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.event-modal-overlay,
.cr-modal-overlay,
.p-modal-overlay,
.modal-overlay {
    padding: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) !important;
}

.event-modal-content,
.cr-modal-container,
.p-modal-content,
.modal-content-box {
    max-width: min(100%, 1100px) !important;
}

@media (min-width: 1440px) {
    :root {
        --content-max: 1360px;
        --market-card-min: 230px;
    }
}

@media (max-width: 1024px) {
    :root {
        --market-card-min: 210px;
    }

    .hero-grid,
    .product-hero,
    .profile-grid,
    .content-grid,
    .layout-busca-corpo,
    .dashboard-layout,
    .panel-layout,
    .comments-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --market-gutter: 16px;
        --market-card-min: 158px;
    }

    header nav,
    .u-header-main nav,
    .navbar-top .nav-content {
        gap: 10px !important;
    }

    .hero,
    .eventos-hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-copy,
    .eventos-hero {
        text-align: left !important;
    }

    .hero-actions,
    .project-actions,
    .event-footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .hero-link,
    .btn-slide,
    .project-item-link,
    .btn-event-details-simple,
    .btn-event-action {
        width: 100% !important;
    }

    .search-container form,
    .search-container-full,
    .busca-interna-form {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .search-icon {
        display: none !important;
    }

    .search-container button,
    .search-container-full button,
    .busca-interna-btn {
        width: 100% !important;
    }

    .view-header,
    .destaques-header,
    .resultados-header {
        align-items: stretch !important;
    }

    .view-header h3,
    .destaques-title {
        line-height: 1.18 !important;
    }

    .products-grid:not(.list-view-active) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .card-content,
    .event-card-info {
        padding: 12px !important;
    }

    /* FILTERS MOBILE UPGRADE */
    .sticky-filters {
        position: sticky !important;
        top: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        border-bottom: 1px solid var(--border, #e2e8f0) !important;
        margin-bottom: 15px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        z-index: 1100 !important;
    }

    .filters-wrapper {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
        transition: max-height 0.3s ease !important;
    }

    .chips-container,
    .type-filter {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 4px 14px 10px !important;
        gap: 8px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
    }

    .chips-container::-webkit-scrollbar,
    .type-filter::-webkit-scrollbar {
        display: none !important;
    }

    .chip, .type-btn {
        flex: 0 0 auto !important;
        min-height: 36px !important;
        padding: 8px 14px !important;
        border-radius: 12px !important;
        font-size: 0.88rem !important;
        background: #f1f5f9 !important;
        border: 1px solid transparent !important;
        color: #475569 !important;
        font-weight: 700 !important;
    }

    .chip.active, .type-btn.active {
        background: var(--primary, #2563eb) !important;
        color: white !important;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    }

    .toggle-filters-btn {
        display: flex !important;
        position: static !important;
        margin: 6px auto 0 !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        width: auto !important;
        height: 32px !important;
        min-height: 32px !important;
        border-radius: 999px !important;
        padding: 0 12px !important;
        z-index: 10 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .toggle-filters-btn span {
        display: inline !important;
        font-size: 0.72rem !important;
        line-height: 1 !important;
    }

    .toggle-filters-btn i {
        margin: 0 !important;
        font-size: 1.1rem !important;
        color: #64748b !important;
    }

    .filters-wrapper.hidden {
        max-height: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    :root {
        --market-gutter: 12px;
        --market-card-min: 144px;
        --market-touch: 42px;
    }

    .container,
    .nav-container-shell,
    .page-shell,
    main.container,
    .ranking-container,
    .faq-page-container,
    .edit-shell,
    .profile-shell,
    .comments-shell,
    .panel-shell,
    .busca-page-container {
        width: calc(100% - 24px) !important;
    }

    .products-grid:not(.list-view-active) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .card-img,
    .card-img-fix,
    .products-grid .card-img,
    .products-grid .card-img-fix {
        min-height: 132px !important;
    }

    .card-title,
    .destaque-title {
        font-size: 0.92rem !important;
        line-height: 1.25 !important;
    }

    .card-price,
    .destaque-price {
        font-size: 1rem !important;
    }

    .card-owner,
    .destaque-cat,
    .card-link {
        font-size: 0.75rem !important;
    }

    .event-modal-left,
    .cr-media-side {
        min-height: 220px !important;
        height: 38vh !important;
    }
}

@media (max-width: 768px) {
    .products-grid:not(.list-view-active) .card-img .card-badge {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .products-grid:not(.list-view-active) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .logo {
        font-size: 1.2rem !important;
        max-width: calc(100vw - 80px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .u-header-main .logo {
        font-size: 1.2rem !important;
    }

    .btn-user,
    .btn-slide,
    .hero-link,
    .project-item-link,
    .type-btn,
    .chip {
        font-size: 0.84rem !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 347px) {
    .logo,
    .u-header-main .logo {
        font-size: 1rem !important;
        max-width: 116px !important;
        white-space: nowrap !important;
    }

    .u-link-community {
        display: inline-flex !important;
        padding: 4px 6px !important;
        font-size: 0.62rem !important;
        border-left: 1.5px solid #e2e8f0 !important;
        margin-left: 10px !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .u-link-community i {
        display: inline-flex !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 617px) {
    .u-header-nav {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .u-header-nav .mobile-auth-actions,
    .mobile-auth-actions {
        display: none !important;
    }

    .u-header-nav.has-mobile-menu.mobile-menu-open .u-nav-right > .account-menu-item,
    .u-header-nav.has-mobile-menu.mobile-menu-open .u-nav-links > .account-menu-item,
    nav.has-mobile-menu.mobile-menu-open .u-nav-right > .account-menu-item,
    nav.has-mobile-menu.mobile-menu-open .u-nav-links > .account-menu-item,
    .mobile-menu-open .account-menu-item,
    .mobile-menu-open .mobile-outside-source {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

    .u-header-nav .mobile-menu-btn {
        display: inline-flex !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        margin-left: auto !important;
        align-self: center !important;
    }

    .u-header-main .logo,
    .logo {
        max-width: calc(100vw - 72px) !important;
        font-size: 1rem !important;
    }
}

@media (min-width: 1125px) {
    nav.has-desktop-overflow .desktop-overflow-btn,
    .u-header-nav.has-desktop-overflow .desktop-overflow-btn,
    nav.has-desktop-overflow .desktop-overflow-menu,
    .u-header-nav.has-desktop-overflow .desktop-overflow-menu,
    .desktop-overflow-btn,
    .desktop-overflow-menu {
        display: none !important;
    }

    nav.has-desktop-overflow .desktop-overflow-source,
    .u-header-nav.has-desktop-overflow .desktop-overflow-source,
    .desktop-overflow-source {
        display: inline-flex !important;
    }
}

@media (min-width: 953px) and (max-width: 1025px) {
    body:has(.profile-cover) {
        padding-top: 80px !important;
    }

    body:has(.profile-cover) .navbar-top {
        height: 75px !important;
        min-height: 75px !important;
    }
}

.event-admin-item {
    overflow: hidden !important;
}

.event-admin-media {
    min-width: 0;
}

.event-admin-body,
.event-admin-heading,
.event-admin-meta {
    min-width: 0;
}

.event-admin-body {
    display: grid;
    gap: 10px;
}

.event-admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.event-admin-heading h3 {
    margin: 0 !important;
    overflow-wrap: anywhere;
}

.event-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 0.84rem;
}

.event-admin-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.event-admin-reject {
    color: #b91c1c !important;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: unset !important;
}

.event-admin-actions form {
    flex: 1 1 140px;
}

.event-admin-actions .project-action-btn {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.status-pill.pendente {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.pausado {
    background: #e0e7ff;
    color: #3730a3;
}

.status-pill.rejeitado {
    background: #fee2e2;
    color: #b91c1c;
}

.event-admin-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    min-height: 260px;
    padding: 42px 20px;
    color: #64748b;
}

.event-admin-empty i {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 2rem;
}

.event-admin-empty strong {
    color: #0f172a;
    font-size: 1.1rem;
}

@media (max-width: 952px) {
    .panel-shell {
        padding-top: 24px !important;
    }

    .panel-top {
        align-items: stretch !important;
        gap: 14px !important;
        margin-bottom: 18px !important;
    }

    .panel-top h1 {
        font-size: clamp(1.45rem, 6vw, 2rem) !important;
        line-height: 1.12 !important;
        letter-spacing: 0 !important;
    }

    .panel-top .btn-user {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
        border-radius: 14px !important;
    }

    .panel-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .project-admin-list {
        gap: 14px !important;
    }

    .project-admin-item.event-admin-item {
        display: grid !important;
        grid-template-columns: 156px minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 12px !important;
        border-color: #e2e8f0 !important;
        border-radius: 20px !important;
        background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06) !important;
    }

    .project-admin-img.event-admin-img {
        width: 100% !important;
        height: 100% !important;
        min-height: 152px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 16px !important;
        object-fit: cover !important;
    }

    .event-admin-heading {
        display: grid !important;
        gap: 8px !important;
        justify-items: start !important;
    }

    .event-admin-heading h3 {
        font-size: 1.02rem !important;
        line-height: 1.25 !important;
    }

    .event-admin-meta {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 7px !important;
        font-size: 0.82rem !important;
    }

    .event-admin-meta span {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 11px !important;
        padding: 8px 10px !important;
        overflow-wrap: anywhere !important;
    }

    .event-admin-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 6px !important;
    }

    .event-admin-actions form {
        min-width: 0 !important;
    }

    .event-admin-actions .project-action-btn {
        min-height: 44px !important;
        border-radius: 12px !important;
        font-size: 0.82rem !important;
    }
}

@media (max-width: 640px) {
    .project-admin-item.event-admin-item {
        grid-template-columns: 1fr !important;
        padding: 10px !important;
    }

    .project-admin-img.event-admin-img {
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
    }

    .event-admin-body {
        padding: 2px 2px 4px !important;
    }
}

@media (max-width: 420px) {
    .panel-card {
        padding: 12px !important;
    }

    .event-admin-actions {
        grid-template-columns: 1fr !important;
    }

    .event-admin-actions .project-action-btn {
        min-height: 46px !important;
    }
}

body:has(.profile-cover) {
    --perfil-nav-offset: 75px;
    padding-top: var(--perfil-nav-offset) !important;
}

body:has(.profile-cover) .profile-tabs {
    top: var(--perfil-nav-offset) !important;
}

body:has(.profile-cover) .profile-cover {
    margin-top: 0 !important;
}

body:has(.profile-cover) > .container {
    width: min(100% - 28px, 1100px) !important;
    max-width: 1100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has(.profile-cover) .profile-main {
    max-width: 100% !important;
    overflow: visible !important;
}

body:has(.profile-cover) .user-name,
body:has(.profile-cover) .profile-info,
body:has(.profile-cover) .bio-text,
body:has(.profile-cover) .profile-location {
    min-width: 0 !important;
}

body:has(.profile-cover) .user-name h1 {
    overflow-wrap: anywhere !important;
}

body:has(.profile-cover) .profile-products-toolbar {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: -4px 0 18px !important;
}

body:has(.profile-cover) .profile-view-btn {
    width: 42px !important;
    height: 42px !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--text-gray, #64748b) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: 0.2s ease !important;
}

body:has(.profile-cover) .profile-view-btn i {
    font-size: 1.15rem !important;
}

body:has(.profile-cover) .profile-view-btn.active {
    background: var(--primary, #2563eb) !important;
    border-color: var(--primary, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
}

body:has(.profile-cover) .grid.profile-list-view {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

body:has(.profile-cover) .grid.profile-list-view .card {
    display: grid !important;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) !important;
    align-items: stretch !important;
    min-height: 160px !important;
}

body:has(.profile-cover) .grid.profile-list-view .card-img {
    height: auto !important;
    min-height: 160px !important;
    border-radius: 24px 0 0 24px !important;
}

body:has(.profile-cover) .grid.profile-list-view .card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

body:has(.profile-cover) .grid.profile-list-view .card-footer {
    margin-top: auto !important;
}

body:has(.profile-cover) .search-perfil input {
    padding-right: 150px !important;
}

body:has(.profile-cover) .search-perfil button {
    min-width: 118px !important;
    white-space: nowrap !important;
}

@media (max-width: 952px) {
    body:has(.profile-cover) {
        --perfil-nav-offset: 118px;
    }

    body:has(.profile-cover) > .container {
        width: min(100% - 22px, 1100px) !important;
    }

    body:has(.profile-cover) .navbar-top {
        height: auto !important;
        min-height: 118px !important;
        align-items: stretch !important;
    }

    body:has(.profile-cover) .navbar-top .nav-content {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        row-gap: 10px !important;
    }

    body:has(.profile-cover) .profile-main {
        margin-top: -76px !important;
        padding: 28px !important;
        border-radius: 22px !important;
    }

    body:has(.profile-cover) .avatar {
        width: 132px !important;
        height: 132px !important;
        margin-top: -88px !important;
    }
}

@media (max-width: 640px) {
    body:has(.profile-cover) {
        --perfil-nav-offset: 118px;
    }

    body:has(.profile-cover) .profile-cover {
        height: 230px !important;
        border-radius: 0 0 28px 28px !important;
    }

    body:has(.profile-cover) .profile-main {
        margin-top: -58px !important;
        padding: 24px 18px 26px !important;
        border-radius: 20px !important;
    }

    body:has(.profile-cover) .avatar {
        width: 112px !important;
        height: 112px !important;
        border-radius: 30px !important;
        margin-top: -74px !important;
    }
}

@media (max-width: 560px) {
    body:has(.profile-cover) > .container {
        width: calc(100% - 14px) !important;
    }

    body:has(.profile-cover) .profile-info {
        gap: 14px !important;
    }

    body:has(.profile-cover) .actions {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
        gap: 10px !important;
    }

    body:has(.profile-cover) .btn-action {
        width: 100% !important;
        justify-content: center !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body:has(.profile-cover) .profile-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        margin-top: 28px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        scrollbar-width: none;
    }

    body:has(.profile-cover) .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    body:has(.profile-cover) .tab-btn {
        flex: 0 0 auto !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        white-space: nowrap !important;
    }

    body:has(.profile-cover) .destaques-duplos,
    body:has(.profile-cover) .grid {
        gap: 16px !important;
    }
}

@media (max-width: 571px) {
    body:has(.profile-cover) .grid:not(.profile-list-view) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body:has(.profile-cover) .grid .card {
        min-width: 0 !important;
        border-radius: 16px !important;
    }

    body:has(.profile-cover) .grid .card-img {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 0.86 !important;
        padding: 0 !important;
    }

    body:has(.profile-cover) .grid .card-body {
        padding: 12px !important;
    }

    body:has(.profile-cover) .grid .card-body h4 {
        font-size: 0.88rem !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    body:has(.profile-cover) .grid .card-footer {
        align-items: flex-start !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    body:has(.profile-cover) .grid .price {
        font-size: 0.96rem !important;
        line-height: 1.15 !important;
    }

    body:has(.profile-cover) .grid .badge-frete {
        top: 8px !important;
        right: 8px !important;
        max-width: calc(100% - 16px) !important;
        padding: 5px 7px !important;
        font-size: 0.52rem !important;
        border-radius: 8px !important;
    }

    body:has(.profile-cover) .profile-products-toolbar {
        justify-content: flex-start !important;
        margin-top: 0 !important;
    }

    body:has(.profile-cover) .grid.profile-list-view .card {
        grid-template-columns: 112px minmax(0, 1fr) !important;
        min-height: 126px !important;
    }

    body:has(.profile-cover) .grid.profile-list-view .card-img {
        min-height: 126px !important;
        aspect-ratio: auto !important;
        border-radius: 16px 0 0 16px !important;
    }

    body:has(.profile-cover) .grid.profile-list-view .card-body {
        padding: 12px !important;
    }
}

@media (max-width: 520px) {
    body:has(.profile-cover) .search-perfil {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    body:has(.profile-cover) .search-perfil input {
        padding: 16px 18px !important;
        min-height: 52px !important;
    }

    body:has(.profile-cover) .search-perfil button {
        position: static !important;
        width: 100% !important;
        min-height: 48px !important;
        padding: 0 18px !important;
    }
}

@media (max-width: 420px) {
    body:has(.profile-cover) {
        --perfil-nav-offset: 118px;
    }

    body:has(.profile-cover) .navbar-top .nav-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body:has(.profile-cover) .profile-cover {
        height: 210px !important;
    }

    body:has(.profile-cover) .profile-main {
        margin-top: -46px !important;
        padding: 20px 14px 22px !important;
        border-radius: 18px !important;
    }

    body:has(.profile-cover) .avatar {
        width: 96px !important;
        height: 96px !important;
        border-radius: 26px !important;
        margin-top: -62px !important;
    }

    body:has(.profile-cover) .profile-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    body:has(.profile-cover) .profile-stats:has(.stat-item:nth-child(3)) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body:has(.profile-cover) .stat-item {
        min-width: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    body:has(.profile-cover) .stat-item strong {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    body:has(.profile-cover) .stat-item span {
        max-width: 100% !important;
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 340px) {
    body:has(.profile-cover) .profile-stats {
        gap: 4px !important;
    }

    body:has(.profile-cover) .stat-item strong {
        font-size: 0.92rem !important;
    }

    body:has(.profile-cover) .stat-item span {
        font-size: 0.54rem !important;
    }
}

/* Header brand sizing override */
.u-header-main .logo {
    font-size: 2.35rem !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
}

@media (max-width: 768px) {
    .u-header-main .logo {
        font-size: 1.75rem !important;
        max-width: calc(100vw - 96px) !important;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem !important;
        max-width: calc(100vw - 80px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .u-header-main .logo {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 347px) {
    .logo,
    .u-header-main .logo {
        font-size: 1rem !important;
        max-width: 116px !important;
        white-space: nowrap !important;
    }
}
