/* ========================================
   Responsive Minimalista
   ======================================== */

/* Tablet - 900px */
@media (max-width: 900px) {
    .categories-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .square-banners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .products-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 36px;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .categories-grid-new {
        grid-template-columns: 1fr;
    }

    .square-banners-grid {
        grid-template-columns: 1fr;
    }

    .products-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .header-nav-menu {
        display: none;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Mobile Small - 480px */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-grid-new {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-image-new {
        aspect-ratio: 1;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .action-btn-new {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.search-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    z-index: 3000;
    transition: right var(--transition-normal);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.cart-sidebar.active {
    right: 0;
}

.cart-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.cart-header h3 {
    font-size: 22px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 50px 0;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--gray-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.total-amount {
    color: var(--color-azul);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 4000;
    transition: left var(--transition-normal);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 30px 25px;
}

.mobile-nav-menu li {
    margin-bottom: 20px;
}

.mobile-nav-menu .nav-link {
    font-size: 20px;
    padding: 15px 0;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-carousel {
        height: 500px;
    }

    .slide-content {
        grid-template-columns: 1fr;
        padding: 0 30px;
        text-align: center;
    }

    .slide-title {
        font-size: 36px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

    .top-bar {
        font-size: 9px;
        padding: 8px 10px;
    }

    .section-title {
        font-size: 32px;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .subcategory-filter {
        gap: 8px;
    }

    .subcategory-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 400px;
    }

    .slide-title {
        font-size: 24px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 18px; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 180px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 10px;
    }

    .subcategory-filter {
        gap: 6px;
    }

    .subcategory-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .category-subcategories {
        gap: 6px;
    }

    .category-subcategories span {
        padding: 4px 10px;
        font-size: 10px;
    }
}
