* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefcf5;
    color: #1a2c2e;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #1f5e52, #2d9c7c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a3a32;
}

/* Buttons */
.btn-primary {
    background: #2c7a64;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2c7a64;
    color: #2c7a64;
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
}

/* ========== NAVBAR - FIXED ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,252,240,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2dccf;
    z-index: 1000;
    padding: 0.5rem 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logo-text {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(125deg, #216454, #38a583);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.tagline {
    font-size: 0.45rem;
    color: #8ba39c;
    margin-top: -2px;
    white-space: nowrap;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c4a44;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.85rem;
}

.login-link {
    background: #2c7a64;
    padding: 0.4rem 1rem;
    border-radius: 60px;
    color: white !important;
    cursor: pointer;
}

/* Right Side Icons */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #2c4a44;
    background: none;
    border: none;
    padding: 0;
}

.cart-icon {
    font-size: 1.1rem;
    position: relative;
    text-decoration: none;
    color: #2c4a44;
    flex-shrink: 0;
}

.cart-count-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #2c7a64;
    color: white;
    font-size: 0.55rem;
    font-weight: bold;
    border-radius: 30px;
    padding: 2px 5px;
    min-width: 16px;
    text-align: center;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    background: #fffaf0;
    padding: 1rem;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 999;
    border-bottom: 1px solid #e2d4be;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: #2c4a44;
    text-decoration: none;
    padding: 0.8rem;
    text-align: center;
    font-weight: 500;
    border-radius: 12px;
}

/* Hero Section */
.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.8rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #fefcf5 0%, #f6f3e8 100%);
    border-radius: 0 0 48px 48px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.hero p {
    font-size: 0.85rem;
    color: #5a6e6a;
    max-width: 500px;
}

/* Search Section */
.search-section {
    max-width: 500px;
    margin: -25px auto 30px auto;
    padding: 0 1rem;
}

.search-wrapper {
    display: flex;
    background: white;
    border-radius: 60px;
    border: 2px solid #e2dccf;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.search-icon {
    padding: 10px 0 10px 16px;
    color: #8ba39c;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 8px;
    color: #1a2c2e;
    font-size: 0.9rem;
    outline: none;
}

.clear-search {
    background: transparent;
    border: none;
    color: #8ba39c;
    padding: 0 16px;
    cursor: pointer;
    display: none;
}

.clear-search.visible {
    display: block;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
    padding: 0 0.5rem;
}

.product-card {
    background: white;
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9e2d2;
}

.product-img {
    width: 140px;
    height: 140px;
    margin: 0 auto 0.8rem;
    border-radius: 20px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 0.3rem 0;
    color: #1a3a32;
}

.product-size {
    font-size: 0.75rem;
    color: #8ba39c;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c7a64;
    margin: 0.5rem 0;
}

.button-group {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.buy-btn {
    background: #f0f4f2;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #2c7a64;
    cursor: pointer;
}

.order-now-btn {
    background: #2c7a64;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
}

/* Footer */
footer {
    background: #1e2f2b;
    color: #cfded8;
    padding: 1.5rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c7a64;
    color: white;
    padding: 8px 16px;
    border-radius: 60px;
    font-size: 0.75rem;
    z-index: 9999;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar {
        padding: 0.5rem 0.8rem;
    }
    
    .logo-text {
        font-size: 0.85rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .tagline {
        font-size: 0.4rem;
    }
    
    .hero {
        margin-top: 55px;
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .buy-btn, .order-now-btn {
        width: 100%;
    }
}