:root{--orange:#ff7a00;--orange-soft:#fff2e6;--ink:#15171a;--muted:#737982;--line:#e8eaed;--panel:#fff;--bg:#f6f7f9;--shadow:0 14px 40px rgba(20,28,38,.07)}*{box-sizing:border-box}html{direction:rtl}body{margin:0;font-family:Tahoma,Arial,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.muted{color:var(--muted)}.ico{width:24px;display:inline-grid;place-items:center}.splash{min-height:100vh;display:grid;place-items:center;align-content:center;gap:18px;background:#fff}.splash img{width:min(360px,72vw)}.spinner{width:42px;height:42px;border:4px solid #eee;border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#fff 0,#fff8f0 45%,#f3f5f7 100%)}.auth-card{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:34px;box-shadow:var(--shadow)}.brand-box{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:26px}.brand-box img{width:190px;max-width:55%}.brand-box span{font-size:12px;color:var(--muted);direction:ltr}.auth-card h1{font-size:28px;margin:0 0 8px}.auth-card>p{color:var(--muted);margin:0 0 24px}.auth-form,.form-stack{display:grid;gap:15px}.auth-form label,.field{display:grid;gap:7px;font-weight:700;font-size:13px}.auth-form input,.field input,.field textarea,.field select,.form-stack input,.form-stack textarea,.form-stack select,.inline-fields input,.inline-fields select{width:100%;border:1px solid #dfe2e6;background:#fff;border-radius:12px;padding:11px 13px;outline:none;transition:.2s}.auth-form input:focus,.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,122,0,.1)}.btn-brand,.btn-soft,.btn-danger-soft,.back{border:0;border-radius:11px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-brand{background:var(--orange);color:#fff}.btn-soft{background:#fff;border:1px solid var(--line);color:#222}.btn-danger-soft{background:#fff1f1;color:#c53b3b}.btn-brand.big{width:100%;padding:13px}.sm{padding:7px 10px;font-size:12px}.admin-layout{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#111820;color:#fff;padding:18px 14px;display:flex;flex-direction:column;gap:20px}.side-brand{background:#fff;border-radius:14px;padding:12px}.side-brand img{width:100%;display:block}.sidebar nav{display:grid;gap:7px}.sidebar nav a{display:flex;align-items:center;gap:9px;color:#d8dde4;padding:11px 12px;border-radius:10px}.sidebar nav a:hover,.sidebar nav a.active{background:var(--orange);color:#fff}.side-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:14px;display:flex;justify-content:space-between;align-items:center}.side-bottom button{background:none;border:0;color:#ffb16c}.admin-main{min-width:0}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 28px;position:sticky;top:0;z-index:20}.topbar>div{display:grid}.topbar small{color:var(--muted);font-size:11px}.site-link{margin-right:auto;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:12px}.mobile-brand{display:none}.admin-content{padding:28px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-title h1{font-size:30px;margin:0}.page-title p{margin:6px 0 0;color:var(--muted)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat,.panel-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 5px 20px rgba(20,28,38,.035)}.stat{padding:24px}.stat strong{display:block;font-size:34px;color:var(--orange)}.stat span{color:var(--muted)}.panel-card{padding:20px}.panel-card h3{margin:0 0 16px}.catalog-mini-list{display:grid;gap:8px}.catalog-mini-list button{width:100%;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;text-align:right;background:#fafafa;border:1px solid #eee;border-radius:12px;padding:10px}.catalog-mini-list b,.catalog-mini-list small{display:block}.catalog-mini-list small{color:var(--muted);margin-top:3px}.mini-cover{width:42px;height:52px;border-radius:7px;display:block}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.catalog-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.catalog-cover{height:235px;position:relative;padding:25px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(145deg,#fff,#fff6ed);overflow:hidden}.catalog-cover:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:var(--accent);opacity:.16;left:-80px;top:-80px}.catalog-cover img{position:absolute;top:18px;right:18px;width:145px;max-height:48px;object-fit:contain}.catalog-cover b{font-size:23px;z-index:1}.catalog-cover span{color:#666;margin-top:6px;z-index:1}.tpl-graphite{background:#1a1c20;color:#fff}.tpl-sunrise{background:linear-gradient(145deg,#fff,#ffe3c6)}.catalog-card-body{padding:16px}.catalog-card-body>div:first-child{display:flex;justify-content:space-between;align-items:center}.catalog-card-body h3{margin:14px 0 6px}.catalog-card-body code{display:block;direction:ltr;text-align:left;background:#fafafa;padding:7px;border-radius:8px;font-size:11px}.badge-status{font-size:11px;border-radius:999px;padding:5px 9px;background:#fff2d9;color:#b56c00}.badge-status.published{background:#e9f8ef;color:#188443}.card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.empty{padding:34px;text-align:center;color:var(--muted)}.editor-wrap{display:grid;gap:18px}.editor-head{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 18px}.editor-head>div{display:flex;align-items:center;gap:10px}.editor-head h1{font-size:20px;margin:0}.back{background:#f3f4f5;padding:8px 10px}.save-indicator{font-size:11px;color:var(--muted)}.editor-tabs{display:flex;gap:6px;background:#fff;border:1px solid var(--line);padding:6px;border-radius:14px;overflow:auto}.editor-tabs button{border:0;background:transparent;padding:10px 16px;border-radius:9px;white-space:nowrap}.editor-tabs button.active{background:var(--orange);color:#fff}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.slug-input{display:flex;direction:ltr;border:1px solid #dfe2e6;border-radius:12px;overflow:hidden}.slug-input span{padding:11px;background:#f4f5f6;color:#777}.slug-input input{border:0!important;border-radius:0!important}.template-select{display:grid;grid-template-columns:1fr 1fr;gap:8px}.template-select button{border:1px solid var(--line);background:#fafafa;border-radius:10px;padding:10px}.template-select button.active{border-color:var(--orange);color:var(--orange);background:#fff8f1}.logo-row{display:flex;align-items:center;justify-content:space-between;border:1px dashed #ddd;border-radius:13px;padding:12px}.logo-row img{width:180px;max-height:60px;object-fit:contain}.builder-layout{display:grid;grid-template-columns:300px minmax(420px,1fr) minmax(360px,520px);gap:16px;align-items:start}.section-head{display:flex;justify-content:space-between;align-items:center}.page-sidebar{display:grid;gap:8px;position:sticky;top:92px}.page-item{display:grid;grid-template-columns:22px 1fr auto;grid-template-rows:auto auto;gap:3px 8px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:9px;background:#fafafa}.page-item.active{border-color:var(--orange);background:#fff8f1}.page-item small{grid-column:2;color:var(--muted)}.page-item>div{grid-column:3;grid-row:1/3;display:flex;gap:3px}.page-item button,.block-top button{border:0;background:#fff;border:1px solid #eee;border-radius:6px}.red{color:#c33!important}.drag{color:#aaa;cursor:grab}.block-editor{min-width:0}.block-add{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.block-add button{border:1px dashed #d0d3d6;background:#fafafa;border-radius:9px;padding:8px}.block-card{border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:10px;background:#fcfcfc}.block-top{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}.block-top>div{display:flex;gap:4px}.block-card input,.block-card textarea,.block-card select{width:100%;border:1px solid #ddd;border-radius:9px;padding:9px;margin-top:7px}.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.image-slot{min-height:100px;border:1px dashed #ddd;border-radius:10px;display:grid;place-items:center;overflow:hidden;margin-bottom:8px}.image-slot img{width:100%;max-height:220px;object-fit:contain}.preview-col{position:sticky;top:92px;max-height:calc(100vh - 110px);overflow:auto;background:#ddd;border-radius:15px;padding:12px}.product-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr auto;gap:8px}.product-form input{border:1px solid #ddd;border-radius:9px;padding:9px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th,.data-table td{border-bottom:1px solid #eee;padding:8px;text-align:right;font-size:12px}.data-table th{background:#fafafa}.data-table input{width:100%;border:1px solid transparent;background:transparent;padding:6px;border-radius:6px}.data-table input:focus{border-color:#ddd;background:#fff}.table-del{border:0;background:#fff0f0;color:#b52d2d;border-radius:7px;width:30px;height:30px}.excel-grid{display:grid;grid-template-columns:380px 1fr;gap:18px}.upload-box{height:130px;border:2px dashed #d9dde2;border-radius:16px;background:#fafafa;display:grid;place-items:center;color:#555;margin:18px 0;cursor:pointer}.header-row td{background:#fff3e7!important;color:#a85a00}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.media-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;gap:8px}.media-card>div:first-child{height:150px;background:#f7f7f7;border-radius:10px;display:grid;place-items:center;overflow:hidden}.media-card img{width:100%;height:100%;object-fit:contain}.media-card b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-card small{color:var(--muted)}.media-card>div:last-child{display:flex;gap:6px}.pdf-icon{font-size:30px;font-weight:700;color:#c52d2d}.public-shell{min-height:100vh;background:#dfe2e5;padding:70px 18px 40px}.public-toolbar{position:fixed;z-index:50;top:0;left:0;right:0;height:58px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid #ddd;display:flex;align-items:center;gap:12px;padding:0 18px}.public-toolbar img{width:120px;max-height:40px;object-fit:contain}.public-toolbar b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-toolbar>div{margin-right:auto;display:flex;gap:6px}.public-toolbar button{border:1px solid #ddd;background:#fff;border-radius:8px;padding:7px 10px}.public-error{min-height:100vh;display:grid;place-items:center;font-size:20px}.catalog-document{display:grid;gap:24px;justify-content:center}.a4{width:210mm;min-height:297mm;background:#fff;position:relative;overflow:hidden;box-shadow:0 10px 35px rgba(0,0,0,.14);padding:16mm 14mm;page-break-after:always}.cover-page{padding:0;background:linear-gradient(145deg,#fff 0,#fff 58%,var(--accent-soft) 100%)}.cover-shape{position:absolute;background:var(--accent);border-radius:999px;transform:rotate(-18deg)}.cover-shape.one{width:170mm;height:24mm;left:-45mm;bottom:10mm}.cover-shape.two{width:100mm;height:10mm;left:-28mm;bottom:42mm;opacity:.25}.cover-logo{position:absolute;top:18mm;right:16mm;width:72mm;max-height:25mm;object-fit:contain}.cover-copy{position:absolute;right:20mm;top:95mm;width:145mm}.cover-copy span{color:var(--accent);font-weight:700;letter-spacing:1px}.cover-copy h1{font-size:26pt;margin:6mm 0 2mm}.cover-copy h2{font-size:14pt;color:var(--accent);direction:ltr;text-align:right;margin:0 0 7mm}.cover-copy p{max-width:115mm;line-height:2;color:#555}.cover-bottom{position:absolute;bottom:13mm;right:18mm;left:18mm;display:flex;justify-content:space-between;color:#fff;z-index:2}.page-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--accent);padding-bottom:4mm}.page-header img{width:42mm;max-height:13mm;object-fit:contain}.page-header span{font-size:10pt;color:#666}.page-main-title{font-size:19pt;margin:9mm 0 5mm;position:relative;padding-right:4mm}.page-main-title:before{content:"";position:absolute;right:0;top:0;bottom:0;width:1.4mm;background:var(--accent);border-radius:9px}.page-blocks{display:grid;gap:6mm}.content-page footer{position:absolute;bottom:8mm;right:14mm;left:14mm;border-top:1px solid #eee;padding-top:3mm;font-size:8pt;color:#777}.block-title{font-size:15pt;margin:0}.block-text{line-height:2;font-size:10.5pt;white-space:pre-wrap}.catalog-image{text-align:center;margin:0}.catalog-image img{max-width:100%;max-height:105mm;object-fit:contain}.catalog-image figcaption{font-size:8.5pt;color:#777;margin-top:2mm}.product-table-block h3,.product-list-block h3{font-size:13pt;margin:0 0 3mm}.product-table-block table{width:100%;border-collapse:collapse;table-layout:fixed}.product-table-block th{background:var(--accent);color:#fff}.product-table-block th,.product-table-block td{border:1px solid #e2e2e2;padding:2.1mm;font-size:8.2pt;text-align:right;word-break:break-word}.product-list-block{display:grid;gap:2mm}.product-list-row{display:grid;grid-template-columns:auto 1fr auto;gap:3mm;align-items:center;border-bottom:1px solid #eee;padding:2.4mm}.product-list-row img{width:16mm;height:16mm;object-fit:contain}.product-list-row b,.product-list-row small{display:block}.product-list-row small{color:#777;margin-top:1mm}.product-list-row strong{color:var(--accent)}.template-graphite .cover-page{background:#1b1d20;color:#fff}.template-graphite .cover-copy p{color:#d4d4d4}.template-minimal .cover-shape{display:none}.template-minimal .cover-page{background:#fff}.template-minimal .cover-bottom{color:#444}.compact .a4{transform-origin:top center;box-shadow:none}.compact{gap:12px}.compact .a4{width:100%;min-height:auto;aspect-ratio:210/297;padding:7%;font-size:70%}.compact .cover-copy{top:32%;right:9%;width:75%}.compact .cover-logo{top:6%;right:7%;width:38%}.compact .cover-copy h1{font-size:2.5vw}.compact .cover-copy h2{font-size:1.3vw}.compact .cover-bottom{bottom:5%;right:7%;left:7%}.compact .content-page footer{display:none}
@media(max-width:1150px){.builder-layout{grid-template-columns:260px 1fr}.preview-col{display:none}.excel-grid{grid-template-columns:1fr}.product-form{grid-template-columns:1fr 1fr 1fr}.stat-grid{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.admin-layout{grid-template-columns:1fr}.sidebar{position:fixed;z-index:60;bottom:0;top:auto;left:0;right:0;height:64px;padding:6px 10px;display:block}.side-brand,.side-bottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.sidebar nav a{padding:7px 4px;justify-content:center;flex-direction:column;gap:2px;font-size:10px}.sidebar nav a .ico{height:18px}.admin-main{padding-bottom:70px}.topbar{height:62px;padding:0 14px}.topbar>div,.site-link{display:none}.mobile-brand{display:block;border:0;background:#fff;font-weight:900;color:var(--orange)}.admin-content{padding:16px}.page-title{align-items:flex-start}.page-title h1{font-size:24px}.stat-grid{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:16px}.stat strong{font-size:27px}.two-col{grid-template-columns:1fr}.builder-layout{grid-template-columns:1fr}.page-sidebar{position:static}.product-form{grid-template-columns:1fr 1fr}.editor-head{align-items:flex-start;gap:10px}.editor-head>div:last-child{flex-wrap:wrap;justify-content:flex-end}.save-indicator{display:none}.catalog-grid{grid-template-columns:1fr}.public-shell{padding:68px 8px 25px}.public-toolbar b{display:none}.public-toolbar img{width:95px}.a4{width:100%;min-height:auto;aspect-ratio:210/297;padding:7%;box-shadow:0 5px 18px rgba(0,0,0,.15)}.cover-logo{top:6%;right:7%;width:40%;height:auto}.cover-copy{top:32%;right:9%;width:78%}.cover-copy h1{font-size:7vw;margin:4vw 0 1vw}.cover-copy h2{font-size:4vw}.cover-copy p{font-size:2.7vw;line-height:1.8}.cover-bottom{right:7%;left:7%;bottom:5%;font-size:2.3vw}.page-header{padding-bottom:2%}.page-header img{width:34%}.page-main-title{font-size:4.2vw;margin:4% 0}.product-table-block th,.product-table-block td{font-size:1.9vw;padding:1.2%}.block-text{font-size:2.4vw}.block-title,.product-table-block h3,.product-list-block h3{font-size:3.2vw}.content-page footer{bottom:3%;right:7%;left:7%;font-size:1.8vw}.product-list-row{font-size:2vw}.product-list-row img{width:9vw;height:9vw}}
@media print{body{background:#fff!important}.public-toolbar{display:none!important}.public-shell{padding:0!important;background:#fff!important}.catalog-document{display:block!important}.a4{width:210mm!important;height:297mm!important;min-height:297mm!important;aspect-ratio:auto!important;box-shadow:none!important;margin:0!important;page-break-after:always!important;break-after:page!important}.a4:last-child{page-break-after:auto!important}.cover-copy h1{font-size:26pt!important}.cover-copy h2{font-size:14pt!important}.cover-copy p{font-size:10pt!important}.product-table-block th,.product-table-block td{font-size:8.2pt!important}.block-text{font-size:10.5pt!important}}

/* v0.3.2 — adaptive product layouts + price list */
.product-block-fields{grid-template-columns:1fr 1fr 1fr}.excel-detect-badge{border:1px solid #dfe3e8;background:#f7f8fa;color:#59616b;border-radius:10px;padding:9px 11px;font-size:12px}.excel-detect-badge.price{background:#edf9f1;border-color:#ccebd7;color:#247246}.price-import-help{display:grid;gap:4px;background:#fafafa;border:1px solid var(--line);border-radius:12px;padding:12px}.price-import-help b{font-size:12px}.price-import-help span,.price-import-help small{font-size:11px;color:var(--muted);line-height:1.7}.replace-products-check{display:flex;align-items:flex-start;gap:9px;background:#fff8f1;border:1px solid #ffe0c4;border-radius:12px;padding:11px;font-size:12px;line-height:1.7}.replace-products-check input{width:auto;margin-top:3px;accent-color:var(--orange)}.excel-preview-head{display:flex;align-items:center;justify-content:space-between}.excel-preview-head small{color:var(--muted)}
.smart-product-table,.compact-price-table table,.price-list-block table{width:100%;border-collapse:collapse;table-layout:fixed}.smart-product-table th,.compact-price-table th{background:var(--accent);color:#fff}.smart-product-table th,.smart-product-table td,.compact-price-table th,.compact-price-table td{border:1px solid #e2e2e2;padding:2.15mm;font-size:8.2pt;text-align:right;word-break:break-word;vertical-align:middle}.smart-product-name{display:flex;align-items:center;gap:2mm}.smart-product-name img{width:10mm;height:10mm;object-fit:contain;flex:0 0 auto}.smart-product-name span{min-width:0}.price-cell{font-weight:700;white-space:nowrap}.mode-smart .smart-product-table th:last-child,.mode-smart .smart-product-table td:last-child{width:24%}.mode-full .smart-product-table th:last-child,.mode-full .smart-product-table td:last-child{width:18%}.compact-price-table th:nth-child(1){width:43%}.compact-price-table th:nth-child(2){width:35%}.compact-price-table th:nth-child(3){width:22%}
.price-list-block{direction:ltr}.price-list-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 2.5mm;font-size:9pt}.price-list-heading>b{font-size:12pt;direction:rtl}.price-list-heading>span{font-weight:800;letter-spacing:.07em}.price-list-block table{border:1.4px solid #171717}.price-list-block th{background:#090909;color:#fff;padding:2.1mm 2.5mm;font-size:9pt;text-align:center;border:1.2px solid #171717;font-weight:700}.price-list-block th:first-child{width:67%}.price-list-block th:last-child{width:33%}.price-list-block td{border:1.2px solid #171717;padding:1.85mm 2.5mm;font-size:8.9pt;line-height:1.15;text-align:center;vertical-align:middle}.price-list-block .price-section td{background:#111;color:#fff;font-weight:700;text-align:center;padding:1.8mm 2.5mm;letter-spacing:.01em}.price-list-block .price-item-value{font-weight:500;white-space:nowrap}.price-list-block .price-item-name{font-weight:500}.product-table-block.mode-price-list h3{display:none}
@media(max-width:800px){.product-block-fields{grid-template-columns:1fr}.price-list-block th,.price-list-block td{font-size:1.95vw;padding:1.1%}.price-list-heading{font-size:2vw}.price-list-heading>b{font-size:2.8vw}.smart-product-table th,.smart-product-table td,.compact-price-table th,.compact-price-table td{font-size:1.9vw;padding:1.15%}.smart-product-name img{width:6vw;height:6vw}}
@media print{.price-list-block th,.price-list-block td{font-size:8.9pt!important}.smart-product-table th,.smart-product-table td,.compact-price-table th,.compact-price-table td{font-size:8.2pt!important}.price-list-heading>b{font-size:12pt!important}}


/* v0.3.3 — responsive table sizing, safe footer, print pagination */
.a4.content-page{height:297mm;min-height:297mm;display:flex;flex-direction:column}
.content-page .page-header,.content-page .page-main-title{flex:0 0 auto}
.content-page .page-blocks{flex:1 1 auto;min-height:0;overflow:hidden;padding-bottom:2mm}
.content-page footer{position:static;right:auto;left:auto;bottom:auto;flex:0 0 auto;margin-top:4mm;background:#fff;z-index:3}
.product-table-block,.compact-price-table,.price-list-block{min-width:0;max-width:100%;overflow:hidden}
.smart-product-table{table-layout:auto!important;width:100%;max-width:100%}
.smart-product-table th,.smart-product-table td,.compact-price-table th,.compact-price-table td,.price-list-block th,.price-list-block td{overflow-wrap:anywhere;word-break:normal;white-space:normal}
.smart-product-table .smart-col-price{width:1%;min-width:20mm;white-space:nowrap;text-align:center}
.smart-product-table .smart-col-sku{width:1%;min-width:16mm;max-width:24mm;text-align:center}
.smart-product-table .smart-col-brand{width:16%;min-width:18mm}
.smart-product-table .smart-col-specs{width:30%}
.smart-product-table .smart-col-name{width:auto;min-width:34%}
.smart-cols-2 .smart-col-name{width:76%}.smart-cols-2 .smart-col-price{width:24%}
.smart-cols-3 .smart-col-name{width:58%}.smart-cols-3 .smart-col-price{width:22%}
.smart-cols-4 .smart-col-name{width:40%}.smart-cols-4 .smart-col-specs{width:27%}.smart-cols-4 .smart-col-price{width:20%}
.smart-cols-5 .smart-col-name{width:31%}.smart-cols-5 .smart-col-specs{width:28%}.smart-cols-5 .smart-col-brand{width:14%}.smart-cols-5 .smart-col-price{width:17%}
.smart-product-name{display:flex;align-items:center;gap:2mm;min-width:0;max-width:100%}
.smart-product-name span{min-width:0;overflow-wrap:anywhere;word-break:normal}
.compact-price-table table{table-layout:auto!important}
.compact-price-table th:nth-child(1),.compact-price-table td:nth-child(1){width:42%}
.compact-price-table th:nth-child(2),.compact-price-table td:nth-child(2){width:auto}
.compact-price-table th:nth-child(3),.compact-price-table td:nth-child(3){width:1%;min-width:20mm;white-space:nowrap}
.price-list-block table{table-layout:auto!important}
.price-list-block th:first-child,.price-list-block td:first-child{width:auto}
.price-list-block th:last-child,.price-list-block td:last-child{width:28%;min-width:28mm}
.price-list-block .price-item-value{white-space:normal;overflow-wrap:anywhere}

@media(max-width:800px){
  .a4.content-page{height:auto!important;min-height:0!important;aspect-ratio:210/297;display:flex!important}
  .content-page .page-blocks{padding-bottom:1.5%}
  .content-page footer{position:static!important;right:auto!important;left:auto!important;bottom:auto!important;margin-top:2%!important;padding-top:1.5%!important;font-size:1.65vw!important;line-height:1.45;background:#fff}
  .smart-product-table .smart-col-price{min-width:15vw}
  .smart-product-table .smart-col-sku{min-width:12vw;max-width:18vw}
  .smart-product-table .smart-col-name{min-width:0}
  .smart-product-table .smart-col-brand,.smart-product-table .smart-col-specs{min-width:0}
  .smart-product-table th,.smart-product-table td,.compact-price-table th,.compact-price-table td{line-height:1.35}
  .smart-product-name{gap:1vw}
}

@page{size:A4 portrait;margin:0}
@media print{
  html,body,#root{margin:0!important;padding:0!important;width:210mm!important;background:#fff!important}
  .catalog-document{gap:0!important;margin:0!important;padding:0!important}
  .a4{width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;overflow:hidden!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .a4:not(:last-child){page-break-after:always!important;break-after:page!important}
  .a4:last-child{page-break-after:auto!important;break-after:auto!important}
  .content-page .page-blocks{overflow:hidden!important}
  .content-page footer{position:static!important;margin-top:4mm!important}
}
