:root{
  --green:#2f8b2e;
  --green2:#1f6d1e;
  --yellow:#f6b600;

  --bg:#ffffff;
  --soft:#f3fbf3;

  --text:#0f1b0f;
  --muted:#6a786a;
  --line:#e6efe6;

  --shadow:0 12px 32px rgba(0,0,0,.08);
  --shadow2:0 8px 20px rgba(0,0,0,.06);

  --r:14px;
  --r2:18px;

  --container:1200px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--container); margin:0 auto; padding:0 18px}
.center{text-align:center}
.mt-18{margin-top:18px}
.muted{color:var(--muted)}

/* Top */
.top{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:50;
}
.top__row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:10px 0;
}
.brand{display:flex;align-items:center;gap:10px;min-width:220px}
.brand__logo{height:34px;width:auto}
.brand__text{font-weight:700;color:var(--green);letter-spacing:.2px}

.search{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  box-shadow:var(--shadow2);
}
.search__icon{opacity:.65}
.search input{
  border:0; outline:0;
  width:100%;
  font-size:15px;
}
.search__btn{
  border:0;
  background:var(--green);
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
.search__btn:hover{background:var(--green2)}

.top__icons{display:flex;align-items:center;gap:10px}
.iconbtn{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--shadow2);
  background:#fff;
}
.badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;
  padding:0 6px;
  border-radius:999px;
  background:var(--yellow);
  font-weight:800;
  font-size:12px;
}

/* Nav */
.nav{background:var(--green)}
.nav__row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  padding:10px 0;
}
.nav__link{
  color:#fff;
  font-weight:700;
  letter-spacing:.3px;
  opacity:.95;
}
.nav__link:hover{opacity:1}

.nav__drop{position:relative}
.nav__menu{
  position:absolute;
  top:38px;
  left:0;
  background:#fff;
  min-width:220px;
  border-radius:12px;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  overflow:hidden;
  display:none;
}
.nav__drop:hover .nav__menu{display:block}
.nav__menu a{
  display:block;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}
.nav__menu a:hover{background:var(--soft)}

/* Slider */
.slider{
  position:relative;
  height:520px;
  overflow:hidden;
}
.slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.03);
  transition:opacity .6s ease, transform 1.4s ease;
}
.slide.active{
  opacity:1;
  transform:scale(1);
}
.slide::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.08));
}
.slide__content{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(980px, 92%);
  z-index:2;
  color:#fff;
}
.slide__content h1{
  margin:0 0 10px 0;
  font-size:54px;
  line-height:1.08;
}
.slide__content p{margin:0 0 18px 0; max-width:560px; opacity:.95}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  font-weight:800;
  background:var(--yellow);
  color:#111;
}
.btn:hover{filter:brightness(.95)}
.slider__dots{
  position:absolute;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:5;
}
.dot{
  width:10px;height:10px;border-radius:999px;
  background:rgba(255,255,255,.55);
  cursor:pointer;
}
.dot.active{background:var(--yellow)}

/* Sections */
.section{padding:38px 0}
.section h2{
  margin:0 0 16px 0;
  font-size:26px;
  text-align:center;
}
.soft{background:var(--soft)}

/* Category cards (UPDATED for 80x80 icons) */
.cats{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
}
.cat{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  text-align:center;
  box-shadow:var(--shadow2);

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:150px;
}
.cat .ico{
  width:100%;
  height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
  background:none !important;
}
.cat .ico img{
  width:80px;
  height:80px;
  object-fit:contain;
  display:block;
  image-rendering:auto;
}
.cat .name{
  font-weight:900;
  font-size:18px;
  line-height:1.2;
  margin-top:2px;
}

/* Products grid */
.grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow2);
  display:flex;
  flex-direction:column;
}
.card__img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.card__body{padding:12px}
.card__title{font-weight:800; margin:0 0 6px 0; min-height:42px}

/* Price base (will be forced later too) */
.price{font-weight:900}

.card__actions{padding:12px; padding-top:0}
.card__actions .btn{width:100%; justify-content:center; border-radius:10px}

/* Promo (parallax feel) */
.promo{
  position:relative;
  min-height:260px;
  border-radius:18px;
  overflow:hidden;
  background:#000;
}
.promo__bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.05);
}
.promo__bg::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1));
}
.promo__box{
  position:relative;
  z-index:2;
  width:min(820px, 92%);
  margin:0 auto;
  padding:28px;
  margin-top:48px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(47,139,46,.95), rgba(246,182,0,.78));
  box-shadow:var(--shadow);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.promo__box h3{margin:0;font-size:28px}
