* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* ===== HEADER ===== */
.mobile-header {
    background: transparent;
    color: white;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Remove any background - it will show the banner behind */
}

/* Header First Row */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

.header-icon {
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

@media (max-width: 375px) {
    .header-icon {
        padding: 4px;
        min-width: 30px;
        min-height: 30px;
    }
}

.header-icon:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-icon:active {
    transform: translateY(0);
}

/* Special styling for menu and message icons */
.header-left .header-icon {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

.header-action .header-icon {
    color: #000;
}

.header-left .header-icon:hover {
    background: rgba(0,0,0,0.3);
}

/* Badge for cart/wishlist */
.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    flex: 0 1 auto;
    text-align: center;
    margin: 0 12px;
    white-space: nowrap;
}

/* Header Second Row - Categories */
.categories-scroll {
    padding: 4px 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.categories-section .categories-scroll {
    padding: 4px 0px;
}

.categories-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.categories-list {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}

.category-item {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: fit-content;
}

.category-item.active {
    background: rgba(255,255,255,0.2);
}

.category-item:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.open {
    left: 0;
}

.menu-header {
    background: linear-gradient(135deg, #007c85, #ff9933);
    color: white;
    padding: 20px;
    text-align: center;
}

.menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.menu-items {
    padding: 20px 0;
}

.menu-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #007c85;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== BANNER SLIDER ===== */
.banner-section {
    margin-top: 0;
    position: relative;
}

.banner-slider {
    height: 300px;
    position: relative;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
    height: 100%;
    padding-top: 120px; /* Space for header */
}

/* Banner overlay for better text readability */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 60%;
}

.slide-badge {
    background: #007c85;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

.slide-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
}

.slide-button {
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.slide-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Swiper pagination */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #007c85;
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 375px) {
    .header-top {
        padding: 4px 12px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .slide-title {
        font-size: 20px;
    }
    
    .mobile-menu {
        width: 280px;
    }
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.menu-item-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.menu-header {
    /*background: linear-gradient(135deg, #007c85, #26c6d1);*/
    background: #007c85;
    color: white;
    padding: 20px;
    text-align: center;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.menu-items {
    padding: 0;
    overflow-y: auto; /* Enable vertical scrolling */
    flex: 1; /* Take remaining space */
    max-height: calc(100vh - 80px); /* Account for header height */
}

/* Custom scrollbar for menu */
.menu-items::-webkit-scrollbar {
    width: 4px;
}

.menu-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.menu-items::-webkit-scrollbar-thumb {
    background: #007c85;
    border-radius: 2px;
}

.menu-items::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

.category-item {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: fit-content;
    text-decoration: none; /* For links */
    color: inherit; /* For links */
    display: inline-block; /* For proper spacing */
}

/* ===== BANNER SLIDER ===== */
.banner-section {
    margin-top: 0;
    position: relative;
}

.banner-slider {
    height: 200px;
    position: relative;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Remove overlay - show pure image */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 30%);
    z-index: 1;
}

/* ===== BANNER SLIDER ===== */
.banner-slider {
    height: 250px;
    position: relative;
}

/* Responsive banner heights */
@media (max-width: 375px) {
    .banner-slider {
        height: 220px;
    }
}

@media (max-width: 320px) {
    .banner-slider {
        height: 200px;
    }
}

@media (min-width: 768px) {
    .banner-slider {
        height: 280px;
    }
}

.swiper {
    height: 100%;
}

/* ===== SERVICES/OFFERS SECTION ===== */
.services-section {
    padding: 10px 0;
    background: #f8f9fa;
}

.services-container {
    background: white;
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.service-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fef6e6;
    justify-content: center;
}

.service-icon {
    width: 32px;
    height: 32px;
    /*border-radius: 50%;
    background: linear-gradient(145deg, #007c85, #ff8533);*/
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 14px;
    /*color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);*/
}

.service-text {
    font-size: 9px;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .services-container {
        padding: 8px 10px;
    }
    
    .service-item {
        padding: 0px 3px;
    }
    
    .service-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .service-text {
        font-size: 8px;
    }
}

@media (max-width: 375px) {
    .services-section {
        padding: 8px 0;
    }
    
    .services-container {
        padding: 12px 8px;
    }
    
    .service-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .service-text {
        font-size: 7px;
    }
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 5px 0;
    background: #f8f9fa;
}

.categories-container {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.categories-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    padding-bottom: 5px;
}

.categories-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.categories-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 70px;
    gap: 16px 12px;
    min-width: fit-content;
    padding: 2px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 8px;
}

.category-item:hover {
    transform: translateY(-2px);
    background: #f8f9fa;
}

.category-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.category-item:hover .category-image {
    border-color: #007c85;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .categories-container {
        padding: 18px 14px;
    }
    
    .categories-grid {
        grid-auto-columns: 65px;
        gap: 14px 10px;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
        margin-bottom: 6px;
    }
    
    .category-name {
        font-size: 11px;
        max-width: 60px;
    }
}

@media (max-width: 375px) {
    .categories-section {
        padding: 12px 0;
    }
    
    .categories-container {
        padding: 16px 12px;
    }
    
    .categories-grid {
        grid-auto-columns: 60px;
        gap: 12px 8px;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
        margin-bottom: 5px;
    }
    
    .category-name {
        font-size: 11px;
        max-width: 56px;
    }
}

@media (max-width: 320px) {
    .categories-grid {
        grid-auto-columns: 55px;
        gap: 10px 6px;
    }
    
    .category-image {
        width: 50px;
        height: 50px;
    }
    
    .category-name {
        font-size: 9px;
        max-width: 52px;
    }
}

@media (min-width: 768px) {
    .categories-container {
        padding: 24px 20px;
    }
    
    .categories-grid {
        grid-auto-columns: 80px;
        gap: 18px 14px;
    }
    
    .category-image {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
    }
    
    .category-name {
        font-size: 11px;
        max-width: 72px;
    }
}

/* Add scroll indicator */
.categories-scroll::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #007c85, transparent);
    border-radius: 3px;
    opacity: 0.5;
    animation: scrollHint 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scrollHint {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Hide scroll hint after first interaction */
.categories-scroll.scrolled::after {
    display: none;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 20px 0 30px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Badges */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff3333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.special-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.special-badge.trending {
    background: #9C27B0;
}

.special-badge.back-to-school {
    background: #2196F3;
}

/* Product Info */
.product-info {
    padding: 12px;
}

.product-stats {
    margin-bottom: 6px;
}

.users-purchased {
    font-size: 9px;
    color: #007c85;
    font-weight: 500;
}

.product-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.original-price {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.product-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #666;
    font-weight: 500;
}

.product-badge i {
    color: #FFD700;
    font-size: 8px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: white;
    border: 2px solid #007c85;
    color: #007c85;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #007c85;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.load-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: rotate(90deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .products-section {
        padding: 18px 0 25px 0;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .products-grid {
        gap: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .section-title {
        font-size: 18px;
    }
    
    .products-grid {
        gap: 8px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .discount-badge,
    .special-badge {
        top: 6px;
        left: 6px;
        bottom: 6px;
        padding: 3px 6px;
        font-size: 8px;
    }
    
    .users-purchased {
        font-size: 8px;
    }
    
    .product-title {
        font-size: 10px;
    }
    
    .current-price {
        font-size: 12px;
    }
    
    .original-price {
        font-size: 9px;
    }
    
    .product-badge {
        font-size: 8px;
    }
}

@media (max-width: 320px) {
    .products-section {
        padding: 15px 0 20px 0;
    }
    
    .section-header {
        margin-bottom: 15px;
    }
    
    .products-grid {
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 15px;
    }
}

/* Loading animation for new products */
.product-card.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for grid */
.product-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px 0;
    max-width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    padding: 4px 8px;
    border-radius: 8px;
    position: relative;
}

.nav-item:hover {
    color: #007c85;
    background: rgba(255, 102, 0, 0.05);
    text-decoration: none;
}

.nav-item.active {
    color: #007c85;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-icon i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon i {
    transform: scale(1.1);
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

.nav-item.active .nav-label {
    font-weight: 600;
}

/* Special Trends styling */
.nav-item.trends {
    background: linear-gradient(145deg, #f8f9ff, #eff1ff);
    border-radius: 12px;
    margin: 0 4px;
}

.nav-item.trends .nav-icon {
    background: linear-gradient(145deg, #6c63ff, #8b7fff);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.nav-item.trends .nav-label {
    color: #6c63ff;
    font-weight: 600;
}

.nav-item.trends:hover {
    background: linear-gradient(145deg, #f0f2ff, #e8ebff);
}

/* Notification dot for trends */
.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    border: 1px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

/* Body spacer to prevent content overlap */
.bottom-nav-spacer {
    height: 70px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 375px) {
    .nav-container {
        padding: 6px 0 10px 0;
    }
    
    .nav-item {
        padding: 2px 4px;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 3px;
    }
    
    .nav-icon i {
        font-size: 16px;
    }
    
    .nav-label {
        font-size: 9px;
    }
    
    .nav-item.trends .nav-icon {
        width: 26px;
        height: 26px;
    }
    
    .bottom-nav-spacer {
        height: 65px;
    }
}

@media (max-width: 320px) {
    .nav-container {
        padding: 5px 0 8px 0;
    }
    
    .nav-item {
        padding: 2px 2px;
    }
    
    .nav-icon i {
        font-size: 15px;
    }
    
    .nav-label {
        font-size: 8px;
    }
    
    .nav-item.trends .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .bottom-nav-spacer {
        height: 60px;
    }
}

@media (min-width: 768px) {
    .nav-container {
        padding: 10px 0 14px 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .nav-icon {
        width: 26px;
        height: 26px;
        margin-bottom: 5px;
    }
    
    .nav-icon i {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 11px;
    }
    
    .nav-item.trends .nav-icon {
        width: 30px;
        height: 30px;
    }
    
    .bottom-nav-spacer {
        height: 75px;
    }
}

/* Active animation */
.nav-item.active {
    animation: navItemActive 0.3s ease-out;
}

@keyframes navItemActive {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Tap animation */
.nav-item:active {
    transform: scale(0.95);
}

/* Hide on scroll (optional) */
.bottom-nav.hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bottom-nav.visible {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Mobile Header Container */
.mobile-header {
    background: transparent;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Default Header Content */
.header-content {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

/* Compact Header (Hidden by default) */
.header-compact {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s ease;
}

/* Scrolled State */
.mobile-header.scrolled .header-content {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    display: none;
}

.mobile-header.scrolled .header-compact {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    flex-direction: column;
}

.mobile-header.scrolled .category-item {
    color: #000000;
}

.header-compact .categories-scroll {
    width: 100%;
}

.mobile-header.scrolled {
    background: transparent;
}

/* Compact Header Elements */
.compact-left,
.compact-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-center {
    flex: 1;
    margin: 0 12px;
}

.search-bar {
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.search-bar i {
    color: #666;
    font-size: 14px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

.logo-compact {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-left: 4px;
}

.header-compact .header-icon {
    color: #333;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 16px;
    padding: 6px;
    min-width: 28px;
    min-height: 28px;
}

.header-compact .header-icon:hover {
    background: rgba(255, 102, 0, 0.1);
    color: #007c85;
}

.header-compact .icon-badge {
    background: #ff3333;
    color: white;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    font-size: 8px;
}

/* Responsive Adjustments */
@media (max-width: 375px) {
    .header-compact {
        padding: 6px 12px;
    }
    
    .compact-center {
        margin: 0 8px;
    }
    
    .search-bar {
        padding: 4px 8px;
    }
    
    .search-bar input {
        font-size: 12px;
    }
    
    .logo-compact {
        font-size: 14px;
    }
}

/* Loading Indicator */
.products-loading {
    text-align: center;
    padding: 30px 20px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007c85;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.products-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-btn {
    background: white;
    border: 2px solid #007c85;
    color: #007c85;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #007c85;
    color: white;
    transform: translateY(-2px);
}

/* Products End */
.products-end {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
}

/* Product Card Animation */
.product-card.new-product {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover,
.product-card:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card:active {
    transform: scale(0.98);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 100px; /* Above bottom navigation */
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button i {
    font-size: 28px;
}

/* Floating animation */
.whatsapp-button {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.whatsapp-button:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 74px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-button i {
        font-size: 26px;
    }
}

@media (max-width: 320px) {
    .whatsapp-button {
        bottom: 85px;
        right: 12px;
        width: 48px;
        height: 48px;
    }
    
    .whatsapp-button i {
        font-size: 24px;
    }
}

.cart-action {
    text-decoration: none;
    color: #fff;
}

.header-action .cart-action {
    color: #000;
}

#pageLoader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#pageLoader.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #14a1c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}