img {
    max-width: 100%;
    height: auto;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (max-width: 1024px) {
    body {
        padding-top: 66px;
    }
}

body::-webkit-scrollbar {
    display: none;
}

.main-header {
    background-color: #481010;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-mobile-btn {
    display: none;
}

@media (max-width: 1024px) {
    .header-mobile-btn {
        display: flex !important;
    }
    .main-header .auth-buttons {
        gap: 1rem;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-links {
    margin-left: auto;
    margin-right: 1rem;
    flex-shrink: 0;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1.5rem;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-icon-btn:hover {
    opacity: 0.85;
}

.header-icon-btn i {
    width: 18px;
    height: 18px;
}

.header-icon-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    border: 1px solid #481010;
    z-index: 1;
}

.notif-icon {
    color: #fff;
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 24px;
    min-height: 24px;
    justify-content: center;
}
.notif-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
}

.nav-categorias {
    background-color: #CF922E;
    border-bottom: 1px solid #b07d24;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-categorias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-categorias-container a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-categorias-container a:hover {
    color: #481010;
    border-color: #481010;
}

main {
    flex: 1;
    padding: 0;
}

.main-footer {
    background-color: #2d0c0e;
    color: #ffffff;
    padding: 2rem;
    font-size: 0.9rem;
    text-align: left;
    margin-top: 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Ajustei o espaçamento interno */
    align-items: flex-start;
}

.footer-links a, .footer-col a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4; /* Melhora a legibilidade */
}

.footer-contact h3, .footer-links h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem; /* Aumentei levemente a fonte do título */
    color: #ffcccc; /* Cor sutil para títulos */
}

.footer-contact p {
    margin: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Adicionando alinhamento horizontal explícito */
    flex-direction: row;
}

.footer-bottom-left {
    display: flex;
    align-items: center; /* Alinha o h2 e o p na mesma linha horizontal */
    gap: 2rem;
}

.footer-brand {
    margin: 0;
    font-size: 1.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    margin: 0;
}

.social-icons a {
    color: #ffffff;
    margin-right: 8px;
    margin-left: 0;
    text-decoration: none;
    font-size: 1.5rem;
}

.header-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1.5rem;
}

.btn-control {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border: none; /* Removido a borda */
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    background: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    padding: 5px 0;
    border: 1px solid #ddd;
    margin-top: 10px;
    left: 0;
}

.dropdown-content.show {
    display: block;
}

.nav-links a.active-link {
    color: #CF922E !important;
    font-weight: bold !important;
}

.dropdown-content::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 21px;
    border-width: 0 9px 9px 9px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f4f4f4;
}

.dropdown-content-right {
    left: auto;
    right: 0;
    min-width: 210px;
}
.dropdown-content-right::after {
    left: auto;
    right: 21px;
}
.profile-dropdown .dropdown-content {
    padding: 6px 0;
}
.profile-dropdown .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}
.profile-dropdown .dropdown-content i,
.profile-dropdown .dropdown-content svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #481010;
}

.btn-comprar {
    background-color: #481010;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.btn-comprar:hover {
    background-color: #5e1515;
}

.header-mobile,
.busca-mobile,
.footer-mobile,
.mobile-bottom-nav,
.header-search-mobile {
    display: none;
}

.header-search-mobile {
    background-color: #481010;
    padding: 0.25rem 2rem 0.75rem;
}

.header-search-mobile > div {
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 481px) and (max-width: 1024px) {
    body:not(.servicos-page-body):not(.prestadores-page-body) {
        padding-top: 66px;
    }
    body {
        padding-top: 66px;
        padding-bottom: 70px;
        overflow-x: hidden;
        width: 100%;
    }

    .header-mobile {
        display: none;
    }

    .footer-desktop {
        display: none;
    }
    .footer-mobile {
        display: block;
    }

    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .main-header .header-container {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-links,
    .header-controls,
    .header-search,
    .header-search-mobile {
        display: none;
    }

    .nav-categorias {
        display: none;
    }

    .nav-categorias-container {
        padding: 0.5rem 1rem;
    }

    .section {
        padding: 0 1rem;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #481010;
        border-radius: 16px 16px 0 0;
        justify-content: space-around;
        align-items: center;
        padding: 0.6rem 0 0.5rem;
        z-index: 1000;
    }

    .mb-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        text-decoration: none;
        color: rgba(255,255,255,0.85);
        font-size: 0.75rem;
        font-weight: 500;
        transition: color 0.2s;
    }

    .mb-nav-item:hover,
    .mb-nav-item.active {
        color: #CF922E;
    }

    .mb-nav-item i {
        font-size: 1.4rem;
    }

    .mb-nav-count {
        position: absolute;
        top: -4px;
        right: -10px;
        width: 16px;
        height: 16px;
        padding: 0;
        background: #ef4444;
        color: #fff;
        font-size: 0.45rem;
        font-weight: 700;
        border-radius: 50%;
        border: 2px solid #fff;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        white-space: nowrap;
        font-family: 'Inter', sans-serif;
    }
}

