/* =====================================================
   MOBILE.CSS - Styles for mobile devices (max-width: 767px)
   Montierre Perfume Website
   ===================================================== */

/* ===== MOBILE NAVBAR - BOTTOM BAR LIKE INSTAGRAM ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    z-index: 1200;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #000;
}

.mobile-nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.mobile-nav-item:hover img,
.mobile-nav-item.active img {
    opacity: 1;
}

.mobile-nav-item span {
    font-family: 'Urbanist', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #000;
    color: #fff;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ===== MOBILE TOP NAVBAR ===== */
@media (max-width: 767px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Simplified footer on mobile */
    footer.bg-black {
        display: block;
        padding: 30px 20px 80px 20px;
    }
    
    footer.bg-black .mb-20 {
        display: none;
    }
    
    footer.bg-black .grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-about,
    .footer-links {
        display: none;
    }
    
    .footer-policies,
    .footer-subscribe {
        display: block;
    }
    
    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .footer-social {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .navbar {
        padding: 12px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        justify-content: center;
        min-height: 52px;
    }
    
    .navbar-left {
        flex: 0 0 auto;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .navbar-left .logo {
        height: 28px;
        width: auto;
    }
    
    /* Hide desktop navigation on mobile */
    .navbar-center {
        display: none !important;
    }
    
    /* Hide desktop icons on mobile - they'll be in bottom nav */
    .navbar-right {
        display: none !important;
    }
    
    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add padding at bottom for bottom nav */
    body {
        padding-bottom: 70px;
    }
    
    /* ===== HERO SECTION ===== */
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-text {
        font-size: 24px;
        width: 90%;
        max-width: 320px;
        letter-spacing: 1px;
        padding: 0 20px;
    }
    
    .hero-vector {
        bottom: -40px;
        height: 120px;
    }
    
    /* ===== CRAFTED SECTION ===== */
    .crafted-section {
        padding: 40px 20px;
    }
    
    .crafted-title {
        font-size: 24px;
    }
    
    .crafted-text {
        font-size: 15px;
        padding: 0 10px;
    }
    
    /* ===== FRAME SECTION ===== */
    .frame {
        padding: 40px 20px;
        gap: 24px;
    }
    
    .frame .an-ode-to-elegance {
        font-size: 24px;
        height: auto;
    }
    
    .frame .div-2 {
        flex-direction: column;
        gap: 20px;
    }
    
    .frame .rectangle {
        height: 280px;
    }
    
    .frame .text-wrapper {
        font-size: 18px;
    }
    
    /* ===== FRAGRANCE SECTION ===== */
    .fragrance-section {
        flex-direction: column;
        padding: 40px 15px;
        gap: 25px;
        position: relative;
        z-index: 1;
    }
    
    .fragrance-nav {
        width: 100%;
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }
    
    .fragrance-nav > div {
        position: relative;
        z-index: 2;
    }
    
    .tabs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
        z-index: 3;
    }
    
    .tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tabs li {
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 4;
    }
    
    .tab-link {
        font-size: 14px;
        padding: 12px 18px;
        white-space: nowrap;
        flex-shrink: 0;
        border-bottom: 2px solid #333;
        background: transparent;
        border-top: none;
        border-left: none;
        border-right: none;
        cursor: pointer;
        min-height: 44px;
        display: block;
        width: auto;
        pointer-events: auto;
        color: #fff;
        position: relative;
        z-index: 5;
        font-family: 'Urbanist', sans-serif;
        font-weight: 600;
        letter-spacing: 1px;
    }
    
    .tab-link:active {
        transform: scale(0.98);
    }
    
    .tab-link:hover,
    .tab-link:focus {
        outline: none;
    }
    
    .tab-link.active {
        border-bottom: 2px solid #fff;
        color: #fff;
    }
    
    .tab-description {
        font-size: 13px;
        margin-top: 12px;
        line-height: 1.5;
    }
    
    .explore-all {
        font-size: 14px;
        margin-top: 10px;
    }
    
    .fragrance-display {
        width: 100%;
        overflow: hidden;
        position: relative;
        z-index: 1;
        margin-top: 0;
    }
    
    .fragrance-cards-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 15px;
        position: relative;
        z-index: 1;
    }
    
    .fragrance-cards-container::-webkit-scrollbar {
        display: none;
    }
    
    .fragrance-card-slider {
        display: none;
        flex-direction: row;
        gap: 12px;
        padding: 5px 0;
        transition: transform 0.3s ease;
    }
    
    .fragrance-card-slider.active {
        display: flex;
    }
    
    .fragrance-card {
        min-width: 260px;
        max-width: 280px;
        width: 75vw;
        flex-shrink: 0;
        padding: 15px;
        background-color: #111;
        border-radius: 8px;
    }
    
    .fragrance-card img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }
    
    .bestseller-tag {
        font-size: 10px;
        padding: 4px 8px;
        top: 15px;
        left: 15px;
    }
    
    .fragrance-name {
        font-size: 16px;
        margin: 12px 0 6px;
    }
    
    .collection-name {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .fragrance-description {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .fragrance-price {
        font-size: 14px;
    }
    
    .nav-arrows {
        display: none;
    }
    
    /* ===== ART MEETS FRAGRANCE ===== */
    .art-meets-fragrance-section {
        flex-direction: column;
    }
    
    .art-column {
        height: auto;
        min-height: 200px;
    }
    
    .art-column img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .content-column {
        padding: 40px 20px;
    }
    
    .content-column h2 {
        font-size: 26px;
    }
    
    .content-column p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* ===== INSTAGRAM SECTION ===== */
    .instagram-gallery {
        flex-direction: column;
        padding: 0 15px;
        gap: 15px;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .instagram-content {
        padding: 40px 20px;
        gap: 16px;
    }
    
    .instagram-title {
        font-size: 24px;
    }
    
    .instagram-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
    
    /* ===== INDULGE SECTION ===== */
    .indulge-section {
        padding: 50px 20px;
    }
    
    .indulge-title {
        font-size: 24px;
    }
    
    .shop-now-link {
        font-size: 16px;
    }
    
    /* ===== PROFILE SECTION ===== */
    .profile-section {
        padding: 100px 0 40px 0;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-sidebar {
        padding: 20px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .profile-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* ===== STATIC TEXT CONTAINER ===== */
    .static-text-container {
        font-size: 14px;
        padding: 15px 10px;
        justify-content: center;
    }
    
    .static-text-container span {
        display: none;
    }
    
    .static-text-container span:first-child {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* ===== SEARCH BAR ===== */
    .sliding-search-bar {
        position: fixed;
        top: auto;
        bottom: 70px;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        transform: translateY(20px);
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .searchbar-hover-group:hover .sliding-search-bar,
    .searchbar-hover-group:focus-within .sliding-search-bar {
        transform: translateY(0);
    }
    
    /* ===== MODALS ===== */
    .auth-modal {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        height: 100%;
    }
    
    .auth-modal-header {
        padding: 20px;
    }
    
    .auth-modal-header h2 {
        font-size: 24px;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .cart-modal {
        max-width: 100%;
        border-radius: 0;
    }
    
    /* ===== COLLECTION OVERLAY ===== */
    .collection-overlay {
        position: fixed;
        top: 0;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
    }
    
    .collection-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .collection-card {
        width: 100%;
        max-width: 200px;
    }
    
    .collection-card img {
        width: 150px;
        height: 150px;
    }
    
    /* ===== BODY PADDING ===== */
    body {
        padding-top: 60px;
    }
}

/* ===== MOBILE SEARCH MODAL ===== */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1300;
    padding: 20px;
    padding-top: 60px;
}

.mobile-search-overlay.active {
    display: flex;
    flex-direction: column;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-search-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Urbanist', sans-serif;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #000;
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (max-width: 767px) {
    /* Larger touch targets */
    .icon-button,
    .mobile-nav-item,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better scrolling */
    .tabs,
    .instagram-gallery,
    .fragrance-cards-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Remove hover effects on touch devices */
    .tab-link:hover,
    .shop-now-link:hover,
    .explore-all:hover {
        background: none;
    }
}
