/* CMS catalog: the public Jenff shell, independent of management styles. */
.catalog-page { min-height: 100vh; display: flex; flex-direction: column; }
.catalog-page > main { flex: 1; }
.catalog-page .topbar { flex-shrink: 0; }
.catalog-heading h1 { overflow-wrap: anywhere; }
.catalog-section { padding-top: 32px; }
.catalog-nav { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-bottom: 28px; border-bottom: 1px solid var(--detail-line); margin-bottom: 36px; }
.catalog-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 20px; border-radius: 30px; font-size: 14px; border: 1px solid transparent; }
.catalog-nav a[aria-current] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.catalog-empty { min-height: 200px; display: grid; place-items: center; text-align: center; padding: 40px 24px; line-height: 2; background: var(--sky); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.catalog-card { min-width: 0; }
.catalog-card > .object-media { display: block; aspect-ratio: 1; }
.catalog-card .object-media img { width: 100%; height: 100%; object-fit: contain; }
.catalog-card h2 { font-size: clamp(23px, 2vw, 30px); line-height: 1.45; margin: 18px 0 8px; overflow-wrap: anywhere; }
.catalog-card .object-price { font-size: 16px; }
.catalog-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 32px; }
.catalog-group { border-bottom: 1px solid var(--detail-line); }
.catalog-group a { display: block; padding: 24px 0; font: 26px/1.5 var(--serif); overflow-wrap: anywhere; }
.catalog-detail { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 6%; align-items: start; }
.catalog-gallery { display: grid; gap: 24px; }
.catalog-gallery:empty { display: none; }
.catalog-gallery img, .catalog-gallery video { width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.catalog-description { min-width: 0; max-width: 640px; overflow-wrap: anywhere; }
.catalog-description h2 { font-size: clamp(28px,3vw,42px); line-height: 1.4; margin: 0 0 20px; }
.catalog-description h3 { font-size: 25px; line-height: 1.5; margin: 30px 0 12px; }
.catalog-description p { margin: 16px 0; line-height: 1.95; }
.catalog-description .object-price { font-size: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--detail-line); }
.catalog-description p:last-child a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--detail-line); border-radius: 30px; margin-top: 16px; }
.catalog-page a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover:hover) and (pointer:fine) {
  .catalog-nav a:not([aria-current]):hover { background: var(--detail-tint); }
  .catalog-card h2 a:hover, .catalog-group a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
}
@media (max-width:1000px) { .catalog-grid,.catalog-groups { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
  .catalog-nav { gap: 6px; margin-bottom: 28px; padding-bottom: 24px; }
  .catalog-nav a { font-size: 13px; padding: 9px 10px; }
  .catalog-grid { gap: 28px 16px; }
  .catalog-card h2 { font-size: 21px; }
  .catalog-empty { min-height: 180px; padding: 32px 20px; font-size: 14px; }
  .catalog-detail { grid-template-columns: 1fr; gap: 32px; }
  .catalog-groups { grid-template-columns: 1fr; }
}
/* Product reading and buying share one clear hierarchy. */
.catalog-detail{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(28px,5vw,72px)}
.catalog-detail .catalog-gallery{gap:14px;position:sticky;top:110px}
.product-main-image{display:block;width:100%;padding:0;background:#eeece6;border:0;cursor:zoom-in;aspect-ratio:1}
.product-main-image img{height:100%;width:100%;max-height:none;object-fit:contain}
.product-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:3px}
.product-thumbnails button{flex:0 0 68px;padding:3px;border:1px solid transparent;background:transparent;aspect-ratio:1;border-radius:4px}
.product-thumbnails button[aria-pressed=true]{border:2px solid var(--ink);padding:2px}
.product-thumbnails img{display:block;width:100%;height:100%;object-fit:contain}
.catalog-gallery .product-gallery-hint{font-size:12px;line-height:1.6;color:var(--detail-muted,#526486);margin:0}
.catalog-description h1{font-size:clamp(28px,3vw,42px);line-height:1.4;margin:0 0 20px;letter-spacing:0}
.catalog-description .product-brand{font:13px/1.5 var(--sans);margin:0 0 10px;letter-spacing:.05em}
.catalog-description .object-price{border:0;padding:0;margin:20px 0 12px;font:28px/1.4 var(--sans);font-variant-numeric:tabular-nums}
.catalog-description .product-availability{font-size:13px;margin:0 0 22px}
.product-purchase{border-block:1px solid var(--detail-line);padding:22px 0;margin-bottom:28px}
.product-quantity-label{display:flex;align-items:center;justify-content:space-between;font-size:14px}
.product-quantity-label + .product-purchase-actions{margin-top:18px}
.product-quantity{display:inline-flex;align-items:center;border:1px solid var(--detail-line);border-radius:999px;overflow:hidden}
.product-quantity button{width:44px;height:44px;font-size:20px;border:0;background:transparent}
.product-quantity input{appearance:textfield;-moz-appearance:textfield;width:44px;min-height:44px;text-align:center;border:0;background:transparent;font:16px var(--sans);color:var(--ink)}
.product-quantity input::-webkit-inner-spin-button{appearance:none}
.catalog-description .product-stock-note{font-size:12px;margin:10px 0 18px;color:var(--detail-muted,#526486)}
.product-purchase-actions{display:flex;flex-wrap:wrap;gap:10px}
.product-purchase-actions button{min-height:48px;padding:12px 22px;font-size:14px;line-height:1.5;border-radius:999px;margin:0}
.product-purchase-actions .buy-button{flex:1 1 130px;width:auto}
.product-purchase-actions .member-secondary{border:1px solid var(--detail-line);background:transparent;color:var(--ink)}
.product-purchase-actions [aria-pressed=true]{background:var(--sky)}
.product-purchase-status:empty{display:none}.product-purchase-status{font-size:13px!important}
.product-intro{font-size:16px;line-height:1.9;margin-bottom:24px}
.product-facts{margin:0 0 28px;font:14px/1.8 var(--sans)}
.product-facts>div{display:grid;grid-template-columns:7em minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--detail-line)}
.product-facts dt{color:var(--detail-muted,#526486)}.product-facts dd{margin:0}
.product-background{border-bottom:1px solid var(--detail-line);padding:18px 0}
.product-background summary{cursor:pointer;font-size:16px;min-height:28px}.product-background h3{font-size:24px}
.product-sources{border-left:2px solid var(--detail-line);padding:2px 0 2px 14px;margin:18px 0 28px;color:var(--detail-muted,#526486);font:12px/1.8 var(--sans)}
.product-sources h4{font:600 12px/1.6 var(--sans);margin:0 0 5px}.product-sources p{font:inherit;margin:0 0 6px;line-height:1.8}.product-sources a{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:32px;margin-right:16px}
.product-lightbox{width:min(1100px,96vw);max-width:96vw;max-height:96dvh;padding:16px 20px;border-radius:12px;background:var(--cream)}
.product-lightbox header,.product-lightbox footer{display:flex;justify-content:space-between;align-items:center;gap:16px}
.product-lightbox header p{margin:0;font-size:14px;font-variant-numeric:tabular-nums}
.product-lightbox button{position:static;min-width:44px;min-height:44px;border:1px solid var(--detail-line);border-radius:999px;padding:8px 16px;background:transparent;color:var(--ink);font-size:14px}
.product-lightbox header button{font-size:25px;padding:0;width:44px}
.product-lightbox>img{width:100%;height:min(70dvh,800px);max-height:none;object-fit:contain;margin:12px 0}
.catalog-detail button:disabled{opacity:.45;cursor:default}
.catalog-detail :focus-visible,.product-lightbox :focus-visible{outline:2px solid var(--ink);outline-offset:4px}
@media(max-width:760px){.catalog-detail{grid-template-columns:1fr;gap:28px}.catalog-detail .catalog-gallery{position:static}.catalog-section{padding-top:22px}.catalog-nav{margin-bottom:24px}.catalog-description h1{font-size:28px}.product-thumbnails button{flex-basis:58px}.product-facts>div{grid-template-columns:6em minmax(0,1fr);gap:12px}}
@media(min-width:761px){.product-main-image{max-height:calc(100dvh - 260px);min-height:280px}.product-main-image img{max-height:calc(100dvh - 260px);min-height:280px}.catalog-detail .catalog-gallery{top:calc(var(--site-header-height,100px) + 16px)}}

.product-thumbnail-rail{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center}.product-thumbnails{position:relative;scrollbar-width:none;overscroll-behavior-x:contain}.product-thumbnails::-webkit-scrollbar{display:none}.thumbnail-arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--detail-line);border-radius:50%;color:var(--ink);background:var(--cream)}.thumbnail-arrow svg{width:18px;height:18px}.thumbnail-arrow:disabled{opacity:.3;cursor:default}.thumbnail-arrow:not(:disabled):hover{background:var(--sky)}
.product-purchase-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-purchase-actions button{width:100%;min-width:0;padding:12px 8px;white-space:nowrap}.product-secondary-actions{display:flex;align-items:center;gap:24px;margin-top:12px}.product-secondary-actions .member-secondary,.product-secondary-actions .jenff-share-entry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:8px 4px;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:13px;line-height:1.5}.product-secondary-actions .member-secondary[aria-pressed=true]{font-weight:600}.product-secondary-actions .jenff-share-entry svg{width:19px;height:19px}.product-secondary-actions button:hover{opacity:.7}
.thumbnail-arrow{border:0;border-radius:0;background:transparent}.thumbnail-arrow svg{width:30px;height:30px}.thumbnail-arrow:not(:disabled):hover{background:transparent;color:#315da4}
.thumbnail-arrow:first-child{justify-items:start}.thumbnail-arrow:last-child{justify-items:end}.thumbnail-arrow:first-child svg{transform:translateX(-9px)}.thumbnail-arrow:last-child svg{transform:translateX(9px)}

.lightbox-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;margin-top:12px}.lightbox-stage img{width:100%;height:min(76dvh,840px);max-height:none;object-fit:contain}.product-lightbox .lightbox-arrow{display:grid;place-items:center;width:44px;height:64px;padding:0;border:0;border-radius:0;background:transparent}.lightbox-arrow svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.lightbox-arrow:hover{opacity:.65}@media(max-width:600px){.product-lightbox{padding:12px 8px}.lightbox-stage{grid-template-columns:44px minmax(0,1fr) 44px;gap:2px}.lightbox-stage img{height:70dvh}}

.product-facts dt{display:flex;align-items:flex-start;gap:10px}.product-fact-icon{display:block;flex:0 0 20px;width:20px;height:20px;margin-top:3px;color:var(--detail-muted,#526486)}.product-facts dt span{min-width:0}@media(max-width:760px){.product-facts>div{grid-template-columns:8em minmax(0,1fr)}.product-facts dt{gap:8px}}
.product-facts>div{grid-template-columns:9em minmax(0,1fr)}

.product-background summary{display:flex;align-items:center;gap:10px;list-style:none}.product-background summary::-webkit-details-marker{display:none}.product-background summary .product-fact-icon{margin:0}.product-background summary::after{content:'+';margin-left:auto;font:20px/1 Arial,sans-serif}.product-background[open] summary::after{content:'−'}

/* Status and social actions form one bottom-aligned row at every width. */
.product-status-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 16px}
.catalog-description .product-status-row .product-availability{margin:0;line-height:1.5;min-width:0;padding-bottom:8px}
.product-status-row .product-secondary-actions{flex:0 0 auto;align-items:flex-end;gap:18px;margin:0}
.product-status-row .product-secondary-actions button{align-items:flex-end;padding:8px 0;min-height:44px;line-height:1.5;white-space:nowrap}
.product-sources .source-link-icon{display:inline-block;flex:0 0 15px;width:15px;height:15px;margin-left:5px;vertical-align:middle}
.product-main-image,.lightbox-stage>img{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.product-main-image img{-webkit-user-drag:none}
@media(max-width:400px){.product-status-row{gap:8px}.product-status-row .product-secondary-actions{gap:14px}}

/* Native, finger-following main image carousel; no JS transform loop. */
.product-main-image.has-native-gallery{overflow:hidden;touch-action:auto;min-width:0}
.product-main-track{display:flex;width:100%;height:100%;aspect-ratio:1;max-height:inherit;min-height:inherit;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:auto;border-radius:inherit}
.product-main-track::-webkit-scrollbar{display:none}
.product-main-slide{display:block;flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:start;scroll-snap-stop:always}
.product-main-track .product-main-slide img{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;pointer-events:none}
@media(prefers-reduced-motion:reduce){.product-main-track{scroll-behavior:auto}}

.product-entity{margin:24px 0 32px}.product-entity-heading{display:flex;align-items:center;gap:24px;margin:24px 0}.product-background .product-entity-heading h3{margin:0;min-width:0}.product-entity-image{display:block;width:112px;height:112px;flex:0 0 112px;object-fit:contain}.product-entity-image.is-portrait{border-radius:8px}.product-entity-image.is-logo{padding:6px}@media(max-width:600px){.product-entity-heading{gap:16px}.product-entity-image{width:88px;height:88px;flex-basis:88px}}

/* Image detail viewer: centered count, explicit zoom and pointer pan. */
.product-lightbox header{justify-content:flex-end}.product-lightbox header button{display:grid;place-items:center}.product-lightbox header button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.lightbox-viewport{position:relative;overflow:hidden;width:100%;height:min(64dvh,calc(96dvh - 200px),760px);touch-action:none;cursor:zoom-in;user-select:none;-webkit-user-select:none;outline-offset:-3px}.lightbox-viewport.is-zoomed{cursor:grab}.lightbox-viewport.is-zoomed:active{cursor:grabbing}.lightbox-stage .lightbox-viewport img{width:100%;height:100%;max-height:none;object-fit:contain;transform-origin:center;will-change:transform;pointer-events:none}
.product-lightbox .lightbox-caption{padding:0;border:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;margin-top:14px}.lightbox-caption p{margin:0;text-align:center}.lightbox-counter{font-size:14px;font-variant-numeric:tabular-nums;color:var(--ink)}.lightbox-zoom-controls{display:flex;align-items:center;justify-content:center;gap:12px}.lightbox-zoom-controls output{min-width:48px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.product-lightbox .lightbox-zoom-controls button{padding:4px 12px;min-width:44px}.lightbox-help,.lightbox-load-status{font-size:12px;color:var(--detail-muted)}.lightbox-load-status:empty{display:none}.product-lightbox button:disabled{opacity:.35;cursor:default}
@media(max-width:600px){.lightbox-viewport{height:min(calc(96vw - 92px),58dvh,calc(96dvh - 200px))}.lightbox-stage{grid-template-columns:32px minmax(0,1fr) 32px}.product-lightbox .lightbox-arrow{width:32px;min-width:32px}.lightbox-arrow svg{width:24px;height:24px}.lightbox-zoom-controls{gap:8px}}

.product-lightbox header{position:relative;justify-content:center;padding:0 48px;min-height:44px}.product-lightbox header>button{position:absolute;right:0;top:0}.lightbox-heading{text-align:center;min-width:0}.product-lightbox .lightbox-heading p{margin:0;text-align:center}.product-lightbox .lightbox-heading .lightbox-help{font-size:12px;line-height:1.5;margin-top:6px}
