/* ==========================================================================
   Arcopet v2 · لندینگ کمپین (بلک فرایدی، پت پارتی، پک‌های بصرفه و کمپین‌های تازه)
   ساختار: templates/offer.php و parts/campaign/*. فقط var(--v2-*) (رنگ‌ها در tokens.css).
   فهرست محصولات همان archive.css و cards.css است؛ اینجا فقط بخش‌های دور آن.
   وضعیت زمانی: کلاس is-before / is-live / is-ended / is-open روی main؛ هر عنصر data-phase فقط در وضعیت خودش دیده می‌شود.
   ========================================================================== */

.v2-camp.is-before [data-phase]:not([data-phase~="before"]),
.v2-camp.is-live [data-phase]:not([data-phase~="live"]),
.v2-camp.is-ended [data-phase]:not([data-phase~="ended"]),
.v2-camp.is-open [data-phase]:not([data-phase~="open"]){ display:none!important; }

.v2-camp{ --camp-bg:var(--v2-camp-party-bg); }
.v2-camp-black{ --camp-bg:var(--v2-camp-black-bg); }
.v2-camp-pack{ --camp-bg:var(--v2-camp-pack-bg); }
.v2-camp [id]{ scroll-margin-top:calc(var(--v2-bar-h) + 16px); }

/* ---------- هیرو ---------- */
.v2-camp-hero{
  position:relative; display:grid; gap:20px; margin:12px 0 0; padding:24px 18px;
  border-radius:var(--v2-radius-xl); background:var(--camp-bg); color:var(--v2-camp-on);
  box-shadow:var(--v2-shadow-raised); overflow:hidden; isolation:isolate;
}
.v2-camp-black .v2-camp-hero{ box-shadow:var(--v2-camp-glow); }
.v2-camp-hero-main{ min-width:0; }
.v2-camp-kicker{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 10px;
  font-size:var(--v2-fs-14); font-weight:500; color:var(--v2-camp-on-muted);
}
.v2-camp-status{
  display:inline-flex; align-items:center; gap:6px; min-height:26px; padding:0 10px; border-radius:999px;
  background:var(--v2-camp-tile); border:1px solid var(--v2-camp-line); color:var(--v2-camp-on); font-size:12px; font-weight:700;
}
.v2-camp-status.is-live::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--v2-camp-live); }
.v2-camp-title{
  margin:0; font-size:1.75rem; line-height:1.5; font-weight:800; color:var(--v2-camp-on); text-wrap:balance;
}
.v2-camp-badge{
  display:inline-flex; align-items:center; min-height:34px; margin:12px 0 0; padding:0 14px; border-radius:999px;
  background:var(--v2-camp-accent); color:var(--v2-camp-on-accent); font-size:var(--v2-fs-16); font-weight:800;
}
.v2-camp-lead{ margin:12px 0 0; max-width:56ch; font-size:var(--v2-fs-16); line-height:2; color:var(--v2-camp-on-muted); }
.v2-camp-actions{ position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:18px 0 0; }
.v2-camp-cta{ background:var(--v2-camp-on); color:var(--v2-brand-pressed); }
.v2-camp-cta:hover{ background:var(--v2-tint); }
.v2-camp-cta .v2-icon{ width:20px; height:20px; }
.v2-camp-btn-ghost{
  border:1px solid var(--v2-camp-line); background:var(--v2-camp-tile); color:var(--v2-camp-on); font-weight:500; padding-inline:16px;
}
.v2-camp-btn-ghost:hover{ background:var(--v2-camp-tile-strong); }
.v2-camp-btn-ghost .v2-icon{ width:20px; height:20px; }
.v2-camp-btn-ghost[hidden], .v2-camp-share[hidden]{ display:none; }
.v2-camp-share{
  display:inline-grid; place-items:center; width:48px; height:48px; border-radius:var(--v2-radius-m);
  border:1px solid var(--v2-camp-line); background:var(--v2-camp-tile); color:var(--v2-camp-on);
}
.v2-camp-share:hover{ background:var(--v2-camp-tile-strong); }
.v2-camp-share .v2-icon{ width:22px; height:22px; }
body.v2 .v2-camp-hero :focus-visible{ outline-color:var(--v2-camp-on); }
.v2-camp-toast{ flex-basis:100%; min-height:0; font-size:var(--v2-fs-14); color:var(--v2-camp-accent); }
.v2-camp-toast:empty{ display:none; }
.v2-camp-facts{
  display:flex; flex-wrap:wrap; gap:6px 16px; margin:18px 0 0; padding:14px 0 0; list-style:none;
  border-top:1px solid var(--v2-camp-line); font-size:var(--v2-fs-14); color:var(--v2-camp-on-muted);
}
.v2-camp-facts li{ display:inline-flex; align-items:center; gap:4px; }
/* موبایل: شمارش معکوس زودتر دیده شود (همین مزیت‌ها در نوار بالای فوتر هم هست) */
@media (max-width:599px){ .v2-camp-facts{ display:none; } .v2-camp-hero{ gap:16px; } }
.v2-camp-facts .v2-icon{ width:18px; height:18px; color:var(--v2-camp-accent); }