@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }

    body:not(.servicos-page-body):not(.eventos-page-body):not(.prestadores-page-body) {
        padding-top: 66px;
    }
    body {
        overflow-x: hidden;
        font-size: 14px;
        padding-bottom: 70px;
        padding-top: 66px;
        width: 100%;
    }

    .busca-desktop,
    .footer-desktop {
        display: none;
    }

    .busca-mobile,
    .footer-mobile {
        display: block;
    }

    .nav-links,
    .header-controls,
    .header-search,
    .header-search-mobile {
        display: none;
    }

    .nav-categorias {
        display: none;
    }

    .nav-categorias-container {
        padding: 0.5rem 1rem;
    }

    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .main-header .header-container {
        padding: 0.5rem 1rem;
    }

    .auth-buttons {
        gap: 0.5rem;
    }

    .notif-icon {
        font-size: 1.3rem;
    }

    .section {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .eventos-desktop {
        margin: 0.1rem auto 0;
        padding: 0 1rem;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    .nav-btn {
        width: 32px;
        height: 32px;
    }

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

    .carousel-track::-webkit-scrollbar,
    .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .scroll-container,
    .carousel-track {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .prestadores-mobile {
        margin-bottom: -1rem;
    }

    .prestadores-mobile .prest-page {
        gap: 0.5rem;
    }

    .prestadores-mobile .prest-card {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        text-decoration: none;
        cursor: pointer;
    }

    .prestadores-mobile .prest-photo {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }

    .prestadores-mobile .prest-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .prestadores-mobile .prest-name {
        font-size: 0.8rem;
        margin: 0;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .prestadores-mobile .prest-verified {
        font-size: 0.7rem;
        color: #3897f0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .prestadores-mobile .prest-rating {
        font-size: 0.75rem;
        color: #666;
    }

    .prestadores-mobile .prest-rating i {
        color: gold;
    }



    .servicos-mobile .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .card-location {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        margin-top: 0.25rem;
        font-size: 0.8rem;
        color: #fff;
        text-align: left;
    }

    .card-location svg, .card-location i {
        display: inline-block;
        vertical-align: middle;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .event-card {
        border-radius: 0;
    }

    .event-card .event-image {
        width: 100%;
        height: 180px;
        margin: 0;
    }

    .event-card .event-info {
        padding: 0.75rem;
    }

    .event-card .event-title {
        font-size: 0.9rem;
    }

    .event-card .btn-comprar {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .ver-todos {
        font-size: 0.85rem;
    }

    main {
        padding: 0;
        margin: 0;
    }

    .busca-mobile .search-bar {
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .busca-mobile .search-content {
        gap: 0.5rem;
        padding: 0 1rem;
        align-items: flex-start;
        justify-content: center;
        height: 100%;
    }

    .busca-mobile .search-title {
        font-size: 1.4rem;
        margin: 0;
        text-align: left;
    }

    .busca-mobile .search-options {
        gap: 0;
    }

    .busca-mobile input {
        height: 38px;
        font-size: 0.85rem;
        padding: 0 0.75rem;
        flex: 1;
        border: none;
        border-radius: 19px 0 0 19px;
        background: rgba(255,255,255,0.9);
        outline: none;
    }

    .busca-mobile button {
        height: 38px;
        padding: 0 0.75rem;
        background: #481010;
        color: #fff;
        border: none;
        border-radius: 0 19px 19px 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #481010;
        border-radius: 16px 16px 0 0;
        justify-content: space-around;
        align-items: center;
        padding: 0.6rem 0 0.5rem;
        z-index: 1000;
    }

    .mb-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        text-decoration: none;
        color: rgba(255,255,255,0.85);
        font-size: 0.75rem;
        font-weight: 500;
        transition: color 0.2s;
    }

    .mb-nav-item:hover,
    .mb-nav-item.active {
        color: #CF922E;
    }

    .mb-nav-item i {
        font-size: 1.4rem;
    }

    .mb-nav-count {
        position: absolute;
        top: -4px;
        right: -10px;
        width: 16px;
        height: 16px;
        padding: 0;
        background: #ef4444;
        color: #fff;
        font-size: 0.45rem;
        font-weight: 700;
        border-radius: 50%;
        border: 2px solid #fff;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        white-space: nowrap;
        font-family: 'Inter', sans-serif;
    }

}