.category-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 0;
    margin-left: 2em;
    margin-bottom: 1.8em;
    font-size: 1.1em;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    border-radius: 0.3em;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.menu-container {
    scale: 0.7;
    width: 100%;
    margin-left: 4.4em;
    margin-bottom: -1.8em;
    margin-top: -1.4em;
}

.category-menu>span,
.more-dropdown>.more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.8em;
    min-width: 4.5em;
    cursor: pointer;
    padding: 0 0.8em;
    border: 3px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
    user-select: none;
    box-sizing: border-box;
    text-align: center;
    margin-right: -2px;
    font-size: 1.1em;
    flex-shrink: 0;
}

span.more-btn {
    border-radius: 0 0.3em 0.3em 0;
}

.more-dropdown>.more-btn {
    position: sticky;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2.99em;
    border-left: none;
    cursor: pointer;
    padding: 0 0.8em;
    font-size: 1.34em;
    font-weight: 700;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    user-select: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: 100%;
    flex-shrink: 0;
    margin-top: 0;
    border-bottom-right-radius: 0.3em !important;
    border-top-right-radius: 0.3em !important;
}

@media (max-width: 599px) {
    .more-dropdown>.more-btn {
        display: none;
    }
}

.category-menu>span:hover,
.more-dropdown>.more-btn:hover,
.category-menu>span.active,
.more-dropdown>.more-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.dropdown-content-more {
    display: none;
    position: absolute;
    top: 2.9em;
    right: 7.83em;
    background: #fff;
    border: 2px solid var(--primary-color);
    padding: 0.5em 0;
    min-width: 150px;
    z-index: 999;
    flex-direction: column;
    zoom: 1.5;
    border-radius: 0.3em;
}

.dropdown-content-more span {
    display: block;
    padding: 0.5em 1em;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 700;
    background: #fff;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.dropdown-content-more span:last-child {
    border-bottom: none;
}

.dropdown-content-more span:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.dropdown-content-more.show {
    display: flex;
}

.btn-categorias {
    display: none;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 0.7em 1.2em;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    border: none;
    margin-left: 1em;
    margin-bottom: 3em;
    margin-top: 0.4em;
    font-size: 1.1em;
    position: relative;
}

.dropdown-categorias {
    display: none;
    position: absolute;
    top: 55%;
    left: 0;
    background: #FFFFFF;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0.5em 0;
    z-index: 1000;
    flex-direction: column;
    width: 10em;
    max-height: 15em;
    overflow-y: auto;
}

.dropdown-categorias span {
    display: block;
    padding: 0.5em 1em;
    border: 0 !important;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 700;
    background: #fff;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.dropdown-categorias span:last-child {
    border-bottom: none;
}

.dropdown-categorias span:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (min-width: 1801px) {
    .category-menu {
        margin-left: 3em;
        font-size: 1.3em;
    }

    .category-menu>span,
    .more-dropdown>.more-btn {
        min-width: 4em;
        padding: 0 1.2em;
    }
}

@media (max-width: 1800px) and (min-width: 1401px) {
    .category-menu {
        margin-left: 3em;
        font-size: 1.15em;
    }

    .category-menu>span,
    .more-dropdown>.more-btn {
        min-width: 5em;
        padding: 0 1em;
    }
}

@media (max-width: 1400px) and (min-width: 1024px) {
    .category-menu {
        margin-left: 2em;
        font-size: 1em;
    }

    .category-menu>span,
    .more-dropdown>.more-btn {
        min-width: 4.5em;
        padding: 0 0.8em;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .category-menu {
        margin-left: 1em;
        font-size: 0.9em;
    }

    .category-menu>span,
    .more-dropdown>.more-btn {
        min-width: 4em;
        padding: 0 0.6em;
    }
}

@media (max-width: 767px) and (min-width: 600px) {
    .category-menu {
        margin-left: 0.5em;
        font-size: 0.85em;
    }

    .category-menu>span,
    .more-dropdown>.more-btn {
        min-width: 3.5em;
        padding: 0 0.5em;
    }
}

@media (max-width: 599px) {
    .category-menu {
        display: none;
    }

    .btn-categorias {
        display: inline-block;
        margin-left: 1em;
    }
}

.dropdown-categorias.show {
    display: flex;
    flex-direction: column;
    z-index: 2000;
}

.dropcart-container {
    position: relative;
}

.cart-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ffff;
    color: #ff7600;
    font-size: 12px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 50%;
    border: 2px solid;
}

.cart-icon {
    width: 36px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(46%) sepia(79%) saturate(875%) hue-rotate(355deg) brightness(98%) contrast(110%) !important;
    cursor: pointer;
}

.cart-trigger:hover .cart-icon {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important;
}

.dropcart {
    position: absolute;
    top: 130%;
    right: -7em;
    background: #fff;
    border-radius: 0.3em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 340px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeDown 0.2s ease-out;
    z-index: 9999;
    border: 2px solid #ff7600;
}

.dropcart.show {
    display: flex;
}

.dropcart-header,
.dropcart-footer {
    padding: 10px 14px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.dropcart-items {
    max-height: 260px;
    overflow-y: auto;
    padding: 10px 14px;
}

.dropcart-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.dropcart-item:last-child {
    border-bottom: none;
}

.dropcart-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.dropcart-title {
    font-weight: 600;
    font-size: 14px;
}

.dropcart-sub {
    font-size: 12px;
    color: #666;
}

.dropcart-price {
    font-weight: 600;
    font-size: 14px;
}

.btn-ghost,
.btn-primary {
    font-size: 13px;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.btn-ghost {
    border: none;
    background: #ff7600;
    color: #fff;
}

.btn-primary {
    background: #ff7600;
    color: #fff !important;
    border: none;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}