.v2-camp-hero-side{ display:grid; gap:14px; align-content:center; min-width:0; }
.v2-camp-art{ display:block; width:100%; height:auto; max-height:240px; object-fit:cover; border-radius:var(--v2-radius-l); }
.v2-camp-clock{
  padding:16px; border-radius:var(--v2-radius-l); background:var(--v2-camp-tile-strong); border:1px solid var(--v2-camp-line);
}
.v2-camp-count-label{ margin:0 0 10px; font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-camp-on); text-align:center; }
.v2-camp-count-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; }
.v2-camp-unit{
  display:grid; justify-items:center; gap:2px; padding:10px 4px; border-radius:var(--v2-radius-m);
  background:var(--v2-camp-tile); border:1px solid var(--v2-camp-line);
}
.v2-camp-unit b{ font-size:1.625rem; line-height:1.3; font-weight:800; font-variant-numeric:tabular-nums; color:var(--v2-camp-on); }
.v2-camp-unit small{ font-size:12px; color:var(--v2-camp-on-muted); }
.v2-camp-over{ margin:0; font-size:var(--v2-fs-16); line-height:1.9; font-weight:500; }
.v2-camp-dates{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0 0; }
.v2-camp-dates:first-child{ margin-top:0; }
.v2-camp-dates > div{ padding:8px 12px; border-radius:var(--v2-radius-m); background:var(--v2-camp-tile); }
.v2-camp-dates dt{ font-size:12px; color:var(--v2-camp-on-muted); }
.v2-camp-dates dd{ margin:2px 0 0; font-size:var(--v2-fs-16); font-weight:700; }

@media (min-width:768px){
  .v2-camp-hero{ padding:32px; }
  .v2-camp-title{ font-size:2.25rem; }
}
@media (min-width:992px){
  .v2-camp-hero{ grid-template-columns:minmax(0,1fr) 380px; gap:40px; align-items:center; padding:44px 48px; }
  .v2-camp-title{ font-size:2.75rem; line-height:1.45; }
  .v2-camp-lead{ font-size:var(--v2-fs-18); }
  .v2-camp-unit b{ font-size:2rem; }
}

/* ---------- سربرگ بخش‌ها ---------- */
.v2-camp-section{ margin:40px 0 0; }
@media (min-width:992px){ .v2-camp-section{ margin-top:56px; } }
.v2-camp-head{ display:flex; align-items:center; gap:12px; margin:0 0 16px; }
.v2-camp-head > div{ flex:1; min-width:0; }
.v2-camp-head-icon{
  display:inline-grid; place-items:center; flex:none; width:40px; height:40px; border-radius:var(--v2-radius-m);
  background:var(--v2-tint); color:var(--v2-brand);
}
.v2-camp-head-icon .v2-icon{ width:22px; height:22px; }
.v2-camp-h2{ margin:0; font-size:var(--v2-fs-22); line-height:1.6; font-weight:800; color:var(--v2-heading); text-wrap:balance; }
.v2-camp-sub{ margin:2px 0 0; font-size:var(--v2-fs-14); line-height:1.8; color:var(--v2-text-muted); }
.v2-camp-more{
  display:inline-flex; align-items:center; gap:2px; flex:none; min-height:var(--v2-tap);
  font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-link); white-space:nowrap;
}
.v2-camp-more .v2-icon{ width:18px; height:18px; }

