/* OWNER UX CORRECTIVE V4 — presentation and staging-commerce layer. */

/* Header cart and mini-cart. */
.jg-header-commerce{margin-left:auto;display:flex;align-items:center}
.jg-header-commerce>button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:8px 13px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-weight:750}
.jg-header-commerce svg{width:20px;height:20px}
.jg-cart-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:var(--forest);color:#fff;font-size:.75rem;line-height:1}
.jg-mini-cart{width:min(560px,calc(100% - 32px))}
.jg-mini-cart-body{padding:24px;max-height:min(70dvh,700px);overflow:auto}
.jg-mini-cart .woocommerce-mini-cart{list-style:none;margin:0;padding:0}
.jg-mini-cart .woocommerce-mini-cart-item{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px 15px;padding:15px 34px 15px 0;border-bottom:1px solid var(--line)}
.jg-mini-cart .woocommerce-mini-cart-item>a:not(.remove){display:grid;grid-template-columns:72px minmax(0,1fr);gap:15px;grid-column:1/-1;align-items:center;font-weight:700;line-height:1.45}
.jg-mini-cart .woocommerce-mini-cart-item img{width:72px;height:72px;object-fit:contain}
.jg-mini-cart .remove{position:absolute;right:0;top:15px;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);font-size:1.25rem}
.jg-mini-cart .quantity{grid-column:2;width:auto;color:var(--muted);font-size:.875rem}
.jg-mini-cart .woocommerce-mini-cart__total{display:flex;justify-content:space-between;gap:20px;padding:20px 0 12px;font-size:1.05rem}
.jg-mini-cart .woocommerce-mini-cart__buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.jg-mini-cart .woocommerce-mini-cart__buttons a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border:1px solid var(--forest);font-weight:750}
.jg-mini-cart .woocommerce-mini-cart__buttons .checkout{background:var(--forest);color:#fff}

/* One shared card contract for category, filtered, and search archives. */
.nv-product-card .nv-product-price{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:end;gap:8px 12px;margin:12px 0 4px;color:var(--ink)}
.nv-product-card .nv-product-price>strong{display:inline-flex;align-items:baseline;max-width:100%;font-family:var(--font),Arial,sans-serif;font-size:clamp(1.625rem,1.1rem + .65vw,1.95rem)!important;font-weight:800;line-height:1.12;letter-spacing:-.025em;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;text-rendering:optimizeLegibility}
.nv-product-card .nv-product-price .woocommerce-Price-amount{display:inline-flex;align-items:baseline;gap:.18em;white-space:nowrap;font-size:inherit!important;font-weight:inherit;color:inherit;line-height:inherit}
.nv-product-card .nv-product-price .woocommerce-Price-currencySymbol{font-size:.68em;letter-spacing:0}
.nv-product-card .jg-free-delivery-badge{display:inline-flex;grid-column:1;grid-row:2;align-items:center;gap:9px;width:fit-content;max-width:100%;padding:7px 12px;border-radius:4px;background:#e9f5e7;color:#176e32!important;font-size:.8125rem!important;font-weight:750;line-height:1.35}
.nv-product-card .jg-free-delivery-badge::before{content:'✓';display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:#d5e9d3;color:#176e32;font-size:.875rem;font-weight:800}
.nv-product-card .nv-product-add{position:relative;grid-column:2;grid-row:1/3;align-self:end;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #79a86a;border-radius:8px;background:#fff;color:#176e32;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.nv-product-card .nv-product-add:hover,.nv-product-card .nv-product-add:focus-visible{background:#176e32;border-color:#176e32;color:#fff;transform:translateY(-1px)}
.nv-product-card .nv-product-add:focus-visible{outline:3px solid rgba(23,110,50,.22);outline-offset:2px}
.nv-product-card .nv-product-add:disabled{opacity:.55;cursor:wait;transform:none}
.nv-product-card .nv-product-add::after{content:attr(data-tooltip);position:absolute;right:0;bottom:calc(100% + 9px);z-index:8;width:max-content;max-width:180px;padding:7px 10px;border-radius:6px;background:#1f2922;color:#fff;font-size:.75rem;font-weight:650;line-height:1.3;box-shadow:0 5px 16px rgba(18,33,21,.2);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none}
.nv-product-card .nv-product-add:hover::after,.nv-product-card .nv-product-add:focus-visible::after{opacity:1;visibility:visible;transform:translateY(0)}
.nv-product-card .nv-product-add svg{width:22px;height:22px}

/* Multi-column catalogue rows use the tallest natural title in that row.
   The script supplies the measured value; the legacy three-line minimum
   remains a safe fallback until the measurement is ready. */
@media(min-width:761px){
  .nv-listing .nv-product-grid.jg-title-rows-ready>.nv-product-card h2{min-height:var(--jg-product-title-row-height,auto);margin-bottom:4px!important}
  .nv-listing .nv-product-card .nv-product-price{min-height:72px;margin-top:8px}
  .nv-listing .nv-product-grid.jg-title-rows-ready>.nv-product-card .nv-product-price{min-height:var(--jg-product-price-row-height,auto)}
}

/* The source defect used a flexible label and intrinsic-width value. The
   corrected contract reserves a useful label column and lets value shrink. */
.jg-parity-pdp .jg-quick-specs>div{grid-template-columns:minmax(9.25rem,auto) minmax(0,1fr);column-gap:18px;align-items:start}
.jg-parity-pdp .jg-quick-specs dt{min-width:0;word-break:normal;overflow-wrap:normal;hyphens:none}
.jg-parity-pdp .jg-quick-specs dd{min-width:0;max-width:100%;word-break:normal;overflow-wrap:anywhere;hyphens:auto;text-align:right}

/* PDP uses the page canvas while retaining readable prose measure. */
.jg-parity-pdp.wrap,.detail-layout.wrap{width:min(100% - 48px,1680px);max-width:1680px}
.detail-layout{grid-template-columns:minmax(190px,250px) minmax(0,1fr);gap:clamp(34px,4vw,76px)}
.details-main{min-width:0;max-width:none}
.details-main .detail-heading,.details-main .original-note,.details-main .jg-warranty-box>p,.details-main .jg-warranty-narrative,.details-main .jg-warranty-service,.details-main .data-section>p{max-width:82ch}
.source-description{min-width:0;max-width:none}
.source-description>*{max-width:100%}
.source-description p,.source-description li,.source-description .productMainContent{max-width:82ch}
.source-description img{display:block;max-width:100%!important;height:auto!important}
.source-description table{width:100%!important;max-width:100%!important;table-layout:auto}
.source-description td,.source-description th{max-width:100%;overflow-wrap:anywhere}
.source-description [style*="width"],.source-description [width]{max-width:100%!important}
.source-description img[style*="width"],.source-description img[width]{width:auto!important}
.source-description table[style*="width"],.source-description table[width]{width:100%!important}
.source-description div[style*="width"],.source-description section[style*="width"]{width:auto!important}
.source-description center{max-width:100%}
.source-description .detailPhoto{width:auto!important;max-width:100%!important;max-height:none!important;height:auto!important}
.spec-table,.jg-documents,.jg-warranty-box{max-width:none}
.pdp6-page .details-main>.jg-warranty-box,.pdp6-page .jg-warranty-box{width:100%;max-width:none;box-sizing:border-box}

/* Full-viewport product gallery. The image always fits the available stage;
   navigation and thumbnails own separate layout areas and never crop media. */
dialog.jg-gallery-dialog{inset:0;box-sizing:border-box;display:none;grid-template-columns:minmax(0,1fr) minmax(280px,340px);grid-template-rows:auto minmax(0,1fr);width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;overflow:hidden;background:#fff;box-shadow:none}
dialog.jg-gallery-dialog[open]{display:grid}
.jg-gallery-dialog::backdrop{background:#10261dd9}
.jg-gallery-dialog-head{grid-column:2;grid-row:1;min-width:0;min-height:112px;padding:22px 24px;border-bottom:1px solid var(--line);border-left:1px solid var(--line)}
.jg-gallery-dialog-heading{min-width:0;margin-right:auto}
.jg-gallery-dialog-heading>p,.jg-gallery-dialog-thumbs>p{margin:0 0 5px;font-size:.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.jg-gallery-dialog-head h2{max-width:195px;margin:0;font-family:var(--font),Arial,sans-serif;font-size:1rem;line-height:1.45;font-weight:700;text-transform:none;overflow-wrap:anywhere}
.jg-gallery-dialog-head>button{flex:0 0 48px;width:48px;height:48px;margin-left:12px}
.jg-gallery-dialog-counter{align-self:flex-start;flex:0 0 auto;margin:13px 0 0 8px;font-family:var(--font);font-size:.875rem;font-weight:650;color:var(--muted);white-space:nowrap}
.jg-gallery-dialog-stage{position:relative;grid-column:1;grid-row:1/3;display:grid!important;place-items:center;align-self:stretch;box-sizing:border-box;width:100%;height:100%!important;min-width:0;min-height:0;padding:clamp(32px,5vw,86px)!important;overflow:hidden;background:#fff;touch-action:pan-y}
.jg-gallery-dialog-stage>img{display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;mix-blend-mode:normal;transform:translate3d(var(--jg-gallery-pan-x,0),var(--jg-gallery-pan-y,0),0) scale(var(--jg-gallery-scale,1));transform-origin:var(--jg-gallery-origin-x,50%) var(--jg-gallery-origin-y,50%);will-change:transform;user-select:none;-webkit-user-drag:none}
.jg-gallery-dialog-stage.is-resetting>img{transition:transform .18s ease-out}
.jg-gallery-zoom-hint{display:none}
.jg-gallery-dialog-thumbs{grid-column:2;grid-row:2;min-width:0;min-height:0;padding:22px 20px;border-left:1px solid var(--line);overflow-y:auto;overscroll-behavior:contain;background:#fff}
.jg-gallery-dialog-thumb-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.jg-gallery-dialog-thumb-list button{box-sizing:border-box;display:grid;place-items:center;min-width:0;aspect-ratio:1/1;border:1px solid var(--line);border-radius:4px;padding:5px;background:#fff}
.jg-gallery-dialog-thumb-list button.active{border:2px solid var(--forest)}
.jg-gallery-dialog-thumb-list img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}
.jg-gallery-nav{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:54px;height:54px;margin-top:-27px;border:1px solid #cbd6be;border-radius:999px;background:#fffffff2;color:var(--ink);box-shadow:0 5px 22px #0002}
.jg-gallery-nav svg{width:21px;height:21px}
.jg-gallery-prev{left:clamp(12px,2vw,30px);transform:rotate(180deg)}
.jg-gallery-next{right:clamp(12px,2vw,30px)}

@media(max-width:1099px){
  dialog.jg-gallery-dialog{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
  .jg-gallery-dialog-head{grid-column:1;grid-row:1;min-height:76px;padding:12px 18px;border-left:0}
  .jg-gallery-dialog-heading>p{margin:0;font-family:'Barlow Condensed',Arial,sans-serif;font-size:clamp(1.35rem,3.4vw,2rem);font-weight:600;line-height:1;text-transform:uppercase;color:var(--ink)}
  .jg-gallery-dialog-head h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .jg-gallery-dialog-counter{align-self:center;margin:0 0 0 10px;font-size:.9375rem}
  .jg-gallery-dialog-head>button{order:3;margin-left:auto}
  .jg-gallery-dialog-stage{grid-column:1;grid-row:2;padding:clamp(26px,6vw,64px) clamp(66px,10vw,100px)!important;touch-action:none}
  .jg-gallery-zoom-hint{position:absolute;z-index:3;left:50%;bottom:14px;display:flex;align-items:center;justify-content:center;gap:9px;max-width:calc(100% - 120px);margin:0;padding:7px 11px;border-radius:999px;background:#fffffff0;color:#61706a;box-shadow:0 2px 10px #10261d17;font-size:.8125rem;line-height:1.25;text-align:center;transform:translateX(-50%);transition:opacity .16s ease;pointer-events:none}
  .jg-gallery-zoom-hint svg{flex:0 0 28px;width:28px;height:28px;color:var(--forest)}
  .jg-gallery-dialog-stage.is-zoomed .jg-gallery-zoom-hint,.jg-gallery-dialog-stage.is-zoomed .jg-gallery-nav{opacity:0;pointer-events:none}
  .jg-gallery-dialog-thumbs{grid-column:1;grid-row:3;padding:14px 18px 16px;border-top:1px solid var(--line);border-left:0;overflow:hidden}
  .jg-gallery-dialog-thumbs>p{margin-bottom:10px}
  .jg-gallery-dialog-thumb-list{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:2px}
  .jg-gallery-dialog-thumb-list button{flex:0 0 74px;width:74px;height:74px;aspect-ratio:auto}
}

@media(max-width:600px){
  .jg-gallery-dialog-head{min-height:64px;padding:8px 12px}
  .jg-gallery-dialog-head>button{width:46px;height:46px;flex-basis:46px;margin-left:8px}
  .jg-gallery-dialog-stage{padding:18px 58px!important}
  .jg-gallery-zoom-hint{bottom:10px;max-width:calc(100% - 32px);font-size:.75rem}
  .jg-gallery-zoom-hint svg{flex-basis:25px;width:25px;height:25px}
  .jg-gallery-dialog-thumbs{padding:10px 12px 12px}
  .jg-gallery-dialog-thumbs>p{margin-bottom:7px}
  .jg-gallery-dialog-thumb-list button{flex-basis:62px;width:62px;height:62px}
  .jg-gallery-nav{width:46px;height:46px;margin-top:-23px}
  .jg-gallery-prev{left:8px}.jg-gallery-next{right:8px}
}

@media(max-height:520px) and (orientation:landscape){
  dialog.jg-gallery-dialog{grid-template-rows:54px minmax(0,1fr) 76px}
  .jg-gallery-dialog-head{min-height:54px;padding:4px 12px}
  .jg-gallery-dialog-head>button{width:44px;height:44px;flex-basis:44px}
  .jg-gallery-dialog-stage{padding:10px 66px!important}
  .jg-gallery-zoom-hint{bottom:3px;gap:6px;padding:4px 9px;font-size:.6875rem}
  .jg-gallery-zoom-hint svg{flex-basis:22px;width:22px;height:22px}
  .jg-gallery-dialog-thumbs{padding:6px 12px 8px}
  .jg-gallery-dialog-thumbs>p{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .jg-gallery-dialog-thumb-list button{flex-basis:60px;width:60px;height:60px}
}

/* PDP purchase card. */
.jg-commerce-facts{list-style:none;margin:20px 0;padding:0;border-top:1px solid var(--line)}
.jg-commerce-facts li{display:grid;grid-template-columns:minmax(6.5rem,.75fr) minmax(0,1.25fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.8125rem;line-height:1.5}
.jg-commerce-facts span{text-align:right;overflow-wrap:anywhere}
.jg-purchase-form{display:grid;grid-template-columns:auto 92px minmax(150px,1fr);gap:10px;align-items:end;margin-top:20px}
.jg-purchase-form>label{grid-column:1/-1;font-size:.75rem;font-weight:700}
.jg-purchase-form .quantity{width:92px}
.jg-purchase-form input.qty{width:100%;min-height:50px;border:1px solid var(--line);padding:10px;text-align:center;font:inherit}
.jg-purchase-form .primary{min-height:50px;border:0;background:var(--forest);color:#fff;font:inherit;font-weight:750;padding:10px 18px}
.jg-cta-explanation{margin-top:10px;font-size:.72rem;line-height:1.5;color:var(--muted)}
.jg-product-contact{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;margin-top:18px}
.jg-commerce-notices:empty{display:none}
.jg-commerce-notices .woocommerce-message,.jg-commerce-notices .woocommerce-error{margin:0 0 20px;padding:14px 18px;border-left:4px solid var(--green);background:#eef4e8;list-style:none;line-height:1.55}
.jg-commerce-notices .woocommerce-error{border-left-color:#a73535;background:#fff0f0}

/* Native Woo blocks: cart, checkout and confirmation. */
.woocommerce-cart main,.woocommerce-checkout main,.woocommerce-order-received main,.woocommerce-account main{width:min(100% - 48px,1360px);margin-inline:auto;padding:42px 0 70px}
.woocommerce-cart main>article,.woocommerce-checkout main>article,.woocommerce-order-received main>article{min-width:0}
.wc-block-cart,.wc-block-checkout{font-family:var(--font);color:var(--ink)}
.wc-block-components-title,.wc-block-cart__totals-title,.wc-block-checkout__actions_row{font-family:'Barlow Condensed',Arial,sans-serif}
.wc-block-components-button{min-height:50px;border-radius:0!important;font-weight:750!important}
.wc-block-components-text-input input,.wc-block-components-combobox-control input,.wc-block-components-textarea{border-radius:0!important}
.wc-block-cart-item__image img{object-fit:contain;background:#fff}
.woocommerce-order{max-width:1100px}
.woocommerce-order-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;list-style:none;margin:25px 0;padding:1px;background:var(--line)}
.woocommerce-order-overview li{background:#fff;padding:16px;overflow-wrap:anywhere}

/* Footer always remains a root-width section; its children own the container. */
.footer{clear:both;display:block;width:100%;grid-column:1/-1}

@media(max-width:1100px){
  .jg-parity-pdp .jg-quick-specs>div{grid-template-columns:minmax(8.5rem,auto) minmax(0,1fr)}
  .jg-purchase-form{grid-template-columns:86px minmax(140px,1fr)}
  .jg-purchase-form>label{grid-column:1/-1}
  .woocommerce-order-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  .jg-parity-pdp.wrap,.detail-layout.wrap,.woocommerce-cart main,.woocommerce-checkout main,.woocommerce-order-received main,.woocommerce-account main{width:min(100% - 28px,100%)}
  .jg-header-commerce>button>span:not(.jg-cart-count){display:none}
  .jg-header-commerce>button{padding-inline:10px}
  .jg-mini-cart-body{padding:18px}
  .jg-mini-cart .woocommerce-mini-cart__buttons{grid-template-columns:1fr}
  .jg-parity-pdp .jg-quick-specs>div{grid-template-columns:minmax(8rem,auto) minmax(0,1fr);gap:12px}
  .jg-gallery-nav{width:46px;height:46px;margin-top:-23px}
  .jg-gallery-prev{left:8px}.jg-gallery-next{right:8px}
  .jg-purchase-form{grid-template-columns:82px minmax(0,1fr)}
  .jg-commerce-facts li{grid-template-columns:1fr;gap:4px}
  .jg-commerce-facts span{text-align:left}
  .source-description table{display:block;max-width:100%;overflow-x:auto}
  .woocommerce-order-overview{grid-template-columns:1fr}
}

@media(max-width:520px){
  .jg-parity-pdp .jg-quick-specs>div{display:grid;grid-template-columns:1fr;gap:4px;padding:12px 0}
  .jg-parity-pdp .jg-quick-specs dd{text-align:left}
  .jg-purchase-form{grid-template-columns:1fr}
  .jg-purchase-form>label{grid-column:1}
  .jg-purchase-form .quantity{width:100%}
}

@media(max-width:760px){.nv-product-card .nv-product-price>strong{font-size:1.55rem!important}.nv-product-card .jg-free-delivery-badge{font-size:.8125rem!important}}
@media(max-width:360px){.nv-product-card .nv-product-price>strong{font-size:1.48rem!important}}
