/* style.css - ENILK Premium Marketplace (Non-perishable focus) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a2a2f;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

:root {
    --primary: #008081;
    --primary-dark: #006466;
    --primary-light: #e6f4f4;
    --gray-light: #f8f9fc;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.03), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 28px rgba(0,0,0,0.08);
    --radius: 20px;
}

/* HEADER */
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 2px 12px rgba(0,0,0,0.03);
    padding: 14px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo area: clean container, no text, only PNG support */
.logo-area {
    display: flex;
    align-items: center;
    min-width: 140px;
}
.logo-container {
    width: auto;
    height: 52px;
    display: flex;
    align-items: center;
}
.logo-container img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}
/* no text fallback - completely empty until PNG uploaded */
.logo-container:empty {
    background: transparent;
}

.search-bar {
    flex: 1;
    max-width: 480px;
    background: var(--gray-light);
    border-radius: 48px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eef2f2;
    transition: all 0.2s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,128,129,0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1f2f34;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.icon-btn:hover { color: var(--primary); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 30px;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-search-wrapper {
    display: none;
    padding: 12px 24px;
    background: white;
    border-top: 1px solid #edf2f2;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 12px;
}

.mobile-nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e2a2e;
}

/* HERO */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.slider-bg {
    position: absolute;
    top:0;left:0;width:100%;height:100%;
    background-size: cover;
    background-position: center 30%;
    filter: brightness(0.68);
    z-index: 0;
    transition: transform 0.3s;
}

.hero-overlay {
    position: absolute;
    background: linear-gradient(0deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    width:100%;height:100%;
    z-index:1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 38px;
    border-radius: 48px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 24px;
    transition: all 0.25s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* sections */
.section {
    padding: 70px 0 40px;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.product-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img {
    transform: scale(1.03);
}
.product-info {
    padding: 16px;
}
.product-title {
    font-weight: 600;
    font-size: 1.1rem;
}
.product-price {
    color: var(--primary);
    font-weight: 700;
    margin: 8px 0;
}
.add-to-cart {
    background: var(--primary-light);
    border: none;
    padding: 8px 16px;
    border-radius: 60px;
    font-weight: 500;
    color: var(--primary);
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}
.add-to-cart:hover {
    background: var(--primary);
    color: white;
}

.categories-grid, .farmers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}
.category-card, .farmer-card {
    background: var(--gray-light);
    text-align: center;
    padding: 24px 12px;
    border-radius: 28px;
    transition: 0.2s;
}
.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.feature-card {
    text-align: center;
    flex: 1;
    min-width: 180px;
    background: #fff;
    border-radius: 32px;
    padding: 28px 12px;
    box-shadow: var(--shadow-sm);
}
.newsletter {
    background: var(--primary-light);
    border-radius: 48px;
    margin: 40px auto;
    padding: 48px 24px;
    text-align: center;
}
.newsletter-card form {
    display: flex;
    max-width: 460px;
    margin: 24px auto 0;
    gap: 12px;
}
.newsletter-card input {
    flex:1;
    padding: 14px 20px;
    border-radius: 60px;
    border:1px solid #ddd;
}
.insta-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 16px;
}
.insta-gallery div {
    background: #f3f6f4;
    border-radius: 24px;
    aspect-ratio:1/1;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}
footer {
    background: #0a1f1f;
    color: #cfdfdd;
    padding: 48px 0 24px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 40px;
}
.copyright {
    text-align: center;
    padding-top: 32px;
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    font-weight: 400;
    color: #b0c4c2;
}
.cart-sidebar {
    position: fixed;
    right: -420px;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1100;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.cart-sidebar.open { right: 0; }
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1f2f34;
    color: white;
    padding: 12px 28px;
    border-radius: 60px;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
    z-index: 1200;
}
@media (max-width: 768px) {
    .desktop-search { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-search-wrapper.active { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .cart-sidebar { width: 100%; right: -100%; }
    .logo-container { height: 44px; }
}