:root {
  --green: #08783f;
  --dark-green: #04552d;
  --light-green: #eef9f0;
  --yellow: #f4c542;
  --text: #17231c;
  --muted: #6d776f;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans Bengali", sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  text-decoration: none;
}

/* =====================================================
        TOP BAR
    ===================================================== */

.topbar {
  background: var(--dark-green);
  color: #fff;
  font-size: 13px;
}

.topbar a {
  color: #fff;
}

/* =====================================================
        NAVBAR
    ===================================================== */

.navbar {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.navbar .container {
  min-height: 58px;
}

.brand-mark {
  width: 38px;
  height: 38px;

  border: 2px solid var(--green);
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--green);
  font-size: 20px;
}

.brand-name {
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle {
  font-size: 8px;
  color: #777;
}

.nav-link {
  color: #222 !important;
  font-weight: 600;
  font-size: 14px;
  margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green) !important;
}

/* =====================================================
        CART
    ===================================================== */

.cart-btn {
  position: relative;
  font-size: 24px;
  color: #222;
}

.cart-btn:hover {
  color: var(--green);
}

.cart-badge {
  position: absolute;

  top: -5px;
  right: -8px;

  background: #e53935;
  color: #fff;

  font-size: 10px;

  width: 19px;
  height: 19px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
        SEARCH SECTION
    ===================================================== */

.search-section {
  background: #f4f8f3;

  padding: 12px 0;

  border-bottom: 1px solid #e4ebe5;
}

.search-box {
  background: #fff;

  border-radius: 12px;

  padding: 6px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

  max-width: 1000px;
}

.search-box .form-control,
.search-box .form-select {
  border: 0;

  box-shadow: none;

  height: 45px;
}

.btn-green {
  background: var(--green);

  border-color: var(--green);

  color: #fff;

  font-weight: 700;
}

.btn-green:hover {
  background: var(--dark-green);

  border-color: var(--dark-green);

  color: #fff;
}

/* =====================================================
        HERO SLIDER
    ===================================================== */

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  min-height: 430px;

  position: relative;

  overflow: hidden;

  background-position: center;

  background-size: cover;

  background-repeat: no-repeat;
}

.hero-content {
  padding: 75px 0 55px;
}

.hero h1 {
  font-size: clamp(35px, 5vw, 62px);

  font-weight: 800;

  color: var(--dark-green);

  line-height: 1.25;
}

.hero p {
  font-size: 19px;

  max-width: 590px;

  color: #37423b;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 6%;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 38px;
  height: 38px;

  padding: 8px;

  background-color: rgba(0, 80, 40, 0.65);

  border-radius: 50%;

  background-size: 55%;
}

.hero-slider .carousel-indicators {
  bottom: 15px;

  margin-bottom: 0;
}

.hero-slider .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;

  border: 0;

  border-radius: 10px;
}

/* =====================================================
        TRUST STRIP
    ===================================================== */

.trust-strip {
  background: #f0f9f1;

  border-bottom: 1px solid #e4efe5;
}

.trust-item {
  min-height: 85px;

  display: flex;

  align-items: center;

  gap: 12px;
}

.trust-icon {
  width: 45px;
  height: 45px;

  border: 1px solid #a7cdb0;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--green);

  font-size: 21px;

  flex: 0 0 auto;
}

/* =====================================================
        SECTION TITLE
    ===================================================== */

.section-title {
  font-weight: 800;

  color: #151b17;
}

.section-title i {
  color: var(--green);
}

/* =====================================================
        CATEGORY
    ===================================================== */

.category-card {
  height: 145px;

  border: 1px solid #e4e9e5;

  border-radius: 15px;

  transition: 0.2s;

  background: #fff;
}

.category-card:hover {
  border-color: #9bc6a6;

  transform: translateY(-3px);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.category-icon {
  width: 70px;
  height: 70px;

  margin: 0 auto 10px;

  border-radius: 50%;

  background: var(--light-green);

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--green);

  font-size: 33px;
}

/* =====================================================
        BRAND
    ===================================================== */

.brand-card {
  height: 120px;

  border: 1px solid #e4e9e5;

  border-radius: 15px;

  background: #fff;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  color: #17231c;

  transition: 0.2s;
}

.brand-card:hover {
  border-color: #9bc6a6;

  transform: translateY(-3px);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);

  color: var(--green);
}

.brand-logo {
  width: 55px;
  height: 55px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: var(--light-green);

  color: var(--green);

  font-size: 26px;

  margin-bottom: 8px;
}

/* =====================================================
        PRODUCT CARD
    ===================================================== */

.product-card {
  border: 1px solid #e4e7e5;

  border-radius: 15px;

  overflow: hidden;

  height: 100%;

  transition: 0.2s;

  background: #fff;
}

.product-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.product-img {
  height: 210px;

  width: 100%;

  object-fit: contain;

  background: #f7faf7;

  padding: 18px;
}

.product-title {
  font-weight: 700;

  min-height: 48px;
}

.price {
  color: var(--green);

  font-size: 21px;

  font-weight: 800;
}

.old-price {
  color: #aaa;

  text-decoration: line-through;

  font-size: 13px;
}

.rating {
  color: #f5a623;

  font-size: 13px;
}

/* =====================================================
        FLASH SALE
    ===================================================== */

#featured {
  background: #fff;
}

#featured .section-title i {
  color: #e53935;
}

.sale-badge {
  position: absolute;

  top: 10px;

  left: 10px;

  background: #e53935;

  color: #fff;

  padding: 5px 9px;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 700;

  z-index: 2;
}

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

footer {
  background: var(--dark-green);

  color: #dbeee1;
}

footer a {
  color: #dbeee1;
}

footer a:hover {
  color: #fff;
}

.footer-title {
  color: #fff;

  font-weight: 700;

  margin-bottom: 16px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background-color: yellowgreen;
}

/* =====================================================
        RESPONSIVE
    ===================================================== */

@media (max-width: 991.98px) {
  .hero-content {
    padding: 55px 0;
  }

  .nav-link {
    margin: 3px 0;
  }

  .navbar .container {
    min-height: 55px;
  }
}

@media (max-width: 575.98px) {
  .hero-slide {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .search-section {
    padding: 10px;
  }

  .search-box {
    padding: 8px;
  }

  .product-img {
    height: 175px;
  }

  .brand-card {
    height: 105px;
  }

  .brand-logo {
    width: 45px;
    height: 45px;

    font-size: 21px;
  }

  .category-card {
    height: 130px;
  }

  .category-icon {
    width: 60px;
    height: 60px;

    font-size: 28px;
  }
}
