/* Mobile Styles - App-like Interface */
@media screen and (max-width: 767px) {
    /* Hide desktop header on mobile */
    .desktop-header {
        display: none !important;
    }

    /* Mobile App Bar */
    .mobile-app-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle,
    .mobile-cart-btn {
        background: transparent;
        border: none;
        color: white;
        font-size: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s;
        position: relative;
    }

    .mobile-menu-toggle:active,
    .mobile-search-toggle:active,
    .mobile-cart-btn:active {
        background: rgba(255,255,255,0.2);
    }

    .mobile-app-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
        font-size: 18px;
        font-weight: 600;
        flex: 1;
        margin: 0 10px;
    }

    .mobile-app-logo i {
        font-size: 24px;
    }

    .mobile-cart-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        background: #d63031;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: 600;
        min-width: 16px;
        text-align: center;
    }

    /* Mobile Search Bar */
    .mobile-search-bar {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 12px 16px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-search-bar.active {
        transform: translateY(0);
    }

    .mobile-search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background: #f8f9fa;
        border-radius: 25px;
        padding: 0 15px;
    }

    .mobile-search-input-wrapper i {
        color: #999;
        margin-right: 10px;
    }

    .mobile-search-input-wrapper input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 12px 0;
        font-size: 15px;
        outline: none;
    }

    .mobile-search-clear {
        background: transparent;
        border: none;
        color: #999;
        font-size: 18px;
        cursor: pointer;
        padding: 0;
        margin-left: 10px;
    }

    /* Side Navigation Overlay */
    .side-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1100;
    }

    .side-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Side Navigation Drawer */
    .side-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1200;
        display: flex;
        flex-direction: column;
    }

    .side-nav.active {
        left: 0;
    }

    .side-nav-header {
        background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
        padding: 20px;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .side-nav-profile {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .side-nav-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    .side-nav-user-info h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .side-nav-user-info p {
        margin: 4px 0 0 0;
        font-size: 12px;
        opacity: 0.9;
    }

    .side-nav-close {
        background: transparent;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
    }

    .side-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        flex: 1;
        overflow-y: auto;
    }

    .side-nav-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        color: #333;
        cursor: pointer;
        transition: background 0.2s;
        border-left: 3px solid transparent;
    }

    .side-nav-item:hover {
        background: #f5f5f5;
    }

    .side-nav-item.active {
        background: #fff5f5;
        color: #ff6b6b;
        border-left-color: #ff6b6b;
    }

    .side-nav-item i {
        font-size: 20px;
        width: 24px;
    }

    .side-nav-item span {
        font-size: 15px;
        font-weight: 500;
    }

    .side-nav-footer {
        padding: 20px;
        border-top: 1px solid #e0e0e0;
        background: #f9f9f9;
    }

    .side-nav-contact p {
        margin: 8px 0;
        font-size: 13px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .side-nav-contact i {
        color: #ff6b6b;
        width: 16px;
    }

    /* Bottom Navigation */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: transparent;
        border: none;
        color: #999;
        cursor: pointer;
        padding: 8px 4px;
        transition: all 0.2s;
        position: relative;
    }

    .bottom-nav-item i {
        font-size: 20px;
    }

    .bottom-nav-item span {
        font-size: 11px;
        font-weight: 500;
    }

    .bottom-nav-item.active {
        color: #ff6b6b;
    }

    .bottom-nav-item:active {
        transform: scale(0.95);
    }

    .bottom-cart-badge {
        position: absolute;
        top: 5px;
        right: 50%;
        transform: translateX(50%);
        background: #d63031;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: 600;
        min-width: 16px;
        text-align: center;
    }

    /* Adjust main content for app bars */
    body {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .mobile-search-bar.active ~ .hero {
        margin-top: 55px;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 15px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Section Adjustments */
    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 16px;
    }

    /* Categories Mobile */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .category-card h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .category-card p {
        font-size: 12px;
    }

    /* Products Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        font-size: 14px;
    }

    .product-image {
        height: 180px;
        font-size: 60px;
    }

    .product-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-rating {
        margin-bottom: 8px;
    }

    .stars {
        font-size: 12px;
    }

    .rating-count {
        font-size: 11px;
    }

    .product-price {
        margin-bottom: 12px;
    }

    .current-price {
        font-size: 18px;
    }

    .original-price {
        font-size: 14px;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .add-to-cart-btn,
    .wishlist-btn {
        padding: 10px;
        font-size: 13px;
    }

    /* Deals Mobile */
    .deals-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .deals-timer {
        padding: 12px 20px;
        font-size: 14px;
    }

    .timer {
        font-size: 18px;
    }

    .deals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .deal-card {
        padding: 25px;
    }

    .deal-image {
        width: 120px;
        height: 120px;
        background-size: cover;
        background-position: center;
    }

    .deal-card h3 {
        font-size: 20px;
    }

    .deal-price .original-price {
        font-size: 16px;
    }

    .deal-price-value {
        font-size: 28px;
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-item i {
        font-size: 40px;
    }

    .feature-item h3 {
        font-size: 18px;
    }

    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-item i {
        font-size: 28px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Cart Sidebar Mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .cart-header h2 {
        font-size: 20px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-item {
        padding: 12px;
        gap: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        background-size: cover;
        background-position: center;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 16px;
    }

    .cart-item-quantity {
        gap: 8px;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .cart-footer {
        padding: 15px;
    }

    .cart-total {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .checkout-btn {
        padding: 12px;
        font-size: 15px;
    }

    /* Empty Cart */
    .empty-cart {
        padding: 60px 20px;
    }

    .empty-cart i {
        font-size: 48px;
    }

    .empty-cart p {
        font-size: 14px;
    }
}

/* Very small devices (320px and below) */
@media screen and (max-width: 375px) {
    .mobile-app-logo span {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .bottom-nav-item i {
        font-size: 18px;
    }

    .bottom-nav-item span {
        font-size: 10px;
    }
}