/* ---------- برنامه‌ی زمانی ---------- */
/* موبایل: یک ردیف قابل اسکرول (تا فهرست محصولات پایین نرود)؛ از ۷۶۸: ستون‌های مساوی */
.v2-camp-tl{
  display:flex; gap:12px; margin:0 calc(var(--v2-gutter-r) * -1) 0 calc(var(--v2-gutter-l) * -1); padding:2px var(--v2-gutter-r) 6px var(--v2-gutter-l);
  list-style:none; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scroll-padding-inline:16px; scrollbar-width:none;
}
.v2-camp-tl::-webkit-scrollbar{ display:none; }
.v2-camp-tl-item{ position:relative; display:grid; grid-template-rows:20px auto; gap:10px; flex:0 0 min(72vw, 260px); scroll-snap-align:start; }
.v2-camp-tl-item::before{
  content:""; position:absolute; top:9px; inset-inline:20px -12px; height:2px; background:var(--v2-border);
}
.v2-camp-tl-item:last-child::before{ display:none; }
.v2-camp-tl-dot{
  position:relative; width:14px; height:14px; margin:3px 14px 0; border-radius:50%;
  background:var(--v2-surface); border:2px solid var(--v2-border-strong);
}
.v2-camp-tl-card{
  height:100%; padding:12px 14px; border-radius:var(--v2-radius-l); border:1px solid var(--v2-border); background:var(--v2-surface);
}
.v2-camp-tl-date{ margin:0 0 2px; font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-tint-text); }
.v2-camp-tl-title{ margin:0; font-size:var(--v2-fs-16); line-height:1.8; font-weight:800; color:var(--v2-heading); }
.v2-camp-tl-text{ margin:2px 0 0; font-size:var(--v2-fs-14); line-height:1.9; color:var(--v2-text-muted); }
.v2-camp-tl-item.is-past .v2-camp-tl-dot{ background:var(--v2-border-strong); }
.v2-camp-tl-item.is-past .v2-camp-tl-card{ background:var(--v2-surface-subtle); }
.v2-camp-tl-item.is-current .v2-camp-tl-dot{ background:var(--v2-brand); border-color:var(--v2-brand); box-shadow:0 0 0 4px var(--v2-brand-ring); }
.v2-camp-tl-item.is-current .v2-camp-tl-card{ border-color:var(--v2-brand); background:var(--v2-tint); }
@media (min-width:768px){
  .v2-camp-tl{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:16px; margin-inline:0; padding:0; overflow:visible; }
  .v2-camp-tl-item{ gap:12px; }
  .v2-camp-tl-item::before{ inset-inline:24px -16px; }
  .v2-camp-tl-dot{ margin-inline:16px; }
  .v2-camp-tl-card{ padding:14px 16px; }
}

/* ---------- کدهای تخفیف ---------- */
.v2-camp-code-list{ display:grid; gap:12px; margin:0; padding:0; list-style:none; }
@media (min-width:768px){ .v2-camp-code-list{ grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); } }
.v2-camp-code{
  display:flex; align-items:stretch; border-radius:var(--v2-radius-l); border:1px solid var(--v2-border); background:var(--v2-surface); overflow:hidden;
}
.v2-camp-code-info{ flex:1; min-width:0; padding:14px 16px; }
.v2-camp-code-title{ margin:0; font-size:var(--v2-fs-16); line-height:1.8; font-weight:800; color:var(--v2-heading); }
.v2-camp-code-note{ margin:2px 0 0; font-size:var(--v2-fs-14); line-height:1.8; color:var(--v2-text-muted); }
body.v2 .v2-camp-code-btn{
  display:grid; align-content:center; justify-items:center; gap:4px; flex:none; min-width:124px; padding:10px 14px;
  background:var(--v2-camp-code-bg); color:var(--v2-camp-code-text); border-inline-start:2px dashed var(--v2-camp-code-line);
  transition:filter .15s;
}
body.v2 .v2-camp-code-btn:hover{ filter:brightness(.97); }
.v2-camp-code-value{ font-family:ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size:1.125rem; font-weight:800; letter-spacing:.06em; }
.v2-camp-code-copy{ display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; }
.v2-camp-code-copy .v2-icon{ width:14px; height:14px; }
.v2-camp-code-btn.is-copied{ background:var(--v2-tint); color:var(--v2-tint-text); border-inline-start-color:var(--v2-brand); }

