/* Menu Mobile Sidebar - Estilos gerais (aplicados sempre) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 10003;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(184, 134, 11, 0.08);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--primary);
    margin: 2.5px 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: linear-gradient(135deg, var(--light) 0%, rgba(247, 242, 232, 0.97) 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
    z-index: -1;
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    backdrop-filter: blur(8px);
    visibility: hidden;
}

.mobile-sidebar.active {
    left: 0;
    visibility: visible;
    z-index: 10002;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(184, 134, 11, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

.mobile-logo {
    height: 32px;
    width: auto;
}

.mobile-sidebar-nav {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-dropdown,
.mobile-nav-link {
    width: 100%;
    border-bottom: 1px solid rgba(184, 134, 11, 0.08);
}

.mobile-dropdown-toggle,
.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.mobile-dropdown-toggle:hover,
.mobile-nav-link:hover {
    background: rgba(184, 134, 11, 0.1);
    color: var(--secondary);
}

.mobile-dropdown-toggle:active,
.mobile-nav-link:active {
    background: rgba(184, 134, 11, 0.15);
    transform: scale(0.98);
}

.mobile-dropdown-toggle span,
.mobile-nav-link span {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mobile-dropdown-toggle i,
.mobile-nav-link i {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(90deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 0.7rem 2rem;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(184, 134, 11, 0.04);
    font-weight: 400;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a:hover {
    background: rgba(184, 134, 11, 0.08);
    border-left-color: var(--secondary);
    color: var(--primary);
}

/* Seção admin removida do menu mobile */

