/* Additive PDF Collection UI. Existing Home widths, typography, gaps and artwork stay in home.css. */
#products .collection-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; }
#products .collection-toolbar-actions { display: flex; align-items: center; gap: 20px; }
#products .rail-controls button { min-width: 38px; min-height: 38px; }
#products .collection-new-dot { display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 4px; border-radius: 50%; background: #ad3d19; }
#products .pdf-art { width: 100%; height: 100%; position: relative; }
#products .pdf-icon { width: 24px; height: 24px; }
#products .pdf-art-glow { position: absolute; inset: 22px 4px 0; border-radius: 50%; background: radial-gradient(ellipse,#e1ebf6,transparent 66%); z-index: -1; }
#products .pdf-check { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #239963; background: #e2f2e9; flex: 0 0 auto; }
/* New PDF tools: native HTML/CSS illustrations, not screenshot backgrounds. */
#products .pdf-document { position: absolute; display: flex; flex-direction: column; width: 114px; height: 158px; padding: 15px; gap: 5px; background: #fff; border: 1px solid #e7eaf0; border-radius: 7px; box-shadow: 0 10px 18px #40577c1f; }
#products .pdf-document-type { width: 27px; padding: 2px 3px; border-radius: 2px; color: #fff; background: #ba4936; font-size: 8px; line-height: 1.3; font-weight: 600; align-self: flex-start; }
#products .pdf-document-dot { position: absolute; width: 5px; height: 5px; background: #d0d7e5; border-radius: 50%; top: 19px; right: 16px; }
#products .pdf-document-title { display: block; height: 4px; flex: 0 0 4px; width: 62%; margin: 7px 0 3px; background: #42474f; }
#products .pdf-document-line { display: block; height: 3px; flex: 0 0 3px; width: 100%; background: #d6dce6; }
#products .pdf-document-line--short { width: 75%; }
#products .pdf-document-block { display: block; width: 100%; height: 35px; flex: 0 0 35px; border-radius: 4px; background: #eaf1fd; margin: 7px 0; }
#products .pdf-merge-back { left: 13%; top: 64px; transform: rotate(-13deg) scale(.79); transform-origin: center; }
#products .pdf-merge-front { left: 23%; top: 42px; transform: rotate(4deg) scale(.84); }
#products .pdf-merge-result { left: 57%; top: 35px; transform: rotate(6deg); }
#products .pdf-merge-arrow { position: absolute; width: 34px; height: 34px; top: 109px; left: 49%; color: #007aff; stroke-width: 2; }
#products .pdf-result-pill { position: absolute; left: 56%; top: 188px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px 7px 7px; border: 1px solid #e4e9ef; border-radius: 999px; background: #fff; white-space: nowrap; font-size: 10px; font-weight: 600; color: #343a43; }
#products .pdf-result-pill .pdf-check { width: 21px; height: 21px; }
#products .pdf-result-pill .pdf-icon { width: 16px; height: 16px; }
#products .pdf-art--compress .pdf-art-glow { background: radial-gradient(ellipse, #e9dcf6 0%, transparent 70%); }
#products .pdf-compress-document { left: 32%; top: 34px; width: 125px; height: 177px; transform: rotate(-7deg); }
#products .pdf-size-icon { position: absolute; left: 15%; top: 22px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #e7e3f4; border-radius: 50%; background: #fff; color: #7766ce; }
#products .pdf-size-icon .pdf-icon { width: 24px; height: 24px; stroke-width: 2.3; }
#products .pdf-size-panel { position: absolute; top: 126px; left: 47%; width: 158px; padding: 13px 15px 10px; border: 1px solid #e9e6f4; border-radius: 16px; box-shadow: 0 12px 23px #67508318; background: #fff; text-align: left; }
#products .pdf-size-panel > span:first-child { display: block; color: #737582; font-size: 10px; }
#products .pdf-size-bar { display: block; height: 7px; margin-top: 7px; width: 100%; border-radius: 999px; background: #e8e8ef; }
#products .pdf-size-bar--after { width: 49%; background: #9486d8; }
#products .pdf-size-panel small { display: block; margin-top: 6px; color: #767481; font-size: 9px; }
#products .pdf-size-panel > .pdf-icon { position: absolute; width: 20px; height: 20px; top: 43px; right: 17px; color: #7766ce; stroke-width: 2.1; }


@media (max-width: 899px) {
  #products .collection-toolbar-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 599px) {
  #products .collection-toolbar-actions { display: none; }
  #products .product-filters { overflow-x: auto; max-width: 100%; }
  #products .pdf-art { position: absolute; width: 300px; height: 222px; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.72); }
}
#products:not([data-collection-ready]) .collection-toolbar-actions { display: none; }
@media print {
  #products .collection-toolbar { display: none; }
  #products .product[hidden] { display: block !important; }
}
