/* Mobile Styles - Max Width 768px */
@media screen and (max-width: 768px) {
    /* Mobile Performance Optimizations */
    body {
        -webkit-transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000;
    }
    
    /* Hardware acceleration for key elements */
    .nav-menu,
    .modal-content,
    .product-card,
    header {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Disable expensive effects on mobile */
    .modal,
    .nav-menu,
    header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    /* Optimize animations for mobile - but allow essential UI transitions */
    .nav-menu {
        transition: left 0.3s ease !important;
    }
    
    .loading-screen {
        transition: opacity 0.5s ease, visibility 0.5s ease !important;
    }
    
    .loading-screen.hidden {
        transition: opacity 0.5s ease, visibility 0.5s ease !important;
    }
    
    #cart-modal .modal-content {
        transition: right 0.3s ease !important;
    }
    
    /* Optimize specific elements for mobile performance - NO universal selectors */
    .hero-background,
    .feature-card,
    .promo-btn {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }
    
    /* Prevent repaints and reflows */
    .hamburger,
    .close,
    .cart-btn {
        will-change: auto;
    }
    
    /* Disable problematic hover effects on touch devices - NOT affecting product page */
    .products:not(.product-page) .product-card:hover,
    .hero .cta-btn:hover,
    .feature-images .cta-btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    /* Mobile Navigation */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        margin-left: auto;
        z-index: 10001 !important;
        padding: 0.75rem !important;
        position: relative;
        pointer-events: auto !important;
        min-width: 50px !important;
        min-height: 50px !important;
        justify-content: center;
        align-items: center;
        touch-action: manipulation;
    }
    
    /* Keep cart button visible on mobile - even when not in hamburger menu */
    .header-actions {
        position: absolute !important;
        right: 4rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    /* Hide search on mobile but keep cart */
    .header-actions .search-btn {
        display: none !important;
    }
    
    .header-actions .cart-btn {
        display: flex !important;
        width: 45px !important;
        height: 45px !important;
        z-index: 1001 !important;
        position: relative !important;
    }

    .hamburger span {
        width: 24px;
        height: 2px;
        background: var(--primary-white);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

    header.scrolled .hamburger span {
        background: var(--primary-black);
    }
    
    /* Hamburger active state (X) */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
        background: var(--primary-white) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
        background: var(--primary-white) !important;
    }
    
    /* Ensure hamburger stays clickable in all states */
    .hamburger,
    .hamburger.active {
        pointer-events: auto !important;
        z-index: 10001 !important;
        cursor: pointer !important;
    }

    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        flex-direction: column !important;
        background: #000000 !important;
        width: 100% !important;
        height: 100vh !important;
        text-align: center;
        transition: left 0.3s ease !important;
        padding: 4rem 2rem 2rem 2rem;
        gap: 1rem;
        z-index: 10000 !important;
        overflow-y: auto;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu li {
        margin: 0;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.3s ease;
        transition-delay: calc(var(--i) * 0.1s);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.4rem;
        padding: 1rem 1.25rem;
        letter-spacing: 1px;
        font-weight: 900;
        display: block;
        border: 2px solid transparent;
        border-radius: 8px;
        transition: background 0.2s ease, border 0.2s ease;
        color: #fff;
        text-transform: uppercase;
        background: rgba(255,255,255,0.02);
        will-change: background, border;
    }

    .nav-menu a:hover {
        border: 2px solid #fff;
        background: rgba(255,255,255,0.05);
        color: #fff;
    }

    .nav-menu .header-actions {
        position: static !important;
        right: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
        padding: 1rem 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        width: 100% !important;
    }

    .nav-menu .search-btn,
    .nav-menu .cart-btn {
        padding: 1rem 1.5rem !important;
        width: auto !important;
        height: 48px !important;
        font-size: 1rem !important;
        background: rgba(255,255,255,0.05) !important;
        border: 2px solid rgba(255,255,255,0.2) !important;
        border-radius: 12px !important;
        color: #fff !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-decoration: none !important;
        min-width: 120px !important;
        justify-content: center !important;
        position: relative !important;
        overflow: visible !important;
    }

    .nav-menu .search-btn:hover,
    .nav-menu .cart-btn:hover {
        background: rgba(255,255,255,0.1) !important;
        border-color: rgba(255,255,255,0.4) !important;
        transform: translateY(-2px) !important;
    }





    .nav-menu #cart-count {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
        line-height: 20px !important;
        top: -5px !important;
        right: -5px !important;
        border-width: 2px !important;
        background: #ff4444 !important;
        border-color: #fff !important;
        z-index: 10 !important;
    }



    .brand-name {
        font-size: 1.5rem;
    }

    .logo {
        height: 36px;
        padding-left: 1rem;
    }

    /* Hero Section Mobile */
    .hero {
        height: 100vh;
        padding: 0 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 5rem);
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-placeholder {
        height: 40vh;
        margin-top: 1rem;
    }

    .hero-text-overlay {
        padding: 1.5rem;
    }

    .hero-placeholder h3 {
        font-size: 1.4rem;
    }

    .hero-placeholder i {
        font-size: 2.5rem;
    }

    .placeholder-features {
        font-size: 0.8rem;
    }

    .cta-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Feature Images Section Mobile */
    .feature-images {
        padding: 3rem 0 2rem 0;
    }

    .feature-images .container {
        padding: 0;
        max-width: none;
    }

    .feature-grid {
        display: flex !important;
        gap: 1.5rem;
        padding: 0 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-black) var(--accent-gray);
        margin: 0;
        max-width: none;
    }

    .feature-grid::-webkit-scrollbar {
        height: 8px;
    }

    .feature-grid::-webkit-scrollbar-track {
        background: var(--accent-gray);
        border-radius: 0;
    }

    .feature-grid::-webkit-scrollbar-thumb {
        background: var(--primary-black);
        border-radius: 0;
    }

    .feature-grid::-webkit-scrollbar-thumb:hover {
        background: var(--text-gray);
    }

    .feature-card {
        height: 350px;
        min-width: 300px !important;
        flex: 0 0 300px !important;
        max-width: none;
        border-radius: 8px !important;
    }

    .feature-overlay {
        padding: 1.25rem !important;
        background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 40%, transparent 70%) !important;
        justify-content: flex-start !important;
    }

    .feature-text h3 {
        font-size: 1rem !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-shadow: 0 3px 6px rgba(0,0,0,0.5) !important;
        line-height: 1.1 !important;
        margin-bottom: 0.2rem !important;
    }

    .feature-text p {
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
        line-height: 1.4 !important;
    }

    .feature-arrow {
        display: none !important;
    }

    /* Products Grid Mobile */
    .products {
        padding: 2rem 0 3rem 0 !important;
    }

    /* Hide product ratings on home page mobile */
    .products .product-rating {
        display: none !important;
    }

    .product-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
    }

    /* Mobile scrollbar styling for product grid */
    .product-grid::-webkit-scrollbar {
        height: 6px !important;
    }

    .product-grid::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .product-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 3px !important;
    }

    .products .product-card {
        width: 280px !important;
        min-width: 280px !important;
        height: 260px !important;
        flex-shrink: 0 !important;
    }

    .products .product-card:hover {
        transform: none !important;
    }

    .products .product-image {
        display: none !important;
    }

    .products .product-content {
        padding: 0.8rem !important;
    }

    .products .product-name {
        font-size: 0.85rem !important;
        margin: 0 0 0.1rem 0 !important;
    }

    .products .product-price {
        font-size: 0.9rem !important;
        margin-bottom: 0.1rem !important;
    }

    .products .product-description {
        font-size: 0.7rem !important;
        margin: 0.05rem 0 0.4rem 0 !important;
        line-height: 1.1 !important;
    }

    .products .product-btn {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.65rem !important;
        max-width: 120px !important;
    }

    .products .product-btn.sold-out {
        background: #6c757d !important;
        color: #ffffff !important;
        cursor: not-allowed !important;
        opacity: 0.8 !important;
    }

    /* Mobile section spacing */
    .feature-images {
        padding-bottom: 1.5rem !important;
    }

    .products {
        padding-top: 2rem !important;
    }

    .products .product-image {
        display: none !important;
    }

    .product-placeholder {
        font-size: 1.2rem;
    }

    .products h2,
    .about h2,
    .contact h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 3rem;
    }

    .products .container {
        padding: 0 1rem;
    }

    /* About Section Mobile */
    .about {
        padding: 2rem 0 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .about-text {
        order: 1;
        display: block !important;
        padding: 0 1rem;
    }

    .about-visual {
        display: none !important;
    }



    .about-features {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
        padding: 0 1rem;
    }

    .feature {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
        background: rgba(255,255,255,0.05) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        border-radius: 8px;
        gap: 1rem !important;
    }

    .feature i {
        font-size: 2.5rem !important;
        color: var(--primary-white) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .feature h4 {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--primary-white) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }

    .feature p {
        color: rgba(255,255,255,0.8) !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        font-weight: 300 !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 2rem 0 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Modal Mobile */
    .modal-content {
        margin: 5% auto;
        width: 96%;
        max-height: 85vh;
        border: 1px solid #000;
        border-radius: 12px;
    }

    /* Cart Slide Panel Mobile Styles */
    #cart-modal .modal-content {
        right: -100% !important;
        width: 100% !important;
        border-left: none !important;
        border-top: 4px solid var(--primary-black) !important;
        transform: none !important;
        transition: right 0.3s ease !important;
    }
    
    #cart-modal.show .modal-content {
        right: 0 !important;
    }

    #cart-modal .close {
        left: 1rem !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: var(--primary-white) !important;
        background: transparent !important;
        border-radius: 6px !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.8rem !important;
        font-weight: 700 !important;
    }

    #cart-modal .modal-header {
        padding: 1.5rem 2rem 1.5rem 3rem !important;
    }

    #cart-modal .modal-header h2 {
        padding-left: 10px !important;
    }

    /* Promo Banner Mobile */
    .promo-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    /* Show CTA button on mobile - override desktop-hidden */
    .desktop-hidden {
        display: block !important;
    }

    .promo-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
    }

    .promo-text .desktop-text {
        display: none;
    }

    .promo-text .mobile-text {
        display: block;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .promo-text span {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .promo-btn {
        background: transparent;
        border: none;
        color: var(--primary-white);
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
        font-size: 0;
        text-indent: -9999px;
        overflow: hidden;
    }

    .promo-btn::before {
        content: '\f061';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.2rem;
        text-indent: 0;
        position: absolute;
    }

    .promo-btn span {
        display: none;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center !important;
        padding: 0 1rem !important;
        margin-bottom: 2rem !important;
    }

    .footer-section {
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .footer-section h3 {
        text-align: center !important;
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
        font-weight: 700 !important;
        color: var(--primary-white) !important;
        display: block !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .footer-section p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        line-height: 1.6 !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        color: var(--primary-white) !important;
    }

    .footer-logo-image {
        max-width: 120px !important;
        height: auto !important;
        margin-bottom: 1rem !important;
    }

    .footer-section ul {
        text-align: center !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-section ul li {
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    .footer-section a {
        font-size: 1rem !important;
        justify-content: center !important;
        text-align: center !important;
        display: inline-block !important;
        font-weight: 500 !important;
        color: var(--primary-white) !important;
        text-decoration: none !important;
    }

    .footer-section a:hover {
        transform: none !important;
        padding-left: 0 !important;
    }

    .social-links {
        justify-content: center !important;
        gap: 1.5rem !important;
        margin: 1.5rem 0 !important;
    }

    .social-links a {
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--primary-black) !important;
        color: white !important;
        border-radius: 50% !important;
        font-size: 1.2rem !important;
        transition: all 0.3s ease !important;
    }

    .newsletter-form {
        flex-direction: column !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        gap: 1rem !important;
        border: none !important;
        overflow: visible !important;
    }

    .newsletter-form input {
        padding: 0.8rem !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        border-radius: 6px !important;
        font-size: 1rem !important;
        text-align: center !important;
        height: 48px !important;
        box-sizing: border-box !important;
        background: rgba(255,255,255,0.1) !important;
        color: var(--primary-white) !important;
    }

    .newsletter-form input::placeholder {
        color: rgba(255,255,255,0.6) !important;
    }

    .newsletter-form button {
        width: 100% !important;
        padding: 0.8rem !important;
        background: var(--primary-white) !important;
        color: var(--primary-black) !important;
        border: none !important;
        border-radius: 6px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        height: 48px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-bottom {
        font-size: 0.9rem !important;
        padding-top: 1.5rem !important;
        text-align: center !important;
    }

    /* Loading Screen Mobile */
    .loading-logo {
        margin-bottom: 1.5rem;
    }

    .loading-logo-image {
        max-width: 250px;
        min-width: 150px;
    }

    .loading-bar {
        width: 150px;
    }

    /* Utility Classes */
    .mobile-center {
        text-align: center;
    }

    .mobile-full-width {
        width: 100%;
    }

    .mobile-hidden {
        display: none;
    }

    .mobile-small-text {
        font-size: 0.8rem;
    }

    /* Textarea icon alignment mobile */
    .form-group:has(textarea) i {
        top: 1rem;
        transform: none;
    }

    /* Product Features Full Section Mobile */
    .product-features-full {
        padding: 4rem 0;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }

    .feature-text-section {
        text-align: center;
        order: 2;
    }

    .feature-text-section h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .feature-text-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .feature-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .feature-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    .feature-image-section {
        order: 1;
    }

    .feature-image {
        height: 300px;
        border-radius: 8px;
    }

    /* First Section: Main Product Mobile */
    .product-main-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
        padding: 1rem 0;
    }

    .product-gallery-section {
        order: 1;
        display: flex;
        gap: 1rem;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        max-width: 100%;
        overflow: hidden;
    }

    .product-thumbnails {
        flex-direction: column;
        max-width: 70px;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

    .thumbnail-item.active {
        border-color: var(--primary-black);
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-main-image {
        flex: 1;
        aspect-ratio: 1;
        max-width: calc(100% - 90px);
        height: auto;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }

    .product-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-details-section {
        order: 2;
        padding: 1rem 0 0 0;
    }

    /* Product Actions Mobile */
    .product-actions {
        flex-direction: row;
        gap: 0.75rem;
    }

    .buy-now-btn,
    .learn-more-btn {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    /* Second Section: Feature Dual Mobile */
    .product-feature-dual {
        padding: 1rem 0;
    }

    .feature-dual-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .feature-text-section {
        text-align: center;
        order: 2;
    }

    .feature-text-section h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .feature-text-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .feature-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .feature-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    .feature-image-section {
        order: 1;
    }

    .feature-image {
        height: 300px;
        border-radius: 8px;
    }

    /* Third Section: Showcase Full Mobile */
    .product-showcase-full {
        padding: 1rem 1rem; /* Add padding on mobile too */
    }

    .showcase-image {
        height: 50vh;
        border-radius: 8px; /* Smaller radius for mobile */
    }

    /* Fourth Section: Highlights Mobile */
    .product-highlights {
        padding: 1.5rem 0;
    }

    .highlights-container {
        padding: 0 1rem;
    }

    .highlights-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .highlight-image {
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .highlight-item h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .highlight-item p {
        font-size: 0.9rem;
    }

    /* Product Summary Mobile */
    .product-summary h3 {
        font-size: 1.1rem;
        text-align: left;
    }

    .product-summary p {
        font-size: 0.9rem;
        text-align: left;
    }

    /* Expandable Description Mobile */
    .description-content p {
        font-size: 0.9rem;
        text-align: left;
    }

    .product-features-list h4 {
        font-size: 1rem;
    }

    .product-features-list li {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        margin-bottom: 0.75rem !important;
        line-height: 1 !important;
    }
}

/* Extra Small Mobile - Max Width 480px */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-placeholder {
        height: 35vh;
    }

    .hero-text-overlay {
        padding: 1rem;
    }

    .hero-placeholder h3 {
        font-size: 1.2rem;
    }

    .hero-placeholder i {
        font-size: 2rem;
    }

    .placeholder-features {
        font-size: 0.7rem;
    }

    .products h2,
    .about h2,
    .contact h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 98%;
        margin: 2% auto;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .logo {
        height: 30px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        text-align: center !important;
        margin-bottom: 1.25rem;
        color: var(--primary-white);
        display: block !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .footer-section p {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.5;
        color: var(--primary-white);
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section ul li {
        text-align: center;
        margin-bottom: 0.8rem;
        color: var(--primary-white);
    }

    .footer-section a {
        text-align: center;
        font-size: 0.9rem;
        color: var(--primary-white);
    }

    .footer-logo-image {
        max-width: 100px;
    }

    .nav-menu a {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }

    .cta-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .product-info {
        padding: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .feature-card {
        min-width: 280px !important;
        flex: 0 0 280px !important;
        border-radius: 8px !important;
    }

    .product-card {
        min-width: 250px !important;
        flex: 0 0 250px !important;
    }

    /* About Section Mobile Small - visual hidden on mobile */

    /* Typography Mobile Small */
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        margin-bottom: 0.75rem !important;
        line-height: 1 !important;
    }

    .section-title {
        letter-spacing: -1px !important;
    }

    .product-container {
        padding: 0 0.75rem;
    }

    .product-main-section {
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .product-gallery-section {
        gap: 0.75rem;
    }

    .product-thumbnails {
        max-width: 60px;
        gap: 0.5rem;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .product-main-image {
        max-width: calc(100% - 75px);
        border-radius: 8px;
    }

    .product-details-section {
        padding: 0.75rem 0 0 0;
    }

    .product-actions {
        gap: 0.5rem;
        flex-direction: column;
    }

    .buy-now-btn,
    .learn-more-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .related-products-section .product-card {
        flex: 0 0 250px;
        min-width: 250px;
        width: 250px;
    }

    .related-products-section .product-image {
        height: 170px;
    }

    .related-products-section .product-info {
        padding: 1rem;
    }

    .feature-dual-content {
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .highlights-container {
        padding: 0 0.5rem;
    }

    .highlights-grid {
        gap: 1.5rem;
    }

    .highlight-image {
        height: 200px;
        margin-bottom: 1rem;
    }

    .highlight-item h3 {
        font-size: 1.3rem;
    }

    .feature-image {
        height: 250px;
    }

    .showcase-image {
        height: 40vh;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-menu a:hover {
        border: 4px solid transparent;
        background: transparent;
        color: #fff;
    }

    .footer-section a:hover {
        transform: none;
        padding-left: 0;
    }

    .add-to-cart,
    .submit-btn,
    .cta-btn {
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger {
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }

    .close {
        -webkit-tap-highlight-color: transparent;
        outline: none;
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landscape phone orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-placeholder {
        height: 30vh;
        font-size: 1.2rem;
    }

    .hero-content {
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .nav-menu {
        padding: 3rem 2rem 2rem 2rem;
        gap: 0.8rem;
        height: 100vh;
        overflow-y: auto;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
        letter-spacing: 1px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .product-placeholder,
    .hero-placeholder,
    .about-placeholder {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element {
        animation: none;
    }
    
    .loading-progress {
        animation: none;
        width: 100%;
    }
}

/* Additional Mobile Performance - Low-End Devices */
@media screen and (max-width: 768px) and (max-device-width: 768px) {
    /* Keep essential UI animations but disable decorative ones */
    .nav-menu {
        transition: left 0.3s ease !important;
    }
    
    /* Loading screen fixes - scoped to not affect other elements */
    #loading-screen.loading-screen {
        transition: opacity 0.5s ease, visibility 0.5s ease !important;
    }
    
    #loading-screen.loading-screen.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        pointer-events: none !important;
    }
    
    #cart-modal .modal-content {
        transition: right 0.3s ease !important;
    }
    
    /* Disable specific animations on low-end mobile devices - ONLY for homepage elements */
    .home-page .hero-background,
    .home-page .feature-card:not(.product-card),
    .home-page .promo-btn {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    /* Disable intersection observer animations ONLY on homepage */
    .home-page .product-card,
    .home-page .about-content,
    .home-page .contact-content {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .nav-menu {
        background: rgba(0, 0, 0, 0.98);
    }
    
    .contact-form-container {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .contact-item {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Checkout Modal Mobile */
    .checkout-modal .modal-content {
        max-width: 95%;
        width: 95%;
    }
    
    .checkout-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .checkout-summary {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .checkout-summary h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .checkout-item {
        padding: 0.625rem 0;
    }
    
    .checkout-item-name {
        font-size: 0.85rem;
    }
    
    .checkout-item-quantity {
        font-size: 0.75rem;
    }
    
    .checkout-item-total {
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .checkout-form-section h3 {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkout-form {
        gap: 1rem;
    }
    
    .checkout-form label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .checkout-form input {
        padding: 0.625rem 2rem 0.625rem 2.25rem;
        font-size: 0.85rem;
    }
    
    .checkout-form .form-group i {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        left: 0.625rem;
    }
    
    .stripe-element {
        padding: 0.625rem;
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .checkout-actions .btn {
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .security-badges {
        flex-wrap: wrap;
        gap: 0.375rem;
        font-size: 0.75rem;
    }
    
    .security-badges i {
        font-size: 1rem;
    }
    
    .security-badges .fab {
        font-size: 1.25rem;
    }
    
    #notification-container {
        left: 1rem;
        right: 1rem;
    }
    
    .notification {
        min-width: auto;
    }
}

/* Product Page Mobile Styles - Nike Style */
@media (max-width: 768px) {
    /* Product Page Protection - Ensure no global styles interfere */
    .product-page * {
        animation-duration: inherit !important;
        transition-duration: inherit !important;
    }
    
    .product-page .product-card:hover,
    .product-page .feature-btn:hover,
    .product-page .buy-now-btn:hover {
        transform: inherit !important;
        box-shadow: inherit !important;
    }
    
    .product-page {
        padding: 0.25rem 0;
        padding-top: 60px; /* Further reduced top padding for mobile */
        padding-bottom: 0; /* Remove bottom padding to reduce space between sections */
    }

    .product-container {
        padding: 0 1rem;
    }

    /* Mobile Product Layout */
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .product-main-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Mobile Gallery */
    /* Removed conflicting gallery rules - using earlier defined rules for thumbnails on left */

    /* Mobile Product Details */
    .product-details-section {
        padding: 0;
        gap: 1.5rem;
        order: 2;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .product-info-header .product-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .product-category {
        text-align: left;
        margin-bottom: 1rem;
    }

    .product-pricing {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .original-price {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    /* Mobile Product Description */
    .product-description-section h3 {
        font-size: 1.2rem;
        text-align: left;
        margin-bottom: 1rem;
    }

    .product-description-section p {
        font-size: 0.9rem;
        text-align: left;
        margin-bottom: 1rem;
    }

    .product-features-list h4 {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 0.75rem;
        margin-top: 1rem;
    }

    .product-features-list li {
        font-size: 0.85rem;
        text-align: left;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .product-features-list li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--primary-white);
        font-weight: 900;
    }

    /* Mobile Product Actions */
    .product-actions-section {
        gap: 1rem;
    }

    .quantity-selector {
        text-align: center;
    }

    .quantity-selector label {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .quantity-controls {
        margin: 0 auto;
        width: fit-content;
    }

    .quantity-btn {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }

    .quantity-controls input {
        padding: 0.6rem;
        width: 40px;
        font-size: 0.9rem;
    }

    .action-buttons {
        gap: 0.75rem;
    }

    .add-to-bag-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .favorite-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Mobile Product Guarantee */
    .product-guarantee-section {
        gap: 0.75rem;
        padding-top: 1.5rem;
    }

    .guarantee-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .guarantee-item i {
        font-size: 1.2rem;
    }

    .guarantee-item span {
        font-size: 0.85rem;
    }

    /* Mobile Related Products - Horizontal Scroll */
    .related-products-section {
        padding: 1rem 0;
    }

    .related-products-section .container {
        padding: 0 1rem;
    }

    .related-products-section .section-header h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .related-products-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
    }

    .related-products-grid::-webkit-scrollbar {
        height: 6px !important;
    }

    .related-products-grid::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .related-products-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 3px !important;
    }

    .related-products-section .product-card {
        width: 280px !important;
        min-width: 280px !important;
        height: 260px !important;
        flex-shrink: 0 !important;
    }

    .related-products-section .product-card:hover {
        transform: none !important;
    }

    .related-products-section .product-content {
        padding: 0.8rem !important;
    }

    .related-products-section .product-name {
        font-size: 0.85rem !important;
        margin: 0 0 0.1rem 0 !important;
    }

    .related-products-section .product-price {
        font-size: 0.9rem !important;
        margin-bottom: 0.1rem !important;
    }

    .related-products-section .product-description {
        font-size: 0.7rem !important;
        margin: 0.05rem 0 0.4rem 0 !important;
        line-height: 1.1 !important;
    }

    .related-products-section .product-btn {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.65rem !important;
        max-width: 120px !important;
    }

    .related-products-section .product-btn.sold-out {
        background: #6c757d !important;
        color: #ffffff !important;
        cursor: not-allowed !important;
        opacity: 0.8 !important;
    }

    /* About Features Mobile Small */
    .about-features {
        gap: 1rem !important;
        padding: 0 0.75rem !important;
    }

    .feature {
        padding: 1.5rem 1rem !important;
    }

    .feature i {
        font-size: 2rem !important;
    }

    .feature h4 {
        font-size: 1rem !important;
    }

    .feature p {
        font-size: 0.85rem !important;
    }

    /* Typography Mobile */
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        margin-bottom: 0.75rem !important;
        line-height: 1 !important;
    }

    .section-title {
        letter-spacing: -1px !important;
    }
}

/* Contact Page Mobile Styles */
@media screen and (max-width: 768px) {
    .contact-page .about-bonzi {
        padding: 60px 0 40px !important;
    }

    .contact-page .about-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
    }

    .contact-page .about-tagline {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }

    .contact-page .products-protection,
    .contact-page .mission-section,
    .contact-page .core-values,
    .contact-page .get-in-touch {
        padding: 40px 0 !important;
    }

    .contact-page .container {
        padding: 0 1rem !important;
    }

    .contact-page .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        letter-spacing: 1px !important;
        margin-bottom: 30px !important;
    }

    .contact-page .protection-content {
        max-width: 100% !important;
    }

    .contact-page .protection-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    .contact-page .mission-text {
        max-width: 100% !important;
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }

    .contact-page .values-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 40px !important;
    }

    .contact-page .value-item {
        padding: 20px 15px !important;
    }

    .contact-page .value-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 20px !important;
    }

    .contact-page .value-icon i {
        font-size: 1.5rem !important;
    }

    .contact-page .value-item h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
        letter-spacing: 0.5px !important;
    }

    .contact-page .value-item p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .contact-page .explore-btn {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
        border-radius: 25px !important;
    }

    .contact-page .touch-description {
        max-width: 100% !important;
        margin: 0 auto 40px !important;
        font-size: 1rem !important;
    }

    .contact-page .contact-methods {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        margin-bottom: 40px !important;
    }

    .contact-page .contact-method {
        padding: 30px 20px !important;
        border-radius: 8px !important;
    }

    .contact-page .method-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 15px !important;
    }

    .contact-page .method-icon i {
        font-size: 1.3rem !important;
    }

    .contact-page .contact-method h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .contact-page .contact-method p {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }

    .contact-page .contact-form-section,
    .contact-page .contact-form-section-full {
        max-width: 100% !important;
    }

    .contact-page .contact-form {
        padding: 30px 20px !important;
        border-radius: 12px !important;
    }

    .contact-page .form-row {
        margin-bottom: 20px !important;
    }

    .contact-page .form-group input,
    .contact-page .form-group textarea {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
    }

    .contact-page .form-group label {
        font-size: 0.8rem !important;
        top: -8px !important;
        left: 12px !important;
        padding: 0 8px !important;
    }

    .contact-page .send-btn {
        padding: 12px !important;
        font-size: 1rem !important;
        border-radius: 25px !important;
    }
}

@media screen and (max-width: 480px) {
    .contact-page .about-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        letter-spacing: 1px !important;
    }

    .contact-page .about-tagline {
        font-size: 0.9rem !important;
    }

    .contact-page .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 25px !important;
    }

    .contact-page .protection-content p,
    .contact-page .mission-text {
        font-size: 0.9rem !important;
    }

    .contact-page .value-item h3 {
        font-size: 1.1rem !important;
    }

    .contact-page .value-item p {
        font-size: 0.85rem !important;
    }

    .contact-page .contact-form {
        padding: 25px 15px !important;
    }

    .contact-page .form-group input,
    .contact-page .form-group textarea {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }

    .contact-page .send-btn {
        font-size: 0.9rem !important;
    }
} 