/* ==================== RESPONSIVE STYLES ==================== */

/* ==================== TABLET (768px - 1024px) ==================== */
@media screen and (max-width: 1024px) {
    :root {
        --sidebar-width: 70px;
        --section-padding: 60px 30px;
    }
    
    .sidebar {
        width: var(--sidebar-width);
    }
    
    .sidebar-header {
        padding: 16px 12px;
    }
    
    .sidebar-logo img {
        height: 30px;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .nav-item {
        padding: 12px;
        justify-content: center;
    }
    
    .nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-text {
        display: none;
    }
    
    .sidebar-footer {
        padding: 12px;
    }
    
    .main-content {
        margin-left: var(--sidebar-width);
    }
    
    .hero-section {
        padding: 40px 30px;
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .cta-container {
        padding: 32px;
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content p {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* ==================== MOBILE (640px and below) ==================== */
@media screen and (max-width: 640px) {
    :root {
        --section-padding: 40px 20px;
    }
    
    /* Hide sidebar on mobile */
    .sidebar {
        display: none;
    }
    
    /* Show bottom nav */
    .bottom-nav {
        display: flex;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        padding-bottom: 80px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 20px;
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 60px;
    }
    
    .hero-badge {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .glass-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 14px 10px;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    /* Sections */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header .glass-btn {
        align-self: flex-start;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* Featured Products */
    .featured-swiper {
        padding: 10px 0 40px;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-card-content {
        padding: 20px;
    }
    
    .product-card-title {
        font-size: 16px;
    }
    
    .product-card-price .price {
        font-size: 20px;
    }
    
    .product-card-cta {
        flex-direction: column;
    }
    
    .product-card-cta .glass-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-card {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .category-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .category-info {
        flex: 1;
    }
    
    .category-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .category-desc {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .category-arrow {
        position: static;
        opacity: 1;
        transform: none;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 24px;
        text-align: left;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Brands */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .brand-card {
        padding: 20px;
    }
    
    .brand-card img {
        height: 35px;
    }
    
    .brand-card span {
        font-size: 12px;
    }
    
    /* About */
    .about-container {
        padding: 0;
    }
    
    .about-image {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .about-content {
        padding: 0 20px;
    }
    
    .about-content .section-title {
        font-size: 22px;
    }
    
    .about-content p {
        font-size: 15px;
    }
    
    /* CTA */
    .cta-section {
        padding: 20px;
    }
    
    .cta-container {
        padding: 24px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .glass-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer {
        padding: 40px 20px 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-bottom-links {
        gap: 16px;
    }
    
    /* Floating WhatsApp */
    .floating-whatsapp {
        bottom: 90px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    
    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}

/* ==================== SMALL MOBILE (400px and below) ==================== */
@media screen and (max-width: 400px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .product-card-image {
        height: 160px;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    .bottom-nav-item span {
        font-size: 9px;
    }
    
    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }
}

/* ==================== LARGE DESKTOP (1200px and above) ==================== */
@media screen and (min-width: 1200px) {
    :root {
        --sidebar-width: 80px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 72px;
    }
    
    .hero-stats {
        max-width: 800px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== SIDEBAR TOGGLE ON HOVER ==================== */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .sidebar:hover {
        width: var(--sidebar-expanded);
    }
    
    .sidebar:hover .sidebar-logo span,
    .sidebar:hover .nav-text {
        opacity: 1;
    }
    
    .sidebar:hover .sidebar-toggle svg {
        transform: rotate(180deg);
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .sidebar,
    .bottom-nav,
    .floating-whatsapp {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .glass {
        background: #fff !important;
        backdrop-filter: none !important;
        border: 1px solid #ddd !important;
    }
}
