/* Responsive styles for mobile devices */

/* Global responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Header/Navigation responsive styles */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: #fff;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    
    .nav-icons {
        margin-right: 40px;
    }
}

/* Hero section responsiveness */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .main-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .main-card-content {
        flex-direction: column;
    }
    
    .main-text {
        max-width: 100%;
    }
    
    .main-card h1 {
        font-size: 36px;
    }
    
    .main-card p {
        font-size: 14px;
    }
    
    .cards-column {
        width: 100%;
        margin-top: 30px;
    }
}

/* About section responsiveness */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image {
        width: 100%;
        order: -1; /* Move image above text on mobile */
    }
    
    .about-text {
        width: 100%;
    }
}

/* Categories section responsiveness */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* Products section responsiveness */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 14px;
    }
      /* Shop page specific product styling */
    .product-info .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .whatsapp-order {
        margin-top: 8px;
    }
    
    .product-info {
        padding: 10px 5px;
    }
    
    .product-category {
        font-size: 11px;
    }
}

/* Collections section responsiveness */
@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Testimonial section responsiveness */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 15px;
    }
    
    .testimonial-content {
        font-size: 14px;
    }
}

/* Footer responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Shop page responsiveness */
@media (max-width: 768px) {
    /* Shop header responsiveness */
    .shop-header {
        padding: 120px 0 50px;
    }
    
    .shop-header h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .shop-header p {
        font-size: 16px;
    }
    
    /* Mobile filter button and container */
    .mobile-filter-toggle {
        display: block;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .filter-btn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
        color: #333;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 12px 20px;
    }
    
    .filters-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
        padding-bottom: 20px;
    }
    
    .filters-container.active {
        left: 0;
    }
    
    .filters-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: var(--primary);
        color: var(--secondary);
    }
    
    .filters-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }
    
    .close-filters {
        background: none;
        border: none;
        color: var(--secondary);
        font-size: 20px;
        cursor: pointer;
    }
    
    /* Filters responsiveness */
    .filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .filter-option {
        width: 100%;
        min-width: 100%;
    }
    
    #reset-filters {
        margin-top: 15px;
        width: 100%;
    }
    
    /* Pagination responsiveness */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 30px;
    }
    
    .page-link {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 14px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Contact page responsiveness */
@media (max-width: 768px) {
    .contact-page {
        padding: 100px 0 40px;
    }
    
    .contact-page h1 {
        font-size: 2rem;
    }
    
    .contact-page-container {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .contact-info-section, 
    .contact-form-section {
        width: 100%;
        padding: 25px 15px;
    }
    
    .contact-info-section {
        order: 2;
    }
    
    .contact-form-section {
        order: 1;
        margin-bottom: 30px;
    }
    
    .contact-page h2 {
        font-size: 1.5rem;
    }
      .contact-form input,
    .contact-form textarea,
    .form-row input,
    .form-row textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-row {
        margin-bottom: 15px;
    }
    
    .contact-map {
        height: 300px;
        margin-top: 30px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-page h1 {
        font-size: 1.8rem;
    }
    
    .contact-page ul li {
        font-size: 0.95rem;
    }
    
    .contact-map {
        height: 250px;
    }
    
    /* Enhanced contact info styles for mobile */
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .contact-social h3 {
        text-align: center;
    }
    
    .contact-map-container h2 {
        font-size: 1.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }
    
    /* Category grid with better centering and controlled width */
    .categories-grid {
        grid-template-columns: repeat(3, 330px);
        gap: 30px;
        justify-content: center;
    }
    
    .category-card {
        height: 320px;
    }
    
    /* Products grid with better centering */
    .products-grid {
        grid-template-columns: repeat(4, 260px);
        gap: 30px;
        justify-content: center;
    }
    
    /* Collections need more horizontal space */
    .collections-grid {
        grid-template-columns: repeat(2, 540px);
        gap: 40px;
        justify-content: center;
    }
    
    /* Ensure section titles are centered */
    .section-title {
        text-align: center;
        margin-bottom: 40px;
    }
}

/* Extra large screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 380px);
        gap: 40px;
    }
    
    .category-card {
        height: 350px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 300px);
        gap: 40px;
    }
}

/* Shop page specific large screen optimizations */
@media (min-width: 1200px) {
    /* Shop header improved spacing */
    .shop-header {
        padding: 160px 0 80px;
    }
    
    .shop-header h1 {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    /* Filter bar with better spacing */
    .filters {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin: 0 auto 50px;
        max-width: 1100px;
        padding: 25px 30px;
        border-radius: 12px;
    }
    
    /* Shop page products grid specific layout */
    .products-section .products-grid {
        grid-template-columns: repeat(4, 260px);
        gap: 30px;
        justify-content: center;
        margin: 0 auto;
    }
    
    /* Pagination with better spacing */
    .pagination {
        margin-top: 60px;
    }
}

/* Contact page specific large screen optimizations */
@media (min-width: 1200px) {
    .contact-page {
        padding: 150px 0 100px;
    }
    
    .contact-page-container {
        max-width: 1100px;
        margin: 0 auto;
        gap: 40px;
    }
    
    .contact-info-section, 
    .contact-form-section {
        padding: 50px;
    }
    
    .contact-map-container {
        max-width: 1100px;
        margin: 80px auto 0;
    }
    
    .contact-map {
        height: 450px;
    }
}

/* Hero section large screen optimizations */
@media (min-width: 1200px) {
    .hero .container {
        max-width: 1140px;
    }
    
    .main-card {
        max-width: 1100px;
        padding: 60px 70px;
    }
    
    .main-card h1 {
        font-size: 64px;
    }
    
    .main-text {
        max-width: 55%;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
}

/* About section and other content areas large screen optimizations */
@media (min-width: 1200px) {
    /* About section with improved spacing */
    .about-content {
        max-width: 1100px;
        margin: 0 auto;
        gap: 50px;
    }
    
    .about-text {
        padding-right: 20px;
    }
    
    .about-image img {
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    
    /* Testimonials section with better spacing */
    .testimonials-container {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .testimonial-card {
        padding: 40px;
    }
    
    /* Section common spacing */
    .section-title {
        margin-bottom: 50px;
    }
    
    .section-title h2 {
        font-size: 38px;
    }
}

/* Center alignment for all category names on all screen sizes */
.category-name {
    text-align: center;
}

/* Specific styling for "Shop by Category" section to match the design in the attachment */
@media (min-width: 1200px) {
    /* Special category layout */
    .categories .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin: 0 auto;
        gap: 30px;
    }
    
    .categories .category-card {
        height: 350px;
        border-radius: 8px;
    }
    
    .categories .section-title h2 {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .categories .section-title h2:after {
        width: 100px;
    }
    
    .categories .category-name {
        font-size: 24px;
        font-weight: 600;
        bottom: 20px;
    }
}
