/* =========================================================
   প্রকৃতিক — Organic/Natural products e-commerce stylesheet
   Only Bootstrap 5 is used as a framework; this file adds the
   brand look (green palette, cards, sections) on top of it.
   ========================================================= */

:root {
  --green: #3fa04f;
  --green-dark: #2e7d3b;
  --green-darker: #1e5c2a;
  --green-light: #eaf7ec;
  --green-lighter: #f4fbf5;
  --ink: #1f2a22;
  --muted: #6b7a6f;
  --bg: #f7f8f6;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-soft: 0 4px 18px rgba(31, 42, 34, 0.06);
  --shadow-hover: 0 10px 24px rgba(31, 42, 34, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.container-app {
  width: 100%;
  max-width: 1150px;
  margin-inline: auto;
  padding-inline: 16px;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--green-darker); }

.section-py { padding-block: 40px; }
@media (max-width: 767.98px) {
  .section-py { padding-block: 28px; }
}

.btn-brand {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.btn-brand:active { transform: translateY(1px); }

.btn-outline-brand {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green-dark);
  font-weight: 600;
  transition: all .2s ease;
}
.btn-outline-brand:hover {
  background: var(--green);
  color: #fff;
}

.text-brand { color: var(--green) !important; }
.text-brand-dark { color: var(--green-darker) !important; }
.bg-brand { background: var(--green) !important; }

/* ---------------- Top info bar ---------------- */
.topbar {
  background: var(--green-darker);
  color: #eaf7ec;
  font-size: 0.8rem;
  min-height: 30px;
}
.topbar .container-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  gap: 12px;
}
.topbar a { color: #eaf7ec; }
.topbar a:hover { color: #fff; }
.topbar .topbar-left { display: flex; gap: 18px; align-items: center; white-space: nowrap; }
.topbar .topbar-right { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 575.98px) {
  .topbar .topbar-left span:nth-child(2) { display: none; }
  .topbar .topbar-right { display: none; }
}

/* ---------------- Header ---------------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-header .container-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand-logo img { height: 40px; width: auto; }
.brand-logo { display: flex; align-items: center; gap: 8px; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  padding-block: 6px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .2s ease;
}
.main-nav a:hover { color: var(--green-dark); }
.main-nav a:hover::after { width: 100%; }

.header-icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--green-darker);
  background: transparent;
  border: none;
  font-size: 1.15rem;
  position: relative;
  transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--green-light); }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

@media (max-width: 991.98px) {
  .main-nav { display: none; }
  .site-header .container-app { min-height: 62px; }
  .brand-logo img { height: 32px; }
}

/* ---------------- Hero banner ---------------- */
.hero-section { padding-top: 20px; }
.hero-banner {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--green-dark);
}
.hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-banner:hover img { transform: scale(1.02); }

@media (max-width: 767.98px) {
  .hero-banner { height: 200px; border-radius: 8px; }
}
@media (max-width: 575.98px) {
  .hero-banner { height: 170px; }
}

/* ---------------- Section header ---------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-header .view-all {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.92rem;
  white-space: nowrap;
}
.section-header .view-all:hover { color: var(--green-darker); }

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-darker);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.countdown-badge i { color: var(--green); }

@media (max-width: 575.98px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section-header h2 {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 1.15rem;
  }
  .countdown-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
}

/* ---------------- Product cards ---------------- */
.product-card {
  background: #fff;
  border: 1px solid #edf1ee;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--green-lighter);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.product-card:hover .card-media img { transform: scale(1.05); }

.badge-discount {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}
.badge-new {
  position: absolute;
  top: 8px; left: 8px;
  background: #e0692c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #9aa39c;
  z-index: 2;
  transition: color .2s ease, transform .15s ease;
}
.wishlist-btn:hover { color: #e0432c; }
.wishlist-btn.active { color: #e0432c; }
.wishlist-btn.active i::before { content: "\f415"; }

.card-body-p {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.product-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  line-height: 1.25em;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.price-current {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1rem;
}
.price-old {
  font-size: 0.82rem;
  color: #a9b2ab;
  text-decoration: line-through;
}
.discount-pct {
  font-size: 0.72rem;
  color: #e0692c;
  font-weight: 700;
}
.btn-add-cart {
  margin-top: auto;
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color .2s ease;
}
.btn-add-cart:hover { background: var(--green-dark); color: #fff; }
.btn-add-cart:disabled { background: #b7c9ba; cursor: default; }

.btn-buy-now {
  width: 100%;
  background: var(--green-darker);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 10px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .2s ease, transform .15s ease;
}
.btn-buy-now:hover { background: #123d1a; color: #fff; }
.btn-buy-now:active { transform: translateY(1px); }

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-contact {
  flex: 1 1 auto;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #dfe7e1;
  color: var(--ink);
  background: #fff;
  transition: all .2s ease;
}
.btn-contact.whatsapp { border-color: #25d366; color: #128c3e; }
.btn-contact.whatsapp:hover { background: #25d366; color: #fff; }
.btn-contact.call { border-color: var(--green); color: var(--green-dark); }
.btn-contact.call:hover { background: var(--green); color: #fff; }

/* ---------------- Category pills ---------------- */
.cat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cat-pill {
  border: 1px solid #dfe7e1;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .18s ease;
}
.cat-pill:hover { border-color: var(--green); color: var(--green-dark); }
.cat-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.no-products {
  text-align: center;
  color: var(--muted);
  padding: 50px 10px;
  font-size: 1rem;
}

/* ---------------- Reviews ---------------- */
.reviews-heading { text-align: center; margin-bottom: 34px; }
.reviews-heading .star-deco { color: var(--green); font-size: 1.4rem; margin-bottom: 6px; }
.reviews-heading h2 { font-size: 1.6rem; }
.reviews-heading p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }

.review-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-card .quote-icon { color: var(--green-light); font-size: 2rem; margin-bottom: 8px; }
.review-card .stars { color: #f0a500; font-size: 0.85rem; margin-bottom: 10px; }
.review-card p.review-text { color: #445248; font-size: 0.92rem; line-height: 1.6; min-height: 4.5em; }
.review-card .reviewer { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.review-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.review-card .reviewer-name { font-weight: 700; font-size: 0.9rem; margin: 0; }
.review-card .reviewer-loc { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* ---------------- Trust features ---------------- */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px;
}
.feature-icon {
  width: 52px; height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.feature-item h3 { font-size: 1rem; margin: 0 0 4px; color: var(--ink); }
.feature-item p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--green);
  color: #eaf7ec;
  padding-block: 44px 0;
  margin-top: 40px;
}
.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.site-footer .footer-desc { font-size: 0.88rem; color: #e4f5e6; line-height: 1.6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { font-size: 0.88rem; color: #dcf2df; transition: color .15s ease; }
.site-footer ul li a:hover { color: #fff; text-decoration: underline; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background-color .15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.3); }

.newsletter-form { display: flex; gap: 0; margin-top: 6px; }
.newsletter-form input {
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.newsletter-form button {
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--green-darker);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #16451f; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 34px;
  padding-block: 16px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #dcf2df;
}
.footer-bottom .payment-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-bottom .payment-badges span {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.75rem;
}

/* ---------------- Floating buttons ---------------- */
.floating-btns {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  border: none;
  transition: transform .15s ease, opacity .2s ease;
}
.floating-btn:hover { transform: translateY(-2px); color: #fff; }
.btn-whatsapp { background: #25d366; }
.btn-scroll-top {
  background: var(--green-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------------- Cart offcanvas ---------------- */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1ee;
}
.cart-item img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--green-lighter);
}
.cart-item .cart-item-info { flex: 1; min-width: 0; }
.cart-item .cart-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfe7e1;
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button {
  width: 26px; height: 26px;
  border: none;
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--green-light); }
.qty-control span { padding: 0 10px; font-size: 0.85rem; font-weight: 600; min-width: 24px; text-align: center; }
.remove-item-btn {
  border: none;
  background: transparent;
  color: #c94b39;
  font-size: 1rem;
}
.cart-footer {
  border-top: 1px solid #eef1ee;
  padding-top: 14px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--green-darker);
}
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.cart-empty i { font-size: 2.4rem; color: var(--green-light); display: block; margin-bottom: 10px; }

/* ---------------- Search overlay ---------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 22, 0.55);
  z-index: 1050;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 0;
}
.search-overlay.show { display: flex; }
.search-box {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.search-box input {
  width: 100%;
  border: 1px solid #dfe7e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1rem;
}
.search-box input:focus { outline: none; border-color: var(--green); }
.search-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  float: right;
}
.search-results { margin-top: 14px; max-height: 340px; overflow-y: auto; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid #f1f3f1;
}
.search-result-item img {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--green-lighter);
}
.search-result-item .sr-title { font-size: 0.88rem; font-weight: 600; margin: 0; }
.search-result-item .sr-price { font-size: 0.8rem; color: var(--green-dark); font-weight: 700; }

/* ---------------- Toast ---------------- */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-darker);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.app-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------------- Breadcrumb / page header (shop, product, cart pages) ---------------- */
.page-hero {
  background: var(--green-light);
  padding-block: 26px;
  margin-bottom: 30px;
}
.page-hero h1 { font-size: 1.5rem; margin: 0 0 6px; }
.page-hero .breadcrumb { margin: 0; font-size: 0.85rem; }
.page-hero .breadcrumb a { color: var(--green-dark); }
.page-hero .breadcrumb .active { color: var(--muted); }

/* ---------------- Utility ---------------- */
.rating-stars { color: #f0a500; font-size: 0.85rem; }
.lazy-img { background: var(--green-lighter); }
