/* Additional styles for new AgroShield-inspired design */

/* Header Updates */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-container .logo {
    height: 40px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-button {
    position: relative;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: var(--bg-light);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge.hidden {
    display: none;
}

.download-button-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-green);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.download-button-header:hover {
    background-color: var(--primary-green-dark);
}

.main-nav {
    border-top: 1px solid var(--border-light);
    padding: 0.5rem 0;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.nav-item {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--primary-green);
}

.nav-item.active {
    color: var(--primary-green);
    font-weight: 600;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(to bottom, #f0fdf4, white);
    padding: 2rem 0;
}

.hero-content {
    position: relative;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 1.5rem;
    height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    margin-bottom: 0.5rem;
    z-index: 1;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-gray);
    z-index: 1;
}

.hero-image {
    position: absolute;
    right: 2rem;
    bottom: 0;
    font-size: 8rem;
    opacity: 0.5;
}

/* Offers Section */
.offers-section {
    padding: 2rem 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.offer-card {
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offer-orange {
    background-color: #fed7aa;
}

.offer-yellow {
    background-color: #fef3c7;
}

.offer-blue {
    background-color: #dbeafe;
}

.offer-title {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.offer-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.offer-badge {
    display: inline-block;
    background: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green-dark);
}

.offer-emoji {
    font-size: 4rem;
}

/* Categories Section */
.categories-section {
    background: white;
    padding: 2rem 0;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title-bar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s;
}

.view-all-link:hover {
    gap: 0.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.category-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.category-card:hover {
    background: #f0fdf4;
    border-color: var(--primary-green-light);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Featured Banners */
.featured-banners {
    padding: 2rem 0;
}

.banners-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.banners-row:last-child {
    margin-bottom: 0;
}

.featured-banner {
    position: relative;
    border-radius: 1.5rem;
    height: 12rem;
    overflow: hidden;
    color: white;
}

.banner-green {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.banner-amber {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.banner-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.banner-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.banner-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.banner-button {
    background: white;
    color: var(--text-dark);
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.2s;
}

.banner-button:hover {
    background-color: var(--bg-light);
}

.banner-emoji {
    position: absolute;
    right: 1rem;
    bottom: 0;
    font-size: 8rem;
    opacity: 0.2;
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    
    .search-input {
        width: 100%;
        font-size: 0.95rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .banners-row {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.875rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Mobile-specific enhancements */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .banner-card h3 {
        font-size: 1.1rem;
    }
    
    .banner-card p {
        font-size: 0.85rem;
    }
    
    /* Touch-friendly buttons */
    button, .btn, a.button {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .offers-grid {
        gap: 12px;
    }
    
    .offer-card {
        padding: 15px;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
