/* Real product photography keeps the paper palette while giving each tree room. */
.product-fit{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;margin-top:10px;padding:10px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);font-size:12px;text-align:left}
.product-fit[hidden]{display:none}
.product-fit:hover{text-decoration:underline;text-underline-offset:4px}
.catalog-controls{display:flex;align-items:end;gap:20px;margin:34px 0 18px;max-width:780px}
.catalog-controls label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:11px;letter-spacing:.15px}
.catalog-search{flex:1.6}.catalog-height{flex:1}
.catalog-controls input,.catalog-controls select{width:100%;min-height:48px;border:0;border-bottom:1px solid #a6b09c;border-radius:0;background:transparent;color:var(--ink);padding:10px 2px;font-size:15px;box-shadow:none}
.catalog-controls input::placeholder{color:#7b8174;opacity:1}
.catalog-controls select{padding-right:20px}
.catalog-reset{align-self:end;min-height:48px;background:none;border:0;padding:10px 0;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.catalog-reset:disabled{color:#91958a;text-decoration:none}
#catalog-status{font-size:11px;color:var(--muted);line-height:1.6;min-height:18px}
#catalog-status+.catalog-stage{margin-top:28px}
.catalog .product-grid{row-gap:55px}
.catalog-product{min-width:0;display:flex;flex-direction:column}
.catalog-product[hidden],.catalog-empty[hidden],.catalog-gallery [hidden]{display:none!important}
.catalog-product .product-visual{height:auto;aspect-ratio:4/5;background:#eeeade!important;isolation:isolate}
.catalog-product .product-visual::after{display:none}
.catalog-product .product-number{z-index:2;left:13px;top:12px;background:#fbf7eee8;color:var(--ink);font:11px var(--sans);padding:5px 7px;pointer-events:none}
.product-photo-button{display:block;position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left}
.product-photo{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transition:transform .35s ease}
.product-photo-button:hover .product-photo,.product-photo-button:focus-visible .product-photo{transform:scale(1.018)}
.product-photo-hint{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:12px;padding:7px 10px;background:#fbf7eeed;color:var(--ink);font-size:10px;line-height:1.4}
.product-photo-hint>span{font-size:16px}
.product-thumbnails{display:flex;align-items:start;gap:8px;min-height:70px;padding-top:10px;overflow-x:auto}
.product-thumbnail{flex:0 0 48px;width:48px;height:58px;padding:2px;background:transparent;border:1px solid transparent}
.product-thumbnail.is-active{border-color:var(--ink)}
.product-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.product-photo-pending{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;color:#6b7564;gap:10px}
.product-photo-pending>span:not(.product-photo-pending-star){font-size:14px;font-weight:600}
.product-photo-pending-star{font-family:var(--sans);font-size:45px;line-height:1;margin-bottom:10px;color:#a6ad98}
.product-photo-pending small{font-size:11px;line-height:1.6;max-width:170px}
.catalog-product .product-heading{margin-top:15px;margin-bottom:2px;min-height:65px;align-items:start}
.catalog-product .product-heading h3{font-size:clamp(21px,1.85vw,27px);line-height:1.16;letter-spacing:-.7px;overflow-wrap:anywhere}
.catalog-product .product-category{font-size:11px;margin-top:0;color:var(--muted);min-height:17px}
.product-size-label{display:block;font-size:10px;color:var(--muted);margin-top:20px}
.catalog-product .size-selector{flex-wrap:wrap;gap:4px;margin-top:4px;min-height:44px}
.catalog-product .size-selector button{min-width:58px;padding:8px 10px;font-size:11px}
.size-selector .size-unavailable{color:#7c8376;text-decoration:line-through}
.size-selector .size-unavailable.is-active{color:#fff9ec}
.catalog-product .product-availability{font-size:11px;color:var(--ink);margin-top:12px;display:flex;align-items:center;gap:6px}
.product-availability::before{content:'';width:5px;height:5px;border-radius:50%;background:#5b754e;flex:none}
.catalog-product .product-availability.is-unavailable{color:var(--muted)}
.product-availability.is-unavailable::before{background:#a6a89b}
.catalog-product .product-bottom{margin-top:12px;padding-top:10px;gap:8px;flex-wrap:wrap}
.catalog-product .product-price{font-size:12px;color:var(--ink);font-weight:600}
.catalog-product .product-bottom .text-button{gap:8px;font-size:12px}
.catalog-product .text-button:disabled{opacity:.5}
.catalog-empty{grid-column:1/-1;padding:55px 0 35px;border-top:1px solid var(--line)}
.catalog-empty h3{font-size:25px;letter-spacing:-.6px}
.catalog-empty p{font-size:13px;margin:12px 0;color:var(--muted)}
.catalog-empty .text-button{margin-top:8px}
.catalog-gallery-open{overflow:hidden}
.catalog-gallery{width:min(900px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:22px 24px 16px;background:var(--paper-light);border:0;color:var(--ink);overflow:auto;overscroll-behavior:contain}
.catalog-gallery::backdrop{background:#11291fe6}
.catalog-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.catalog-gallery .catalog-gallery-header h2{font-size:21px;line-height:1.2;letter-spacing:-.5px;padding-right:6px}
.catalog-gallery-close{flex:none;display:grid;place-items:center;border:0;background:transparent;font-size:30px;font-weight:300;line-height:1;width:44px;height:44px;padding:0}
.catalog-gallery-figure{margin:0;min-width:0}
.catalog-gallery-image{display:block;width:100%;height:min(65dvh,700px);object-fit:contain;background:#eeeadf}
.catalog-gallery-caption{padding:10px 0 0;text-align:center;font-size:11px;color:var(--muted);line-height:1.5}
.catalog-gallery-nav{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:6px}
.catalog-gallery-nav-button{display:grid;place-items:center;width:48px;height:44px;border:0;background:transparent;font-size:23px;padding:0}
.catalog-gallery-counter{min-width:48px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
@media(min-width:761px) and (max-width:1050px){
  .catalog .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 26px}
  .catalog-product .product-heading h3{font-size:24px}
}
@media(max-width:760px){
  .catalog-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 20px;margin-top:28px}
  .catalog-search{grid-column:1/-1}
  .catalog-controls label{font-size:10px;gap:4px}
  .catalog-controls input,.catalog-controls select{font-size:16px;min-height:46px}
  .catalog-reset{font-size:11px;min-height:46px;padding-right:2px}
  #catalog-status{font-size:10px;margin-top:4px}
  .catalog .product-grid{gap:42px}
  .catalog-product .product-visual{aspect-ratio:4/5}
  .catalog-product .product-heading{min-height:0;margin-top:13px}
  .catalog-product .product-heading h3{font-size:25px;line-height:1.17}
  .catalog-product .product-category{font-size:11px;margin-top:5px}
  .catalog-product .size-selector{gap:5px}
  .catalog-product .size-selector button{min-width:60px;padding:8px 10px}
  .product-thumbnails{min-height:68px}
  .product-size-label{margin-top:18px}
  .catalog-product .product-bottom{margin-top:10px}
  .catalog-product .product-bottom .text-button{font-size:13px;gap:12px}
  .catalog-product .product-price{font-size:12px}
  .catalog-gallery{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:14px 14px 10px}
  .catalog-gallery .catalog-gallery-header h2{font-size:18px;letter-spacing:-.3px}
  .catalog-gallery-header{margin-bottom:10px;gap:8px}
  .catalog-gallery-image{height:60dvh}
  .catalog-gallery-caption{font-size:10px}
}
@media(max-width:360px){
  .catalog-product .product-heading h3{font-size:23px}
  .catalog-product .size-selector{gap:2px}
  .catalog-product .size-selector button{min-width:53px;padding:8px}
  .catalog-product .product-bottom .text-button{font-size:12px;gap:8px}
}
@media(prefers-reduced-motion:reduce){.product-photo{transition:none}.product-photo-button:hover .product-photo,.product-photo-button:focus-visible .product-photo{transform:none}}
