/**
 * LITU STORE - Mobile UX Improvements
 * Melhorias de experiência do usuário para dispositivos móveis
 */

/* ============================================
   HEADER MOBILE COMPACTO
   ============================================ */
@media (max-width: 768px) {
    .header-desktop-only {
        display: none !important;
    }

    .header-nav {
        display: none !important;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-main .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo img {
        max-height: 36px;
        width: auto;
    }

    .mobile-search-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--cor-neutra-clara);
        border-radius: 8px;
        color: var(--cor-primaria);
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .mobile-search-toggle:active {
        transform: scale(0.95);
    }
}

@media (min-width: 769px) {
    .mobile-search-toggle,
    .bottom-nav,
    .mobile-search-bar {
        display: none !important;
    }

    .header-desktop-only {
        display: block !important;
    }

    .header-nav {
        display: block !important;
    }
}

/* Mobile Search Bar */
.mobile-search-bar {
    background: white;
    border-top: 1px solid #eee;
    padding: 12px 0;
    display: none;
}

.mobile-search-bar.active {
    display: block;
}

.mobile-search-bar form {
    display: flex;
    gap: 8px;
}

.mobile-search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.mobile-search-bar button {
    width: 48px;
    height: 48px;
    background: var(--cor-primaria);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   BOTTOM NAVIGATION (Mobile Only)
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    padding: 4px 12px;
    position: relative;
    transition: all 0.3s ease;
    min-width: 60px;
}

.bottom-nav-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--cor-primaria);
}

/* Destaque especial para o botão de Categorias */
.bottom-nav-item[onclick*="toggleCategoriasMenu"] {
    color: var(--cor-primaria);
    position: relative;
}

.bottom-nav-item[onclick*="toggleCategoriasMenu"]::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-destaque));
    border-radius: 50%;
    opacity: 0.15;
    animation: pulse-bg 2s ease-in-out infinite;
    z-index: -1;
}

.bottom-nav-item[onclick*="toggleCategoriasMenu"] i {
    color: var(--cor-primaria);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.25;
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.bottom-nav-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    background: var(--cor-erro);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* Adicionar padding ao body para compensar bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}

/* ============================================
   FILTROS DRAWER (Mobile)
   ============================================ */
.filtros-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filtros-drawer.active {
    pointer-events: all;
    opacity: 1;
}

.filtros-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.filtros-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filtros-drawer.active .filtros-drawer-content {
    transform: translateY(0);
}

.filtros-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.filtros-drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--cor-primaria);
}

.btn-close-drawer {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    font-size: 18px;
}

.filtros-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filtro-section {
    margin-bottom: 32px;
}

.filtro-section h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--cor-neutra-escura);
    font-weight: 600;
}

.filtro-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filtro-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    color: #333;
    transition: all 0.3s ease;
}

.filtro-option.active {
    background: var(--cor-primaria);
    color: white;
    font-weight: 600;
}

.filtro-count {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.8;
}

.filtro-radio {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-radio input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--cor-primaria);
}

.filtro-radio:has(input:checked) {
    background: var(--cor-primaria);
    color: white;
}

@media (min-width: 769px) {
    .filtros-drawer {
        display: none;
    }
}

/* ============================================
   PRODUTOS - HEADER E CHIPS
   ============================================ */
.produtos-section {
    padding-top: 0;
}

.produtos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.produtos-header-content h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.produtos-count {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.btn-filtros-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--cor-primaria);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-filtros-mobile:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .btn-filtros-mobile {
        display: flex;
    }

    .produtos-sidebar {
        display: none;
    }

    .produtos-header-content h1 {
        font-size: 1.5rem;
    }
}

/* Chips de Categorias */
.categorias-chips {
    padding: 16px 0;
    margin-bottom: 24px;
    overflow: hidden;
}

.chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.chips-scroll::-webkit-scrollbar {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.chip:active {
    transform: scale(0.95);
}

.chip-active {
    background: var(--cor-primaria);
    color: white;
    font-weight: 600;
    border-color: var(--cor-primaria);
}

.chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.75rem;
    padding: 0 6px;
}

.chip-active .chip-count {
    background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 769px) {
    .categorias-chips {
        display: none;
    }
}

/* ============================================
   CARDS DE PRODUTO MELHORADOS
   ============================================ */
.produto-card {
    position: relative;
    overflow: hidden;
}

.produto-card-link {
    display: block;
    height: 100%;
}

