* {
  box-sizing: border-box;
}
body {
  background: var(--bg); /* فقط یک رنگ */
}

/* ---------- HERO WRAP ---------- */
.hero-trending {
  background: #e8f7ef; /* دقیقاً مثل body */
  position: relative;
  padding-top: 10px; /* 👈 این خط مهمه */
}

.hero-trending__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(15, 122, 75, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.6vw, 30px);
}

.hero-trending__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* راست متن بزرگ‌تر */
  gap: clamp(14px, 2.2vw, 26px);
  align-items: center;
}

/* ---------- RIGHT CONTENT (TEXT) ---------- */
.hero-trending__content {
  padding: clamp(6px, 1vw, 10px);
}

.hero-trending__kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 122, 75, 0.08);
  border: 1px solid rgba(15, 122, 75, 0.12);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}
.hero-trending__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(15, 122, 75, 0.12);
}

.hero-trending__content h1 {
  margin: 14px 0 10px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-trending__typing {
  display: inline-block;
  position: relative;
  padding-inline: 4px;
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}
.hero-trending__typing::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1.1em;
  border-left: 3px solid var(--brand);
  margin-right: 6px;
  transform: translateY(2px);
  animation: caret 1s steps(1, end) infinite;
  opacity: 0.9;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.hero-trending__sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-trending__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}
.hero-trending__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.05);
  font-size: 13px;
  color: #0b1220;
  font-weight: 600;
}
.hero-trending__badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.hero-trending__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.hero-trending__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}
.hero-trending__btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 122, 75, 0.22);
}
.hero-trending__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 122, 75, 0.28);
}
.hero-trending__btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(2, 6, 23, 0.1);
  color: #0b1220;
}
.hero-trending__btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 122, 75, 0.2);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.07);
}

.hero-trending__trust {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.hero-trending__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trending__trust-item .hero-trending__mini {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(15, 122, 75, 0.08);
  border: 1px solid rgba(15, 122, 75, 0.1);
  display: grid;
  place-items: center;
  color: var(--brand);
}

/* ---------- LEFT (PRODUCT SLIDER) ---------- */
.hero-trending__slider {
  background: #fff;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  position: relative;
}
.hero-trending__slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  gap: 10px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
  background: linear-gradient(
    180deg,
    rgba(15, 122, 75, 0.06),
    rgba(255, 255, 255, 0)
  );
}
.hero-trending__slider-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.hero-trending__pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 122, 75, 0.1);
  color: var(--brand);
  border: 1px solid rgba(15, 122, 75, 0.14);
  font-weight: 800;
}
.hero-trending__slider-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-trending__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.hero-trending__icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 122, 75, 0.2);
  box-shadow: 0 12px 20px rgba(2, 6, 23, 0.08);
}
.hero-trending__icon {
  width: 18px;
  height: 18px;
  color: #0b1220;
  opacity: 0.9;
}

.hero-trending__viewport {
  overflow: hidden;
  position: relative;
}
.hero-trending__track {
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.hero-trending__slide {
  min-width: 100%;
  padding: 14px;
}

/* WooCommerce: هدف اینه که خروجی شورتکد داخل .viewport رندر بشه */
.hero-trending__viewport .woocommerce ul.products {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  gap: 0 !important;
}
.hero-trending__viewport .woocommerce ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* استایل کارت محصول */
.hero-trending__product-card {
  border-radius: 18px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(15, 122, 75, 0.06),
    rgba(255, 255, 255, 1) 44%
  );
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.08);
  display: grid;
  gap: 10px;
}
.hero-trending__product-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.02);
}
.hero-trending__product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
  display: block;
}
.hero-trending__product-card:hover .hero-trending__product-media img {
  transform: scale(1.07);
}

.hero-trending__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(2, 6, 23, 0.1);
  font-weight: 900;
  font-size: 12px;
  color: #0b1220;
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.1);
}
.hero-trending__tag .bolt {
  color: var(--brand);
  font-size: 14px;
  transform: translateY(-1px);
}

.hero-trending__product-body {
  padding: 2px 12px 14px;
  display: grid;
  gap: 10px;
}
.hero-trending__product-title {
  margin: 0;
  font-weight: 900;
  line-height: 1.5;
  font-size: 15px;
}
.hero-trending__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.hero-trending__price {
  font-weight: 900;
  color: #0b1220;
  font-size: 15px;
}
.hero-trending__price del {
  opacity: 0.5;
  font-weight: 700;
  font-size: 12px;
  margin-inline-start: 6px;
}
.hero-trending__sale-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #92400e;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.hero-trending__buy {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-trending__buy a {
  flex: 1;
  text-align: center;
  background: rgba(15, 122, 75, 0.1);
  border: 1px solid rgba(15, 122, 75, 0.16);
  color: var(--brand);
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.hero-trending__buy a:hover {
  transform: translateY(-1px);
  background: rgba(15, 122, 75, 0.14);
  box-shadow: 0 14px 24px rgba(15, 122, 75, 0.12);
}

.hero-trending__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 14px;
}
.hero-trending__dotbtn {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  background: rgba(2, 6, 23, 0.18);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.hero-trending__dotbtn[aria-current="true"] {
  width: 26px;
  background: rgba(15, 122, 75, 0.75);
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-trending__grid {
    grid-template-columns: 1fr;
  }
  /* در موبایل/تبلت: اول پیام/اعتماد، بعد محصول (بهتر برای جذب و تبدیل) */
  .hero-trending__slider {
    order: 2;
  }
  .hero-trending__content {
    order: 1;
  }
}
@media (max-width: 520px) {
  .hero-trending__ctas .hero-trending__btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trending__slider-actions {
    display: none;
  }
  .hero-trending__badge {
    width: 100%;
    justify-content: center;
  }
  .hero-trending__trust {
    gap: 10px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-trending__track {
    transition: none;
  }
  .hero-trending__typing::after {
    animation: none;
  }
}


