/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fdf9;
  color: #222;
  line-height: 1.6;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #2e7d32, #43a047);
  color: #fff;
  padding: 0.9rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
}

.logo i {
  color: #c8e6c9;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
  transition: all 0.3s ease;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #a5d6a7;
}

.cart-icon {
  position: relative;
}

.cart-count {
  background: #c8e6c9;
  color: #2e7d32;
  font-size: 0.7rem;
  border-radius: 50%;
  padding: 2px 6px;
  position: absolute;
  top: -5px;
  right: -8px;
  font-weight: 600;
}

/* ==============================
   HAMBURGER → X (GLOBAL)
================================ */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 2000;
  padding: 6px;
}

.menu-toggle i {
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 1;
  display: block;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* X state */
.menu-toggle.active i {
  color: #ffffff; /* white X */
}

.menu-toggle i:hover {
  opacity: 0.85;
}

/* Footer */
.footer {
  background: linear-gradient(90deg, #2e7d32, #388e3c);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 3px solid #a5d6a7;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
}

.footer a {
  color: #c8e6c9;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-top: 0.8rem;
}

.footer-social a {
  color: #c8e6c9;
  margin: 0 0.5rem;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #fff;
}

/* Buttons (Global) */
button,
.btn {
  background: #43a047;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover,
.btn:hover {
  background: #2e7d32;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #2e7d32;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    z-index: 1500;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.category-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* ✅ Popup message styling */
.popup-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #2e7d32;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 9999;
}
.popup-message.show {
  opacity: 1;
  transform: translateY(0);
}
.popup-message.error {
  background: #e53935;
}

/* ================= FOOTER SYSTEM ================= */

.site-footer{
  background: linear-gradient(135deg,#1b5e20,#2e7d32);
  color:#e8f5e9;
  padding:3.5rem 1.5rem 1.5rem;
  margin-top:4rem;
}

.footer-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:2.5rem;
}

.footer-col h4,
.footer-col h3{
  color:#fff;
  margin-bottom:0.8rem;
  font-size:1.05rem;
}

.footer-col p{
  font-size:0.9rem;
  line-height:1.6;
  color:#c8e6c9;
}

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

.footer-col ul li{
  margin:0.5rem 0;
  font-size:0.9rem;
}

.footer-col ul li a{
  color:#e8f5e9;
  text-decoration:none;
  transition:0.3s;
}

.footer-col ul li a:hover{
  color:#81c784;
  padding-left:6px;
}

.footer-socials{
  display:flex;
  gap:0.8rem;
  margin-top:1rem;
}

.footer-socials a{
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(255,255,255,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:1.1rem;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.footer-socials a::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#43a047,#2e7d32);
  opacity:0;
  transition:0.35s ease;
}

.footer-socials a:hover::before{
  opacity:1;
}

.footer-socials a i{
  position:relative;
  z-index:2;
}

.footer-socials a:hover{
  transform:translateY(-5px) scale(1.08);
  box-shadow:0 8px 18px rgba(0,0,0,0.25);
}

.contact-list li{
  display:flex;
  gap:0.6rem;
  align-items:flex-start;
}

/* TRUST STRIP */
.footer-trust{
  max-width:1200px;
  margin:2.5rem auto 1.5rem;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1.5rem;
  font-size:0.85rem;
  color:#c8e6c9;
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:1.5rem;
}

.footer-trust span{
  display:flex;
  align-items:center;
  gap:0.4rem;
}

/* BOTTOM BAR */
.footer-bottom{
  max-width:1200px;
  margin:auto;
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:1.2rem;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  font-size:0.85rem;
  color:#c8e6c9;
}

.legal-links a{
  color:#c8e6c9;
  text-decoration:none;
  margin-left:1rem;
  font-size:0.85rem;
}

.legal-links a:hover{
  color:#fff;
}

.site-footer a {
  color: #c8e6c9;
  text-decoration: none;
  transition: color 0.3s ease;
  pointer-events: auto;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 20;
}

.mobile-order-btn {
  z-index: 10;
}

/* RESPONSIVE */
@media(max-width:768px){
  .footer-bottom{
    flex-direction:column;
    text-align:center;
  }
  .legal-links{
    display:flex;
    gap:1rem;
  }
}

@media(max-width:768px){
  .contact-list li{
    font-size: 0.95rem;
    padding: 6px 0;
  }

  .contact-list a{
    display: inline-block;
    padding: 6px 0;
  }
}

.whatsapp-channel-cta{
  margin-top:1.2rem;
  padding:0.8rem 1rem;
  border-radius:12px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(129,199,132,0.3);
  text-align:center;
}

.whatsapp-channel-cta a{
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  font-weight:600;
  color:#81c784;
  font-size:0.9rem;
  transition:0.3s;
}

.whatsapp-channel-cta a:hover{
  color:#fff;
  transform:translateY(-2px);
}

.whatsapp-channel-cta p{
  font-size:0.75rem;
  color:#c8e6c9;
  margin-top:0.4rem;
}

/* Disable social media icons if no links provided */
.social-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}