/* Promotions block on the homepage (promotions/front.php). Self-contained and neutral: it uses only its own .pbs-promo-* classes, so it looks
   sensible on any site. A site tunes it from its own CSS (colour via --promo-accent, bar colour via --promo-bg, anything else by overriding
   #pbs-hp-promotions .pbs-promo-...). It is a centred bar: tinted background, bold CAPS heading, cards centred under it. */
#pbs-hp-promotions { margin: 40px 0; padding: 30px 10px 40px; background-color: var(--promo-bg, rgba(var(--biscuit-rgb, 216, 201, 150), .2)); font-family: inherit; text-align: center; clear: both; }
.pbs-promo-inner { max-width: var(--max-width, 1280px); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.pbs-promo-heading { margin: 0 0 28px; font-size: 36px; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; color: var(--promo-accent, #222); }
.pbs-promo-h1 { color: var(--promo-h1, var(--promo-accent, #222)); }
.pbs-promo-h2 { color: var(--promo-h2, var(--promo-accent, #222)); }
.pbs-promo-heading + .pbs-promo-grid { margin-top: 20px; }
.pbs-promo-currency { margin: 0 0 52px; padding-top: 10px; font-size: 14px; }   /* padding, not margin: a top margin would collapse into the heading's bottom margin and add nothing */   /* closer to the heading (28px) than to the pictures (52px) */
#pbs-hp-promotions .pbs-promo-currency label { display: inline; margin: 0; padding: 0; width: auto; height: auto; }
#pbs-hp-promotions .pbs-promo-currency select { display: inline-block; width: auto; min-width: 110px; max-width: 100%; height: 34px; margin: 0 0 0 6px; padding: 0 8px; border: 1px solid #bbb; border-radius: 0; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.pbs-promo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
#pbs-hp-promotions .pbs-promo-icon { --s: 1.6; }   /* the label on a promotion picture (Icon Display): larger than on a catalogue picture, the promotion cards are bigger */
.pbs-promo-card { flex: 0 1 calc((100% - 60px) / 3); max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pbs-promo-img { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }   /* square, whole picture shown (catalogue pictures are square) */
.pbs-promo-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.6s ease; }
a.pbs-promo-img:hover img { transform: scale(1.05); }
.pbs-promo-title { margin: 16px 0 6px; color: var(--promo-accent, #222); font-size: 20px; font-weight: 800; line-height: 1.25; }
.pbs-promo-prices { margin: 0 0 10px; font-size: 16px; }
.pbs-promo-was { color: #777; text-decoration: line-through; margin-right: 6px; }
.pbs-promo-now { color: var(--promo-accent, #222); font-weight: 800; font-size: 20px; margin-right: 6px; }
.pbs-promo-off { color: var(--promo-band, var(--orange, #c0392b)); font-weight: 700; }
.pbs-price-currency { font-size: .7em; font-weight: 400; }
.pbs-promo-text { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.pbs-promo-btn { display: inline-block; margin-top: auto; padding: 10px 22px; color: var(--promo-btn-text, #fff); background: var(--promo-btn, var(--promo-accent, #222)); text-decoration: none; font-weight: 700; }
.pbs-promo-btn:hover { opacity: 0.85; color: var(--promo-btn-text, #fff); }
@media (max-width: 992px) { .pbs-promo-card { flex-basis: calc((100% - 30px) / 2); } }
@media (max-width: 600px) { .pbs-promo-card { flex-basis: 100%; } .pbs-promo-heading { font-size: 28px; } }
/* the coloured band across the bottom-right corner of the picture; everything is in em, so a smaller font-size makes a smaller band (the CMS preview does that) */
.pbs-promo-band { position: absolute; right: -4.6em; bottom: 3.5em; width: 18.5em; padding: .55em 0; box-sizing: border-box; transform: rotate(-45deg); background: var(--promo-band, var(--orange, #c0392b)); color: var(--promo-band-text, #fff); font-size: 13px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-align: center; text-transform: uppercase; box-shadow: 0 .15em .45em rgba(0,0,0,.3); pointer-events: none; }
