/* =====================================================
   OFFER BANNER — بنر تخفیف ویژه
===================================================== */

:root {
  --br-2: 8px;
  --br-3: 12px;
  --br-4: 16px;
  --br-5: 24px;
  --br-round: 9999px;
  --fs-2-5: 0.722rem;
  --fs-3: 0.833rem;
  --fs-4: 1rem;
  --fs-5: 1.2rem;
  --fs-6: 1.44rem;
  --fs-7: 1.728rem;
  --fs-8: 2.074rem;
  --white: #ffffff;
}

/* ═══════════════════════════════════════════════════════
   WRAPPER
═══════════════════════════════════════════════════════ */
.offer-banner {
  padding: 40px 0;
}

.offer-banner .page-container {
  max-width: 100%;
}

.offer-banner .page-width {
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  max-width: 1220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════
   OFFER CARD
═══════════════════════════════════════════════════════ */
.offer-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 36px 44px;
  border-radius: var(--br-5);
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--offer-from) 0%, var(--offer-to) 100%);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .25);
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.08) 0%, transparent 40%);
  pointer-events: none;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35);
}

.offer-card-alt {
  /* تنوع رنگ اگر بیش از یک بنر باشد */
}

/* ───── محتوا (راست) ───── */
.offer-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.offer-title {
  margin: 0 0 10px;
  font-size: var(--fs-7);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.3px;
  color: var(--white);
}

.offer-subtitle {
  margin: 0 0 20px;
  font-size: var(--fs-4);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
  max-width: 40em;
}

.offer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 13px;
  background: var(--white);
  color: var(--offer-from, #b32a65);
  border-radius: var(--br-3);
  font-size: var(--fs-4);
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .3);
}

.offer-btn svg {
  transition: transform .25s ease;
  transform: scaleX(-1);
}

.offer-card:hover .offer-btn {
  transform: translateX(-4px);
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .4);
}

.offer-card:hover .offer-btn svg {
  transform: scaleX(-1) translateX(-4px);
}

/* ───── عکس (چپ) ───── */
.offer-media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  min-height: 180px;
}

.offer-media picture,
.offer-media img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .3));
  transition: transform .4s ease;
}

.offer-card:hover .offer-media img {
  transform: scale(1.05) rotate(-2deg);
}

/* ───── اگر عکس نداشت: دیزاین جایگزین ───── */
.offer-deco {
  position: relative;
  z-index: 2;
  width: 260px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-deco .deco-emoji {
  font-size: 6rem;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .3));
  animation: decoFloat 4s ease-in-out infinite;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
}

.deco-1 { width: 180px; height: 180px; top: 0; right: 0; }
.deco-2 { width: 120px; height: 120px; bottom: 0; left: 40px; }
.deco-3 { width: 60px;  height: 60px;  top: 20px; left: 0; }

@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .offer-banner {
    padding: 24px 0;
  }

  .offer-card {
    grid-template-columns: 1fr;
    padding: 28px 24px 32px;
    gap: 16px;
    text-align: center;
    min-height: auto;
  }

  .offer-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .offer-title {
    font-size: var(--fs-5);
    margin-bottom: 8px;
  }

  .offer-subtitle {
    font-size: .88rem;
    margin-bottom: 16px;
  }

  .offer-btn {
    padding: 10px 20px 11px;
    font-size: .88rem;
  }

  .offer-media {
    max-width: 100%;
    min-height: 140px;
    order: -1;
  }

  .offer-media img {
    max-height: 160px;
  }

  .offer-deco {
    width: 100%;
    height: 120px;
    order: -1;
  }

  .offer-deco .deco-emoji {
    font-size: 4rem;
  }

  .deco-1 { width: 120px; height: 120px; }
  .deco-2 { width: 80px;  height: 80px;  left: 20px; }
  .deco-3 { width: 40px;  height: 40px; }
}

@media (max-width: 480px) {
  .offer-card {
    padding: 22px 20px 26px;
    border-radius: var(--br-4);
  }

  .offer-title {
    font-size: 1.05rem;
  }

  .offer-subtitle {
    font-size: .8rem;
  }

  .offer-btn {
    padding: 9px 16px 10px;
    font-size: .8rem;
  }

  .offer-media img {
    max-height: 130px;
  }

  .offer-deco { height: 100px; }
  .offer-deco .deco-emoji { font-size: 3.2rem; }
}

/* ═══════════════════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════════════════ */
[data-theme="dark"] .offer-card {
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
}

[data-theme="dark"] .offer-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .75);
}