/* Black Friday around the shop (inc/bf-promo.php), loaded only while the campaign runs: the top bar, the menu tag, the
   home panel, the product page's countdown. Parsateb's look: the brand blue #0373c8 as the background (owner 2026-11-21: «not navy, parsateb's own blue»), solid colours only (no
   gradients, site rule), red only for the discount, the medical cross. */

/* ---------- 1. top bar (50px, in place of the notice bar) ---------- */
.pbf-bar { position: relative; height: 50px; overflow: hidden; background: #0373c8; color: #fff; font-size: 15px; line-height: 1; }
.pbf-bar::before { content: ""; position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 2px; background: #025aa5; }
.pbf-bar::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: 0; width: 70px; background: rgba(255,255,255,.06); transform: translateX(-120px) skewX(-20deg); animation: pbfb-sweep 7.5s ease-in-out infinite; pointer-events: none; }
@keyframes pbfb-sweep { 0% { transform: translateX(-120px) skewX(-20deg); } 55%, 100% { transform: translateX(calc(100vw + 120px)) skewX(-20deg); } }
.pbf-bar__fx { position: absolute; inset: 0; pointer-events: none; }
.pbf-bar__fx i { position: absolute; width: 9px; height: 9px; 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: pbfb-twinkle 4.4s ease-in-out infinite; }
.pbf-bar__fx i:nth-child(1) { top: 18%; left: 5%; }
.pbf-bar__fx i:nth-child(2) { top: 62%; left: 18%; animation-delay: 1.3s; width: 7px; height: 7px; }
.pbf-bar__fx i:nth-child(3) { top: 24%; left: 31%; animation-delay: 2.6s; width: 6px; height: 6px; }
.pbf-bar__fx i:nth-child(4) { top: 58%; left: 72%; animation-delay: .7s; width: 7px; height: 7px; }
.pbf-bar__fx i:nth-child(5) { top: 20%; left: 86%; animation-delay: 2s; }
.pbf-bar__fx i:nth-child(6) { top: 64%; left: 95%; animation-delay: 3.4s; width: 6px; height: 6px; }
@keyframes pbfb-twinkle { 0%, 100% { opacity: 0; transform: scale(.5) rotate(0); } 45% { opacity: .9; transform: scale(1) rotate(45deg); } 65% { opacity: .15; } }
.pbf-bar__in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 0 16px; color: #fff; white-space: nowrap; text-decoration: none !important; }
.pbf-bar__in:hover, .pbf-bar__in:focus { color: #fff; }
.pbf-bar__in:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.pbf-bar__tag { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; background: #fff; color: #0373c8; font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; }
.pbf-bar__tag b { color: #e12d14; font-weight: 700; }
.pbf-bar__head { font-weight: 500; }
.pbf-bar__head b, .pbf-bar__msg b { color: #fff; font-weight: 700; }
.pbf-bar__head, .pbf-bar__msg { color: rgba(255,255,255,.94); }
.pbf-bar__sep { flex: none; width: 1px; height: 20px; background: rgba(255,255,255,.4); }
.pbf-bar__rot { display: grid; align-items: center; height: 50px; overflow: hidden; }
/* each message is wiped in from its start (the right) and wiped out the same way */
.pbf-bar__msg { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-self: start; gap: 8px; font-weight: 500; opacity: 0; clip-path: inset(0 0 0 100%); transition: clip-path .7s cubic-bezier(.6,0,.2,1), opacity .25s ease; }
.pbf-bar__msg.is-in { opacity: 1; clip-path: inset(0 0 0 0); }
.pbf-bar__msg.is-out { opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path .55s cubic-bezier(.6,0,.2,1), opacity .3s ease .25s; }
.pbf-bar.is-init .pbf-bar__msg { transition: none; }
.pbf-bar__msg svg { flex: none; color: #fff; }
.pbf-bar__msg em { display: inline-block; padding: 4px 9px 3px; border-radius: 6px; background: #e12d14; color: #fff; font-style: normal; font-weight: 700; }
.pbf-bar__msg img { display: block; width: auto; height: 24px; }
.pbf-bar__msg--head { display: none; }
/* the swinging discount tags */
.pbf-swing { flex: none; overflow: visible; color: rgba(255,255,255,.85); transform-origin: 50% 0; animation: pbfb-swing 5.6s ease-in-out infinite; }
.pbf-swing__body { fill: #e12d14; } /* a red tag on the blue */
.pbf-swing__hole { fill: #0373c8; }
.pbf-swing--b { animation-delay: -2.8s; }
@keyframes pbfb-swing { 0%, 68%, 100% { transform: rotate(0); } 72% { transform: rotate(18deg); } 77% { transform: rotate(-14deg); } 82% { transform: rotate(9deg); } 87% { transform: rotate(-5deg); } 92% { transform: rotate(2deg); } 96% { transform: rotate(0); } }
@media (max-width: 899px) {
	.pbf-bar { font-size: 14px; }
	.pbf-bar__in { justify-content: space-between; gap: 10px; padding: 0 10px; }
	.pbf-bar__head, .pbf-bar__sep { display: none; }
	.pbf-bar__rot { flex: 1 1 auto; min-width: 0; }
	.pbf-bar__msg { justify-self: center; }
	.pbf-bar__msg--head { display: inline-flex; }
	.pbf-bar__tag { height: 22px; padding: 0 7px; font-size: 10px; letter-spacing: 1px; }
	.pbf-bar__tag svg { display: none; }
	.pbf-swing { width: 20px; height: 27px; }
	.pbf-bar__msg img { height: 22px; }
}
@media (max-width: 599px) {
	.pbf-bar__x { display: none; }
	.pbf-bar__in { gap: 8px; padding: 0 8px; }
	.pbf-bar__msg { gap: 6px; }
}
@media (max-width: 379px) { .pbf-bar { font-size: 13px; } .pbf-bar__msg svg { display: none; } }
@media (max-width: 339px) { .pbf-bar__tag { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.pbf-bar::after, .pbf-bar__fx, .pbf-swing { animation: none; }
	.pbf-bar__fx { display: none; }
	.pbf-bar__msg { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
	.pbf-bar__msg { opacity: 0 !important; }
	.pbf-bar__msg--head { opacity: 1 !important; clip-path: none; }
}

/* ---------- 2. «بلک فرایدی» in the categories menus: the tag before its name ---------- */
.ps-cats__link[href$="/black-friday/"], .ps-mobile-nav a[href$="/black-friday/"] { font-weight: 700; }
/* after the words: they line up with the other items; on desktop the tag sits where the others have their arrow */
.ps-cats__link[href$="/black-friday/"]::after, .ps-mobile-nav a[href$="/black-friday/"]::after { content: ""; display: inline-block; flex: none; width: 15px; height: 20px; margin-inline-start: 9px; vertical-align: -5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 42'%3E%3Cpath d='M16 1v8' stroke='%230373c8' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M7.5 15.5 16 8.5l8.5 7V38a2.5 2.5 0 0 1-2.5 2.5H10A2.5 2.5 0 0 1 7.5 38z' fill='%23e12d14'/%3E%3Ccircle cx='16' cy='15' r='1.9' fill='%23fff'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='12.6' cy='23.4' r='2.1'/%3E%3Ccircle cx='19.4' cy='32.2' r='2.1'/%3E%3Cpath d='M20.4 21.4 11.6 34.2'/%3E%3C/g%3E%3C/svg%3E") center top / contain no-repeat; transform-origin: 50% 0; animation: pbfb-swing 5.6s ease-in-out -1.4s infinite; }
@media (prefers-reduced-motion: reduce) { .ps-cats__link[href$="/black-friday/"]::after, .ps-mobile-nav a[href$="/black-friday/"]::after { animation: none; } }

/* ---------- 3. home: the Black Friday panel under the sliders ---------- */
.pbf-home { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; margin: 30px 0 8px; }
.pbf-home__intro { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; padding: 30px 24px 24px; border-radius: 12px; background: #0373c8; color: #fff; }
.pbf-home__intro::before { content: ""; position: absolute; z-index: -1; right: -90px; bottom: -110px; width: 260px; aspect-ratio: 1; border-radius: 50%; background: #0a68b8; }
.pbf-home__intro .pbf-swing { position: absolute; top: 0; left: 24px; width: 30px; height: 40px; color: #fff; }
.pbf-home__intro .pbf-swing__body { fill: #e12d14; }
.pbf-home__kicker { margin: 0; color: #d6ecff; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-align: right; } /* right, away from the tag hanging at the left (the element is dir=ltr) */
.pbf-home__kicker b { color: #fff; font-weight: 700; }
.pbf-home__intro h2 { margin: 8px 0 14px; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.45; }
.pbf-home__intro h2 span { display: block; color: #d6ecff; font-size: 20px; }
.pbf-home__perks { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pbf-home__perks li { display: flex; align-items: center; gap: 8px; margin: 0; color: rgba(255,255,255,.94); font-size: 14px; line-height: 1.6; }
.pbf-home__perks li svg { flex: none; }
.pbf-home__perks b { color: #fff; font-weight: 700; }
.pbf-home__cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 22px 0 18px; }
.pbf-home__cd span { display: flex; flex-direction: column; align-items: center; padding: 8px 2px 6px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(255,255,255,.12); }
.pbf-home__cd b { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pbf-home__cd small { color: rgba(255,255,255,.78); font-size: 10.5px; }
.pbf-home__more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: auto; border-radius: 8px; background: #fff; color: #0373c8 !important; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background-color .2s ease; }
.pbf-home__more:hover, .pbf-home__more:focus-visible { background: #eef6fc; color: #025aa5 !important; }
.pbf-home__more 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-home__items { min-width: 0; padding: 16px; border-radius: 12px; background: #f1f6fb; }
.pbf-home .ps-carousel__arrow { width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(10,37,64,.18); color: #0a2540; opacity: 1; }
.pbf-home .ps-carousel__arrow .ps-icon { width: 18px; height: 18px; stroke-width: 1.8; }
.pbf-home .ps-carousel__arrow--prev { inset-inline-start: -10px; }
.pbf-home .ps-carousel__arrow--next { inset-inline-end: -10px; }
@media (max-width: 1024px) { .pbf-home { grid-template-columns: 260px minmax(0, 1fr); } .pbf-home__intro { padding: 26px 18px 20px; } .pbf-home__intro h2 { font-size: 22px; } }
/* phones (owner 2026-11-21: «too much blue» after the blue header and the SnappPay banner): one light card, the
 * heading and the countdown on top, its products right under them, the link to the page at the bottom */
@media (max-width: 767px) {
	.pbf-home { position: relative; display: flex; flex-direction: column; gap: 0; margin: 22px 0 6px; overflow: hidden; border: 1px solid #d6e6f5; border-top: 3px solid #0373c8; border-radius: 12px; background: #f1f6fb; }
	.pbf-home__intro { display: contents; }
	.pbf-home__intro::before, .pbf-home__perks { display: none; }
	.pbf-home .pbf-swing { position: absolute; top: 0; left: 16px; width: 24px; height: 32px; color: #8fb8dc; }
	.pbf-home .pbf-swing__hole { fill: #f1f6fb; }
	.pbf-home__kicker { margin: 16px 14px 0; color: #0a2540; font-size: 11px; letter-spacing: 2.5px; }
	.pbf-home__kicker b { color: #e12d14; }
	.pbf-home .pbf-home__intro h2 { margin: 4px 14px 12px; color: #0a2540; font-size: 20px; line-height: 1.5; }
	.pbf-home .pbf-home__intro h2 span { display: inline; color: #0373c8; font-size: 20px; }
	.pbf-home__cd { gap: 6px; margin: 0 14px 4px; }
	.pbf-home__cd span { flex-direction: row; justify-content: center; align-items: baseline; gap: 4px; padding: 7px 2px; border: 1px solid #d6e6f5; background: #fff; }
	.pbf-home__cd b { color: #0373c8; font-size: 17px; }
	.pbf-home__cd small { color: #5b6b7b; font-size: 11px; }
	.pbf-home__items { order: 2; padding: 10px; border-radius: 0; background: transparent; }
	.pbf-home__more { order: 3; min-height: 44px; margin: 0 10px 12px; background: #0373c8; color: #fff !important; }
	.pbf-home__more:hover, .pbf-home__more:focus-visible { background: #025aa5; color: #fff !important; }
	.pbf-home .ps-carousel__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pbf-home .pbf-swing { animation: none; } }

/* ---------- 4. product page: the countdown under the price box ---------- */
.pbf-st { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; box-sizing: border-box; width: 100%; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid #d6e5f3; border-radius: 10px; background: #f5f9fd; }
.pbf-st__text { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pbf-st__icon { flex: none; color: #0373c8; }
.pbf-st__text > span { display: flex; flex-direction: column; line-height: 1.6; }
.pbf-st__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pbf-st__title b { color: #0a2540; font-size: 14.5px; font-weight: 700; }
.pbf-st__ltd { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 1px; border-radius: 6px; background: #fdecea; color: #c2260f; font-size: 11.5px; font-style: normal; font-weight: 600; line-height: 1.6; }
.pbf-st__ltd i { width: 6px; height: 6px; border-radius: 50%; background: #e12d14; animation: pbfb-pulse 1.8s ease-out infinite; }
@keyframes pbfb-pulse { 0% { box-shadow: 0 0 0 0 rgba(225,45,20,.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(225,45,20,0); } }
.pbf-st__text small { color: #687585; font-size: 12px; }
.pbf-st__clock { display: flex; align-items: flex-start; gap: 4px; }
.pbf-st__u { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 5px 4px 3px; border: 1px solid #d6e5f3; border-radius: 8px; background: #fff; }
.pbf-st__u b { color: #0373c8; font-size: 18px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; }
.pbf-st__u i { color: #687585; font-size: 10.5px; font-style: normal; line-height: 1.5; }
.pbf-st__sep { padding-top: 7px; color: #9fb3c7; font-weight: 700; line-height: 1; }
@media (max-width: 600px) {
	.pbf-st { gap: 10px; }
	.pbf-st__clock { width: 100%; }
	.pbf-st__u { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .pbf-st__ltd i { animation: none; } }