.promo__box .btn{background:#fff}

/* Features */
.features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.feature{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  box-shadow:var(--shadow2);
  font-weight:800;
}
.feature span{display:inline-flex;width:34px;height:34px;border-radius:10px;align-items:center;justify-content:center;background:var(--yellow)}

/* Newsletter */
.newsletter{
  background:linear-gradient(180deg, #f3fbf3, #ffffff);
  border-top:1px solid var(--line);
  padding:26px 0;
}
.newsletter__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.newsletter__form{
  display:flex;
  gap:10px;
  width:min(520px, 100%);
}
.newsletter__form input{
  flex:1;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  outline:0;
}
.newsletter__form button{
  border:0;
  background:var(--green);
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
}
.newsletter__form button:hover{background:var(--green2)}

/* Footer */
.footer{
  background:#dfeedd;
  border-top:1px solid var(--line);
}
.footer__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  padding:28px 0;
}
.footer h4{margin:0 0 10px 0}
.footer a{display:block; padding:3px 0; color:#1f2f1f}
.footer a:hover{text-decoration:underline}
.social{display:flex; gap:10px}
.social a{
  width:40px;height:40px;border-radius:999px;
  background:var(--green);
  color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:900;
}
.fline{padding:3px 0}

.footer__bottom{
  background:var(--yellow);
  padding:10px 0;
}
.footer__bottomRow{
  display:flex;justify-content:space-between;gap:10px;
  font-weight:700;
}

/* Floating */
.floating{
  position:fixed;
  right:16px;
  bottom:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:100;
}
.fab{
  width:54px;height:54px;
  border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  font-weight:900;
}
.fab.wa{background:#25D366;color:#fff;border:0}
.fab.call{background:#2f8b2e;color:#fff;border:0}
.fab.msg{background:#1877f2;color:#fff;border:0}

/* Responsive */
@media (max-width:1100px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .cats{grid-template-columns:repeat(3,1fr)}
  .features{grid-template-columns:repeat(2,1fr)}
  .slider{height:420px}
  .slide__content h1{font-size:38px}

  /* Category icon scale (tablet) */
  .cat{min-height:140px}
  .cat .ico{height:86px}
  .cat .ico img{width:72px;height:72px}
}
@media (max-width:650px){
  .top__row{flex-wrap:wrap}
  .brand{min-width:auto}
  .nav__row{gap:14px; flex-wrap:wrap}
  .grid{grid-template-columns:repeat(2,1fr)}
  .footer__grid{grid-template-columns:1fr 1fr}
  .promo__box{flex-direction:column; align-items:flex-start}

  /* Category icon scale (mobile) */
  .cat{min-height:130px}
  .cat .ico{height:82px}
  .cat .ico img{width:68px;height:68px}
}

/* ===== Product Grid ===== */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
  align-items:stretch;
  margin:24px 0 60px;
}

.product-card{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.product-img{
  position:relative;
  aspect-ratio: 1/1;
  overflow:hidden;
  background:#fafafa;
}
.product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.product-body{
  padding:14px;
}

.product-title{
  font-weight:800;
  font-size:15px;
  line-height:1.35;
  text-align:center;
  margin:6px 0 8px;
  min-height:42px;
}

.product-price{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:baseline;
  margin:6px 0 12px;
}
.price-old{
  color:#6cc26f;
  text-decoration:line-through;
  font-weight:800;
  font-size:14px;
}
.price-new{
  color:#111;
  font-weight:900;
  font-size:16px;
}

.btn-order{
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  width:100%;
  background:#f4b400;
  color:#111;
  padding:10px 12px;
  border-radius:10px;
  font-weight:900;
  text-decoration:none;
  border:0;
  cursor:pointer;
}
.btn-order:hover{ filter:brightness(.98); }

.btn-disabled{
  background:#d9d9d9;
  color:#555;
  cursor:not-allowed;
}

/* SOLD OUT badge */
.sold-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:#111;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.4px;
  z-index:2;
}

.product-card.is-sold .product-img img{
  filter:grayscale(1);
  opacity:.85;
}

/* Admin small badge */
.badge{
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  margin-left:8px;
}
.badge.sold{
  background:#111;
  color:#fff;
}

/* Admin basic helpers (আপনার আগের style থাকলেও সমস্যা হবে না) */
.admin-wrap{ max-width:1100px; margin:24px auto; padding:0 12px; }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.card{ background:#fff; border-radius:18px; padding:18px; margin:18px 0; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.grid-form .grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.input{ width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:10px; }
.textarea{ width:100%; }
.btn{ padding:10px 14px; border-radius:12px; text-decoration:none; font-weight:900; display:inline-block; }
.btn-yellow{ background:#f4b400; color:#111; }
.btn-block{ width:100%; margin-top:10px; }
.alert{ padding:10px 12px; border-radius:12px; margin:10px 0; font-weight:800; }
.alert.success{ background:#eaffea; border:1px solid #b9efb9; }
.alert.error{ background:#ffecec; border:1px solid #f3b3b3; }
.table{ width:100%; border-collapse:collapse; }
.table th,.table td{ padding:10px; border-bottom:1px solid #eee; text-align:left; }
.table-wrap{ overflow:auto; }
.page-h2{ text-align:center; margin:22px 0; font-weight:900; }

/* ===== FORCE price style (Home / Best / Hot) ===== */
.price{
  display:flex !important;
  gap:10px !important;
  justify-content:flex-start !important;
  align-items:baseline !important;
  flex-wrap:wrap;
}
.price-old{
  color:#6a786a !important;
  text-decoration:line-through !important;
  font-weight:800 !important;
  font-size:14px !important;
  opacity:.70 !important;
}
.price-new{
  color:#111 !important;
  font-weight:900 !important;
  font-size:16px !important;
}

/* ===== Product image wrapper ===== */
.card-img-wrap{
  position:relative;
  display:block;
}

/* ===== Discount Badge GREEN (Final) ===== */
.discount-badge{
  position:absolute !important;
  top:10px !important;
  left:10px !important;
  background:#2f8b2e !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:900 !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  line-height:1 !important;
  box-shadow:0 8px 16px rgba(0,0,0,.20) !important;
  z-index:10 !important;
}
