/* Sales campaign page (campaign.php), parsateb's look: the brand blue as the background (owner 2026-11-21: «not navy»), no gradients (site rule), the
   medical cross as the eyebrow, red only for the discount; the shop's own cards. */

html:has(body.pbf-page) { scroll-behavior: smooth; }

.pbf {
	--pb-navy: #0a2540;
	--pb-navy-2: #0e3157;
	--pb-blue-2: #0a68b8; /* a darker solid blue for shapes on the blue */
	--pb-pale: #d6ecff;
	--pb-blue: #0373c8;
	--pb-blue-d: #025aa5;
	--pb-blue-l: #59b2f3;
	--pb-soft: #eef6fc;
	--pb-bg2: #f4f8fc;
	--pb-red: #e12d14;
	--pb-ink: #1d2b3a;
	--pb-muted: #687585;
	--pb-line: #e1e9f2;
	overflow-x: clip;
	background: #fff;
	color: var(--pb-ink);
}
.pbf a { text-decoration: none; }
.pbf-cross { flex: none; }

/* ---------- hero ---------- */
.pbf-hero { position: relative; isolation: isolate; overflow: hidden; padding: 26px 0 64px; background: radial-gradient(ellipse 70% 90% at 20% 50%, rgba(64,160,240,.28), transparent 75%), linear-gradient(135deg, #0a7fd6 0%, var(--pb-blue) 45%, #0260ad 100%); color: #fff; }
/* owner 2026-11-21: no circle behind the art, a fine background instead: a fine grid of tiny crosses */
.pbf-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M12 9h2v3h3v2h-3v3h-2v-3H9v-2h3z' fill='%23ffffff' fill-opacity='.14'/%3E%3C/svg%3E") 0 0 / 26px 26px; }
.pbf-hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--pb-blue-d); }
.pbf-hero__plus { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.pbf-hero__plus i { position: absolute; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 1.5h4v4.5h4.5v4H10v4.5H6V10H1.5V6H6z' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; animation: pbf-twinkle 5s ease-in-out infinite; }
.pbf-hero__plus i:nth-child(1) { top: 14%; right: 46%; }
.pbf-hero__plus i:nth-child(2) { top: 72%; right: 52%; animation-delay: 1.2s; width: 10px; height: 10px; }
.pbf-hero__plus i:nth-child(3) { top: 20%; left: 8%; animation-delay: 2.4s; }
.pbf-hero__plus i:nth-child(4) { bottom: 16%; left: 40%; animation-delay: .6s; width: 9px; height: 9px; }
.pbf-hero__plus i:nth-child(5) { top: 40%; right: 4%; animation-delay: 3.1s; width: 10px; height: 10px; }
.pbf-hero__plus i:nth-child(6) { top: 8%; left: 34%; animation-delay: 1.8s; width: 8px; height: 8px; }
.pbf-hero__plus i:nth-child(7) { bottom: 10%; right: 12%; animation-delay: 4s; }
@keyframes pbf-twinkle { 0%, 100% { opacity: 0; transform: scale(.6) rotate(0deg); } 40% { opacity: .9; transform: scale(1) rotate(45deg); } 65% { opacity: .15; } }
.pbf-hero__wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; min-height: 440px; }

.pbf-crumbs { margin-bottom: 18px; color: rgba(255,255,255,.75); font-size: 13px; }
.pbf-crumbs a { color: rgba(255,255,255,.82); }
.pbf-crumbs a:hover { color: #fff; }
.pbf-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--pb-pale); font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.pbf-kicker .pbf-cross { width: 16px; height: 16px; color: #fff; }
.pbf-title { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; font-weight: 700; line-height: 1.25; }
.pbf-title__a { color: #fff; font-size: clamp(40px, 5vw, 70px); }
.pbf-title__b { display: flex; align-items: center; gap: 14px; color: var(--pb-pale); font-size: clamp(26px, 3.2vw, 44px); }
.pbf-title__b::before { content: ""; flex: none; width: 46px; height: 4px; border-radius: 2px; background: #fff; }
.pbf-lead { max-width: 540px; margin: 0 0 26px; color: rgba(255,255,255,.92); font-size: 16px; line-height: 2; }

/* countdowns */
.pbf-cd { margin: 0 0 26px; }
.pbf-cd__cap { margin: 0 0 10px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; }
.pbf-cd__units { display: flex; gap: 8px; }
.pbf-cd__u { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 10px 6px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.12); }
.pbf-cd__u b { color: #fff; font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pbf-cd__u small { margin-top: 2px; color: rgba(255,255,255,.8); font-size: 12px; }
.pbf-cd--slot .pbf-cd__cap, .pbf-stars .pbf-cd__cap { color: var(--pb-muted); }
.pbf-stars .pbf-cd__u { border-color: var(--pb-line); background: var(--pb-soft); }
.pbf-stars .pbf-cd__u b { color: var(--pb-navy); }
.pbf-stars .pbf-cd__u small { color: var(--pb-muted); }
.pbf-cd--mini .pbf-cd__units { justify-content: center; }
.pbf-cd--mini .pbf-cd__u { min-width: 58px; padding: 8px 4px 6px; }
.pbf-cd--mini .pbf-cd__u b { font-size: 22px; }

.pbf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pbf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--pb-blue); border-radius: 8px; background: var(--pb-blue); color: #fff; font-size: 15px; font-weight: 700; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.pbf-btn:hover, .pbf-btn:focus-visible { border-color: var(--pb-blue-d); background: var(--pb-blue-d); color: #fff; }
.pbf-btn--line { border-color: rgba(255,255,255,.7); background: transparent; }
/* on the blue bands the main button is white with blue words */
:is(.pbf-hero, .pbf-final) .pbf-btn:not(.pbf-btn--line) { border-color: #fff; background: #fff; color: var(--pb-blue); }
:is(.pbf-hero, .pbf-final) .pbf-btn:not(.pbf-btn--line):is(:hover, :focus-visible) { border-color: var(--pb-soft); background: var(--pb-soft); color: var(--pb-blue-d); }
.pbf-btn--line:hover, .pbf-btn--line:focus-visible { border-color: #fff; background: rgba(255,255,255,.08); }

/* the art: the drawn shopping bag (or the campaign's own picture) and the red badge */
.pbf-hero__art { position: relative; justify-self: center; width: min(100%, 420px); }
.pbf-art { display: block; width: 100%; height: auto; overflow: visible; }
.pbf-art__f { animation: pbf-float 5s ease-in-out infinite alternate; }
.pbf-art__f2 { animation-duration: 6s; animation-delay: -1.5s; }
.pbf-art__f3 { animation-duration: 5.5s; animation-delay: -2.6s; }
.pbf-art__f4 { animation-duration: 6.5s; animation-delay: -3.4s; }
@keyframes pbf-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.pbf-art__tag { transform-box: view-box; transform-origin: 322px 160px; animation: pbf-tag 5.6s ease-in-out infinite; }
@keyframes pbf-tag { 0%, 66%, 100% { transform: rotate(0); } 71% { transform: rotate(-12deg); } 76% { transform: rotate(9deg); } 81% { transform: rotate(-6deg); } 86% { transform: rotate(3deg); } 91% { transform: rotate(0); } }
/* the campaign's own picture: made on the brand blue, shown frameless, its edges fading into the hero */
.pbf-hero__art:has(.pbf-photo) { width: min(100%, 500px); }
.pbf-photo { aspect-ratio: 1; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); animation: pbf-float 6s ease-in-out infinite alternate; }
.pbf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a cut-out picture (transparent background): no fading edge, its own soft shadow, sits right on the hero */
.pbf-photo--cut { -webkit-mask-image: none; mask-image: none; aspect-ratio: auto; }
.pbf-photo--cut img { height: auto; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(1,40,80,.35)); }
.pbf-badge { position: absolute; bottom: -26px; left: -26px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 138px; aspect-ratio: 1; border-radius: 50%; background: var(--pb-red); box-shadow: 0 18px 36px -12px rgba(225,45,20,.6); color: #fff; line-height: 1.2; animation: pbf-nudge 6s ease-in-out infinite; }
.pbf-badge b { font-size: 40px; font-weight: 700; line-height: 1.1; }
.pbf-badge small { font-size: 14px; font-weight: 700; }
.pbf-badge__ring { position: absolute; inset: -9px; border: 2px dashed rgba(225,45,20,.75); border-radius: 50%; animation: pbf-spin 24s linear infinite; }
@keyframes pbf-spin { to { transform: rotate(360deg); } }
@keyframes pbf-nudge { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-8deg) scale(1.04); } 90% { transform: rotate(6deg) scale(1.04); } 94% { transform: rotate(-3deg); } }

/* ---------- moving band ---------- */
.pbf-ribbon { overflow: hidden; height: 54px; background: var(--pb-blue-d); color: #fff; direction: ltr; }
.pbf-ribbon__track { display: flex; align-items: center; width: max-content; height: 100%; animation: pbf-marquee var(--pbf-marquee, 40s) linear infinite; }
.pbf-ribbon__set { display: flex; flex: none; align-items: center; gap: 20px; padding-inline-end: 20px; }
.pbf-ribbon__set > span { font-size: 16px; font-weight: 700; white-space: nowrap; direction: rtl; }
.pbf-ribbon__set > span.is-en { letter-spacing: 2px; text-transform: uppercase; direction: ltr; }
.pbf-ribbon__set .pbf-cross { width: 12px; height: 12px; color: rgba(255,255,255,.65); }
@keyframes pbf-marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.pbf-head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.pbf-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--pb-blue); font-size: 14px; font-weight: 700; }
.pbf-eyebrow .pbf-cross { width: 13px; height: 13px; }
.pbf-head h2 { margin: 0; color: var(--pb-ink); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.5; }
.pbf-head p:not(.pbf-eyebrow) { margin: 8px 0 0; color: var(--pb-muted); font-size: 15px; line-height: 1.9; }

/* ---------- stars ---------- */
.pbf-stars { padding: 72px 0 76px; }
.pbf-slot-time { display: flex; flex-direction: column; align-items: center; margin: -10px 0 30px; text-align: center; }
.pbf-slot-time .pbf-cd { margin: 0; }
.pbf-slot-next { margin: 0 0 12px; color: var(--pb-ink); font-size: 15px; }
.pbf-slot-next b { color: var(--pb-blue); }
.pbf-stars__grid { gap: 20px; }
.pbf .ps-product.pbf-sold { position: relative; filter: grayscale(1); opacity: .7; }
.pbf .ps-product.pbf-sold::after { content: "فروش رفت"; position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; padding: 4px 12px; border-radius: 6px; background: var(--pb-ink); color: #fff; font-size: 13px; font-weight: 700; }

/* ---------- all offers ---------- */
.pbf-shop { padding: 72px 0 84px; background: var(--pb-bg2); }
.pbf-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 40px; }
.pbf-jump a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--pb-line); border-radius: 8px; background: #fff; color: var(--pb-ink); font-size: 13.5px; font-weight: 600; transition: border-color .2s ease, color .2s ease; }
.pbf-jump a:hover, .pbf-jump a:focus-visible { border-color: var(--pb-blue); color: var(--pb-blue); }
.pbf-row { scroll-margin-top: 150px; }
.pbf-row + .pbf-row { margin-top: 44px; }
.pbf-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pbf-row__head h3 { margin: 0; padding-inline-start: 12px; border-inline-start: 4px solid var(--pb-blue); color: var(--pb-ink); font-size: 20px; font-weight: 700; line-height: 1.5; }
.pbf-row__all { display: inline-flex; flex: none; align-items: center; gap: 6px; color: var(--pb-blue); font-size: 14px; font-weight: 700; }
.pbf-row__all span { width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pbf-row__all:hover { color: var(--pb-blue-d); }
.pbf-empty { margin: 0; padding: 40px 16px; color: var(--pb-muted); text-align: center; }

/* ---------- closing band, the page's own text ---------- */
.pbf-final { padding: 64px 0; background: var(--pb-blue); color: #fff; text-align: center; }
.pbf-final h2 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.pbf-final p { max-width: 620px; margin: 0 auto 24px; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.9; }
.pbf-final .pbf-actions { justify-content: center; }
.pbf-about { padding: 56px 0 64px; }
.pbf-about__box { padding: 28px 32px; border: 1px solid var(--pb-line); border-radius: 12px; background: #fff; }

/* entrance (campaign.js) */
.pbf-js .pbf-rise { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.pbf-js .pbf-rise.is-in { opacity: 1; transform: none; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1024px) {
	.pbf-hero__wrap { gap: 36px; }
}
@media (max-width: 767px) {
	.pbf-hero { padding: 18px 0 72px; background: radial-gradient(ellipse 100% 50% at 50% 82%, rgba(64,160,240,.28), transparent 75%), linear-gradient(160deg, #0a7fd6 0%, var(--pb-blue) 45%, #0260ad 100%); }
	.pbf-hero__wrap { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
	.pbf-crumbs { margin-bottom: 14px; }
	.pbf-kicker { font-size: 12px; letter-spacing: 2px; }
	.pbf-lead { font-size: 15px; margin-bottom: 20px; }
	.pbf-cd__units { gap: 6px; }
	.pbf-cd__u { flex: 1 1 0; min-width: 0; padding: 8px 4px 6px; }
	.pbf-cd__u b { font-size: 22px; }
	.pbf-actions { gap: 10px; }
	.pbf-actions .pbf-btn { flex: 1 1 auto; padding: 0 16px; font-size: 14px; }
	.pbf-hero__art { width: min(86%, 320px); margin-bottom: 8px; }
	.pbf-hero__art:has(.pbf-photo) { width: min(96%, 380px); }
	.pbf-badge { left: -12px; bottom: -30px; width: 108px; }
	.pbf-badge b { font-size: 31px; }
	.pbf-badge small { font-size: 12px; }
	.pbf-ribbon { height: 46px; }
	.pbf-ribbon__set > span { font-size: 14px; }
	.pbf-stars { padding: 52px 0 56px; }
	.pbf-shop { padding: 52px 0 60px; }
	.pbf-head { margin-bottom: 24px; }
	.pbf-jump { flex-wrap: nowrap; justify-content: flex-start; margin: -4px -16px 30px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
	.pbf-jump::-webkit-scrollbar { display: none; }
	.pbf-jump a { flex: none; }
	.pbf-row + .pbf-row { margin-top: 34px; }
	.pbf-row__head h3 { font-size: 17px; }
	.pbf-row__all { font-size: 13px; }
	.pbf-final { padding: 48px 0; }
	.pbf-about__box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.pbf-hero__plus i, .pbf-badge, .pbf-badge__ring, .pbf-ribbon__track, .pbf-art__f, .pbf-art__tag, .pbf-photo { animation: none; }
	.pbf-hero__plus i { opacity: .5; }
	.pbf-js .pbf-rise { opacity: 1; transform: none; transition: none; }
}

/* ---------- a wide campaign picture (2:1 or wider) as the hero's whole background (owner 2026-11-21) ----------
 * products on its left, empty blue on its right under the text. Desktop: the picture fills the hero's height and
 * shrinks (bottom-anchored, top fading) on narrower screens so its products (about the left 55%) never run under the text.
 * Tablets and phones: the text first, then the picture's product side as a band, its top fading into the hero. */
.pbf-hero--banner { --pbf-h: 560px; min-height: var(--pbf-h); background: #0158b0; }
.pbf-hero--banner::before, .pbf-hero--banner .pbf-hero__plus { display: none; }
.pbf-hero--banner .pbf-hero__wrap { grid-template-columns: minmax(0, 580px); justify-content: start; min-height: calc(var(--pbf-h) - 90px); }
.pbf-hero__bg { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.pbf-hero__frame { position: absolute; bottom: 0; left: 0; height: min(100%, calc((100vw - 560px) / (var(--pbf-r, 3) * .55))); aspect-ratio: var(--pbf-r, 3); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%); mask-image: linear-gradient(to bottom, transparent, #000 9%); }
.pbf-hero__mbadge { display: none; }
.pbf-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(to left, transparent, #000 8%); mask-image: linear-gradient(to left, transparent, #000 8%); }
.pbf-hero--banner .pbf-badge { top: 9%; bottom: auto; left: 38%; width: 124px; }
.pbf-hero--banner .pbf-badge b { font-size: 36px; }
@media (max-width: 1024px) {
	.pbf-hero--banner { display: flex; flex-direction: column; min-height: 0; padding: 18px 0 0; background: var(--pb-blue); }
	.pbf-hero--banner .pbf-hero__wrap { grid-template-columns: 1fr; min-height: 0; }
	.pbf-hero--banner .pbf-hero__bg { position: relative; z-index: 0; order: 2; inset: auto; margin-top: -10px; }
	.pbf-hero--banner .pbf-hero__frame { position: relative; left: 0; width: 100%; aspect-ratio: 1.72; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
	.pbf-hero--banner .pbf-hero__img { position: absolute; top: 0; left: 0; width: auto; height: 100%; max-width: none; aspect-ratio: var(--pbf-r, 3); -webkit-mask-image: none; mask-image: none; }
	.pbf-hero--banner .pbf-hero__frame { height: auto; }
	.pbf-hero--banner .pbf-hero__frame .pbf-badge { display: none; }
	.pbf-hero__mbadge { position: absolute; display: block; top: 66px; left: max(16px, 4vw); }
	.pbf-hero__mbadge .pbf-badge { position: relative; inset: auto; width: 100px; }
	.pbf-hero__mbadge .pbf-badge b { font-size: 28px; }
	.pbf-hero__mbadge .pbf-badge small { font-size: 11px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.pbf-hero--banner .pbf-hero__frame { aspect-ratio: 2.1; }
}
/* phones: zoom into the picture's product group (2026-11-21 picture: x 4-49%, y 15-85%) so the products read larger */
@media (max-width: 767px) {
	.pbf-hero--banner .pbf-hero__frame { aspect-ratio: 1.85; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%); mask-image: linear-gradient(to bottom, transparent, #000 9%); }
	.pbf-hero--banner .pbf-hero__img { top: 50%; left: -9.6%; width: 225%; height: auto; transform: translateY(-50%); }
}
