.nav-link, .desktop-search-btn {
    color: #fff;
}

.nav-link:hover {
    color: #a85c2c!important;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    vertical-align: middle;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo.has-alt-logo .custom-logo--white {
    display: none !important;
}

.logo.has-alt-logo .custom-logo--default {
    display: none !important;
}

#main-header:not(.scrolled) .logo.has-alt-logo .custom-logo--white {
    display: inline-block !important;
}

#main-header:not(.scrolled) .logo.has-alt-logo .custom-logo--default {
    display: none !important;
}

#main-header.scrolled .logo.has-alt-logo .custom-logo--white {
    display: none !important;
}

#main-header.scrolled .logo.has-alt-logo .custom-logo--default {
    display: inline-block !important;
}

.mobile-header .logo.has-alt-logo .custom-logo--white {
    display: none !important;
    opacity: 0 !important;
}

.mobile-header .logo.has-alt-logo .custom-logo--default {
    display: inline-block !important;
    opacity: 1 !important;
}

.mobile-header .logo .custom-logo--white {
    display: none !important;
}

.mobile-header .logo .custom-logo--default {
    display: inline-block !important;
}

.site-logo {
    font-family: 'Courgette', cursive;
    font-size: 22px;
    color: #6b4f3b;
    text-decoration: none;
}

.btn-account,
.cart-icon,
.mobile-cart .cart-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile specific account button style */
.mobile-actions .btn-account {
    color: #333 !important;
}

.mobile-actions .btn-account:hover {
    color: #a85c2c !important;
}

.btn-account:hover,
.cart-icon:hover,
.mobile-cart .cart-link:hover {
    color: #a85c2c !important;
}

.cart-icon,
.mobile-cart .cart-link {
    position: relative;
}

/* HEADER FLUTUANTE */
#main-header {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .btn-account,
#main-header.scrolled .cart-icon,
#main-header.scrolled .desktop-search-btn,
#main-header.scrolled .nav-link {
    color: #333;
}

.page-top-backdrop {
    height: 85px;
    width: 100%;
    background: linear-gradient(180deg, rgba(243, 177, 82, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    margin-bottom: 50px;
}

.nav-link.active,
.nav-link.active:hover,
.nav-link.active:focus {
    background: #a85c2c;
    color: #ffffff !important;
    border-radius: 999px;
}

.cart-icon,
.mobile-cart .cart-link {
    position: relative;
}

.cart-icon {
    text-decoration: none;
}

/* Badge */
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e63946;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 3px 6px;
    min-width: 20px;
    height: 20px;
    line-height: 14px;
    border-radius: 999px;
    display: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Mostrar apenas se tiver conteúdo */
.cart-count:not(:empty) {
    display: inline-block;
}

.font-icon-menu {
    font-size: 20px;
}

/* MENU MOBILE */

.mobile-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.mobile-top > * {
    min-width: 0;
}

.mobile-logo img {
    height: 40px;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.mobile-avatar img {
    border-radius: 50%;
}

.mobile-search-btn, .desktop-search-btn {
    background: none;
    border: none;
    font-size: 18px;
}

.mobile-search-bar {
    display: none;
}

.mobile-header.search-active .mobile-top {
    display: none;
}

.mobile-header.search-active .mobile-search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
}

.mobile-search-bar {
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.3s;
}

.mobile-header.search-active .mobile-search-bar {
    opacity: 1;
    transform: translateY(0);
}

.mobile-search-bar input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    background: #f5e6d3;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.mobile-search-bar form {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.search-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.mobile-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 15px;
    width: 100%;
    background: #f5e6d3;
    box-sizing: border-box;

    scrollbar-width: none;
    /* Firefox */
}

.mobile-categories::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.category-item {
    flex: 0 0 auto;
    padding: 6px 14px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #6b4f3b;
    white-space: nowrap;
}

.category-item.active {
    background: #8b6346;
    color: #fff;
}

.desktop-search {
    display: none;
    align-items: center;
    gap: 10px;    
    width: 100%;
    padding: 0 20px;
}

.site-header.search-active .nav {
    display: none;
}

.site-header.search-active .desktop-search {
    display: flex;
}

.desktop-search input {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background: #f5e6d3;
    outline: none;
    min-width: 250px;
    width: 100%;
}

.desktop-search form {
    width: 100%;
}

.desktop-search-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.site-header.search-active .desktop-search-btn i::before {
  content: "\f00d"; /* fontawesome X */
}

@media (min-width: 992px) {
    .mobile-header {
        display: none;
    }
}

@media (max-width: 992px) {
    .main-menu {
        display: none !important;
    }

    #main-header {
        background-color: rgba(255, 255, 255, 0.95) !important;
        padding: 0 !important;
    }
}