/* Shared WordPress product cards; allocation-editor styles are shared with the quote list. */
.product-card { padding-bottom: 64px; color: #17334e; }
.product-card .breadcrumb { flex-wrap: wrap; }
.product-card .product-card-notice { margin: 0 0 28px; padding: 14px 18px; border-left: 3px solid #81a4be; background: #f3f6f8; color: #4b6071; font-size: 14px; line-height: 1.6; }
.product-card .product-card-layout {
  display: grid;
  grid-template-areas: "photo title" "photo details";
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-rows: auto 1fr;
  column-gap: 44px;
  align-items: start;
}
.product-card .product-card-photo { grid-area: photo; margin: 0; min-width: 0; }
.product-card .product-card-photo-image { height:570px; display:flex; align-items:center; justify-content:center; overflow:hidden; border:1px solid #dce5eb; border-radius:12px; background:#fff; }
.product-card .product-card-photo-image img { width:100%; height:100%; object-fit:contain; }
.product-card .product-card-photo-placeholder { min-height: 570px; padding: 32px; background: #edf2f5; border: 1px solid #dce5eb; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.product-card .product-card-photo-placeholder svg { color: #95aebf; margin-bottom: 28px; }
.product-card .product-card-photo-placeholder strong { font-size: 24px; }
.product-card .product-card-photo-placeholder span, .product-card .product-card-photo figcaption { color: #657787; }
.product-card .product-card-photo figcaption { margin-top: 14px; font-size: 13px; line-height: 1.6; }
.product-card .product-card-info { grid-area: title; min-width: 0; }
.product-card .product-card-details { grid-area: details; min-width: 0; }
.product-card .product-card-category { display: inline-block; padding: 5px 14px; background: #edf5fb; border-radius: 20px; color: #236fa7; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.product-card .product-card-info h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.16; margin: 12px 0 18px; letter-spacing: -.025em; }
.product-card .product-card-lead { color: #637282; font-size: 17px; line-height: 1.65; }
.product-card .product-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 28px 0; }
.product-card .product-card-facts dt { font-size: 22px; font-weight: 700; }
.product-card .product-card-facts dd { margin: 4px 0 0; color: #637282; font-size: 13px; }
.product-card .product-card-order { border-top: 1px solid #dce5eb; padding-top: 20px; }
.product-card .product-card-order h2 { font-size: 20px; margin: 0 0 10px; }
.product-card #product-card-order-title { scroll-margin-top: 6rem; }
.product-card .product-card-order > p { color: #637282; font-size: 13px; line-height: 1.6; }
.product-card .product-card-order-note { margin-top: 18px; }
.product-card .product-card-section-nav { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid #dce5eb; border-bottom: 1px solid #dce5eb; margin: 36px 0 26px; padding: 16px 0; }
.product-card .product-card-section-nav a { font-weight: 600; color: #1c527c; text-underline-offset: 6px; }
.product-card .product-card-section-nav[role="tablist"] { gap:8px; padding:8px 0; margin-bottom:20px; scroll-margin-top:100px; }
.product-card .product-card-section-nav [role="tab"] { display:flex; align-items:center; justify-content:center; min-height:46px; padding:10px 18px; border-radius:6px; text-decoration:none; border:1px solid transparent; }
.product-card .product-card-section-nav [role="tab"][aria-selected="true"] { background:#17334e; color:#fff; border-color:#17334e; }
.product-card .product-card-section-nav [role="tab"]:hover { background:#edf3f8; color:#17334e; }
.product-card .product-card-section-nav [role="tab"][aria-selected="true"]:hover { background:#244962; color:#fff; }
.product-card [role="tab"]:focus-visible, .product-card [role="tabpanel"]:focus-visible { outline:3px solid #2175bd; outline-offset:3px; }
.product-card .product-card-section[hidden] { display:none !important; }
@media (max-width:480px) {
  .product-card .product-card-section-nav[role="tablist"] { gap:4px; flex-wrap:nowrap; }
  .product-card .product-card-section-nav [role="tab"] { min-width:0; padding:10px 8px; font-size:13px; }
}
.product-card .product-card-section { scroll-margin-top: 130px; margin-top: 30px; }
.product-card .product-card-section h2 { font-size: clamp(23px,2.3vw,30px); line-height: 1.25; margin: 0 0 12px; }
.product-card .product-card-muted { color: #637282; font-size: 14px; line-height: 1.6; }
.product-card .product-card-characteristics { margin: 22px 0; }
.product-card .product-card-characteristics > div { display: grid; grid-template-columns: minmax(160px,26%) minmax(0,1fr); gap: 24px; padding: 17px 20px; font-size: 15px; line-height: 1.6; }
.product-card .product-card-characteristics > div:nth-child(odd) { background: #f3f6f8; }
.product-card .product-card-characteristics dt { color: #617385; }
.product-card .product-card-characteristics dd { margin: 0; }
.product-card .product-card-description { border: 1px solid #dce5eb; border-radius: 8px; padding: 18px 20px; }
.product-card .product-card-description summary { cursor: pointer; font-weight: 600; }
.product-card .product-card-description p { font-size: 15px; line-height: 1.75; }
.product-card .product-card-documents-slot { border-radius: 8px; background: #f3f6f8; padding: 20px; }
.product-card .product-card-documents-slot p { margin: 0 0 7px; }
.product-card .product-card-documents-slot p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
 .product-card .product-card-layout { column-gap: 26px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
 .product-card .product-card-photo-placeholder { min-height: 420px; padding: 20px; }
 .product-card .product-card-facts { gap: 18px; }
}
@media (max-width: 700px) {
 .product-card { padding-bottom: 40px; }
 .product-card .product-card-layout {
   grid-template-areas: "title" "photo" "details";
   grid-template-columns: minmax(0, 1fr);
   grid-template-rows: auto;
   row-gap: 22px;
 }
 .product-card .product-card-photo-placeholder { min-height: 280px; }
 .product-card .product-card-photo-image { height:380px; }
 .product-card .product-card-photo-placeholder strong { font-size: 21px; }
 .product-card .product-card-photo-placeholder svg { margin-bottom: 10px; }
 .product-card .product-card-info h1 { font-size: 30px; }
 .product-card .product-card-lead { font-size: 15px; }
 .product-card .product-card-facts dt { font-size: 20px; }
 .product-card .product-card-section-nav { margin-top: 28px; }
 .product-card .product-card-characteristics > div { grid-template-columns: 1fr; gap: 4px; padding: 14px; font-size: 14px; }
 .product-card .product-card-notice { font-size: 12px; padding: 12px; }
}


.product-card { overflow-wrap: anywhere; }
.product-card .product-card-photo-image, .product-card .product-card-photo-placeholder { height: 570px; min-height: 0; box-sizing: border-box; }
.product-card .product-card-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.product-card .product-card-gallery a { display: block; border: 1px solid #dce5eb; border-radius: 6px; overflow: hidden; background: #fff; }
.product-card .product-card-photo-open { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:100%; padding:0; border:0; border-radius:inherit; background:#fff; color:inherit; font:inherit; cursor:zoom-in; }
.product-card .product-card-photo-open:focus-visible { outline-offset:-4px; }
.product-card .product-card-photo-thumb { display:block; min-width:0; min-height:44px; padding:3px; border:2px solid #dce5eb; border-radius:6px; background:#fff; cursor:pointer; }
.product-card .product-card-photo-thumb:hover { border-color:#81a4be; }
.product-card .product-card-photo-thumb[aria-pressed="true"] { border-color:#17334e; box-shadow:0 0 0 1px #17334e; }
.product-card[data-gallery-enhanced] .product-card-gallery { grid-template-columns:repeat(auto-fit,minmax(50px,1fr)); }
.product-card .product-card-gallery img { display: block; width: 100%; height: 100px; object-fit: contain; }
.product-card .product-card-facts dt { color: #526a7e; font-size: 13px; font-weight: 400; line-height: 1.5; }
.product-card .product-card-facts dd { color: #17334e; font-size: 21px; font-weight: 700; line-height: 1.35; margin: 5px 0 0; }
.product-card .product-card-description { border: 0; padding: 0; }
.product-card .product-card-description p, .product-card .product-card-description li { font-size: 15px; line-height: 1.75; }
.product-card .product-card-description img { max-width: 100%; height: auto; }
.product-card .product-card-description table { display: block; max-width: 100%; overflow-x: auto; }
.product-card .product-card-documents-slot ul { margin: 0; padding-left: 22px; }
.product-card .product-card-documents-slot li + li { margin-top: 14px; }
.product-card a:focus-visible, .product-card button:focus-visible, .product-card summary:focus-visible { outline: 3px solid #3783b6; outline-offset: 3px; }
@media (max-width: 900px) {
 .product-card .product-card-photo-image, .product-card .product-card-photo-placeholder { height: 420px; }
}
@media (max-width: 700px) {
 .product-card .product-card-photo-image, .product-card .product-card-photo-placeholder { height: 280px; }
 .product-card .product-card-facts dd { font-size: 19px; }
 .product-card .product-card-gallery img { height: 72px; }
}

.catalog-photo-placeholder { display:flex; align-items:center; justify-content:center; padding:24px; color:#657787; font-size:15px; text-align:center; }
.quote-photo-placeholder { display:flex; align-items:center; justify-content:center; width:100%; min-height:90px; padding:8px; box-sizing:border-box; color:#657787; font-size:12px; text-align:center; }

/* Approved source-based visualizations. Match the accepted square preview scale. */
[data-image-group="apparel"] { --image-fill: 90%; }
[data-image-group="footwear"] { --image-fill: 88%; }
[data-image-group="insignia"] { --image-fill: 68%; }
[data-image-group="accessories"] { --image-fill: 78%; }
.product-card .product-card-photo-image,
.product-card .product-card-photo-placeholder,
.photo-product .photo-product-cover { width:100%; height:auto; min-height:0; aspect-ratio:1/1; padding:0; background:#fff; box-sizing:border-box; display:flex; align-items:center; justify-content:center; }
.product-card .product-card-photo-placeholder { padding:24px; }
.product-card .product-card-photo-image img,
.photo-product .photo-product-cover img { display:block; width:var(--image-fill,90%); height:var(--image-fill,90%); max-width:100%; max-height:100%; object-fit:contain; object-position:center; transform:none; mix-blend-mode:normal; }
.product-card .product-image-compare { display:block; min-height:44px; margin-top:8px; border:0; background:transparent; text-decoration:underline; text-underline-offset:3px; text-align:left; padding:4px 0; }
.product-card .product-image-compare[hidden] { display:none; }
.product-card .product-card-originals { margin-top:20px; padding:14px; border:1px solid #dce5eb; border-radius:8px; font-size:13px; color:#637282; }
.product-card-originals summary { cursor:pointer; min-height:32px; color:#17334e; font-weight:600; }
.product-card .product-card-source-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.product-card .product-card-source-grid figure { margin:0; min-width:0; }
.product-card .product-card-source-grid a { display:flex; aspect-ratio:1; background:#fff; align-items:center; justify-content:center; border:1px solid #dce5eb; border-radius:6px; }
.product-card .product-card-source-grid img { display:block; width:90%; height:90%; object-fit:contain; }
.product-card .product-card-source-grid figcaption { font-size:12px; }
.allocation-editor .allocation-fields-no-height { grid-template-columns:minmax(0,1fr) minmax(80px,.6fr); }
.allocation-editor .allocation-fields label[hidden], .allocation-editor .allocation-clarify[hidden], .allocation-variant-preview[hidden] { display:none; }
.allocation-editor select { width:100%; min-width:0; min-height:44px; padding:8px; border:1px solid #cbd7e1; border-radius:5px; background:#fff; color:#17334e; font:inherit; }
.allocation-editor select:focus-visible { outline:3px solid #3783b6; outline-offset:2px; }
.allocation-variant-preview { display:flex; gap:12px; align-items:center; margin:0 0 12px; }
.allocation-variant-preview img { width:80px; height:80px; padding:12px; box-sizing:border-box; object-fit:contain; background:#fff; border:1px solid #dce5eb; border-radius:5px; }
.allocation-variant-preview figcaption { font-size:12px; color:#637282; }
@media (max-width:390px) { .allocation-editor .allocation-fields-no-height { grid-template-columns:minmax(0,1fr) minmax(70px,.6fr); } }

.direction-grid.single > .direction-card:only-child { grid-column: 1 / -1; }

/* Compact saved allocations, retaining the same editable v5 rows for exports. */
.allocation-editor { margin-top:12px; }
.allocation-editor [hidden] { display:none !important; }
.allocation-editor .allocation-help { margin-bottom:10px; }
.allocation-editor .allocation-rows { gap:9px; }
.allocation-editor .allocation-row { position:relative; padding:56px 12px 12px; }
.allocation-editor .allocation-row legend { position:absolute; top:12px; left:12px; right:56px; height:32px; line-height:32px; padding:0; }
.allocation-editor .allocation-row > .allocation-remove { position:absolute; top:12px; right:12px; }
.allocation-editor .allocation-total { margin:10px 0; font-size:16px; }
.allocation-editor .allocation-feedback { min-height:0; margin:8px 0 0; font-size:12px; }
.allocation-editor .allocation-feedback:empty { display:none; }
.allocation-editor.is-collapsed .allocation-feedback:not(.is-error) { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
.allocation-editor .allocation-actions { gap:16px; }
.allocation-editor .allocation-actions .button,
.allocation-summary-actions .button { min-height:36px; padding:7px 12px; font-size:13px; flex:0 1 auto; }
.allocation-editor .allocation-actions .text-link,
.allocation-summary-actions .text-link { font-size:13px; padding:5px 0; }
.allocation-summary-lines { list-style:none; padding:0; margin:0 0 8px; }
.allocation-summary-lines li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 0; border-bottom:1px solid #e5ebf0; font-size:14px; line-height:1.5; }
.allocation-summary-lines li > span { min-width:0; overflow-wrap:anywhere; }
.allocation-summary-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.allocation-editor .allocation-remove,
[data-request-list] .quote-remove { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; min-width:32px; min-height:32px; flex:0 0 32px; padding:0; margin:0; border:1px solid #d6e1e9; border-radius:5px; background:#fff; color:#6a7782; font:400 24px/1 Arial,sans-serif; text-decoration:none; cursor:pointer; }
.allocation-editor .allocation-remove:not(:disabled):hover,
.allocation-editor .allocation-remove:not(:disabled):focus-visible,
[data-request-list] .quote-remove:hover,
[data-request-list] .quote-remove:focus-visible { color:#fff; background:#ba3036; border-color:#ba3036; outline:2px solid #ba3036; outline-offset:2px; }
.allocation-editor .allocation-remove:disabled { opacity:.35; cursor:default; }
[data-request-list] .quote-item { padding:16px; gap:14px; }
[data-request-list] .quote-item-name { margin-bottom:8px; }
[data-request-list] .quote-item-fields { gap:10px; }
[data-request-list] .quote-remove { margin-left:auto; }
.allocation-editor .allocation-variant-preview { margin:0 0 8px; gap:8px; }
.allocation-editor .allocation-variant-preview img { width:52px; height:52px; padding:7px; }
@media (max-width:700px) {
 .allocation-editor .allocation-actions .button { flex-basis:auto; }
 .allocation-editor .allocation-actions, .allocation-summary-actions { gap:12px; }
 .allocation-editor .allocation-summary-lines li { font-size:13px; }
 [data-request-list] .quote-item { padding:12px; gap:10px; }
 .allocation-editor .allocation-remove, [data-request-list] .quote-remove { width:36px; height:36px; min-height:36px; flex-basis:36px; }
 .allocation-editor .allocation-row { padding-top:60px; }
 .allocation-editor .allocation-row legend { height:36px; line-height:36px; }
}

[data-request-list] .quote-configure { grid-column:1 / -1; justify-self:start; max-width:100%; min-height:36px; padding:7px 12px; font-size:13px; margin-top:14px; }
.quote-export-actions { gap:16px; }
.quote-export-actions .button { min-height:36px; padding:7px 12px; font-size:13px; }
@media (max-width:700px) { .quote-export-actions { gap:12px; } }

/* Reserve a consistent inner gutter for select indicators across browsers. */
.allocation-editor select,
[data-request-list] .quote-unit-select {
 appearance:none;
 -webkit-appearance:none;
 padding-right:36px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23526a7e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;
 background-position:right 12px center;
 background-size:12px 8px;
}

/* Keep full source specifications readable when expanded on narrow screens. */
.product-card .product-card-description pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-card .product-card-description details th, .product-card .product-card-description details td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dce5eb; }

/* Shared catalogue provenance and marker legend, visible before each grid. */
.catalog-grid-legend { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid #81a4be; background: #f3f6f8; color: #4b6071; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* Opt-in 3D controls; moved unchanged from the product body into this existing stylesheet. */
.ht-pillow-3d-stage{position:relative}.ht-pillow-3d-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:12px;background:#fff;z-index:2}.ht-pillow-3d-actions{display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;margin:12px 0 0}.ht-pillow-3d-actions .ht-pillow-3d-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid #b8cbdc;border-radius:8px;background:var(--light,#f3f6f9);color:var(--navy,#0f2a47);font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;box-shadow:none;transition:none}.ht-pillow-3d-toggle svg{flex:none}.ht-pillow-3d-actions button:focus-visible{outline:3px solid #2175bd;outline-offset:3px}.ht-pillow-3d-actions [role=status]{flex-basis:100%;min-height:2.8em;color:#4b6071;font-size:13px}.ht-pillow-3d-stage[data-active=true] .product-card-photo-image{visibility:hidden;pointer-events:none}


/* Natural catalogue headings, without reserved provenance or title rows. */
body.ht-catalog-page .catalog-unified-grid > .photo-product:not(:has(> .catalog-product-image-note)) > .photo-product-body { margin-top: 0; }
body:is(.ht-catalog-page, .ht-seo-landing-page) :is(.catalog-unified-grid, .ht-seo-landing-grid) .photo-product > .photo-product-body :is(h3, h4) { min-height: 0; margin: 0; }
