/**
 * MellatWeb homepage — PluginTheme-inspired layout
 * Brand palette: orange #ff7f00, red #ef0f00, ink #3d485c, green #7CB342, mist #f5f5f5
 */
:root {
  --mw-orange: #ff7f00;
  --mw-orange-deep: #f2811b;
  --mw-red: #ee0f00;
  --mw-ink: #3d485c;
  --mw-ink-soft: #5a6578;
  --mw-green: #7CB342;
  --mw-mist: #f5f5f5;
  --mw-line: #ebebeb;
  --mw-card: #ffffff;
  --mw-radius: 16px;
  --mw-shadow: 0 12px 32px rgba(61, 72, 92, 0.08);
  --mw-pt-bg: #1a1d23;
  --mw-pt-card: #22262e;
  --mw-pt-muted: #9aa3b2;
  --mw-pt-pink: #e91e63;
  --mw-pt-yellow: #ffc107;
  --mw-pt-blue: #42a5f5;
}

.mw-home {
  color: var(--mw-ink);
  background: #fff;
}

.mw-home .container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* —— PluginTheme dark header bento —— */
.mw-pt-header {
  padding: 28px 0 36px;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(255, 127, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 0%, rgba(239, 15, 0, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(233, 30, 99, 0.12), transparent 45%),
    linear-gradient(180deg, #14171c 0%, #1a1d23 55%, #1e2229 100%);
}

.mw-pt-brandbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.mw-pt-brand {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mw-pt-brand span {
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mw-pt-brandbar__tag {
  margin: 0;
  color: var(--mw-pt-muted);
  font-size: 0.9rem;
  flex: 1 1 200px;
}

.mw-pt-brandbar__search {
  /* جستجوی اصلی در دسکتاپ تقریباً نیمی از عرض هدر را بگیرد. */
  flex: 1 1 50%;
  width: 50%;
  max-width: 50%;
}

.mw-pt-brandbar__search .target ul {
  display: none;
}

.mw-pt-brandbar__search input[type="text"],
.mw-pt-brandbar__search .searchbox input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
}

.mw-pt-brandbar__search .search-container,
.mw-pt-brandbar__search .search-box,
.mw-pt-brandbar__search #search-input {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mw-pt-brandbar__search { width: 100%; max-width: 100%; flex-basis: 100%; }
}

.mw-pt-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.mw-pt-slider-card,
.mw-pt-side-card,
.mw-pt-tile {
  background: var(--mw-pt-card);
  border-radius: var(--mw-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.mw-pt-slider-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 0;
  background:
    radial-gradient(circle at 85% 45%, rgba(255, 127, 0, 0.28), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(239, 15, 0, 0.12), transparent 40%),
    var(--mw-pt-card);
}

.mw-pt-slides {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 300px;
}

/* Keep the pre-Ajax skeleton at the same height as one real slide. The
   homepage ships three placeholders, but showing all three before JS runs
   makes the header temporarily grow to nearly three times its final height. */
.mw-pt-slides.skeleton-loading {
  height: 300px;
  min-height: 300px;
  overflow: hidden;
}

.mw-pt-slides.skeleton-loading .mw-pt-slide--skeleton {
  display: none;
}

.mw-pt-slides.skeleton-loading .mw-pt-slide--skeleton:first-child {
  display: grid;
}

.mw-pt-slides.lSSlideWrapper,
.mw-pt-slider-card .lSSlideOuter {
  height: auto !important;
}

.mw-pt-slide {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: center;
  padding: 28px 28px 56px;
  min-height: 300px;
  box-sizing: border-box;
}

.mw-pt-slide.is-active,
.mw-pt-slide.mw-pt-slide--skeleton {
  display: grid;
}

.mw-pt-slide__body {
  min-width: 0;
  text-align: right;
}

.mw-pt-slide__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mw-pt-yellow);
  margin-bottom: 8px;
}

.mw-pt-slide__title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.mw-pt-slide__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.mw-pt-slide__accent {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.3;
}

.mw-pt-slide__desc {
  margin: 0 0 16px;
  color: var(--mw-pt-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 36em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mw-pt-slide__feats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.mw-pt-slide__feats li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c5ccd8;
  font-size: 0.8rem;
}

.mw-pt-slide__feats li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mw-red), var(--mw-orange));
  flex-shrink: 0;
}

