/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    padding: 15px 0;
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 101;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sign-in-btn {
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.sign-in-btn:hover {
    color: #ff6b35;
}

.header-icons {
    display: flex;
    gap: 15px;
}

/* Logo */
.logo h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.logo .mozii {
    color: #ff6b35;
}

.logo .express {
    color: #4a90e2;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 600px;
}

.search-bar {
    display: flex;
    border: 2px solid #ff6b35;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #ff6b35;
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e55a2b;
}

.search-suggestions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: background 0.3s;
}

.suggestion-tag:hover {
    background: #4a90e2;
    color: white;
}

.wishlist, .cart {
    position: relative;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.3s;
}

.wishlist:hover, .cart:hover {
    background: rgba(255, 107, 53, 0.1);
}

.wishlist i, .cart i {
    font-size: 14px;
    color: #666;
}

.wishlist span, .cart span {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ff6b35;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 14px;
    text-align: center;
    line-height: 1.2;
}

/* Navigation */
.nav {
    background: #4a90e2;
    padding: 0;
}

.nav .container {
    display: flex;
    align-items: center;
}

.categories-btn {
    background: #ff6b35;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.categories-btn:hover {
    background: #e55a2b;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* Hero Banner */
.hero-banner {
    background: #fff;
    padding: 20px 0;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
}

.main-banner {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.discount-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background: #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.shop-now-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.shop-now-btn:hover {
    background: #357abd;
}

.banner-image img {
    max-width: 300px;
    height: auto;
}

.side-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.sale-tag {
    background: #ff6b35;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* Today's Deals */
.todays-deals {
    padding: 40px 0;
    background: #fff;
    margin-top: 20px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.deal-category {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
}

.deal-category h3 {
    color: #4a90e2;
    margin-bottom: 5px;
    font-size: 18px;
}

.deal-category p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.deal-items {
    display: flex;
    gap: 15px;
}

.deal-item {
    flex: 1;
    text-align: center;
}

.deal-item img {
    width: 100%;
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.deal-item .price {
    display: block;
    font-weight: bold;
    color: #ff6b35;
    font-size: 16px;
}

.deal-item .discount {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

/* Business Solutions */
.business-solutions {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    margin-top: 20px;
}

.business-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.business-text h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.business-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.stat-label {
    font-size: 14px;
    color: #bdc3c7;
}

.business-features {
    display: flex;
    gap: 20px;
}

.feature {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
}

.feature h4 {
    margin-bottom: 10px;
    color: #ecf0f1;
}

.feature-prices {
    display: flex;
    justify-content: space-between;
}

.feature-prices span {
    color: #ff6b35;
    font-weight: bold;
}

/* Local Shipping */
.local-shipping {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px 0;
    margin-top: 20px;
}

.shipping-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.shipping-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.shipping-text p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.shipping-products {
    display: flex;
    gap: 20px;
}

.shipping-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
}

.shipping-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.shipping-item .price {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.shipping-item .shipping-info {
    font-size: 12px;
    opacity: 0.8;
}

/* Shop Categories */
.shop-categories {
    background: #fff;
    padding: 40px 0;
    margin-top: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-section {
    text-align: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-section h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 16px;
}

.category-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

/* More to Love */
.more-to-love {
    background: #fff;
    padding: 40px 0;
    margin-top: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Hide mobile filter bar on desktop */
.mobile-filter-bar {
    display: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.payment-methods i {
    color: #bdc3c7;
    transition: color 0.3s;
}

.payment-methods i:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff6b35;
}

.footer-apps {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-apps span {
    font-size: 12px;
    color: #bdc3c7;
}

.app-links {
    display: flex;
    gap: 10px;
}

.app-links a {
    color: #bdc3c7;
    font-size: 20px;
    transition: color 0.3s;
}

.app-links a:hover {
    color: #ff6b35;
}

/* Header Hidden State */
.header-main.hidden {
    transform: translateY(-100%);
}

.nav.sticky-top {
    top: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 90px; /* Much more compact mobile header */
    }
    
    /* Mobile scroll behavior styles */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        transition: transform 0.3s ease-in-out;
    }
    
    .nav {
        position: fixed;
        left: 0;
        right: 0;
        transition: top 0.3s ease-in-out;
        z-index: 103;
    }
    
    .header-main {
        padding: 5px 0; /* Much tighter padding */
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 8px; /* Reduced gap */
    }
    
    /* Compact mobile logo */
    .logo h1 {
        font-size: 18px; /* Much smaller logo */
        margin: 0;
    }
    
    .header-actions {
        order: -1;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }
    
    .sign-in-btn {
        font-size: 12px; /* Smaller sign-in text */
    }
    
    .header-icons {
        gap: 8px; /* Tighter spacing */
    }
    
    .header-icons i {
        font-size: 16px; /* Better sized icons for touch */
    }
    
    .header-icons span {
        font-size: 9px; /* Slightly bigger badge numbers */
        min-width: 14px;
        padding: 1px 4px;
    }
    
    .search-section {
        width: 100%;
        max-width: 100%; /* Full width on mobile */
    }
    
    .search-bar {
        border-radius: 15px; /* Smaller border radius */
        border-width: 1px; /* Thinner border */
    }
    
    .search-input {
        padding: 6px 12px; /* Much more compact padding */
        font-size: 12px; /* Smaller text */
    }
    
    .search-btn {
        padding: 6px 12px; /* More compact button */
    }
    
    .search-btn i {
        font-size: 14px; /* Better sized search icon */
    }
    
    /* Mobile Product-Centric Layout Changes */
    
    /* Hide hero banner on mobile to focus on products */
    .hero-banner {
        display: none;
    }
    
    /* Minimize business solutions section */
    .business-solutions {
        padding: 20px 0;
        margin-top: 10px;
    }
    
    .business-solutions .section-title,
    .business-solutions .business-stats {
        display: none;
    }
    
    .business-content {
        text-align: center;
    }
    
    .business-text h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* Minimize local shipping section */
    .local-shipping {
        padding: 20px 0;
        margin-top: 10px;
    }
    
    .shipping-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .shipping-text {
        order: 2;
    }
    
    .shipping-products {
        order: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .shipping-item {
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        text-align: center;
    }
    
    .shipping-item img {
        width: 80px;
        height: 80px;
        margin: 0 auto 8px;
    }
    
    .shipping-text h2 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .shipping-text p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    /* Make deals grid more compact */
    .todays-deals {
        padding: 20px 0;
        margin-top: 10px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .deal-category {
        padding: 15px;
    }
    
    .deal-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Mobile Products Grid - Side by Side Layout */
    .more-to-love {
        padding: 20px 0;
        margin-top: 10px;
        order: -1; /* Move products section to top on mobile */
    }
    
    /* Mobile Filter Bar */
    .mobile-filter-bar {
        display: flex !important;
        justify-content: space-between;
        margin-bottom: 15px;
        padding: 0 5px;
        gap: 10px;
    }
    
    .mobile-filter-bar button {
        flex: 1;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        color: #666;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    
    .mobile-filter-bar button:hover,
    .mobile-filter-bar button:active {
        background: #4a90e2;
        color: white;
        border-color: #4a90e2;
    }
    
    .mobile-filter-bar i {
        font-size: 10px;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    
    /* Enhanced mobile product cards */
    .product-card {
        background: white !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        padding: 8px !important;
        transition: transform 0.3s !important;
        cursor: pointer !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    .product-card img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        margin-bottom: 6px !important;
    }
    
    .product-card h4 {
        font-size: 12px !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
        height: 28px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .product-card div:first-of-type {
        margin-bottom: 4px !important;
        font-size: 10px !important;
    }
    
    .product-card div:last-child span:first-child {
        font-size: 14px !important;
        font-weight: bold !important;
        color: #ff6b35 !important;
        display: block !important;
    }
    
    .product-card div:last-child span:last-child {
        font-size: 10px !important;
        color: #999 !important;
        text-decoration: line-through !important;
        margin-left: 0 !important;
        display: block !important;
    }
    
    /* Hide categories section on mobile or make it minimal */
    .shop-categories {
        padding: 15px 0;
        margin-top: 10px;
    }
    
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .category-section {
        padding: 10px;
        text-align: center;
    }
    
    .category-section h3 {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .category-item img {
        width: 60px;
        height: 60px;
    }
    
    .business-content,
    .shipping-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .business-stats,
    .business-features,
    .shipping-products {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .categories-btn {
        width: 100%;
    }
    
    /* Reorder sections for mobile - products first */
    .main-content {
        display: flex;
        flex-direction: column;
    }
    
    .more-to-love {
        order: 1;
    }
    
    .todays-deals {
        order: 2;
    }
    
    .business-solutions {
        order: 3;
    }
    
    .local-shipping {
        order: 4;
    }
    
    .shop-categories {
        order: 5;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px; /* Ultra compact for smallest screens */
    }
    
    .header-main {
        padding: 3px 0; /* Minimal padding */
    }
    
    .header-main .container {
        gap: 5px; /* Minimal gap */
    }
    
    /* Ultra compact logo for small screens */
    .logo h1 {
        font-size: 16px; /* Even smaller logo */
    }
    
    .header-actions {
        gap: 10px; /* Tighter spacing */
    }
    
    .header-icons {
        gap: 8px; /* Slightly more spacing for bigger icons */
    }
    
    .header-icons i {
        font-size: 15px; /* Good size for small screens */
    }
    
    .header-icons span {
        font-size: 8px; /* Compact but readable badge numbers */
        min-width: 13px;
        padding: 1px 3px;
    }
    
    .sign-in-btn {
        font-size: 11px; /* Even smaller text */
    }
    
    .search-section {
        max-width: 100%; /* Full width */
    }
    
    .search-bar {
        border-radius: 12px; /* Smaller radius */
    }
    
    .search-input {
        padding: 4px 10px; /* Ultra compact padding */
        font-size: 11px; /* Smaller text */
    }
    
    .search-btn {
        padding: 4px 10px; /* Ultra compact button */
    }
    
    .search-btn i {
        font-size: 13px; /* Better sized search icon */
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
} 