/* ==========================================================================
   Cards — Product, Post, Review, Benefit, Trust, Stats
   ========================================================================== */

/* ----- Product card ----- */
.product {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(23, 116, 58, .14);
}

.product .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--gold), #edbd55);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
}

.product .heart {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  cursor: pointer;
  font-size: 18px;
  border: none;
  transition: .2s;
}

.product .heart:hover {
  background: #fff0f0;
  color: #e53e3e;
}

.product-img {
  height: 210px;
  border-radius: 18px;
  background: #faf6ed;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 12px 0 8px;
  color: var(--brown);
}

.product h3 a {
  color: inherit;
}

.product h3 a:hover {
  color: var(--green);
}

.rating {
  color: #f2a91d;
  font-size: 13px;
  letter-spacing: 1px;
  margin: 0 0 8px;
}

.price {
  font-weight: 900;
  color: var(--green);
  margin-bottom: 12px;
  font-size: 16px;
}

.old {
  text-decoration: line-through;
  color: #aaa;
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px;
}

.product .btn {
  width: 100%;
  padding: 12px 14px;
  font-size: 13px;
}

/* Products grid */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ----- Post / News card ----- */
.post,
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .05);
  transition: transform .25s, box-shadow .25s;
}

.post:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(23, 116, 58, .12);
}

.post img,
.post-img img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.post div,
.post-body {
  padding: 18px;
}

.post h3,
.post-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--brown);
  line-height: 1.35;
}

.post h3 a,
.post-card h3 a {
  color: inherit;
}

.post h3 a:hover,
.post-card h3 a:hover {
  color: var(--green);
}

.post p,
.post-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.post-img {
  position: relative;
}

.post-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
}

.post-body .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.readmore {
  display: inline-block;
  color: var(--green);
  font-weight: 900;
  font-size: 13px;
  margin-top: 10px;
  transition: gap .2s;
}

/* ----- Review card ----- */
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .05);
}

.stars {
  color: #f2a91d;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review p {
  color: #62574c;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 0;
}

.avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.avatar i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
  flex-shrink: 0;
}

.avatar b {
  font-size: 14px;
  display: block;
  color: var(--brown);
}

.avatar small {
  display: block;
  color: var(--muted);
}

/* Reviews grid */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ----- Benefit card ----- */
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .045);
  min-height: 110px;
  transition: .25s;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(23, 116, 58, .13);
  border-color: #bfe0c7;
}

.benefit .circle,
.benefit i {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 25px;
  line-height: 1;
  font-style: normal;
}

.benefit b {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: var(--brown);
  margin-bottom: 4px;
}

.benefit span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

/* ----- Trust / stat card ----- */
.trust {
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(234, 223, 206, .85);
  border-radius: 18px;
  padding: 14px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #4f4439;
}

.trust b {
  display: block;
  color: var(--green);
  font-size: 18px;
  margin-bottom: 3px;
}

/* Stats */
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: .25s;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(23, 116, 58, .14);
  border-color: #bfe0c7;
}

.stat b {
  font-size: 34px;
  color: var(--green);
  display: block;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 980px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .products {
    grid-template-columns: 1fr;
  }

  .product-img {
    height: 220px;
  }
}
