.product-pdf-controls { margin: 20px 0 0; text-align: center; }
.product-pdf-button { padding: 13px 20px; border: 1px solid #e4bd56; border-radius: 12px; background: #fff; color: #3e3e3f; font: inherit; cursor: pointer; }
.product-pdf-button:hover { background: #fff8df; }
.product-pdf-button:focus-visible { outline: 2px solid #bd8523; outline-offset: 3px; }
.product-pdf-button:disabled { opacity: .6; cursor: wait; }
.product-pdf-status { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.product-pdf-frame { position: fixed; left: -10000px; top: 0; width: 1100px; height: 800px; border: 0; }

/* Applies only in the isolated print document, never to the live product page. */
@page { size: A4 portrait; margin: 12mm; }
.product-pdf-preview { display: block !important; background: #fff; color: #3e3e3f; font-size: 11pt; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.product-pdf-preview *, .product-pdf-preview *::before, .product-pdf-preview *::after { animation: none !important; transition: none !important; box-sizing: border-box; }
.product-pdf-preview article { display: block; width: 100%; }
.product-pdf-brand { padding-bottom: 5mm; margin-bottom: 7mm; border-bottom: 1px solid #ececec; font-size: 23pt; font-weight: 700; color: #e95e32; }
.product-pdf-source { margin-top: 8mm; padding-top: 3mm; border-top: 1px solid #ececec; font-size: 8pt; overflow-wrap: anywhere; }
.product-pdf-preview .section { padding: 0 !important; margin: 0 0 7mm !important; }
.product-pdf-preview .section::before, .product-pdf-preview .section::after { display: none !important; }
.product-pdf-preview .section_view_product { break-after: auto; }
.product-pdf-preview .section__inner { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.product-pdf-preview .layout { width: 100%; max-width: none; }
.product-pdf-preview .layout_tpl_product { display: grid; grid-template-columns: 46% 1fr; gap: 5mm; }
.product-pdf-preview .section_view_product .section__title { grid-column: 1 / -1; margin: 0 0 4mm; font-size: 22pt; line-height: 1.12; }
.product-pdf-preview .layout_tpl_product .layout_fr_l { grid-column: 1; min-width: 0; }
.product-pdf-preview .layout_tpl_product .layout_fr_r { grid-column: 2; min-width: 0; }
.product-pdf-preview .section_view_product .section__content { font-size: 10pt; line-height: 1.45; }
.product-pdf-preview .product-card-gallery-cols, .product-pdf-preview .product-card-gallery-col2 { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.product-pdf-preview .product-card-gallery-slides { height: auto !important; max-height: none !important; }
.product-pdf-preview .product-pdf-hero-image { display: block; width: 100%; height: 50mm; object-fit: contain; }
.product-pdf-preview img { max-width: 100% !important; object-fit: contain; }
.product-pdf-preview .product-card-slide-sticker { max-width: 55%; }
.product-pdf-preview .product-card-extra-btns { display: none; }
.product-pdf-preview h2 { margin: 5mm 0 4mm; font-size: 18pt !important; line-height: 1.15; break-after: avoid; }
.product-pdf-preview h3 { break-after: avoid; }
.product-pdf-preview .product-card-modifs { padding: 0; margin: 0; }
.product-pdf-preview .product-card-modif { display: block; margin: 0 0 6mm; border-radius: 4mm; background: #fafafa; }
.product-pdf-preview .product-card-modif-head { display: block; padding: 4mm; break-inside: avoid; break-after: avoid; }
.product-pdf-preview .product-card-modif-head-name { font-size: 14pt; }
.product-pdf-preview .product-card-modif-head-spoiler-link, .product-pdf-preview .product-card-modif-head-col-5, .product-pdf-preview .product-card-modif-cols.show-xs { display: none !important; }
.product-pdf-preview .product-card-modif-spoiler { display: block !important; height: auto !important; overflow: visible !important; }
.product-pdf-preview .product-card-modif-cols { display: block; padding: 4mm; }
.product-pdf-preview .product-card-modif-col-1, .product-pdf-preview .product-card-modif-col-2 { width: 100%; max-width: 100%; }
.product-pdf-preview .product-card-modif-props { padding: 0; }
.product-pdf-preview .product-card-modif-props-title { margin: 4mm 0; font-size: 12pt; }
.product-pdf-preview .product-card-modif-prop { display: flex; margin: 0; padding: 2mm 0; border-bottom: 1px solid #e7e7e7; font-size: 10pt; line-height: 1.3; break-inside: avoid; }
.product-pdf-preview .product-card-modif-prop-title, .product-pdf-preview .product-card-modif-prop-value { width: 50%; max-width: 50%; padding: 0 3mm; overflow-wrap: anywhere; }
.product-pdf-preview .product-card-modif-schema { display: inline-block; width: 48%; margin: 3mm 1% 0 0 !important; vertical-align: top; break-inside: avoid; }
.product-pdf-preview .product-card-modif-schema img { width: 100%; height: auto; max-height: 95mm; }
.product-pdf-preview .carousel, .product-pdf-preview .carousel__container, .product-pdf-preview .carousel__inner, .product-pdf-preview .slick-list, .product-pdf-preview .slick-track, .product-pdf-preview .swiper-wrapper { display: block !important; height: auto !important; width: 100% !important; max-height: none !important; overflow: visible !important; transform: none !important; }
.product-pdf-preview .carousel__item, .product-pdf-preview .swiper-slide { display: inline-block !important; position: relative !important; width: 30% !important; margin: 0 2% 4mm 0 !important; height: auto !important; vertical-align: top; break-inside: avoid; }
.product-pdf-preview .carousel__item img { height: auto !important; max-height: 55mm; }
.product-pdf-preview .product-card-soft__wrapper { display: block; padding: 4mm; background: #fafafa; border-radius: 4mm; }
.product-pdf-preview .product-card-soft-content, .product-pdf-preview .product-card-soft-content__text { width: 100%; max-width: none; padding: 0; margin: 0 0 3mm; font-size: 10pt; line-height: 1.4; }
.product-pdf-preview .product-card-soft-content__title { font-size: 17pt; line-height: 1.2; margin: 0 0 3mm; }
.product-pdf-preview .product-card-soft-video, .product-pdf-preview [data-umi-consent] { display: none; }
.product-pdf-preview .product-card-soft { min-height: 0; }
.product-pdf-preview .section_view_appropriate { background: #fff; }
.product-pdf-preview .section_view_appropriate .section__text { font-size: 10pt; line-height: 1.25; }
.product-pdf-preview .soft-stickers { display: none !important; }
.product-pdf-preview button, .product-pdf-preview input, .product-pdf-preview select, .product-pdf-preview textarea, .product-pdf-preview [data-action="spoiler"]::after { display: none !important; }
.product-pdf-preview a { color: inherit; text-decoration: none; }
.product-pdf-preview p, .product-pdf-preview li { orphans: 3; widows: 3; }
@media print { .product-pdf-controls { display: none; } }

/* Compact A4 revision: stable four-item rows and one modification per page. */
.product-pdf-preview { width: 186mm; max-width: 100%; margin: 0 auto; }
.product-pdf-preview *, .product-pdf-preview *::before, .product-pdf-preview *::after { box-shadow: none !important; text-shadow: none !important; filter: none !important; }
.product-pdf-brand { padding-bottom: 2mm; margin-bottom: 3mm; font-size: 18pt; }
.product-pdf-preview .layout { padding-left: 0; padding-right: 0; }
.product-pdf-preview .section { margin-bottom: 4mm !important; }
.product-pdf-preview h2 { margin: 3mm 0; font-size: 14pt !important; }
.product-pdf-preview .section_view_product .section__title { font-size: 19pt; margin-bottom: 2mm; }
.product-pdf-preview .product-pdf-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3mm; margin: 0 0 3mm; break-inside: avoid; }
.product-pdf-preview .product-pdf-row > .carousel__item { display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; width: 100% !important; height: 42mm !important; min-height: 0 !important; padding: 1mm !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; overflow: visible !important; }
.product-pdf-preview .product-pdf-row .section__img { display: flex; align-items: center; justify-content: center; width: 100%; height: 27mm !important; min-height: 0 !important; margin: 0 0 2mm !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
.product-pdf-preview .product-pdf-row .section__img img { width: auto !important; height: auto !important; max-height: 26mm !important; }
.product-pdf-preview .product-pdf-row .section__text { width: 100%; margin: 0 !important; padding: 0 !important; font-size: 8pt !important; line-height: 1.15 !important; text-align: center; }
.product-pdf-preview .product-pdf-row > .default-slider-item_plain-img { height: 35mm !important; }
.product-pdf-preview .product-pdf-row > .default-slider-item_plain-img img { width: 100% !important; height: 33mm !important; max-height: 33mm !important; border-radius: 0 !important; }
.product-pdf-preview #product-card-drafts { break-before: page; }
.product-pdf-preview .product-card-modif { break-before: page; background: #fff; border: 0; border-radius: 0; margin: 0; padding: 0; }
.product-pdf-preview .product-card-modif:first-of-type { break-before: auto; }
.product-pdf-preview .product-card-modif-head { padding: 0 0 2mm; }
.product-pdf-preview .product-card-modif-head-name { font-size: 13pt; }
.product-pdf-preview .product-card-modif-head__price-box { display: grid !important; grid-template-columns: 1fr 30mm; align-items: start; gap: 3mm; padding: 0 !important; margin: 0 0 2mm !important; min-height: 0 !important; }
.product-pdf-preview .product-card-modif-head__price-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 2mm !important; border-radius: 0; background: #fafafa; }
.product-pdf-preview .product-card-modif-head__price-image { position: static !important; width: 30mm !important; height: 28mm !important; margin: 0 !important; object-fit: contain; }
.product-pdf-preview .product-card-modif-head__price-title-box { display: flex; justify-content: space-between; gap: 3mm; }
.product-pdf-preview .product-card-modif-head__price-title, .product-pdf-preview .product-card-modif-head__price-title-value { font-size: 10pt !important; line-height: 1.15 !important; }
.product-pdf-preview .product-card-modif-head__price-row, .product-pdf-preview .product-card-modif-head__price-column { font-size: 8pt !important; line-height: 1.15 !important; padding-top: .6mm; padding-bottom: .6mm; }
.product-pdf-preview .product-card-modif-head__price-table { margin-top: 1mm !important; }
.product-pdf-preview .product-card-modif-cols { padding: 0; }
.product-pdf-preview .product-card-modif-props { margin: 0; }
.product-pdf-preview .product-card-modif-prop { padding: .55mm 0; font-size: 8.5pt; line-height: 1.15; }
.product-pdf-preview .product-card-modif-prop-title, .product-pdf-preview .product-card-modif-prop-value { padding: 0 2mm; }
.product-pdf-preview .product-card-modif-props-title { margin: 2mm 0 1mm; font-size: 10pt; }
.product-pdf-preview .product-card-modif-schema { margin-top: 2mm !important; }
.product-pdf-preview .product-card-modif-schema img { height: 36mm; max-height: 36mm; object-fit: contain; }
.product-pdf-preview .product-card-soft__wrapper { padding: 2mm 0; background: #fff; border-radius: 0; }

.product-pdf-preview #free_soft, .product-pdf-preview #product-card-soft { break-before: page; }
