/*
Theme Name: UIWorld Store
Theme URI: https://uiworld.store
Author: UIWorld Team
Description: Premium WordPress theme with charity banner and mobile nav
Version: 1.0
Text Domain: uiworld
*/

/* ========== ALL STYLES ========== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Verdana, sans-serif; }
body { background: #f8f9fa; color: #333; padding-bottom: 70px; }

/* Charity Banner */
.charity-banner {
    background: linear-gradient(to right, #2e7d32, #4caf50);
    color: white; text-align: center; padding: 12px 15px;
    font-size: 15px; position: relative; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.charity-banner a { color: #ffeb3b; text-decoration: underline; font-weight: 600; }
.close-banner {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 25px; height: 25px; border-radius: 50%; cursor: pointer;
}

/* Header */
.main-header {
    background: white; padding: 15px 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 999;
}
.header-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 28px; font-weight: 800; color: #2e7d32;
    text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo span { color: #4caf50; }
.logo i { font-size: 24px; }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46,125,50,0.9), rgba(76,175,80,0.9)), 
                url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover; background-position: center;
    color: white; text-align: center; padding: 80px 20px; margin-bottom: 40px;
}
.hero h1 { font-size: 42px; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 18px; margin-bottom: 30px; line-height: 1.6; opacity: 0.9; }
.cta-button {
    display: inline-block; background: white; color: #2e7d32;
    padding: 14px 32px; border-radius: 30px; text-decoration: none;
    font-weight: 700; font-size: 16px; transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

/* Products */
.products-section { max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: #2e7d32; font-size: 32px; margin-bottom: 10px; }
.section-title p { color: #666; font-size: 16px; }
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
.product-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.product-img {
    height: 180px; background: #f1f8e9;
    display: flex; align-items: center; justify-content: center;
    color: #2e7d32; font-size: 60px;
}
.product-info { padding: 20px; }
.product-info h3 { margin-bottom: 8px; color: #333; }
.product-info p { color: #666; font-size: 14px; margin-bottom: 15px; line-height: 1.5; }
.product-price { display: flex; justify-content: space-between; align-items: center; }
.price { color: #2e7d32; font-weight: 700; font-size: 18px; }
.add-to-cart {
    background: #4caf50; color: white; border: none;
    border-radius: 20px; padding: 8px 16px; font-weight: 600;
    cursor: pointer; transition: background 0.3s;
}
.add-to-cart:hover { background: #388e3c; }

/* Mobile Nav */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white; display: flex; justify-content: space-around;
    padding: 12px 0; box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1000; display: none;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #666; font-size: 12px;
    transition: color 0.3s;
}
.nav-item.active, .nav-item:hover { color: #2e7d32; }
.nav-icon { font-size: 20px; margin-bottom: 4px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-nav, .search-box { display: none; }
    .bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 480px) {
    .charity-banner { font-size: 13px; padding: 10px 15px; }
    .hero { padding: 60px 15px; }
    .products-grid { grid-template-columns: 1fr; }
}