/* 
  Theme Colors:
  Primary Green: #7ac142
  Secondary Green: #5ba330
  Orange/Accent: #f39c12
  Background: #f8f9fa
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f8f9fa; color: #333; }
a { text-decoration: none; color: inherit; }

/* Top Header */
.top-bar { background: #5ba330; color: white; padding: 5px 20px; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: white; margin-left: 15px; }

/* Main Header */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100;}
.logo { font-size: 1.8rem; font-weight: bold; color: #7ac142; display: flex; flex-direction: column; }
.logo span { font-size: 0.8rem; color: #7f8c8d; font-weight: normal; }

.search-bar { flex: 1; margin: 0 40px; display: flex; }
.search-bar input { width: 100%; padding: 10px 15px; border: 2px solid #7ac142; border-right: none; border-radius: 4px 0 0 4px; outline: none; }
.search-bar button { padding: 10px 20px; background: #7ac142; color: white; border: 2px solid #7ac142; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: bold;}

.cart-icon { position: relative; font-size: 1.2rem; cursor: pointer; padding: 10px; background: #f4f6f8; border-radius: 50%; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: #f39c12; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; font-weight:bold; }

/* Navigation Categories */
.nav-categories { background: #333; color: white; padding: 0 50px; display: flex; overflow-x: auto; }
.nav-categories a { padding: 12px 20px; color: white; font-weight: 500; transition: background 0.2s; white-space: nowrap; }
.nav-categories a:hover { background: #7ac142; }

/* Container */
.container { padding: 30px 50px; max-width: 1400px; margin: 0 auto; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #7ac142 0%, #5ba330 100%); color: white; padding: 60px 40px; border-radius: 12px; margin-bottom: 40px; display: flex; flex-direction: column; justify-content: center; align-items:flex-start;}
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; max-width: 600px; }
.hero .btn { background: #f39c12; color: white; padding: 12px 30px; font-size: 1.1rem; border-radius: 30px; font-weight: bold; }

/* Section Titles */
.section-title { font-size: 1.5rem; color: #2c3e50; margin-bottom: 20px; border-left: 4px solid #7ac142; padding-left: 10px;}

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: white; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); padding: 15px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; }
.product-card h3 { font-size: 1.1rem; color: #333; margin-bottom: 5px; flex: 1; }
.product-card .price { font-size: 1.2rem; font-weight: bold; color: #7ac142; margin-bottom: 15px; }
.product-card .btn { background: #7ac142; color: white; padding: 10px; border-radius: 4px; display: block; border: none; cursor: pointer; width: 100%; transition: background 0.3s; font-weight:bold;}
.product-card .btn:hover { background: #5ba330; }

/* Buttons Forms Generic */
.btn { display: inline-block; padding: 10px 20px; border-radius: 4px; cursor: pointer; border: none; }
.btn-primary { background: #7ac142; color: white; }
.form-control { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.alert-success { background: #d4edda; color: #155724; padding: 15px; border-radius: 4px; margin-bottom: 20px; }

/* Footer */
footer { background: #2c3e50; color: #ecf0f1; padding: 40px 50px; margin-top: 50px; display: flex; flex-wrap: wrap; justify-content: space-between; }
footer div { flex: 1; min-width: 200px; margin: 10px; }
footer h4 { color: #f39c12; margin-bottom: 15px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { transition: color 0.2s; }
footer ul a:hover { color: #7ac142; }
