/* ===================================
   ADETUTU HAIR - MOBILE STYLESHEET
   Responsive styles for mobile and tablet devices
   =================================== */

/* Tablet Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero h1 {
        font-size: 50px;
        letter-spacing: 3px;
    }
    
    .hero .subtitle {
        font-size: 18px;
    }
    
    .hero .tagline {
        font-size: 24px;
        padding: 0 20px;
    }
    
    /* Navigation */
    nav {
        padding: 10px 20px;
    }
    
    nav.scrolled {
        padding: 8px 20px;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .logo {
        min-width: auto;
    }
    
    .logo-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 15, 10, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        text-align: left;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(212, 175, 55, 0.1);
    }
    
    /* Remove the underline animation on mobile */
    .nav-menu a::after {
        display: none;
    }
    
    /* Content Windows */
    .content-window {
        margin: 50px 20px;
        padding: 40px 30px;
    }
    
    .content-window h2 {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .content-window p {
        font-size: 16px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    /* Gallery */
    .gallery {
        padding: 60px 20px;
    }
    
    .gallery h2 {
        font-size: 36px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Newsletter */
    .email-input-container {
        flex-direction: column !important;
    }
    
    .email-input-container input {
        min-width: 100% !important;
        margin-bottom: 15px;
    }
    
    .royal-benefits {
        gap: 20px !important;
    }
    
    .newsletter-container {
        padding: 25px !important;
        margin: 0 15px;
    }
    
    /* Contact Section */
    .contact {
        padding: 60px 20px;
    }
    
    /* Footer */
    footer {
        padding: 30px 20px;
    }
    
    /* Shop Filters */
    .shop-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-dropdown {
        width: 100%;
    }
    
    /* Cart Preview */
    .cart-preview {
        width: 100%;
        right: -100%;
    }
    
    /* Product Detail */
    .product-images {
        grid-template-columns: 1fr;
    }
    
    .product-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .product-thumbnail {
        min-width: 80px;
        width: 80px;
        height: 80px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-price {
        font-size: 24px;
    }
}

/* Fix mobile nav items */
@media (max-width: 768px) {
    /* Hide currency on very small screens or move it */
    .nav-menu li:last-child {
        order: -1; /* Move currency to top */
        background: rgba(212, 175, 55, 0.1);
        text-align: center;
        padding: 10px !important;
    }
    
    /* Fix cart count position */
    #cart-count {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: inline-block !important;
        margin-left: 5px;
    }
}

/* Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero h1 {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .hero .subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .hero .tagline {
        font-size: 20px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* Logo Entrance */
    .logo-entrance img {
        width: 400px;
        height: 400px;
    }
    
    /* Navigation */
    .logo img {
        height: 40px;
        width: 40px;
    }
    
    .logo-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    /* Content Windows */
    .content-window {
        margin: 30px 15px;
        padding: 30px 20px;
    }
    
    .content-window h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    /* Gallery */
    .gallery {
        padding: 40px 15px;
    }
    
    .gallery h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Products */
    .product-card h3 {
        font-size: 20px;
    }
    
    .product-card .price {
        font-size: 18px;
    }
    
    /* Features */
    .feature {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature h3 {
        font-size: 20px;
    }
    
    /* Newsletter */
    .newsletter-container {
        padding: 20px !important;
    }
    
    .crown-divider > div:nth-child(2) {
        font-size: 24px;
    }
    
    .benefit-item > div:first-child {
        font-size: 24px;
    }
    
    /* Footer */
    .social-links {
        gap: 20px;
    }
    
    .social-links a {
        font-size: 20px;
    }
    
    /* Product Detail Mobile */
    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .add-to-cart-btn {
        padding: 16px;
        font-size: 16px;
    }
    
    /* Floating Crowns */
    .floating-logo {
        width: 40px;
        height: 40px;
    }
}

/* Hamburger Menu (for mobile) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile-specific utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

/* Landscape Mobile Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero .subtitle {
        font-size: 16px;
    }
    
    .hero .tagline {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .logo-entrance img {
        width: 300px;
        height: 300px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Make touch targets larger */
    .nav-menu a {
        padding: 10px 0;
    }
    
    button, 
    .cta-button, 
    .shop-button {
        min-height: 44px;
    }
    
    .product-card,
    .gallery-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Disable hover effects on touch devices */
    .product-card:hover,
    .gallery-item:hover .gallery-overlay {
        transform: none;
        opacity: 1;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders and text */
    .nav-menu a::after,
    .content-window,
    .product-card {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Print Styles */
@media print {
    nav,
    .floating-logo,
    .newsletter-container,
    footer {
        display: none !important;
    }
    
    .hero,
    .parallax-container {
        page-break-inside: avoid;
    }
    
    .content-window {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