.mw-pt-slide__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.mw-pt-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange));
  box-shadow: 0 8px 22px rgba(239, 15, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mw-pt-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 127, 0, 0.4);
}

.mw-pt-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.mw-pt-price-old {
  font-size: 0.9rem;
  color: #7a8494;
  text-decoration: line-through;
}

.mw-pt-off {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--mw-pt-pink);
}

.mw-pt-slide__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mw-pt-slide__ring {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(145deg, rgba(255, 127, 0, 0.95), rgba(239, 15, 0, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(255, 127, 0, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: mw-pt-pulse 3.2s ease-in-out infinite;
}

.mw-pt-slide__ring img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 12px;
}

.mw-pt-slider-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  pointer-events: none;
  z-index: 2;
}

.mw-pt-dots {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.mw-pt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mw-pt-dot.is-active {
  background: var(--mw-orange);
  transform: scale(1.2);
}

.mw-pt-arrows {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.mw-pt-arrow {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mw-pt-arrow:hover {
  background: rgba(255, 127, 0, 0.35);
}

/* Sidebar recent searches */
.mw-pt-side-card {
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(255, 127, 0, 0.06), transparent 30%),
    var(--mw-pt-card);
}

.mw-pt-side-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mw-pt-side-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 127, 0, 0.18);
  color: var(--mw-orange);
  font-size: 0.95rem;
}

.mw-pt-side-card__head strong {
  flex: 1;
  color: #fff;
  font-size: 0.95rem;
}

.mw-pt-side-card__all {
  color: var(--mw-pt-yellow) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.mw-pt-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow: hidden;
}

/* Six placeholders are useful for the ticker, but must not dictate the
   header height while the API request is still in flight. */
.mw-pt-recent-list.skeleton-loading {
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  flex: 0 0 280px;
}

/* Vertical ticker (bottom → top) via lightSlider */
.mw-pt-side-card .mw-pt-recent-outer,
.mw-pt-side-card .lSSlideOuter {
  width: 100% !important;
  flex: 1;
}

.mw-pt-side-card .lSSlideWrapper,
.mw-pt-side-card .lSSlideWrapper .lSSlide {
  height: 280px !important;
}

.mw-pt-side-card .lSSlideOuter .lightSlider {
  display: block !important;
  height: auto !important;
}

.mw-pt-side-card .lSAction,
.mw-pt-side-card .lSPager {
  display: none !important;
}

.mw-pt-recent-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 56px;
  box-sizing: border-box;
  overflow: hidden;
}

.mw-pt-recent-item:last-child {
  border-bottom: none;
}

.mw-pt-recent-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
  color: #fff !important;
  transition: background 0.15s ease;
  border-radius: 8px;    direction: rtl;
}

.mw-pt-recent-item a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mw-pt-recent-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #2a303a;
}

.mw-pt-recent-title {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mw-pt-recent-meta {
  flex-shrink: 0;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mw-pt-yellow);
}

/* Bottom 4 tiles */
.mw-pt-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mw-pt-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 18px 16px;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
  align-items: start;
  min-height: 110px;
  position: relative;
}

.mw-pt-tile:hover {
  transform: translateY(-3px);
}

.mw-pt-tile__icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.mw-pt-tile strong {
  font-size: 0.98rem;
  display: block;
  margin-top: 2px;
}

