/* ── لایهٔ تم شب یلدا — آجیل و خشکبار جواهردانه ─────────────────────────
   بعد از storefront.css پوستهٔ مادر بارگذاری می‌شود؛ فقط رنگ‌ها و
   بخش‌های یلدا را روی همان ساختار موجود تنظیم می‌کند.                     */

.jd-yalda {
    --jd-wine: #6b1a33;
    --jd-deep: #1b1030;
    --jd-gold: #f0c880;
    --jd-ivory: #f7efe2;
    --jd-line: #e0cfb5;
    --jd-teal: #8e2540;
    --jd-yalda-night: #150c26;
}

.jd-yalda :is(.jd-header, .jd-main) :focus-visible { outline-color: var(--jd-gold); }

/* ── نوار اعلان یلدا ─────────────────────────────────────────────────── */
.jd-yalda-bar {
    background: linear-gradient(90deg, #3d0e1e, #7d1c33 48%, #3d0e1e);
    color: #f8e6c8;
    font-size: 12.5px;
    border-bottom: 1px solid #f0c88040;
}

.jd-yalda-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 16px;
    min-height: 38px;
    text-align: center;
}

.jd-yalda-bar p { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.jd-yalda-bar b { color: #ffdca6; font-weight: 700; font-variant-numeric: tabular-nums; }
.jd-yalda-bar a { color: #ffdca6; font-weight: 700; white-space: nowrap; border-bottom: 1px solid #ffdca659; }
.jd-yalda-bar a:hover { color: #fff3dc; }

/* ── بخش پیشواز یلدا ─────────────────────────────────────────────────── */
.jd-yalda-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: clamp(18px, 4vw, 54px);
    margin: 20px auto 18px;
    padding: clamp(26px, 4.4vw, 56px);
    border-radius: 17px;
    color: #fbf0dd;
    background:
        radial-gradient(circle at 82% 14%, #8a2a48 0%, transparent 55%),
        radial-gradient(circle at 8% 92%, #3f2160 0%, transparent 58%),
        linear-gradient(142deg, var(--jd-yalda-night) 0%, #241031 58%, #180d29 100%);
}

.jd-yalda-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    background-image:
        radial-gradient(#f8d9a8 1px, transparent 1.5px),
        radial-gradient(#f8d9a8 .8px, transparent 1.3px);
    background-size: 118px 118px, 76px 76px;
    background-position: 0 0, 38px 44px;
}

.jd-yalda-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -70px;
    bottom: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, #c02a4b3d, transparent 68%);
    pointer-events: none;
}

.jd-yalda-kicker {
    margin: 0 0 12px;
    padding: 5px 14px;
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--jd-gold);
    border: 1px solid #f0c8804d;
    border-radius: 999px;
}

.jd-redesign .jd-yalda-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.03em;
    color: #fdf3e2;
}

.jd-yalda-hero h1 em { font-style: normal; color: var(--jd-gold); }

.jd-yalda-lead {
    margin: 0 0 18px;
    max-width: 46ch;
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 2;
    color: #e7d6c2;
}

/* شمارش معکوس */
.jd-yalda-timer { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 8px; }

.jd-yalda-unit {
    min-width: clamp(66px, 7vw, 84px);
    padding: 10px 8px 8px;
    border-radius: 11px;
    text-align: center;
    background: #ffffff12;
    border: 1px solid #f0c8804a;
    box-shadow: inset 0 1px 0 #ffffff1a;
}

.jd-yalda-unit b {
    display: block;
    font-size: clamp(21px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    color: #ffe9c4;
    font-variant-numeric: tabular-nums;
}

.jd-yalda-unit small { font-size: 10.5px; color: #d9c1a1; }

.jd-yalda-note { margin: 0 0 16px; font-size: 12px; color: #cdb79b; }
.jd-yalda-note.is-celebrate { color: var(--jd-gold); font-weight: 700; font-size: 13.5px; }

.jd-yalda-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jd-yalda-hero .jd-button-light { background: var(--jd-gold); color: #401226; }
.jd-yalda-hero .jd-button-light:hover { background: #ffdda5; color: #401226; }
.jd-yalda-hero .jd-button-quiet { border-color: #f0c88073; color: #f7e7cf; }
.jd-yalda-hero .jd-button-quiet:hover { border-color: var(--jd-gold); color: #fff6e7; }

/* نشانِ یلدا */
.jd-yalda-visual { display: grid; place-items: center; }

.jd-yalda-seal {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(168px, 21vw, 252px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #f0c8805c;
    background:
        radial-gradient(circle at 50% 26%, #ffffff1f, transparent 62%),
        radial-gradient(circle at 50% 120%, #9c1f3a66, transparent 70%);
    box-shadow: 0 18px 46px #00000061, inset 0 0 0 6px #ffffff08;
}

.jd-yalda-seal::before {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    border: 1px dashed #f0c8804d;
}

.jd-yalda-seal strong {
    display: block;
    text-align: center;
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--jd-gold);
    text-shadow: 0 2px 18px #0000005c;
}

.jd-yalda-seal small {
    display: block;
    margin-top: 4px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .3em;
    color: #e2cbae;
}

/* ── شرایط فروش یلدا ─────────────────────────────────────────────────── */
.jd-yalda-terms {
    margin: 0 auto 22px;
    padding: clamp(18px, 2.6vw, 28px);
    border-radius: 17px;
    background: var(--jd-white);
    border: 1px solid var(--jd-line);
    box-shadow: 0 8px 24px #641d320f;
}

.jd-yalda-terms-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    margin-bottom: 14px;
}

.jd-yalda-terms-head h2 { margin: 0; font-size: clamp(18px, 2.1vw, 25px); font-weight: 700; color: var(--jd-wine); }
.jd-yalda-terms-head span { font-size: 11.5px; color: var(--jd-muted); }

.jd-yalda-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.jd-yalda-card {
    padding: 15px 15px 16px;
    border-radius: 13px;
    border: 1px solid var(--jd-line);
    background: linear-gradient(180deg, #fffdf7, #faf1e3);
}

.jd-yalda-card h3 {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jd-wine);
}

.jd-yalda-ico { font-size: 16px; line-height: 1; }
.jd-yalda-card p { margin: 0; font-size: 12px; line-height: 1.95; color: var(--jd-muted); }
.jd-yalda-card b { color: var(--jd-teal); }

/* ── واکنش‌گرا ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .jd-yalda-hero { grid-template-columns: 1fr; }
    .jd-yalda-visual { display: none; }
    .jd-yalda-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .jd-yalda-bar { font-size: 11px; }
    .jd-yalda-bar-inner { min-height: 34px; gap: 2px 10px; padding: 5px 0; }
    .jd-yalda-hero { padding: 22px 18px 24px; margin: 14px auto; }
    .jd-redesign .jd-yalda-hero h1 { font-size: 25px; line-height: 1.5; }
    .jd-yalda-lead { font-size: 12.5px; line-height: 1.9; }
    .jd-yalda-timer { gap: 7px; }
    .jd-yalda-unit { flex: 1 1 0; min-width: 62px; padding: 8px 4px 6px; }
    .jd-yalda-actions { width: 100%; }
    .jd-yalda-actions .jd-button { flex: 1 1 auto; }
    .jd-yalda-cards { grid-template-columns: 1fr; }
}
