*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#eef8f1;
  color:#222;
}

/* HEADER */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  background:#ffffff;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  position:sticky;
  top:0;
  z-index:1000;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.brand-logo{
  width:60px;
  height:60px;
  object-fit:contain;
  animation:logoPulse 2s infinite;
}

@keyframes logoPulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.1);}
  100%{transform:scale(1);}
}

.brand-text h1{
  font-size:34px;
  color:#166534;
  font-weight:900;
}

.brand-text p{
  font-size:13px;
  color:#666;
  margin-top:2px;
}

/* SEARCH */
.search-wrap{
  flex:1;
  display:flex;
  max-width:600px;
}

.search-wrap input{
  width:100%;
  padding:12px;
  border:2px solid #1f8f43;
  border-right:none;
  border-radius:10px 0 0 10px;
  outline:none;
  font-size:15px;
}

.search-wrap button{
  padding:12px 18px;
  background:#1f8f43;
  border:none;
  color:#fff;
  font-weight:bold;
  border-radius:0 10px 10px 0;
  cursor:pointer;
}

/* NAV */
.nav{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav a{
  text-decoration:none;
  color:#222;
  font-weight:700;
}

.cart-badge{
  background:#1f8f43;
  color:#fff;
  padding:3px 7px;
  border-radius:20px;
  font-size:12px;
  margin-left:4px;
}

/* INSTALL */
.install-wrap{
  text-align:center;
  padding:12px 16px 0;
}

.install-btn{
  display:none;
  background:#1f8f43;
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:10px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
}

/* HERO */
.hero{
  background:linear-gradient(135deg,#dff5e4,#f7fffa);
  padding:60px 20px;
  text-align:center;
}

.hero-content{
  max-width:760px;
  margin:auto;
}

.hero-tag{
  display:inline-block;
  background:#fff;
  padding:8px 14px;
  border-radius:999px;
  margin-bottom:12px;
  font-weight:bold;
}

.hero h2{
  font-size:46px;
  color:#166534;
  margin-bottom:12px;
}

.hero p{
  font-size:18px;
  color:#555;
  margin-bottom:18px;
  line-height:1.6;
}

.hero-btn{
  display:inline-block;
  background:#1f8f43;
  color:#fff;
  padding:13px 24px;
  border-radius:10px;
  text-decoration:none;
  font-weight:bold;
}

/* STORE LAYOUT */
.store-layout{
  display:flex;
  gap:20px;
  padding:24px;
}

/* SIDEBAR */
.sidebar{
  width:260px;
}

.sidebar-card{
  background:#fff;
  padding:16px;
  border-radius:16px;
  box-shadow:0 4px 14px rgba(0,0,0,0.08);
  margin-bottom:16px;
}

.sidebar-card h3{
  margin-bottom:10px;
  color:#166534;
}

.sidebar-card ul{
  list-style:none;
}

.sidebar-card li{
  padding:12px;
  border-radius:10px;
  cursor:pointer;
  margin-bottom:8px;
  font-weight:700;
  transition:0.2s;
}

.sidebar-card li:hover{
  background:#e9f8ee;
}

.sidebar-card li.active{
  background:#1f8f43;
  color:#fff;
}

/* PRODUCTS */
.products-area{
  flex:1;
}

.section-head{
  margin-bottom:16px;
}

.section-head h2{
  font-size:30px;
  color:#166534;
}

.section-head p{
  color:#666;
  margin-top:4px;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:18px;
}

/* PRODUCT CARD */
.product-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 4px 14px rgba(0,0,0,0.1);
  transition:0.25s;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.product-card:hover{
  transform:translateY(-6px);
}

.product-image-wrap{
  position:relative;
  padding:12px;
}

.product-card img{
  width:100%;
  height:190px;
  object-fit:cover;
  border-radius:12px;
  background:#f3f3f3;
}

.offer-badge{
  position:absolute;
  top:18px;
  left:18px;
  background:#ffc107;
  color:#222;
  padding:5px 9px;
  font-size:12px;
  border-radius:10px;
  font-weight:900;
}

.stock-badge{
  position:absolute;
  top:18px;
  right:18px;
  padding:5px 9px;
  border-radius:10px;
  font-size:12px;
  color:#fff;
  font-weight:900;
}

.instock{background:#16a34a;}
.limited{background:#f97316;}
.preorder{background:#6366f1;}
.outstock{background:#dc2626;}

.product-info{
  padding:0 14px 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.source-badge{
  background:#e0ecff;
  color:#1d4ed8;
  padding:5px 9px;
  border-radius:10px;
  font-size:12px;
  font-weight:bold;
  width:fit-content;
}

.product-title{
  font-size:20px;
  font-weight:900;
}

.product-price{
  font-size:22px;
  color:#166534;
  font-weight:900;
}

.product-desc{
  font-size:13px;
  color:#666;
  line-height:1.5;
}

.product-btns{
  display:flex;
  gap:8px;
  margin-top:8px;
}

.product-btns button,
.product-btns a{
  flex:1;
  padding:10px;
  border:none;
  border-radius:10px;
  font-weight:bold;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}

.add-cart-btn{
  background:#1f8f43;
  color:#fff;
}

.wa-btn{
  background:#25D366;
  color:#fff;
}

/* CART */
.cart-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:20px;
}

.cart-box{
  background:#fff;
  padding:20px;
  border-radius:18px;
  width:100%;
  max-width:650px;
  max-height:85vh;
  overflow:auto;
}

.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.cart-header h3{
  font-size:28px;
  color:#166534;
}

.cart-header button{
  background:none;
  border:none;
  font-size:32px;
  cursor:pointer;
}

.cart-items{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cart-item{
  display:flex;
  gap:10px;
  align-items:center;
  border-bottom:1px solid #eee;
  padding:10px 0;
}

.cart-item img{
  width:65px;
  height:65px;
  object-fit:cover;
  border-radius:10px;
}

.cart-item-details{
  flex:1;
}

.cart-item-details h4{
  margin-bottom:5px;
}

.cart-item-details p{
  color:#166534;
  font-weight:800;
}

.remove-btn{
  background:#e53935;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
}

.cart-total-row{
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  font-size:18px;
}

.wa-order-btn{
  background:#25D366;
  color:#fff;
  padding:12px;
  border:none;
  border-radius:10px;
  width:100%;
  margin-top:12px;
  cursor:pointer;
  font-weight:900;
}

.clear-cart-btn{
  background:#e53935;
  color:#fff;
  padding:12px;
  border:none;
  border-radius:10px;
  width:100%;
  margin-top:8px;
  cursor:pointer;
  font-weight:900;
}

/* WHATSAPP FLOAT */
.whatsapp-float{
  position:fixed;
  bottom:90px;
  right:18px;
  width:56px;
  height:56px;
  z-index:3000;
  animation:floatPulse 2s infinite;
}

.whatsapp-float img{
  width:100%;
  height:100%;
  border-radius:50%;
}

@keyframes floatPulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.1);}
  100%{transform:scale(1);}
}

/* FOOTER */
.footer{
  background:#fff;
  margin-top:30px;
  padding:22px;
  text-align:center;
  box-shadow:0 -2px 10px rgba(0,0,0,0.05);
}

.footer-inner h3{
  color:#166534;
  margin-bottom:8px;
}

.footer-inner p{
  color:#555;
  margin-bottom:6px;
}

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav{
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:#ffffff;
  box-shadow:0 -4px 15px rgba(0,0,0,0.08);
  z-index:2500;
  padding:8px 0;
  justify-content:space-around;
}

.mobile-nav-item{
  text-decoration:none;
  color:#222;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:22px;
  gap:2px;
}

.mobile-nav-item small{
  font-size:11px;
  font-weight:700;
}

/* RESPONSIVE */
@media(max-width:1000px){
  .header{
    flex-wrap:wrap;
  }

  .search-wrap{
    width:100%;
    max-width:100%;
    order:3;
  }

  .store-layout{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
  }

  .products-grid{
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  }
}

@media(max-width:700px){
  body{
    padding-bottom:80px;
  }

  .desktop-nav{
    display:none;
  }

  .mobile-bottom-nav{
    display:flex;
  }

  .brand-logo{
    width:50px;
    height:50px;
  }

  .brand-text h1{
    font-size:24px;
  }

  .brand-text p{
    font-size:12px;
  }

  .hero h2{
    font-size:32px;
  }

  .hero p{
    font-size:16px;
  }

  .products-grid{
    grid-template-columns:1fr;
  }

  .whatsapp-float{
    width:50px;
    height:50px;
    bottom:88px;
    right:14px;
  }
}