.produto-imagem {
    position: relative;
    padding-top: 133%;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.produto-imagem img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.05);
}

.produto-cta-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-cta-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--cor-primaria);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta-primary:hover {
    background: var(--cor-secundaria);
    transform: translateY(-2px);
}

.btn-cta-primary:active {
    transform: translateY(0);
}

.btn-cta-share {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.btn-cta-share:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-cta-share:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .btn-cta-primary {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .btn-cta-share {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ============================================
   PAGINAÇÃO MELHORADA
   ============================================ */
.pagination-wrapper {
    margin-top: 48px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .pagination .btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}

/* ============================================
   GRID RESPONSIVO OTIMIZADO
   ============================================ */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        gap: 12px;
    }

    .produto-info {
        padding: 12px 8px;
    }

    .produto-nome {
        font-size: 0.875rem;
    }

    .produto-categoria {
        font-size: 0.75rem;
    }
}

/* ============================================
   LOADING E ESTADOS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MELHORIAS DE PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Otimização de scroll suave */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   CATEGORIAS COM SCROLL HORIZONTAL
   ============================================ */
.categorias-lista-mobile {
    display: none;
}

.categorias-grid-desktop {
    display: block;
}

@media (max-width: 768px) {
    .categorias-lista-mobile {
        display: block;
        margin: 0 -24px;
        padding: 0 24px;
    }

    .categorias-grid-desktop {
        display: none;
    }
}

.categorias-scroll-horizontal {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 16px;
}

.categorias-scroll-horizontal::-webkit-scrollbar {
    display: none;
}

.categoria-chip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    max-width: 120px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.categoria-chip-card:active {
    transform: scale(0.95);
}

.categoria-chip-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.categoria-chip-info {
    width: 100%;
}

.categoria-chip-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cor-neutra-escura);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categoria-chip-info span {
    font-size: 0.75rem;
    color: #999;
}

/* ============================================
   CHECKOUT OTIMIZADO (Mobile)
   ============================================ */
.checkout-sidebar-mobile {
    display: none;
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 0 !important;
    }

    .checkout-title {
        padding: 16px;
        margin-bottom: 0;
        font-size: 1.5rem;
    }

    .checkout-steps {
        position: sticky;
        top: 56px;
        background: white;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 16px;
        margin-bottom: 0;
    }

    .checkout-container {
        padding: 0;
    }

    .checkout-content {
        padding: 16px;
        grid-template-columns: 1fr !important;
    }

    .checkout-endereco,
    .checkout-resumo {
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 16px;
    }

    .checkout-endereco h2,
    .checkout-resumo h2 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    /* Ocultar resumo desktop no mobile */
    .checkout-content .checkout-resumo {
        display: none;
    }

    /* Mostrar resumo mobile fixo */
    .checkout-sidebar-mobile {
        display: block;
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        background: white;
        border-top: 2px solid var(--cor-primaria);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
        padding: 16px;
        z-index: 99;
    }

    .resumo-pedido-mobile {
        display: block;
    }

    .resumo-pedido-mobile .resumo-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.875rem;
        margin-bottom: 8px;
        color: #666;
    }

    .resumo-total-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--cor-primaria);
        padding: 12px 0 8px;
        border-top: 2px solid #eee;
        margin-top: 8px;
    }

    .btn-finalizar-mobile {
        width: 100%;
        padding: 16px;
        background: var(--cor-primaria);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        margin-top: 12px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-finalizar-mobile:not(:disabled):active {
        transform: scale(0.98);
    }

    .btn-finalizar-mobile:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }

    /* Adicionar padding para compensar resumo fixo */
    .checkout-page {
        padding-bottom: 220px !important;
    }

    /* Endereco items responsivos */
    .endereco-item {
        padding: 16px;
        margin-bottom: 12px;
    }

    .endereco-item .endereco-info {
        font-size: 0.875rem;
    }

    /* Itens do resumo mais compactos */
    .item-resumo {
        padding: 12px 0;
        font-size: 0.875rem;
    }
}

/* ============================================
   STEPS INDICATOR
   ============================================ */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 24px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: var(--cor-primaria);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 165, 165, 0.4);
}

.step-item.completed .step-number {
    background: var(--cor-sucesso);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--cor-primaria);
    font-weight: 600;
}

.steps-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.steps-line-progress {
    height: 100%;
    background: var(--cor-primaria);
    transition: width 0.3s ease;
}

