/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
}

/* Top Notification Bar */
.top-bar {
  background-color: #1b5e20;
  color: #e8f5e9;
  font-size: 0.85rem;
  padding: 0.4rem 5%;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar i {
  margin-right: 5px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-bar {
  display: flex;
  width: 40%;
}

.search-bar input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 20px 0 0 20px;
  outline: none;
}

.search-bar button {
  padding: 0.6rem 1.2rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-btn, .cart-btn {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.cart-btn {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.cart-count {
  background-color: #2e7d32;
  color: white;
  padding: 2px 7px;
  border-radius: 50%;
  font-size: 0.8rem;
  margin-left: 4px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&q=80&w=1200') center/cover;
  height: 350px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  color: white;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #1b5e20;
}

/* Categories */
.categories, .products {
  padding: 3rem 5%;
}

.categories h2, .products h2 {
  margin-bottom: 1.5rem;
  color: #1b5e20;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background-color: white;
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card i {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.category-card span {
  display: block;
  font-weight: 600;
}

/* Product Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e65100;
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-tag {
  font-size: 0.8rem;
  color: #777;
  text-transform: uppercase;
}

.product-info h3 {
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.unit {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2e7d32;
}

.add-btn {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.add-btn:hover {
  background-color: #1b5e20;
}

/* Checkout & Payments Section */
.checkout-section {
  padding: 3rem 5%;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.checkout-section h2 {
  color: #1b5e20;
  margin-bottom: 0.3rem;
}

.checkout-sub {
  color: #666;
  margin-bottom: 2rem;
}

.payment-methods-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.payment-card {
  background-color: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s, transform 0.2s;
}

.payment-card:hover {
  transform: translateY(-3px);
}

.border-stripe:hover {
  border-color: #635bfc;
}

.border-square:hover {
  border-color: #006aff;
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.payment-icon {
  font-size: 2rem;
  color: #635bfc;
}

.square-color {
  color: #006aff;
}

.payment-header h3 {
  font-size: 1.1rem;
}

.payment-header p {
  font-size: 0.85rem;
  color: #666;
}

.card-icons {
  display: flex;
  gap: 0.8rem;
  font-size: 1.8rem;
  color: #555;
  margin: 1rem 0;
}

.pay-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: opacity 0.2s;
}

.stripe-btn {
  background-color: #635bfc;
}

.square-btn {
  background-color: #006aff;
}

.pay-btn:hover {
  opacity: 0.9;
}

/* Contact & Store Locations Section */
.contact-section {
  padding: 3rem 5%;
  background-color: #f1f8e9;
}

.contact-section h2 {
  color: #1b5e20;
  margin-bottom: 0.3rem;
}

.contact-sub {
  color: #666;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  background-color: white;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.8rem;
  color: #1b5e20;
}

.contact-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Footer & Payment Icons */
footer {
  background-color: #1b5e20;
  color: white;
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col p {
  color: #c8e6c9;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-col p i {
  margin-right: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #c8e6c9;
  text-decoration: none;
}

.accepted-payments {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #c8e6c9;
}

.footer-card-icons {
  display: flex;
  gap: 0.6rem;
  font-size: 1.4rem;
  margin-top: 0.5rem;
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #c8e6c9;
}
