/* Shared inventory palette: catalog, live product selectors and landing. */
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products),#hg-tuftex-ficha,.avail-tbl,.avail-legend{--tx-ok:#285E4E;--tx-ok-bg:#E7F4EE;--tx-ok-border:#A1CFBC;--tx-out:#A63C48;--tx-out-bg:#FFF2F3;--tx-out-border:#E5C1C7;--tx-neutral:#625B67;--tx-neutral-bg:#F5F3F6;--tx-neutral-border:#DDD8E0}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measure.is-available,#hg-tuftex-ficha .pf-option.is-available{color:var(--tx-ok);background:var(--tx-ok-bg);border-color:var(--tx-ok-border)}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measure.is-empty,#hg-tuftex-ficha .pf-option.is-empty{color:var(--tx-out);background:var(--tx-out-bg);border-color:var(--tx-out-border)}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measure.is-absent,#hg-tuftex-ficha .pf-option.is-absent{color:var(--tx-neutral);background:var(--tx-neutral-bg);border-color:var(--tx-neutral-border)}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measure.is-unknown,#hg-tuftex-ficha .pf-option.is-unknown{color:#4D5967;background:#EFF3F7;border-color:#BAC6D2;border-style:dashed}
#hg-tuftex-ficha .pf-option[aria-pressed=true]{outline:2px solid #643463;outline-offset:1px}
#hg-tuftex-ficha .pf-option:focus-visible{outline:3px solid #643463;outline-offset:5px}
#hg-tuftex-ficha .pf-option::before{content:none!important}
#hg-tuftex-ficha .pf-option:disabled{opacity:1}
/* Compact controls; labels retain full accessible availability descriptions. */
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measure{box-sizing:border-box;flex-direction:row;gap:6px;min-height:44px;padding:6px 3px;white-space:nowrap}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measure-number{font-size:16px;font-weight:600;line-height:1.25}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measures{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measure:last-child{grid-column:auto}
#hg-tuftex-ficha .pf-size-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#hg-tuftex-ficha .pf-size-buttons .pf-option{min-height:44px;padding:7px 4px}
#hg-tuftex-ficha .pf-option .pf-option-label,#hg-tuftex-ficha .pf-size-buttons .pf-option .pf-option-label{display:block;font-size:16px;line-height:20px;padding:0;color:inherit;white-space:nowrap;word-break:normal;overflow-wrap:normal}
#hg-tuftex-ficha .pf-pack-buttons{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}
#hg-tuftex-ficha .pf-pack-buttons .pf-option{min-height:56px;padding:7px 6px}
#hg-tuftex-ficha .pf-pack-buttons .pf-option-label{font-size:15px}
#hg-tuftex-ficha .pf-option .pf-state{display:block;font-size:14px;line-height:20px;padding:0;color:inherit;white-space:nowrap;word-break:normal;overflow-wrap:normal}
#hg-tuftex-ficha .pf-selection-summary{margin:12px 0 0;font-size:14px;line-height:1.5;color:#643463;word-break:normal;overflow-wrap:normal}
#hg-tuftex-ficha .pf-buy{container-type:inline-size}
@container(min-width:600px){#hg-tuftex-ficha .pf-size-buttons{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:340px){#hg-tuftex-ficha .pf-size-buttons,:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-measures{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-grid{grid-template-columns:1fr}:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-card h3{min-height:0}:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-status{min-height:0}}

.avail-tbl .ind-g,.avail-legend .ind-g{background:var(--tx-ok-bg);color:var(--tx-ok)}.avail-tbl .ind-r,.avail-legend .ind-r{background:var(--tx-out-bg);color:var(--tx-out)}.avail-tbl .ind-n,.avail-legend .ind-n{background:var(--tx-neutral-bg);color:var(--tx-neutral)}

/* Selection denotes choice only; inventory retains its own palette. */
#hg-tuftex-ficha .pf-size-buttons .pf-option.is-available[aria-pressed=true]{color:var(--tx-ok);background:var(--tx-ok-bg);border-color:var(--tx-ok-border)}
#hg-tuftex-ficha .pf-size-buttons .pf-option.is-empty[aria-pressed=true]{color:var(--tx-out);background:var(--tx-out-bg);border-color:var(--tx-out-border)}
#hg-tuftex-ficha .pf-size-buttons .pf-option.is-absent[aria-pressed=true]{color:var(--tx-neutral);background:var(--tx-neutral-bg);border-color:var(--tx-neutral-border)}
#hg-tuftex-ficha .pf-size-buttons .pf-option.is-unknown[aria-pressed=true]{color:#4D5967;background:#EFF3F7;border-color:#BAC6D2}
#hg-tuftex-ficha .pf-reference-price{margin:10px 0 16px;padding:0;border:0}
#hg-tuftex-ficha .pf-reference-price #pf-price-caption{font-size:13px;color:var(--pf-muted)}
#hg-tuftex-ficha .pf-option-legend{margin:6px 0 14px}
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) .tx-photo .tx-image-error{padding:16px;font-size:14px;color:#625B67;text-align:center}

/* Final framing and attribution; compact selectors keep their approved size. */
#hg-tuftex-ficha .pf-visual>.pf-photo>img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;transform:none}
#hg-tuftex-ficha .pf-gallery-grid figure,#hg-tuftex-ficha .pf-gallery-grid figure:only-child{display:block;width:100%;max-width:420px;margin:0}
#hg-tuftex-ficha .pf-gallery-grid figcaption{padding:8px 0 0;text-align:left}
#hg-tuftex-ficha .pf-gallery-grid .pf-work-description{display:inline}
#hg-tuftex-ficha .pf-selection-summary{color:#342c36;font-weight:500}

/* Catalog card action: no hyperlink underline in any interaction state. */
:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) a.tx-card-link,:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) a.tx-card-link:hover,:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) a.tx-card-link:focus,:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) a.tx-card-link:active,:is(#hg-tuftex-complete,body#search #products,body#module-an_wishlist-list #products) a.tx-card-link:visited{text-decoration:none!important}
