/*
 * The catalogue's cards, the owner's „Arkusz z napisami” of 2026-11-19 (assets/js/catalog.js;
 * the prototypes are outside the repository, in ../prototypy/katalog-2026-11-18/, round 3).
 * A white card in the dress of the product page's „Dane techniczne”: the photograph on the
 * ice, „Porównaj” on it in words, the symbol, the group and the name, three key figures as
 * rows with dotted leaders under a navy rule, and at the foot the price beside „Do zapytania”
 * — words and an icon — and the cart, an icon. One view: the detailed one went with its
 * switch the same day. The old card, `.catalog-card`, is still a case study's device list
 * (case-study.php), so its rules in site.css and wordpress.css stay; none of them reaches
 * this card. shop-add.js fills the price and adds the cart for a customer; offer-add.js
 * renames the enquiry „Do oferty” for a salesperson, in amber here.
 */
.catalog-layout .catalog-grid.catalog-sheets{--e:cubic-bezier(.23,1,.32,1);--t-bg:#e6ebf5;--t-bg2:#f2f5fa;--t-line:#c4cfe3;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.catalog-sheet{position:relative;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(9,24,71,.05);transition:border-color .2s ease-out,box-shadow .2s ease-out}
.catalog-sheet-icon{width:16px;height:16px;flex:none}

/* the photograph, and „Porównaj” on it — placed from the card, since it follows the text in the page */
.catalog-sheet-stage{position:relative;height:168px;padding:14px;background:var(--t-bg2);border-bottom:1px solid var(--t-line)}
.catalog-sheet-stage .catalog-card-image,.catalog-sheet-stage .device-visual{width:100%;height:100%;display:grid;place-items:center;margin:0;mix-blend-mode:multiply}
.catalog-sheet-stage .catalog-card-image img{width:100%;height:100%;min-height:0;object-fit:contain}
.catalog-sheet .catalog-sheet-compare{position:absolute;top:10px;right:10px;z-index:2;height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 10px 0 8px;color:var(--navy2);background:#fff;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:800;cursor:pointer;transition:background-color .15s ease-out,color .15s ease-out,transform .16s var(--e)}
.catalog-sheet .catalog-sheet-compare input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.catalog-sheet-compare-icon{position:relative;width:16px;height:16px}
.catalog-sheet-compare-icon .catalog-sheet-icon{position:absolute;inset:0;transition:opacity .15s ease-out,transform .2s var(--e)}
.catalog-sheet-compare-icon .catalog-sheet-icon:last-child{opacity:0;transform:scale(.5)}
.catalog-sheet-compare-on{display:none}
.catalog-sheet .catalog-sheet-compare:has(input:checked){color:#fff;background:var(--navy);border-color:var(--navy)}
.catalog-sheet-compare:has(input:checked) .catalog-sheet-compare-icon .catalog-sheet-icon:first-child{opacity:0;transform:scale(.5)}
.catalog-sheet-compare:has(input:checked) .catalog-sheet-compare-icon .catalog-sheet-icon:last-child{opacity:1;transform:none}
.catalog-sheet-compare:has(input:checked) .catalog-sheet-compare-on{display:inline}
.catalog-sheet-compare:has(input:checked) .catalog-sheet-compare-off{display:none}
.catalog-sheet-compare:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}
.catalog-sheet .catalog-sheet-compare:active{transform:scale(.96)}

/* the text: the group shows over the symbol, which comes first in the page */
.catalog-sheet-body{display:flex;flex:1;flex-direction:column;padding:12px 14px 14px}
.catalog-sheet-group{order:-1;margin:0;color:var(--blue);font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.catalog-sheet h3{margin:0;color:var(--navy);font-size:19px;line-height:1.15;font-weight:850;letter-spacing:-.02em;overflow-wrap:anywhere}
.catalog-sheet h3 a{color:inherit}
.catalog-sheet-name{margin:3px 0 0;color:var(--muted);font-size:13px;line-height:1.35}
.catalog-sheet-facts{margin:10px 0 0;padding-top:6px;border-top:1.5px solid var(--navy)}
.catalog-sheet-facts div{display:flex;align-items:baseline;gap:6px;padding:4px 0;font-size:12.5px;line-height:1.35}
.catalog-sheet-facts dt{min-width:0;flex:1 1 auto;display:flex;gap:5px;color:var(--muted);white-space:nowrap}
.catalog-sheet-facts dt::after{content:"";min-width:10px;flex:1;border-bottom:1px dotted #aeb9cf;transform:translateY(-3px)}
.catalog-sheet-facts dd{max-width:60%;margin:0;overflow:hidden;color:var(--ink);font-weight:750;text-align:right;white-space:nowrap;text-overflow:ellipsis}
.catalog-sheet-nofacts{margin:10px 0 0;padding-top:8px;color:var(--muted);border-top:1.5px solid var(--line);font-size:12px}

/* the foot: the price, „Do zapytania” and the cart */
.catalog-sheet-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:12px}
.catalog-sheet-price{min-width:0;display:grid;line-height:1.15}
.catalog-sheet-price .card-buy-price{color:var(--navy);font-size:11.5px;font-weight:600;white-space:nowrap}
.catalog-sheet-price .card-buy-price b{font-size:18px;font-weight:850;letter-spacing:-.01em}
.catalog-sheet-price .card-buy-net{margin:0;color:var(--muted);font-size:11.5px;font-weight:400;white-space:nowrap}
.catalog-sheet-login{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-size:12.5px;font-weight:700}
.catalog-sheet-actions{display:flex;gap:6px;margin-left:auto}
.catalog-sheet .catalog-sheet-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 12px;color:#fff;background:var(--blue);border:0;border-radius:11px;font:inherit;font-size:12.5px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .15s ease-out,transform .16s var(--e)}
.catalog-sheet .catalog-sheet-choose{background:var(--navy2)}
.catalog-sheet .catalog-sheet-offer{color:var(--navy);background:#ffbf00}
.catalog-sheet .card-buy-button{width:40px;min-height:40px;display:grid;place-items:center;flex:none;padding:0;color:#fff;background:#1d9fb2;border:0;border-radius:11px;cursor:pointer;transition:background-color .15s ease-out,transform .16s var(--e)}
.catalog-sheet .card-buy-button svg{width:18px;height:18px}
.catalog-sheet .card-buy-button.is-done{background:var(--ok)}
.catalog-sheet .card-buy-button[aria-disabled="true"]{opacity:.7;cursor:progress}
.catalog-sheet .catalog-sheet-button:active,.catalog-sheet .card-buy-button:active{transform:scale(.97)}
.catalog-sheet .catalog-sheet-button:focus-visible,.catalog-sheet .card-buy-button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.catalog-sheet .card-buy-choice{min-width:0;flex:1 1 100%}
.catalog-sheet .card-buy-choice select{width:100%;min-height:34px;padding:4px 30px 4px 10px;color:var(--navy);background-color:#fff;border:1px solid var(--field-border);border-radius:10px;font:inherit;font-size:12.5px;font-weight:700}
@media (hover:hover) and (pointer:fine){
  .catalog-sheet:hover{border-color:var(--t-line);box-shadow:0 14px 36px rgba(9,24,71,.1)}
  .catalog-sheet .catalog-sheet-compare:not(:has(input:checked)):hover{background:var(--t-bg)}
  .catalog-sheet .catalog-sheet-enquiry:hover{background:#1f4fbf}
  .catalog-sheet .catalog-sheet-choose:hover{background:var(--navy)}
  .catalog-sheet .catalog-sheet-offer:hover{background:#e6ac00}
  .catalog-sheet .card-buy-button:hover{background:#147a89}
}
@media (max-width:560px){
  .catalog-layout .catalog-grid.catalog-sheets{grid-template-columns:1fr}
  .catalog-sheet-stage{height:150px}
}
@media (prefers-reduced-motion:reduce){
  .catalog-sheet-compare-icon .catalog-sheet-icon{transition:none}
}
