/* Mobile Styles for Furniture Mall */

/* Mobile Menu Styles */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: auto;
        background: linear-gradient(135deg, rgba(7, 114, 167, 0.98) 0%, rgba(7, 114, 167, 0.95) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 30px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        border-radius: 20px 0 0 20px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    nav .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active i::before {
    content: "\f00d";
}

.mobile-menu i {
    transition: all 0.3s ease;
    font-size: 1.6rem;
}

/* Testimonial Navigation Buttons */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(14, 26, 66, 0.8);
    /* Using primary color with opacity */
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-testimonial {
    left: 0;
}

.next-testimonial {
    right: 0;
}

.testimonial-nav i {
    font-size: 1.2rem;
}

/* Adjusting testimonial content for navigation buttons */
.testimonial-content {
    margin: 0 50px;
    padding: 30px;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {

    /* Header and Navigation */
    .mobile-menu {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        animation: slideInRight 0.5s forwards;
    }

    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }

    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-links a {
        display: block;
        padding: 18px 20px;
        font-size: 1.15rem;
        font-weight: 500;
        color: var(--light-text);
        border-radius: 12px;
        margin-bottom: 8px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: var(--accent-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 28px;
        color: var(--accent-color);
    }

    .nav-links a:hover::before,
    .nav-links a.active::before {
        transform: scaleY(1);
    }

    .nav-links a::after {
        content: '\f105';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 20px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links a:hover::after {
        opacity: 1;
        right: 15px;
    }

    /* Override the display: none from style.css */
    header nav .nav-links {
        display: flex !important;
    }

    /* New Arrivals Mobile */
    .new-arrivals .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .new-arrivals .product-image {
        height: 200px;
    }

    .new-arrivals .product-info {
        padding: 15px;
    }

    .new-arrivals .product-info h3 {
        font-size: 0.95rem;
    }

    .new-arrivals .product-badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    /* Featured Promo Mobile */
    .featured-promo {
        height: 40vh;
        margin: 10px 0;
    }

    .featured-promo .slideshow-controls {
        bottom: 15px;
        gap: 8px;
    }

    .featured-promo .slide-dot {
        width: 10px;
        height: 10px;
    }

    /* Testimonials */
    .testimonial-nav {
        width: 35px;
        height: 35px;
    }

    .testimonial-nav i {
        font-size: 1rem;
    }

    .testimonial-content {
        margin: 0 40px;
        padding: 20px;
    }

    /* Collection Grid */
    .collection-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .collection-card {
        height: 220px;
    }

    /* Showroom Section - Hide images in mobile view */
    .showroom-images {
        display: none;
    }

    .showroom-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .showroom-content {
        text-align: center;
    }

    .showroom-content h2:after {
        margin: 15px auto 0;
    }

    .showroom-content .btn-primary {
        display: block;
        margin: 20px auto 0;
        max-width: 150px;
        text-align: center;
    }

    /* Catalogue Product Grid */
    .catalogue-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .catalogue-main .product-image {
        height: 200px;
    }

    /* Catalogue product images - smaller on mobile */
    .product-image {
        height: 160px;
    }

    /* Catalogue Page Mobile Styles */
    .page-banner {
        height: 200px;
    }

    .page-banner h1 {
        font-size: 2.2rem;
    }

    .page-banner p {
        font-size: 0.9rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-select {
        width: 100%;
    }

    .catalogue-section {
        padding: 30px 0;
    }

    .catalogue-section h2 {
        font-size: 1.8rem;
    }

    /* Privacy Policy Page Mobile */
    .privacy-content {
        padding: 60px 0;
    }

    .privacy-policy {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .policy-header h2 {
        font-size: 1.8rem;
    }

    .policy-header h3 {
        font-size: 1.3rem;
    }

    .policy-section h3 {
        font-size: 1.2rem;
    }

    .contact-details {
        padding: 15px;
    }

    /* Customer Care Pages Mobile */
    .faq-content,
    .delivery-content,
    .warranty-content,
    .terms-content {
        padding: 60px 0;
    }

    .faq-sections,
    .delivery-info,
    .warranty-info,
    .terms-document {
        margin: 0 15px;
    }

    .faq-section,
    .info-section,
    .warranty-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .faq-section h2,
    .info-section h2,
    .warranty-section h2 {
        font-size: 1.6rem;
    }

    .faq-item h3,
    .info-item h3,
    .warranty-item h3 {
        font-size: 1.1rem;
    }

    .terms-document {
        padding: 30px 20px;
    }

    .terms-section h2 {
        font-size: 1.2rem;
    }

    .claim-steps {
        gap: 15px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .step-number {
        margin-bottom: 15px;
    }

    .contact-section {
        padding: 25px 20px;
        margin-top: 25px;
    }

    .contact-details {
        align-items: flex-start;
    }

    /* Contact Page - Show form first in mobile view */
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-grid .contact-form {
        order: -1;
        /* This makes the form appear first */
        margin-bottom: 30px;
        padding: 25px 20px;
    }

    .contact-grid .contact-info {
        padding: 25px 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
    }

    .form-group textarea {
        height: 120px;
    }
}

@media (max-width: 576px) {

    /* Header */
    header .container {
        padding: 15px 20px;
    }

    .logo-container {
        flex: 0 0 140px;
    }

    .logo {
        max-height: 65px;
    }

    /* New Arrivals Small Mobile */
    .new-arrivals .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .new-arrivals .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .new-arrivals .product-image {
        height: 250px;
    }

    .new-arrivals .product-info {
        padding: 18px;
    }

    .new-arrivals .product-info h3 {
        font-size: 1.05rem;
    }

    .new-arrivals .product-badge {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .view-more .btn-primary {
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Featured Promo Small Mobile */
    .featured-promo {
        height: 35vh;
        margin: 10px 0;
    }

    .featured-promo .slideshow-controls {
        bottom: 10px;
        gap: 6px;
    }

    .featured-promo .slide-dot {
        width: 8px;
        height: 8px;
    }

    /* Hero Section */
    .hero {
        height: 100vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    /* Testimonials */
    .testimonial-nav {
        width: 30px;
        height: 30px;
    }

    .testimonial-content {
        margin: 0 35px;
        padding: 15px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    /* Catalogue Product Grid Small Mobile */
    .catalogue-main .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalogue-main .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .catalogue-main .product-image {
        height: 250px;
    }

    /* Catalogue product images - smaller on small mobile */
    .product-image {
        height: 140px;
    }

    /* Showroom Section - Adjust button for smaller screens */
    .showroom-content .btn-primary {
        max-width: 130px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Privacy Policy Page Small Mobile */
    .privacy-content {
        padding: 40px 0;
    }

    .privacy-policy {
        padding: 25px 15px;
        margin: 0 10px;
    }

    .policy-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .policy-header h2 {
        font-size: 1.6rem;
    }

    .policy-header h3 {
        font-size: 1.2rem;
    }

    .policy-section {
        margin-bottom: 25px;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }

    .policy-footer {
        margin-top: 30px;
        padding-top: 20px;
    }

    /* Customer Care Pages Small Mobile */
    .faq-content,
    .delivery-content,
    .warranty-content,
    .terms-content {
        padding: 40px 0;
    }

    .faq-sections,
    .delivery-info,
    .warranty-info,
    .terms-document {
        margin: 0 10px;
    }

    .faq-section,
    .info-section,
    .warranty-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .faq-section h2,
    .info-section h2,
    .warranty-section h2 {
        font-size: 1.4rem;
    }

    .faq-item h3,
    .info-item h3,
    .warranty-item h3 {
        font-size: 1rem;
    }

    .terms-document {
        padding: 25px 15px;
    }

    .terms-section h2 {
        font-size: 1.1rem;
    }

    .terms-section {
        margin-bottom: 25px;
    }

    .step {
        padding: 15px;
    }

    .contact-section {
        padding: 20px 15px;
        margin-top: 20px;
    }

    /* Contact Page - Ensure form is first on very small screens */
    .contact-grid .contact-form {
        margin-bottom: 25px;
        padding: 20px 15px;
    }

    .contact-grid .contact-info {
        padding: 20px 15px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .map-section {
        padding: 0 0 60px;
    }

    .map-container {
        height: 350px;
    }

    /* Back to Top Button - Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Product Modal Mobile Styles */
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .modal-image img {
        height: 250px;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Catalogue Sidebar Mobile Styles */
    .catalogue-layout {
        flex-direction: column;
        padding: 0 15px;
    }
    .catalogue-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
    }

    .catalogue-sidebar.active {
        left: 0;
    }

    .mobile-sidebar-toggle {
        display: block !important;
        margin-bottom: 20px;
    }

    .catalogue-main {
        width: 100%;
    }

    /* WhatsApp Button Mobile */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }
}