@media (max-width: 480px) {
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .steps-line {
        top: 16px;
    }
}

/* ============================================
   MENU DROPDOWN CATEGORIAS (Desktop)
   ============================================ */
.menu-dropdown {
    position: relative;
}

.menu-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 999;
}

.menu-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cor-primaria, #D4A5A5), var(--cor-destaque, #C9A86A));
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 165, 165, 0.3);
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(212, 165, 165, 0.3);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 4px 16px rgba(212, 165, 165, 0.5), 0 0 20px rgba(201, 168, 106, 0.3);
        transform: translateY(-2px);
    }
}

.menu-dropdown-toggle:hover {
    background: linear-gradient(135deg, var(--cor-secundaria, #8B7355), var(--cor-primaria, #D4A5A5));
    box-shadow: 0 6px 20px rgba(212, 165, 165, 0.4);
    transform: translateY(-3px);
    animation: none;
}

.menu-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.menu-dropdown:hover .menu-dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    z-index: 1000;
    margin-top: 0;
    padding-top: 12px;
}

.menu-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.dropdown-content {
    padding: 12px 0;
    max-height: 480px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--cor-neutra-clara, #f8f5f2);
    color: var(--cor-primaria, #D4A5A5);
}

.dropdown-item-all {
    font-weight: 600;
    color: var(--cor-primaria, #D4A5A5);
}

.dropdown-item-all i {
    font-size: 1.25rem;
}

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

.dropdown-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--cor-neutra-clara, #f8f5f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-primaria, #D4A5A5);
    font-size: 1.125rem;
}

.dropdown-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.dropdown-item-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item-count {
    font-size: 0.75rem;
    color: #999;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 16px;
}

/* Scrollbar customizada para dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ============================================
   MENU CATEGORIAS MOBILE
   ============================================ */
.categorias-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categorias-mobile-menu.active {
    pointer-events: all;
    opacity: 1;
}

.categorias-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.categorias-mobile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 75vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.categorias-mobile-menu.active .categorias-mobile-content {
    transform: translateY(0);
}

.categorias-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.categorias-mobile-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--cor-primaria, #D4A5A5);
}

.btn-close-categorias {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.categorias-mobile-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.categoria-mobile-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #333;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.categoria-mobile-item:active {
    background: var(--cor-neutra-clara, #f8f5f2);
}

.categoria-mobile-item-all {
    background: var(--cor-neutra-clara, #f8f5f2);
    font-weight: 600;
    color: var(--cor-primaria, #D4A5A5);
    margin-bottom: 8px;
}

.categoria-mobile-item-all i {
    font-size: 1.5rem;
}

.categoria-mobile-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.categoria-mobile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cor-neutra-clara, #f8f5f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-primaria, #D4A5A5);
    font-size: 1.25rem;
}

.categoria-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.categoria-mobile-name {
    font-weight: 500;
    font-size: 1rem;
}

.categoria-mobile-count {
    font-size: 0.875rem;
    color: #999;
}

.categoria-mobile-item > i:last-child {
    color: #ccc;
    font-size: 0.875rem;
}

.bottom-nav-item {
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 769px) {
    .categorias-mobile-menu {
        display: none !important;
    }

    .bottom-nav {
        display: none !important;
    }

    /* Garantir que dropdown esteja escondido por padrão */
    .dropdown-menu {
        display: none;
    }

    .menu-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Seta do dropdown no hover */
@media (min-width: 769px) {
    .menu-dropdown {
        position: relative;
    }

    .menu-dropdown::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1001;
    }

    .menu-dropdown:hover::after {
        opacity: 1;
    }
}

/* Melhorar aparência do botão no bottom-nav */
.bottom-nav-item.active {
    color: var(--cor-primaria, #D4A5A5);
}

/* Garantir que o menu dropdown não quebre o layout */
@media (min-width: 769px) {
    .menu-dropdown > a {
        display: flex;
        align-items: center;
    }
}

/* ============================================
   CORREÇÃO NOMES DUPLICADOS
   ============================================ */
/* Garantir que alt text de imagens não apareça como texto */
.produto-card img,
.categoria-chip-card img {
    font-size: 0;
    color: transparent;
}

/* Garantir que picture não crie texto visível */
.produto-card picture,
.categoria-chip-card picture,
.categorias-grid-desktop picture,
.categorias-lista-mobile picture {
    display: block;
    font-size: 0;
    line-height: 0;
}