/* ---------- فهرست محصولات ---------- */
.v2-camp-offers .v2-archive-toolbar{ padding-top:0; }
.v2-camp-empty{
  display:grid; justify-items:center; gap:8px; padding:36px 20px; text-align:center;
  border:1px dashed var(--v2-border-strong); border-radius:var(--v2-radius-xl); background:var(--v2-surface-subtle);
}
.v2-camp-empty[hidden]{ display:none; }
.v2-camp-empty-title{ margin:0; font-size:var(--v2-fs-18); line-height:1.8; font-weight:800; color:var(--v2-heading); }
.v2-camp-empty-text{ margin:0 0 8px; font-size:var(--v2-fs-14); color:var(--v2-text-muted); }
.v2-camp.is-empty [data-v2-camp-grid]{ display:none; }

/* ---------- راهنمای خرید ---------- */
.v2-camp-step-list{ display:grid; gap:12px; margin:0; padding:0; list-style:none; counter-reset:none; }
@media (min-width:600px){ .v2-camp-step-list{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:992px){ .v2-camp-step-list{ grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; } }
.v2-camp-step{
  position:relative; padding:16px 16px 16px; border-radius:var(--v2-radius-l); background:var(--v2-surface-subtle);
}
.v2-camp-step-num{
  display:inline-grid; place-items:center; width:32px; height:32px; margin:0 0 8px; border-radius:50%;
  background:var(--v2-brand); color:var(--v2-on-brand); font-size:var(--v2-fs-16); font-weight:800;
}
.v2-camp-step-title{ margin:0; font-size:var(--v2-fs-16); line-height:1.8; font-weight:800; color:var(--v2-heading); }
.v2-camp-step-text{ margin:4px 0 0; font-size:var(--v2-fs-14); line-height:1.95; color:var(--v2-text-subtle); }

/* ---------- دسته‌ها ---------- */
.v2-camp-cat-list{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin:0; padding:0; list-style:none; }
@media (min-width:768px){ .v2-camp-cat-list{ grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; } }
.v2-camp-cat{
  display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:56px; padding:8px 14px;
  border:1px solid var(--v2-border); border-radius:var(--v2-radius-l); background:var(--v2-surface);
  font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-text); transition:border-color .15s, background-color .15s;
}
.v2-camp-cat:hover{ border-color:var(--v2-brand); background:var(--v2-tint); color:var(--v2-tint-text); }
.v2-camp-cat .v2-icon{ width:18px; height:18px; opacity:.6; }

/* ---------- مقاله‌های مجله ---------- */
.v2-camp-guide-list{ display:grid; gap:12px; margin:0; padding:0; list-style:none; }
@media (min-width:768px){ .v2-camp-guide-list{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; } }
.v2-camp-guide{
  display:grid; grid-template-columns:112px minmax(0,1fr); height:100%; border:1px solid var(--v2-border);
  border-radius:var(--v2-radius-l); background:var(--v2-surface); overflow:hidden; transition:border-color .15s, box-shadow .15s;
}
.v2-camp-guide:hover{ border-color:var(--v2-border-strong); box-shadow:var(--v2-shadow-form); }
.v2-camp-guide-media{ display:block; background:var(--v2-surface-subtle); aspect-ratio:1 / 1; }
.v2-camp-guide-media img{ display:block; width:100%; height:100%; object-fit:cover; }
.v2-camp-guide-body{ display:grid; align-content:center; gap:6px; padding:12px 14px; min-width:0; }
.v2-camp-guide-title{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
  font-size:var(--v2-fs-16); line-height:1.8; font-weight:700; color:var(--v2-heading);
}
.v2-camp-guide-meta{ font-size:12px; color:var(--v2-text-muted); }
.v2-camp-guide.is-noimg{ grid-template-columns:minmax(0,1fr); grid-template-rows:auto; }
@media (min-width:768px){
  .v2-camp-guide{ grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; }
  .v2-camp-guide-media{ aspect-ratio:3 / 2; }
  .v2-camp-guide-body{ align-content:start; padding:14px 16px 16px; }
}

/* ---------- متن و سوالات (همان اجزای آرشیو) ---------- */
.v2-camp-about{ margin-top:56px; }

