/* 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; }

/* Excel has its own workbook illustration and green palette within the shared rail. */
#products .excel-workbook-art .pdf-art-glow { background: radial-gradient(ellipse, #d9f2e5 0%, transparent 70%); }
#products .excel-workbook { position: absolute; left: 25%; top: 28px; width: 155px; height: 184px; padding: 12px; border: 1px solid #cce2d6; border-radius: 9px; background: #fff; box-shadow: 0 12px 25px #235e3c20; transform: rotate(-5deg); overflow: hidden; }
#products .excel-workbook-header { display: flex; align-items: center; justify-content: space-between; color: #218052; }
#products .excel-workbook-header > span { padding: 3px 6px; border-radius: 3px; color: #fff; background: #218052; font-size: 8px; font-weight: 600; }
#products .excel-workbook-header .pdf-icon { width: 15px; height: 15px; }
#products .excel-column-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; padding: 4px 0; background: #e7f4ec; color: #4b7b60; font-size: 7px; text-align: center; }
#products .excel-cell-grid { height: 49px; border: 1px solid #dbe9e0; background: linear-gradient(#edf7f1, #edf7f1) 0 0 / 25% 100% no-repeat, repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), #dbe9e0 calc(25% - 1px), #dbe9e0 25%), repeating-linear-gradient(to bottom, transparent 0, transparent 11px, #dbe9e0 11px, #dbe9e0 12px); }
#products .excel-chart { display: flex; align-items: flex-end; gap: 7px; height: 38px; margin: 10px 9px 9px; border-bottom: 1px solid #dbe9e0; }
#products .excel-chart span { width: 13px; height: 42%; border-radius: 2px 2px 0 0; background: #8ccba7; }
#products .excel-chart span:nth-child(2) { height: 65%; }
#products .excel-chart span:nth-child(3) { height: 54%; }
#products .excel-chart span:nth-child(4) { height: 88%; background: #218052; }
#products .excel-chart span:nth-child(5) { height: 72%; }
#products .excel-sheet-tab { display: inline-block; padding: 2px 7px; border-bottom: 2px solid #218052; color: #218052; background: #edf7f1; font-size: 7px; }
#products .excel-workbook-art .pdf-size-panel { left: 48%; top: 132px; border-color: #d3e8dc; box-shadow: 0 12px 23px #235e3c16; }
#products .excel-workbook-art .pdf-size-bar { background: #e4efe8; }
#products .excel-workbook-art .pdf-size-bar--after { width: 38%; background: #4ca573; }
#products .excel-workbook-art .pdf-size-panel small { color: #527662; }
#products .excel-workbook-art .pdf-size-panel > .pdf-icon { color: #218052; }


@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; }
}

/* The Packer card (owner 2026-11-28): a flat carton blank behind a folded box, in the Packer kraft palette.
   Claude Opus 5.5 (claude-opus-5-5), 2026-11-28. */
#products .packer-art .art-glow { background: radial-gradient(ellipse, #efdcbf, transparent 68%); }
#products .packer-card-art { position: relative; width: 78%; height: 82%; }
#products .packer-card-art svg { position: absolute; display: block; filter: drop-shadow(0 12px 18px #5a3a1a26); }
#products .packer-card-art :is(rect, polygon) { stroke: #9b6a3a; stroke-width: .6; }
#products .packer-blank { left: 0; top: 6%; width: 74%; transform: rotate(-7deg); }
#products .packer-box { right: 2%; bottom: 4%; width: 50%; transition: transform .5s var(--ease, ease); }
#products .product:hover .packer-box { transform: translateY(-5px); }
#products .packer-panel { fill: #d6a467; }
#products .packer-flap { fill: #ecca97; }
#products .packer-glue { fill: #b47c40; }
#products .packer-score { fill: none; stroke: #2a1b0e; stroke-width: 1; stroke-dasharray: 4 3; opacity: .6; }
#products .packer-pill { position: absolute; left: 4%; bottom: 6%; padding: 7px 11px; border-radius: 999px; background: #2a1b0e; color: #f9f0e1; font-size: 11px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 8px 16px #2a1b0e33; }
@media (prefers-reduced-motion: reduce) { #products .packer-box { transition: none; } }
