/* Responsive Styles */

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        display: none; /* Hidden by default, will be toggled by JS */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
        font-size: 2em;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column for products */
    }

    .testimonial-grid {
        grid-template-columns: 1fr; /* Single column for testimonials */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .cta-section h2 {
        font-size: 2em;
    }

    .cta-section p {
        font-size: 1em;
    }

    /* Product Page */
    .product-detail-container {
        flex-direction: column;
    }

    .product-images, .product-info {
        width: 100%;
        padding: 0;
    }

    .product-images img {
        margin-bottom: 20px;
    }
}

/* Tablet devices (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-links li {
        margin-left: 20px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.3em;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for products */
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for testimonials */
    }

    .footer-content {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .footer-section {
        flex: 0 0 45%; /* Two columns for footer sections */
        margin-bottom: 30px;
    }

    /* Product Page */
    .product-detail-container {
        flex-direction: column;
    }

    .product-images, .product-info {
        width: 100%;
        padding: 0;
    }
}

/* Desktop devices (1024px and up) */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none; /* Hide hamburger icon on desktop */
    }

    .nav-links {
        display: flex !important; /* Ensure nav links are always visible on desktop */
    }

    .product-detail-container {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }

    .product-images {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .product-images img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .product-info {
        flex: 1;
        padding-left: 20px;
    }
}