/* ---------- کمپین‌های دیگر ---------- */
.v2-camp-other-list{ display:grid; gap:12px; margin:0; padding:0; list-style:none; }
@media (min-width:600px){ .v2-camp-other-list{ grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px; } }
.v2-camp-other{
  --camp-bg:var(--v2-camp-party-bg);
  display:grid; gap:4px; padding:20px; border-radius:var(--v2-radius-l); background:var(--camp-bg); color:var(--v2-camp-on);
  transition:transform .15s;
}
.v2-camp-other.v2-camp-black{ --camp-bg:var(--v2-camp-black-bg); }
.v2-camp-other.v2-camp-pack{ --camp-bg:var(--v2-camp-pack-bg); }
.v2-camp-other-kicker{ font-size:var(--v2-fs-14); color:var(--v2-camp-on-muted); }
.v2-camp-other-title{ font-size:var(--v2-fs-22); line-height:1.6; font-weight:800; }
.v2-camp-other-go{ display:inline-flex; align-items:center; gap:4px; margin-top:8px; font-size:var(--v2-fs-14); font-weight:700; }
.v2-camp-other-go .v2-icon{ width:18px; height:18px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference){ .v2-camp-other:hover{ transform:translateY(-2px); } }

/* ---------- باکس «جمعه سیاه» بالای فهرست (parts/campaign/flash.php) ----------
   تیره با لبه‌ی طلایی، ردیف افقی کارت‌ها؛ متفاوت از فهرست اصلی. رنگ‌ها از tokens.css. */
.v2-camp-flash{
  position:relative; margin:20px 0; padding:16px; border-radius:var(--v2-radius-l, 16px); color:var(--v2-camp-on);
  background:var(--v2-camp-black-bg); border:2px solid var(--v2-camp-accent); box-shadow:var(--v2-camp-glow);
}
.v2-camp-flash[hidden]{ display:none; }
.v2-camp-flash-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; margin-bottom:14px; }
.v2-camp-flash-name{ display:flex; align-items:center; gap:10px; }
.v2-camp-flash-fire{ font-size:34px; line-height:1; display:inline-flex; }
.v2-camp-flash-title{ margin:0; font-size:22px; font-weight:900; line-height:1.4; color:var(--v2-camp-accent); }
.v2-camp-flash-sub{ display:flex; flex-wrap:wrap; gap:4px 10px; margin:2px 0 0; font-size:13px; color:var(--v2-camp-on-muted); }
.v2-camp-flash-day{ padding:0 10px; border-radius:999px; background:var(--v2-camp-accent); color:var(--v2-camp-on-accent); font-weight:800; }
.v2-camp-flash-clock{ display:flex; align-items:center; gap:4px; }
.v2-camp-flash-clock i{ font-style:normal; font-weight:800; opacity:.6; }
.v2-camp-flash-when{ margin-inline-end:6px; font-size:12px; color:var(--v2-camp-on-muted); }
.v2-camp-flash [data-flash-phase]{ display:none; }
.v2-camp-flash.is-before [data-flash-phase="before"], .v2-camp-flash.is-live [data-flash-phase="live"]{ display:inline; }
.v2-camp-flash-unit{ display:grid; justify-items:center; min-width:42px; padding:3px 6px; border-radius:10px; background:var(--v2-camp-tile-strong); border:1px solid var(--v2-camp-line); }
.v2-camp-flash-unit b{ font-family:IRANYekan, Vazirmatn, sans-serif; font-size:16px; line-height:1.4; font-weight:800; font-variant-numeric:tabular-nums; }
.v2-camp-flash-unit small{ font-size:10px; color:var(--v2-camp-on-muted); }
.v2-camp-flash-track{
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(200px, 220px); gap:12px; margin:0; padding:2px 2px 8px;
  overflow-x:auto; scroll-snap-type:x mandatory; list-style:none; scrollbar-width:thin;
}
.v2-camp-flash-track > .v2-pcard{ scroll-snap-align:start; color:var(--v2-text); }
@media (max-width:768px){
  .v2-camp-flash{ margin:16px 0; padding:12px; border-radius:var(--v2-radius-m, 12px); }
  .v2-camp-flash-title{ font-size:19px; }
  .v2-camp-flash-fire{ font-size:24px; }
  .v2-camp-flash-track{ grid-auto-columns:minmax(160px, 46%); gap:10px; }
  .v2-camp-flash-unit{ min-width:38px; }
  .v2-camp-flash-unit b{ font-size:14px; }
}
.v2-camp-title .v2-camp-title-fire{ width:.9em; height:.9em; margin-inline-start:.2em; vertical-align:-.08em; }

