/**
 * Beautiful PDF Export - catalogues page
 *
 * @author    Pixelorigin
 * @copyright 2026 Pixelorigin
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 */
.bpe-front { --bpe-accent: #2d5bd7; }

/* ---- list ---------------------------------------------------------------------------------- */
.bpe-f-title { font-size: 1.15rem; margin: 1.5rem 0 1rem; text-transform: none; }
.bpe-f-title:first-child { margin-top: .25rem; }
.bpe-f-empty { padding: 2rem 0; text-align: center; color: #7a7a7a; }
.bpe-f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
@media (max-width: 767px) {
  .bpe-f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
}
.bpe-f-card { display: flex; flex-direction: column; min-width: 0; }
.bpe-f-cover { position: relative; display: block; overflow: hidden; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 22px -8px rgba(0,0,0,.35); transition: transform .25s, box-shadow .25s; }
.bpe-f-cover:hover, .bpe-f-cover:focus { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 16px 30px -10px rgba(0,0,0,.4); }
.bpe-f-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 6%, rgba(255,255,255,.12) 8%, rgba(255,255,255,0) 12%); pointer-events: none; }
.bpe-f-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bpe-f-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 14%; font-size: 1.25rem; line-height: 1.15; font-weight: 600; }
.bpe-f-ph i { display: block; width: 28px; height: 3px; margin-bottom: 10px; }
.bpe-f-cover.is-drawn .bpe-f-ph { display: none; }
.bpe-f-body { padding-top: 12px; }
.bpe-f-body h3 { font-size: 1rem; margin: 0 0 2px; line-height: 1.3; }
.bpe-f-body h3 a { color: inherit; }
.bpe-f-sub { margin: 0; color: #7a7a7a; font-size: .875rem; }
.bpe-f-when { margin: 4px 0 10px; font-size: .8125rem; color: #4a4a4a; }
.bpe-f-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bpe-f-actions .btn { padding: .45rem .9rem; font-size: .8125rem; text-transform: none; }
.bpe-f-plan { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e6e6e6; }
.bpe-f-plan li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e6e6e6; }
.bpe-f-date { flex: none; min-width: 7.5em; padding: 4px 10px; border-left: 3px solid; background: #f6f6f6; font-weight: 600; font-size: .875rem; }
.bpe-f-plan-name { flex: 1; min-width: 0; }
.bpe-f-plan-name small { color: #7a7a7a; }
.bpe-f-plan-to { flex: none; color: #7a7a7a; font-size: .8125rem; }
@media (max-width: 575px) {
  .bpe-f-grid { gap: 22px 14px; }
  .bpe-f-plan li { flex-wrap: wrap; gap: 6px 12px; }
  .bpe-f-plan-to { width: 100%; padding-left: calc(7.5em + 34px); }
}

/* ---- reader -------------------------------------------------------------------------------- */
.bpe-reader { position: relative; background: #26272b; color: #fff; border-radius: 6px; overflow: hidden; outline: none; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; }
.bpe-r-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #1b1c1f; }
.bpe-r-info { flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.bpe-r-info small { display: block; color: rgba(255,255,255,.6); font-size: .75rem; }
.bpe-r-count { font-size: .875rem; font-variant-numeric: tabular-nums; }
.bpe-r-tools { display: flex; gap: 4px; }
.bpe-r-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; min-width: 36px; padding: 0 8px; justify-content: center; border: 0; border-radius: 18px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: .8125rem; text-decoration: none; }
.bpe-r-btn:hover, .bpe-r-btn:focus { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.bpe-r-btn[disabled] { opacity: .35; cursor: default; }
.bpe-r-btn svg, .bpe-r-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bpe-r-stage { position: relative; height: min(80vh, 940px); min-height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #3a3b40, #26272b 70%); }
.bpe-reader.is-zoomed .bpe-r-stage { display: block; overflow: auto; -webkit-overflow-scrolling: touch; }
.bpe-reader.is-zoomed .bpe-r-book { margin: 12px auto; }
.bpe-r-book { position: relative; flex: none; perspective: 2800px; transition: transform .6s cubic-bezier(.4,.1,.25,1); cursor: pointer; }
.bpe-reader.is-zoomed .bpe-r-book { cursor: default; }
.bpe-reader.is-spread .bpe-r-book.is-cover { transform: translateX(-25%); }
.bpe-reader.is-spread .bpe-r-book.is-end { transform: translateX(25%); }
.bpe-r-slot { position: absolute; top: 0; }
.bpe-r-left, .bpe-r-single { left: 0; }
.bpe-r-right { right: 0; }
.bpe-r-page { position: relative; width: 100%; height: 100%; background: #fff; box-shadow: 0 10px 30px -6px rgba(0,0,0,.55); overflow: hidden; }
.bpe-r-page canvas { display: block; width: 100%; height: 100%; }
.bpe-r-blank { background: transparent; box-shadow: none; }
/* fold of the double pages */
.bpe-reader.is-spread .bpe-r-left .bpe-r-page::after, .bpe-reader.is-spread .bpe-r-right .bpe-r-page::after,
.bpe-r-leaf-right .bpe-r-front .bpe-r-page::after, .bpe-r-leaf-left .bpe-r-backface .bpe-r-page::after,
.bpe-r-leaf-left .bpe-r-front .bpe-r-page::after, .bpe-r-leaf-right .bpe-r-backface .bpe-r-page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; z-index: 1; }
.bpe-reader.is-spread .bpe-r-left .bpe-r-page::after, .bpe-r-leaf-left .bpe-r-front .bpe-r-page::after, .bpe-r-leaf-right .bpe-r-backface .bpe-r-page::after { right: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.16)); }
.bpe-reader.is-spread .bpe-r-right .bpe-r-page::after, .bpe-r-leaf-right .bpe-r-front .bpe-r-page::after, .bpe-r-leaf-left .bpe-r-backface .bpe-r-page::after { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,0)); }
.bpe-r-blank::after { display: none; }
/* turning page */
.bpe-r-leaf { position: absolute; top: 0; z-index: 5; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.45,.05,.3,1); will-change: transform; }
.bpe-r-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bpe-r-backface { transform: rotateY(180deg); }
.bpe-r-leaf-right { left: 50%; transform-origin: 0 50%; }
.bpe-r-leaf-left { left: 0; transform-origin: 100% 50%; }
.bpe-r-leaf-right.is-forward { transform: rotateY(-180deg); }
.bpe-r-leaf-left.is-backward { transform: rotateY(180deg); }
.bpe-r-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.bpe-r-leaf.is-forward .bpe-r-shade, .bpe-r-leaf.is-backward .bpe-r-shade { animation: bpe-shade .8s ease-in-out; }
@keyframes bpe-shade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.bpe-r-leaf-single { left: 0; transform-origin: 0 50%; transition: transform .6s cubic-bezier(.45,.05,.3,1), opacity .6s ease-in; }
.bpe-r-leaf-single .bpe-r-backface { display: none; }
.bpe-r-leaf-single.is-forward, .bpe-r-leaf-single.is-open { transform: rotateY(-96deg); opacity: 0; }
.bpe-r-leaf-single.is-backward { transform: none; opacity: 1; transition-timing-function: cubic-bezier(.3,.1,.3,1), ease-out; }
/* links to the products */
.bpe-r-link { position: absolute; z-index: 2; border-radius: 3px; transition: background-color .15s, box-shadow .15s; }
@media (hover: hover) {
  .bpe-r-link:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px var(--bpe-accent), 0 0 0 9999px rgba(0,0,0,.04); }
}
.bpe-r-link:focus-visible { box-shadow: inset 0 0 0 2px var(--bpe-accent); outline: none; }
/* arrows */
.bpe-r-nav { position: absolute; top: 50%; z-index: 6; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #222; box-shadow: 0 4px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s, transform .2s; }
.bpe-r-nav:hover { transform: scale(1.06); }
.bpe-r-nav[disabled] { opacity: 0; pointer-events: none; }
.bpe-r-prev { left: 10px; }
.bpe-r-next { right: 10px; }
.bpe-r-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; pointer-events: none; }
.bpe-r-loading.is-hidden { display: none; }
.bpe-r-loading span { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: bpe-spin .8s linear infinite; }
.bpe-reader.is-error .bpe-r-loading span { display: none; }
@keyframes bpe-spin { to { transform: rotate(360deg); } }
.bpe-r-bottom { padding: 8px 16px 10px; background: #1b1c1f; }
.bpe-r-thumbs { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 2px 8px; margin-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; -webkit-overflow-scrolling: touch; }
.bpe-r-thumb { position: relative; flex: none; width: 64px; padding: 0; border: 0; border-radius: 2px; background: #3a3b40; cursor: pointer; overflow: hidden; opacity: .62; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s, outline-color .15s, transform .15s; }
.bpe-r-thumb:nth-child(2n+1):not(:first-child) { margin-right: 4px; }
.bpe-r-thumb canvas { display: block; width: 100%; height: 100%; }
.bpe-r-thumb-n { position: absolute; right: 2px; bottom: 2px; min-width: 18px; padding: 0 4px; border-radius: 3px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.bpe-r-thumb:hover, .bpe-r-thumb:focus-visible { opacity: 1; transform: translateY(-2px); }
.bpe-r-thumb.is-active { opacity: 1; outline-color: var(--bpe-accent); }
.bpe-r-thumb.is-active .bpe-r-thumb-n { background: var(--bpe-accent); }
.bpe-r-bottom input[type=range] { display: block; width: 100%; margin: 0; accent-color: var(--bpe-accent); }
.bpe-r-hint { margin: 4px 0 0; font-size: .75rem; color: rgba(255,255,255,.55); text-align: center; }
/* full screen */
.bpe-reader.is-full { position: fixed; inset: 0; z-index: 10000; border-radius: 0; height: 100vh; height: 100dvh; }
.bpe-reader.is-full .bpe-r-stage { flex: 1; height: auto; min-height: 0; }
html.bpe-noscroll, html.bpe-noscroll body { overflow: hidden; }
/* phones */
@media (max-width: 767px) {
  #main .bpe-front { margin-left: -15px; margin-right: -15px; }
  .bpe-reader { border-radius: 0; }
  .bpe-r-stage { height: calc(100vh - 220px); height: calc(100svh - 190px); min-height: 340px; }
  .bpe-r-back span, .bpe-r-hint { display: none; }
  .bpe-r-thumb { width: 48px; }
  .bpe-r-nav { width: 36px; height: 36px; margin-top: -18px; background: rgba(255,255,255,.75); }
  .bpe-r-prev { left: 4px; }
  .bpe-r-next { right: 4px; }
  .bpe-r-tools [data-zoom] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bpe-r-leaf, .bpe-r-book { transition: none; }
}

/* ---- product window of the reader ---------------------------------------------------------- */
.bpe-q { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 24px; color: #1f1f1f; }
.bpe-q[hidden] { display: none; }
.bpe-q-back { position: absolute; inset: 0; background: rgba(12, 12, 16, .62); backdrop-filter: blur(2px); animation: bpe-q-fade .2s ease-out; }
.bpe-q-card { position: relative; width: min(880px, 100%); max-height: calc(100% - 8px); display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); overflow: hidden; animation: bpe-q-pop .22s ease-out; }
.bpe-q-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bpe-q svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bpe-q-slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; overflow: auto; }
.bpe-q-slide.is-from-right { animation: bpe-q-right .26s ease-out; }
.bpe-q-slide.is-from-left { animation: bpe-q-left .26s ease-out; }
.bpe-q-img { position: relative; display: flex; align-items: center; justify-content: center; background: #f5f4f1; aspect-ratio: 1 / 1; max-width: 100%; }
.bpe-q-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.bpe-q-img:hover img { transform: scale(1.04); }
.bpe-q-noimg { font-size: 4rem; color: #c9c6bf; }
.bpe-q-off { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 999px; background: #d7263d; color: #fff; font-weight: 700; font-size: .875rem; }
.bpe-q-info { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bpe-q-name { margin: 0 32px 0 0; font-size: 1.4rem; line-height: 1.2; text-transform: none; }
.bpe-q-name a { color: inherit; }
.bpe-q-attrs { margin: 0; color: #6b6b6b; font-size: .875rem; }
.bpe-q-price { margin: 0; font-size: 1.35rem; color: #1f1f1f; }
.bpe-q-price s { color: #8a8a8a; font-size: 1rem; margin-left: 6px; }
.bpe-q-short { margin: 0; color: #4a4a4a; font-size: .9375rem; line-height: 1.5; }
.bpe-q-go { align-self: flex-start; margin-top: auto; }
.bpe-q-bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px; border-top: 1px solid #ececec; background: #fafafa; }
.bpe-q-nav { width: 44px; height: 44px; border: 1px solid #ddd; border-radius: 50%; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #222; }
.bpe-q-nav:disabled { opacity: .3; cursor: default; }
.bpe-q-nav:not(:disabled):hover, .bpe-q-close:hover { background: #f0f0f0; }
.bpe-q-nav:focus-visible, .bpe-q-close:focus-visible { outline: 2px solid #2d5bd7; outline-offset: 2px; }
.bpe-q-count { min-width: 5em; text-align: center; font-variant-numeric: tabular-nums; color: #555; font-size: .875rem; }
@keyframes bpe-q-fade { from { opacity: 0; } }
@keyframes bpe-q-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes bpe-q-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes bpe-q-left { from { opacity: 0; transform: translateX(-40px); } }
@media (max-width: 640px) {
  .bpe-q { padding: 0; align-items: flex-end; }
  .bpe-q-card { width: 100%; max-height: 92%; border-radius: 14px 14px 0 0; }
  .bpe-q-slide { grid-template-columns: minmax(0, 1fr); }
  .bpe-q-img { aspect-ratio: 4 / 3; }
  .bpe-q-info { padding: 16px 16px 14px; gap: 8px; }
  .bpe-q-name { font-size: 1.15rem; }
  .bpe-q-go { align-self: stretch; width: 100%; text-align: center; }
  .bpe-q-bar { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .bpe-q-back, .bpe-q-card, .bpe-q-slide.is-from-right, .bpe-q-slide.is-from-left { animation: none; }
}
