/* Responsive Styles for LUNAYA E-commerce */

/* Mobile-first approach */

/* Small devices (phones, 600px and down) */
@media (max-width: 600px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.8em; }
    h4 { font-size: 1.5em; }

    .navbar {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .nav-links {
        display: none; /* Hidden by default, will be toggled by JS */
        width: 100%;
        flex-direction: column;
        text-align: center;
        background-color: var(--color-pure-white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

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

    .nav-links li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-nude-rose);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
        font-size: 1.8em;
        cursor: pointer;
    }

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

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

    .section-padding {
        padding: 40px 0;
    }

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

    .product-card-image {
        height: 250px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links li {
        margin: 5px 0;
    }

    .cart-sidebar {
        width: 100%; /* Full width on mobile */
    }

    .popup-content {
        max-width: 90%;
        padding: 20px;
    }
}

/* Medium devices (tablets, 601px to 992px) */
@media (min-width: 601px) and (max-width: 992px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2.5em; }

    .nav-links {
        margin-left: auto; /* Push links to the right */
    }

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

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

    .cart-sidebar {
        width: 300px;
    }
}

/* Large devices (desktops, 993px and up) */
@media (min-width: 993px) {
    .container {
        padding: 0 40px;
    }

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

    .menu-toggle {
        display: none; /* Hide hamburger icon on desktop */
    }

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

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

    .cart-sidebar {
        width: 350px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px; /* Wider container for larger screens */
    }

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

/* Specific elements for responsive adjustments */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none; /* Hidden by default, shown on smaller screens */
    background: none;
    border: none;
    color: var(--color-dark-gray);
    cursor: pointer;
    padding: 10px;
}

/* Product Grid */
.product-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

/* Shop Page Filters */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.shop-filters select,
.shop-filters input[type="range"] {
    padding: 8px 12px;
    border: 1px solid var(--color-pearl-beige);
    border-radius: var(--border-radius-soft);
    background-color: var(--color-pure-white);
    font-family: 'Inter', 'Lato', sans-serif;
    color: var(--color-dark-gray);
}

/* Product Detail Page */
.product-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.product-info {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .product-detail-layout {
        flex-direction: column;
    }
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    position: relative;
}

.checkout-step {
    text-align: center;
    flex: 1;
    padding: 10px;
    position: relative;
    color: var(--color-pearl-beige);
    font-weight: bold;
}

.checkout-step.active {
    color: var(--color-powder-mauve);
}

.checkout-step::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--color-pearl-beige);
    transition: background-color 0.3s ease;
}

.checkout-step.active::after {
    background-color: var(--color-powder-mauve);
}

.checkout-step-content {
    border: 1px solid var(--color-pearl-beige);
    border-radius: var(--border-radius-soft);
    padding: 30px;
    margin-top: 20px;
}