.mw-pt-tile small {
  color: var(--mw-pt-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  display: block;
  grid-column: 2;
}

.mw-pt-tile__link {
  grid-column: 2;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.mw-pt-tile--pink {
  background:
    radial-gradient(circle at 90% 20%, rgba(233, 30, 99, 0.22), transparent 45%),
    var(--mw-pt-card);
}
.mw-pt-tile--pink .mw-pt-tile__icon { background: linear-gradient(135deg, #e91e63, #c2185b); }
.mw-pt-tile--pink .mw-pt-tile__link { color: #f48fb1; }

.mw-pt-tile--blue {
  background:
    radial-gradient(circle at 90% 20%, rgba(66, 165, 245, 0.2), transparent 45%),
    var(--mw-pt-card);
}
.mw-pt-tile--blue .mw-pt-tile__icon { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.mw-pt-tile--blue .mw-pt-tile__link { color: #90caf9; }

.mw-pt-tile--green {
  background:
    radial-gradient(circle at 90% 20%, rgba(124, 179, 66, 0.22), transparent 45%),
    var(--mw-pt-card);
}
.mw-pt-tile--green .mw-pt-tile__icon { background: linear-gradient(135deg, #7CB342, #558b2f); }
.mw-pt-tile--green .mw-pt-tile__link { color: #aed581; }

.mw-pt-tile--orange {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 127, 0, 0.25), transparent 45%),
    var(--mw-pt-card);
}
.mw-pt-tile--orange .mw-pt-tile__icon { background: linear-gradient(135deg, var(--mw-orange), var(--mw-red)); }
.mw-pt-tile--orange .mw-pt-tile__link { color: #ffb74d; }

.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mw-btn:hover {
  transform: translateY(-2px);
}

.mw-btn--primary {
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(239, 15, 0, 0.25);
}

.mw-btn--ghost {
  background: #fff;
  color: var(--mw-ink) !important;
  border: 1px solid var(--mw-line);
}

/* —— Sections —— */
.mw-section {
  padding: 48px 0;
}

.mw-section--mist {
  background: var(--mw-mist);
}

.mw-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mw-section__title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--mw-ink);
}

.mw-section__sub {
  margin: 6px 0 0;
  color: var(--mw-ink-soft);
  font-size: 0.95rem;
}

.mw-section__more {
  color: var(--mw-orange) !important;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
}

/* Sellers */
.mw-sellers {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.mw-seller {
  text-align: center;
  text-decoration: none !important;
  color: var(--mw-ink) !important;
}

.mw-seller__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--mw-shadow);
  margin: 0 auto 8px;
  display: block;
  background: var(--mw-mist);
}

.mw-seller__name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.mw-seller__meta {
  font-size: 0.72rem;
  color: var(--mw-ink-soft);
}

/* Premium Membership (packages) — PluginTheme style */
.mw-premium {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(255, 127, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 20%, rgba(239, 15, 0, 0.16), transparent 50%),
    linear-gradient(160deg, #1a0a2e 0%, #2a1048 45%, #1a1d23 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.mw-premium__head {
  max-width: 720px;
  margin: 0 auto 36px;
}

.mw-premium__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1a1d23;
  background: linear-gradient(90deg, #ffd54f, #ffc107);
  margin-bottom: 16px;
}

.mw-premium__title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.mw-premium__lead {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.mw-premium__save {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.mw-premium__slider {
  list-style: none;
  margin: 0 auto;
  padding: 12px 0 28px;
  text-align: right;
}

/* lightSlider RTL — restore float layout (site-wide .lightSlider{display:flex} breaks rtl) */
.mw-premium .lSSlideOuter,
.mw-premium .lSSlideOuter.lSrtl {
  direction: rtl;
}

.mw-premium .lSSlideWrapper {
  direction: rtl;
}

.mw-premium .lSSlideOuter .lightSlider {
  display: block !important;
  direction: rtl;
  text-align: right;
}

.mw-premium .lSSlideOuter.lSrtl .lightSlider > *,
.mw-premium .lSSlideOuter .lightSlider > li {
  float: right !important;
  text-align: right;
  direction: rtl;
}

.mw-premium .lSPager.lSpg {
  direction: rtl;
  text-align: center;
}

.mw-premium .lSPager.lSpg > li a {
  background: rgba(255, 255, 255, 0.25);
}

.mw-premium .lSPager.lSpg > li.active a {
  background: var(--mw-orange);
}

.mw-premium .lSAction > a {
  background-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

/* در RTL: قبلی سمت راست، بعدی سمت چپ */
.mw-premium .lSAction > .lSPrev {
  left: auto !important;
  right: 4px !important;
}

.mw-premium .lSAction > .lSNext {
  right: auto !important;
  left: 4px !important;
}

.mw-premium-card {
  position: relative;
  background: rgba(40, 22, 72, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px 22px 22px;
  box-sizing: border-box;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mw-premium-card:hover {
  transform: translateY(-4px);
}

.mw-premium-card--best {
  border-color: var(--mw-orange);
  box-shadow:
    0 0 0 1px rgba(255, 127, 0, 0.55),
    0 0 28px rgba(255, 127, 0, 0.28),
    0 16px 40px rgba(0, 0, 0, 0.35);
  background: rgba(55, 28, 80, 0.85);
}

.mw-premium-card__ribbon {
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.mw-premium-card__off {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #e53935;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.mw-premium-card__name {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.mw-premium-card__price {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-top: 4px;
}

.mw-premium-card__price small {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 4px;
}

.mw-premium-card__price--gold {
  color: #ffd54f;
}

.mw-premium-card__was {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.mw-premium-card__chip {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c8e6c9;
  background: rgba(76, 175, 80, 0.22);
  border: 1px solid rgba(129, 199, 132, 0.35);
}

.mw-premium-card__btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mw-premium-card__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.mw-premium-card__btn--hot {
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange));
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(255, 127, 0, 0.35);
}

.mw-premium__feats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.mw-premium__feats li {
  position: relative;
  padding-right: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

.mw-premium__feats li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: #66bb6a;
  font-weight: 800;
}

/* Product grids reuse existing cards */
.mw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mw-grid > li,
.mw-grid .product_item {
  min-width: 0;
}

.mw-grid .productsingle.mw-card {
  height: 100%;
}

.mw-grid--scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  list-style: none;
  margin: 0;
  padding-right: 0;
  padding-left: 0;
}

.mw-grid--scroll > li {
  flex: 0 0 240px;
}

/* Category blocks */
.mw-catblock {
  margin-bottom: 36px;
}

.mw-catblock:last-child {
  margin-bottom: 0;
}

/* Premium CTA band */
.mw-cta {
  padding: 56px 0;
  background:
    linear-gradient(105deg, rgba(61, 72, 92, 0.94), rgba(239, 15, 0, 0.85)),
    url('../img/logo.png') center/cover;
  color: #fff;
  text-align: center;
}

.mw-cta__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.mw-cta__text {
  max-width: 34em;
  margin: 0 auto 22px;
  opacity: 0.92;
  line-height: 1.7;
}

.mw-cta .mw-btn--primary {
  background: #fff;
  color: var(--mw-red) !important;
  box-shadow: none;
}

/* Reviews */
.mw-reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mw-review {
  background: #fff;
  border: 1px solid var(--mw-line);
  border-radius: var(--mw-radius);
  padding: 18px;
  box-shadow: var(--mw-shadow);
}

.mw-review__stars {
  color: var(--mw-orange);
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.mw-review__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--mw-ink);
  margin: 0 0 14px;
  min-height: 4.5em;
}

.mw-review__foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mw-review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mw-mist);
}

.mw-review__who {
  font-size: 0.82rem;
  font-weight: 700;
}

.mw-review__product {
  font-size: 0.72rem;
  color: var(--mw-ink-soft);
}

/* Why MellatWeb */
.mw-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mw-why__card {
  background: #fff;
  border-radius: var(--mw-radius);
  padding: 24px;
  border: 1px solid var(--mw-line);
  box-shadow: var(--mw-shadow);
}

.mw-why__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 127, 0, 0.12);
  color: var(--mw-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mw-why__card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mw-why__card p {
  margin: 0;
  color: var(--mw-ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Free products */
.mw-free-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mw-free-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mw-free-section__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #1760d6;
  background: #e4efff;
  font-size: 22px;
}

.mw-section__more i { margin-right: 4px; font-size: 16px; vertical-align: -1px; }

.mw-free-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e8ee;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(35, 44, 60, .10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mw-free-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 105, 238, .25);
  box-shadow: 0 12px 25px rgba(35, 44, 60, .16);
}

.mw-free-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dce9ff, #f3f6fb);
}

.mw-free-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}

.mw-free-card:hover .mw-free-card__media img { transform: scale(1.04); }

.mw-free-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1556c0;
  background: #e4efff;
  font-size: .72rem;
  font-weight: 800;
}

.mw-free-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 13px;
  text-align: right;
}

.mw-free-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  color: #5375a7;
  font-size: .72rem;
  font-weight: 700;
}

.mw-free-card__eyebrow i,
.mw-free-card__meta i { font-size: 15px; }

.mw-free-card h3 {
  margin: 0;
  min-height: 3.1em;
  font-size: .95rem;
  line-height: 1.65;
  font-weight: 800;
}

.mw-free-card h3 a {
  color: #15233d;
  text-decoration: none;
}

.mw-free-card h3 a:hover { color: #185fd0; }

.mw-free-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: #7a879a;
  font-size: .75rem;
}

.mw-free-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tag search cards (fallback when not in homepage vertical ticker) */
.mw-tag-card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

.mw-tag-card {
  min-width: 0;
  list-style: none;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
}

.mw-tag-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--mw-pt-card, #22262e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  text-decoration: none !important;
  color: #f2f4f7 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mw-tag-card__link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 127, 0, 0.35);
}

.mw-tag-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #161920;
  margin-bottom: 10px;
}

.mw-tag-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

.mw-tag-card__title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.mw-tag-card .mw-pt-recent-meta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffc107;
}

