* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #5fa30f;
  --primary-dark: #4a7e0c;
  --primary-light: #c2e0a8;
  --bg-light: #f6fbf1;
  --text-dark: #2b2b2b;
  --text-muted: #6b7280;
  --border: #e2e8e0;
  --white: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text-dark);
}

/* Hero Section - Just for demo */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #fef9e6 0%, var(--bg-light) 100%);
}
.hero h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ========== FOOTER STYLES ========== */
.footer {
  background: var(--bg-light);
  position: relative;
  padding: 60px 24px 50px;
  border-top: 1px solid var(--border);
  overflow-x: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  opacity: 0.8;
  z-index: 2;
}

/* Container */
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ========== NATURAL SKETCH ART ========== */
.sketch-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sketch-element {
  position: absolute;
  pointer-events: none;
}

.sketch-element svg {
  width: 100%;
  height: 100%;
}

.sketch-element svg path,
.sketch-element svg circle,
.sketch-element svg line {
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ========== FOOTER GRID ========== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

/* Brand Column */
.brand-col {
  grid-column: span 1;
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 15px;
  display: inline-block;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.address-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.address-text i {
  color: var(--primary);
  margin-right: 6px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 8px;
}

.phone-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Link Columns */
.link-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  margin: 10px 0;
  display: block;
}

.links-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all 0.2s;
  display: inline-block;
}

.links-list a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Newsletter Column */
.newsletter-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.newsletter-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  background: var(--white);
  outline: none;
  transition: all 0.2s;
}

.newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95, 163, 15, 0.15);
}

.newsletter-btn {
  background: var(--primary);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.newsletter-btn i {
  font-size: 0.8rem;
}

.newsletter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.subscribe-message {
  margin-top: 12px;
  font-size: 0.75rem;
  display: none;
  padding: 6px 12px;
  border-radius: 30px;
  text-align: center;
}

.subscribe-message.success {
  color: var(--primary);
  background: rgba(95, 163, 15, 0.1);
  display: block;
}

.subscribe-message.error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  display: block;
}

/* Social Section */
.social-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.app-download {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-download span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.app-badge {
  height: 44px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.app-badge:hover {
  opacity: 0.85;
}

/* Bottom Bar */
.bottom-bar {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 20px 24px;
  font-size: 0.75rem;
}

.payment-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.payment-method {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.payment-method:hover {
  opacity: 1;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(95, 163, 15, 0.4);
  z-index: 99;
  cursor: pointer;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  padding: 12px 0 18px;
  z-index: 100;
}

.mobile-nav a {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
  position: relative;
}

.mobile-nav a i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.mobile-nav a.active {
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
  .brand-col {
    grid-column: span 2;
    text-align: center;
  }
  .link-col {
    text-align: center;
  }
  .newsletter-col {
    text-align: center;
    grid-column: span 2;
  }
  .newsletter-form {
    justify-content: center;
  }
  .social-section {
    flex-direction: column;
    text-align: center;
  }
  .payment-row {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 45px 16px 35px;
  }
  .mobile-nav {
    display: flex;
  }
  body {
    padding-bottom: 75px;
  }
  .back-to-top {
    bottom: 85px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .payment-method {
    font-size: 0.7rem;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-btn {
    justify-content: center;
  }
  .payment-row {
    gap: 15px;
  }
  .payment-method {
    font-size: 0.65rem;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  z-index: 101;
  white-space: nowrap;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom));
  }
}
