/* Responsive Design for Mobile and Tablet */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .logo a {
        justify-content: flex-start;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--navy-blue);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 10px;
        font-size: 1.1rem;
    }
    
    .header-actions {
        order: 2;
        margin-right: 15px;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Hero Banner */
    .hero-banner {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        white-space: normal;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Grids */
    .categories-grid,
    .products-grid,
    .features-grid,
    .reviews-grid,
    .discount-grid,
    .listings-grid,
    .team-grid,
    .gallery-grid,
    .services-grid,
    .benefits-grid,
    .guidelines-grid,
    .faq-grid,
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Product Cards */
    .product-card {
        max-width: 100%;
    }
    
    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .product-image-large {
        font-size: 8rem;
    }
    
    .product-actions-detail {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin: 0 -1rem;
    }
    
    /* Cart */
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .item-image {
        font-size: 2rem;
    }
    
    .item-quantity {
        flex-wrap: wrap;
    }
    
    .item-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .placeholder-image {
        font-size: 6rem;
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-section ul {
        padding: 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Countdown Timer */
    .countdown-timer {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .time-value {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        min-width: 60px;
    }
    
    .time-separator {
        font-size: 1.5rem;
    }
    
    /* Auth Pages */
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-benefits {
        order: -1;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    /* Forms */
    .early-access-form,
    .form-actions,
    .contact-options {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-box button {
        width: 100%;
    }
    
    /* Services Page */
    .service-banner h1 {
        font-size: 1.8rem;
    }
    
    .appointment-section {
        padding: 2rem 1rem;
    }
    
    /* Buttons */
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Tables and Lists */
    .product-specifications ul {
        font-size: 0.9rem;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .categories-grid,
    .products-grid,
    .discount-grid,
    .listings-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cart-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-banner {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-image {
        height: 40px;
        width: 40px;
    }
    
    .footer-logo-image {
        height: 40px;
        width: 40px;
    }
    
    .about-logo {
        width: 150px;
        height: 150px;
    }
    
    .contact-logo {
        width: 120px;
        height: 120px;
    }
    
    .product-card h3 {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}