/* Ajustes para mobile */
@media (max-width: 768px) {
    .carousel-slide {
        background-attachment: scroll;
        filter: contrast(1.15) saturate(1.20) brightness(1.10)
                drop-shadow(0 0 1px rgba(184,134,11,0.08))
                hue-rotate(2deg);
        image-rendering: auto;
        image-rendering: optimizeQuality;
    }
    
    .carousel-slide.active {
        filter: contrast(1.18) saturate(1.25) brightness(1.15)
                drop-shadow(0 0 2px rgba(184,134,11,0.12))
                hue-rotate(3deg);
    }
    
    header {
        height: 50px;
        padding: 0;
    }
    
    .header-content {
        padding: 0.3rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        min-height: auto;
        height: 100%;
    }
    
    /* Mostrar botão hambúrguer no mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Ocultar navegação desktop no mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Ajustar tamanho da sidebar para telas menores */
    .mobile-sidebar {
        width: 240px;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo-img {
        height: 30px;
    }

    /* Navegação mobile via sidebar apenas */

    .hero {
        height: 40vh;
        min-height: 250px;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 auto;
        padding: 2rem 1rem 2rem;
        background: var(--light);
        border-radius: 0 0 20px 20px;
        max-width: 450px;
    }

    .feature-card {
        padding: 1.8rem 1.2rem 1.5rem;
    }

    .feature-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .products {
        padding: 4rem 1rem 2rem;
        margin: 1.5rem auto;
    }

    .products h2 {
        font-size: 1.8rem;
        margin: 1.5rem 0 1.5rem 0;
    }

    .products-grid {
        gap: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
        margin: 0 0 1rem 0;
    }

    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        justify-content: center;
    }

    .product {
        margin-bottom: 0;
        max-width: 100%;
        transition: all 0.3s ease;
    }

    .product:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(184, 134, 11, 0.2);
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .quantity-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        transition: all 0.2s ease;
    }

    .quantity-btn:hover {
        background: var(--secondary);
        transform: scale(1.05);
    }

    .quantity-input {
        width: 48px;
        height: 34px;
        margin: 0;
    }

    .product-quantity {
        gap: 6px;
    }

    .add-to-cart {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
        border-radius: 8px;
        letter-spacing: 0.2px;
        transition: all 0.3s ease;
    }

    .add-to-cart:hover {
        background: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    }

    .cart {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .cart i {
        font-size: 1.2rem;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        top: -5px;
        right: -5px;
    }

    .modal-content {
        width: 95%;
        max-width: 350px;
        padding: 1rem;
        margin: 0.5rem auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    .close-modal-btn {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #cartItemsList {
        margin-bottom: 1rem;
        padding-top: 1rem;
    }

    .cart-item {
        padding: 0.6rem 0;
    }

    .item-info h4 {
        font-size: 1rem;
    }

    .item-info p {
        font-size: 0.9rem;
    }

    .remove-item {
        font-size: 1.1rem;
    }

    .cart-summary {
        margin-top: 1rem;
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }

    .subtotal, .frete-value {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .cart-total {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.4rem;
        font-size: 0.85rem;
        border-radius: 4px;
    }

    .form-row {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .modal-buttons button {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .admin-link {
        display: none;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 10px;
        padding: 5px 12px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    /* Dropdowns agora são controlados pela sidebar mobile */
}

@media (min-width: 769px) {
    /* Garantir que elementos mobile estejam ocultos no desktop */
    .mobile-menu-toggle,
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Garantir que navegação desktop esteja visível */
    .desktop-nav {
        display: flex !important;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    .dropdown:hover .dropdown-toggle .fas {
        transform: rotate(180deg);
    }
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 auto;
        padding: 2.5rem 2rem 2.5rem;
        max-width: 500px;
        border-radius: 0 0 25px 25px;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-card i {
        font-size: 2.2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .product {
        min-height: 450px;
    }

    /* Description Modal for tablets */
    .description-modal-content {
        max-width: 450px;
        padding: 1.4rem;
        max-height: 75vh;
        margin: 0.8rem;
    }

    .description-modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 640px) {
    .products-grid {
        gap: 1.5rem;
    }

    .category-title {
        font-size: 1.3rem;
        margin: 0 0 0.8rem 0;
    }

    .category-title::after {
        width: 40px;
        height: 2px;
    }

    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product {
        min-height: 420px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.3rem 0.5rem;
    }

    .logo-img {
        height: 28px;
    }
    
    /* Ajustar sidebar para telas muito pequenas */
    .mobile-sidebar {
        width: 220px;
    }
    
    .mobile-sidebar-header {
        padding: 1rem;
    }
    
    .mobile-logo {
        height: 28px;
    }
    
    .mobile-dropdown-toggle,
    .mobile-nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .mobile-dropdown-menu a {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .hero {
        height: 35vh;
        min-height: 200px;
        padding: 0;
        margin-top: 55px;
    }

    .hero h1 {
        font-size: 1.5rem;
        padding: 0 0.25rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 0.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .products {
        padding: 3.5rem 0.5rem 1.5rem;
    }

    .products h2 {
        font-size: 1.6rem;
        margin: 1rem 0 1rem 0;
    }

    .products-grid {
        gap: 1.2rem;
        padding: 0 0.5rem;
    }

    .category-title {
        font-size: 1.1rem;
        margin: 0 0 0.6rem 0;
        padding-bottom: 0.3rem;
    }

    .category-title::after {
        width: 30px;
        height: 2px;
    }

    .category-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .product-image {
        height: 180px;
        min-height: 180px;
    }
    
    .product {
        min-height: 400px;
    }

    .product-info h3 {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .quantity-input {
        width: 44px;
        height: 32px;
        margin: 0;
        font-size: 0.9rem;
    }

    .product-quantity {
        gap: 5px;
    }

    .add-to-cart {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        min-height: 44px;
        border-radius: 8px;
        letter-spacing: 0.1px;
    }

    /* Description Modal Responsive */
    .description-modal {
        padding: 0.4rem;
        align-items: center;
        justify-content: center;
    }
    
    .description-modal-content {
        width: 100%;
        max-width: 340px;
        padding: 1.1rem;
        max-height: 68vh;
        margin: 0.4rem;
        border-radius: 8px;
    }

    .description-modal-content h3 {
        font-size: 1.15rem;
        padding-right: 1.3rem;
        margin-bottom: 0.7rem;
        line-height: 1.25;
    }

    .description-modal-content p {
        font-size: 0.88rem;
        line-height: 1.45;
        text-align: left;
        margin: 0;
    }

    .close-description-modal {
        font-size: 21px;
        top: 0.5rem;
        right: 0.7rem;
        line-height: 1;
        width: 27px;
        height: 27px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .cart {
        width: 45px;
        height: 45px;
    }

    .cart i {
        font-size: 1.1rem;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    #cartItemsList {
        margin-bottom: 1rem;
        padding-top: 0.8rem;
    }

    .cart-item {
        padding: 0.5rem 0;
    }

    .item-info h4 {
        font-size: 0.95rem;
    }

    .item-info p {
        font-size: 0.85rem;
    }

    .remove-item {
        font-size: 1rem;
    }

    .cart-summary {
        margin-top: 1rem;
        padding: 0.8rem 0;
        margin-bottom: 1rem;
    }

    .subtotal, .frete-value {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .cart-total {
        font-size: 1rem;
        margin-top: 0.4rem;
        padding-top: 0.4rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    .form-row {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .modal-buttons button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .admin-link {
        display: none;
    }

    .empty-cart-balloon {
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 320px;
    }

    .empty-cart-balloon .cart-icon {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }

    .empty-cart-balloon h3 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }

    .empty-cart-balloon p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .empty-cart-balloon .close-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 8px;
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .indicator {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    /* Description Modal for very small screens */
    .description-modal {
        padding: 0.3rem;
    }
    
    .description-modal-content {
        max-width: 310px;
        padding: 0.9rem;
        max-height: 63vh;
        margin: 0.3rem;
        border-radius: 6px;
    }

    .description-modal-content h3 {
        font-size: 1.05rem;
        padding-right: 1.1rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }

    .description-modal-content p {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .close-description-modal {
        font-size: 19px;
        top: 0.4rem;
        right: 0.6rem;
        width: 25px;
        height: 25px;
    }
} 