@media (max-width: 1100px) {
  .mw-tag-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .mw-tag-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Motion */
@keyframes mw-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mw-pt-pulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(255, 127, 0, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 18px rgba(255, 127, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.35); }
}

.mw-pt-slider-card,
.mw-pt-side-card {
  animation: mw-rise 0.55s ease both;
}

.mw-pt-side-card { animation-delay: 0.08s; }

.mw-pt-tile {
  animation: mw-rise 0.5s ease both;
}
.mw-pt-tile:nth-child(1) { animation-delay: 0.12s; }
.mw-pt-tile:nth-child(2) { animation-delay: 0.18s; }
.mw-pt-tile:nth-child(3) { animation-delay: 0.24s; }
.mw-pt-tile:nth-child(4) { animation-delay: 0.3s; }

.mw-premium-card,
.mw-why__card,
.mw-review {
  animation: mw-rise 0.5s ease both;
}

@media (max-width: 1100px) {
  .mw-pt-top { grid-template-columns: 1fr; }
  .mw-pt-tiles { grid-template-columns: repeat(2, 1fr); }
  .mw-sellers { grid-template-columns: repeat(4, 1fr); }
  .mw-premium__feats { gap: 10px 18px; }
  .mw-grid { grid-template-columns: repeat(3, 1fr); }
  .mw-reviews { grid-template-columns: repeat(2, 1fr); }
  .mw-why { grid-template-columns: repeat(2, 1fr); }
  .mw-free-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .mw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-pt-slide {
    grid-template-columns: 1fr;
    padding: 22px 18px 56px;
  }
  .mw-pt-slide__visual { order: -1; }
  .mw-pt-slide__ring { width: 140px; }
  .mw-pt-tiles { grid-template-columns: 1fr; }
  .mw-free-grid { grid-template-columns: 1fr; gap: 14px; }
  .mw-free-card { flex-direction: row; min-height: 132px; }
  .mw-free-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 132px; }
  .mw-free-card__body { padding: 12px 13px; }
  .mw-free-card h3 { min-height: 0; font-size: .86rem; }
  .mw-free-card__eyebrow { margin-bottom: 5px; }
}
