/* --- GLOBAL RESET & BASE --- */
:root {
    --primary: #2d6a4f; /* Natural Green */
    --primary-dark: #1b4332; /* Dark Green */
    --accent: #d4a373; /* Earthy Gold */
    --accent-light: #e9edc9; /* Soft Leafy Green */
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER APP DESIGN --- */
.top-info-bar {
    background: #e9edc9;
    padding: 4px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(212, 163, 115, 0.4);
}
.top-social-links a { color: var(--primary-dark); text-decoration: none; margin-right: 10px; font-size: 12px; }
.top-phone-link { color: var(--primary-dark); font-weight: 700; text-decoration: none; }

.premium-header {
    background: radial-gradient(circle at center top, #40916c, #2d6a4f);
    padding: 10px 4% 15px 4%;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 2px;
}
.header-action-btn i { font-size: 20px; }
.header-action-btn span { font-size: 10px; font-weight: 600; color: var(--accent-light); }

/* ✨ Logo and Name Side-by-Side */
.center-logo-box { 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    text-decoration: none; 
}
.header-main-logo { height: 42px; width: 42px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; background: #fff; }
.brand-text-block { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}
.center-brand-name { color: var(--accent); font-size: 16px; font-weight: 800; margin-top: 0; line-height: 1.1; }
.center-brand-sub { color: #e9edc9; font-size: 10px; font-weight: 600; }

.header-right-actions { display: flex; align-items: center; gap: 15px; }
.glow-cart-btn { background: transparent; border: none; color: #fff; position: relative; cursor: pointer; font-size: 20px; }
.cart-glow-badge { position: absolute; top: -6px; right: -8px; background: var(--accent); color: var(--primary-dark); font-size: 10px; font-weight: 800; padding: 2px 5px; border-radius: 50%; }

/* --- FULL WIDTH SEARCH --- */
.header-search-box-full { width: 100%; margin-top: 12px; }
.mobile-search-inner { width: 100%; background: rgba(255,255,255,0.9); border-radius: 30px; display: flex; align-items: center; position: relative; padding: 2px; }
.mobile-search-inner input { width: 100%; background: transparent; border: none; padding: 8px 35px 8px 15px; color: var(--primary-dark); font-size: 14px; outline: none; }
.search-icon-badge { position: absolute; right: 12px; color: var(--primary); font-size: 16px; }

/* --- SHOPS SIDEBAR (Right) --- */
.shops-sidebar {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
    background: #f8fafc; box-shadow: -5px 0 25px rgba(0,0,0,0.2); z-index: 2500;
    transition: 0.3s ease; padding: 20px; display: flex; flex-direction: column;
}
.shops-sidebar.open { right: 0; }
.shops-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--accent); padding-bottom: 12px; margin-bottom: 20px; }
.shops-header h3 { color: var(--primary-dark); font-size: 16px; margin: 0; }
.shops-header button { background: none; border: none; font-size: 28px; color: #ef4444; cursor: pointer; }

.shop-item { display: flex; align-items: center; gap: 15px; padding: 12px; border-radius: 12px; background: #fff; margin-bottom: 12px; text-decoration: none; color: var(--text-dark); border: 1px solid #e2e8f0; }
.shop-item img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.shop-item span { font-weight: 700; font-size: 14px; }
.shop-item:hover, .shop-item.active { border-color: var(--primary); background: rgba(45, 106, 79, 0.05); }

.shops-social { margin-top: auto; display: flex; justify-content: center; gap: 15px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.shops-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; }

/* --- BOTTOM CATEGORY BAR --- */
.bottom-category-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1); z-index: 1000; padding: 6px 0;
    border-top: 2px solid var(--accent); display: flex; justify-content: center;
}
.icon-category-swipe-wrapper { width: 100%; max-width: 900px; overflow-x: auto; white-space: nowrap; display: flex; align-items: center; gap: 5px; padding: 0 10px; scrollbar-width: none; }
.icon-category-swipe-wrapper::-webkit-scrollbar { display: none; }
.cat-icon-item { display: inline-flex; flex-direction: column; align-items: center; color: var(--text-muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; gap: 4px; min-width: 60px; text-decoration: none; }
.cat-icon-item i { font-size: 18px; }
.cat-icon-item span { font-size: 11px; font-weight: 700; }
.cat-icon-item.active { color: var(--primary); background: rgba(45, 106, 79, 0.1); }

/* --- PRODUCT GRID --- */
.category-section { margin: 15px auto; padding: 0 8px; max-width: 1200px; }
.category-header { display: flex; justify-content: space-between; align-items: center; margin: 10px 8px; }
.category-title { font-size: 16px; font-weight: 700; color: var(--primary-dark); border-left: 4px solid var(--accent); padding-left: 8px; }
.see-more-link { font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(212, 163, 115, 0.12); padding: 5px 12px; border-radius: 20px; cursor: pointer; }

.products-grid { display: flex; gap: 12px; overflow-x: auto; padding: 10px 10px 20px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product-card { flex: 0 0 150px; scroll-snap-align: start; background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-badges-top { position: absolute; top: 8px; left: 8px; z-index: 5; }
.badge-discount { background: #ef4444; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 10px; }
.image-wrapper { height: 150px; background: #f8fafc; display: flex; justify-content: center; align-items: center; padding: 8px; }
.image-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.info-wrapper { padding: 10px; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 12px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-box { display: flex; align-items: baseline; gap: 4px; }
.price { font-size: 15px; color: #059669; font-weight: 800; }
.old-price { font-size: 10px; color: #94a3b8; text-decoration: line-through; }

.products-grid.full-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; scroll-snap-type: none; }
.products-grid.full-view .product-card { flex: unset; max-width: none; }

#load-more-btn-wrap { text-align: center; margin: 20px 0 30px 0; }
.neumorphic-load-btn { background: #eef2f7; color: var(--primary); border: 1px solid #fff; padding: 12px 30px; border-radius: 50px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 4px 4px 10px #cad3df, -4px -4px 10px #ffffff; }

.floating-whatsapp { position: fixed; bottom: 80px; right: 15px; width: 50px; height: 50px; background: #25d366; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 26px; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); z-index: 1500; text-decoration: none; }