/* Shared storefront hierarchy; loaded after the legacy page styles. */
body{font-family:Arial,Helvetica,sans-serif}
.fusion-site .catalogue-stock-filter{display:flex;align-items:center;gap:10px;width:fit-content;min-height:44px;margin-top:16px;color:var(--text);cursor:pointer;font-size:16px}
.fusion-site .catalogue-stock-filter input{width:20px;height:20px;min-height:0;margin:0;padding:0;accent-color:var(--gold);cursor:pointer;flex:0 0 20px}
.fusion-site .catalogue-stock-filter:has(input:disabled){color:var(--muted);cursor:wait}
.fusion-site .catalogue-stock-filter input:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
header{gap:20px;padding:12px 0;flex-wrap:wrap}
.header-brand{gap:16px;flex-shrink:1;min-width:0}
.header-brand .wordmark{flex:0 0 208.8px;max-width:208.8px}
.header-brand .wordmark>img{width:208.8px;height:auto;aspect-ratio:4/3}
.header-brand .brand-tagline-art{width:252px;max-width:252px;flex:0 1 252px}
.header-menu{flex:1 1 560px;width:auto;min-width:0;margin-left:auto}
.header-menu nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:2px;width:100%;margin:0}
.header-menu nav a{font-size:14px;min-height:44px;padding:10px 9px;white-space:nowrap}
.product-grid{gap:24px;align-items:stretch}
.product{padding:24px;border-color:#ffffff1c;box-shadow:none}
.product:hover{border-color:#ffffff38;box-shadow:none}
.product .product-top{margin-bottom:12px}
.product .product-label{font-size:12px;color:#b8bcb9;letter-spacing:.06em}
.product h3{font-size:24px;font-weight:600;line-height:1.25;letter-spacing:-.025em;margin:0 0 8px;min-height:2.5em}
.product .product-strengths{font-size:14px;line-height:1.5;color:#e0e2de;margin:0 0 4px}
.product .product-reviews{margin:0 0 16px;padding:0;border:0}
.product .product-reviews>.rating-summary{min-height:44px;padding:8px 0;gap:8px;color:var(--muted)}
.product-reviews:not([data-count])>.rating-summary .review-stars,.product-reviews[data-count="0"]>.rating-summary .review-stars,.product-reviews[data-count="0"]>.rating-summary .review-count{display:none}
.product-reviews[data-count="0"] .review-score{color:var(--muted)}
.product .product-illustration{margin:0 0 16px}
.product .product-illustration figcaption{margin-top:8px}
.product.card-ready table{margin-bottom:16px}
.product.card-ready td:nth-child(2){font-size:26px;font-weight:600;line-height:1.3}
.product.card-ready td:last-child{padding-top:4px!important;gap:10px}
.product.card-ready:not(.single-strength) td:last-child{grid-template-columns:minmax(0,1fr) 78px}
@media(max-width:380px){.product.card-ready:not(.single-strength) td:last-child{grid-template-columns:minmax(0,1fr)}}
.product.card-ready .quantity-field,.product.card-ready .strength-field{gap:6px}
.product.card-ready .quantity-select,.product.card-ready .strength-select{border-color:var(--control-border);background:var(--brand-field)}
.product.card-ready .add-vial:disabled{background:#242829;border-color:#ffffff25;color:#bfc3bf}
.product .product-details{padding-top:8px;border-color:#ffffff1c}
.product .product-details>summary{color:#d0d3cf;font-size:14px}
.catalogue-view:not([aria-pressed="true"]),.catalogue-filters input,.catalogue-filters select,.catalogue-filters button:not(.catalogue-view){border-color:#ffffff38}
.catalogue-view:not([aria-pressed="true"]){color:#d0d3cf}
.tag{border-color:#ffffff26;color:var(--muted)}
@media(min-width:1200px){header{flex-wrap:nowrap}.header-menu{flex:1 1 auto}.header-menu nav{flex-wrap:nowrap}}
@media(min-width:701px) and (max-width:1199px){.header-menu{flex-basis:100%;margin:0}.header-menu nav{justify-content:flex-start}}
@media(max-width:700px){
 .header-brand{width:100%;gap:12px}.header-brand .wordmark{flex:0 0 120px;max-width:120px}.header-brand .wordmark>img{width:120px;height:auto}
 .header-brand .brand-tagline-art{width:auto;flex:1 1 0;max-width:230px}
 .header-menu{flex-basis:100%;width:100%;margin:0}.header-menu nav{justify-content:flex-start;flex-wrap:wrap;overflow:visible;white-space:normal;gap:2px}
 .header-menu nav a{padding:10px 8px}.product-grid{gap:20px}.product{padding:20px}.product h3{font-size:22px;min-height:0}
}

/* Persistent strength picker, in the same position beside each variant's quantity. */
.product.card-ready:not(.single-strength) table{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:10px;align-items:center}
.product.card-ready:not(.single-strength) tbody,
.product.card-ready:not(.single-strength) tr:not([hidden]),
.product.card-ready:not(.single-strength) td:last-child{display:contents}
.product.card-ready:not(.single-strength) td:first-child{grid-column:1/-1;grid-row:1;justify-self:start;max-width:calc(100% - 120px)}
.product.card-ready:not(.single-strength) td:nth-child(2){grid-column:1/-1;grid-row:1;justify-self:end}
.product.card-ready .strength-control{display:block;grid-column:1;grid-row:2;padding:0;margin:6px 0 0;text-align:left;min-width:0}
.product.card-ready:not(.single-strength) .quantity-field{grid-column:2;grid-row:2;margin-top:6px}
@media(max-width:380px){
 .product.card-ready:not(.single-strength) table{grid-template-columns:minmax(0,1fr)}
 .product.card-ready .strength-control{grid-column:1/-1}
 .product.card-ready:not(.single-strength) .quantity-field{grid-column:1/-1;grid-row:3;margin-top:0}
}

/* Keep the included kit directly below the selected pen price. */
.product .pen-kit-included{grid-column:1/-1;margin:0;font-size:13px;line-height:1.5;font-weight:400;color:var(--muted)}
.product.card-ready:not(.single-strength) .pen-kit-included{grid-row:2}
.product.card-ready[data-format=pen] .strength-control,
.product.card-ready[data-format=pen]:not(.single-strength) .quantity-field{grid-row:3;margin-top:0}
@media(max-width:380px){.product.card-ready[data-format=pen]:not(.single-strength) .quantity-field{grid-row:4}}

/* Quantity steppers retain their input node during stock and price updates. */
.product.card-ready:not(.single-strength) table{grid-template-columns:minmax(0,1fr)}
.product.card-ready .strength-control{grid-column:1/-1;grid-row:2}
.product.card-ready:not(.single-strength) .quantity-field{grid-column:1/-1;grid-row:3}
.product.card-ready[data-format=pen] .strength-control{grid-row:3}
.product.card-ready[data-format=pen]:not(.single-strength) .quantity-field{grid-row:4}
.product.card-ready .quantity-field{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:4px 0}
.product.card-ready .catalogue-quantity-controls{display:grid;grid-template-columns:44px 58px 44px;gap:0;flex-shrink:0}
.product.card-ready .catalogue-quantity-controls button,.product.card-ready .quantity-input{box-sizing:border-box;min-width:0;min-height:48px;margin:0;padding:8px;color:var(--text);background:var(--brand-field);border:1px solid var(--control-border);font:inherit;font-size:16px;text-align:center}
.product.card-ready .catalogue-quantity-controls button:first-child{border-radius:6px 0 0 6px}
.product.card-ready .catalogue-quantity-controls button:last-child{border-radius:0 6px 6px 0}
.product.card-ready .quantity-input{width:58px;border-left:0;border-right:0;border-radius:0;appearance:textfield;-moz-appearance:textfield}
.quantity-input::-webkit-inner-spin-button,.quantity-input::-webkit-outer-spin-button{appearance:none;margin:0}
.product.card-ready .catalogue-quantity-controls button:disabled,.product.card-ready .quantity-input:disabled{opacity:.5}
.product.card-ready .catalogue-quantity-controls button:not(:disabled):hover{border-color:var(--gold);color:var(--gold)}
.product.card-ready .quantity-input:focus-visible{outline:2px solid var(--gold);outline-offset:2px;position:relative;z-index:1}
.product.card-ready.single-strength td:last-child{display:block}
.product.card-ready.single-strength .quantity-field{margin:12px 0}

/* Share the six introduction/image rows, six buying rows and details row.
   Nested subgrids reserve the same strength-menu row for single-strength cards
   without adding a fake control or relying on a fixed-height spacer. */
@supports(grid-template-rows:subgrid){
 @media(min-width:701px){
  .fusion-site[data-page="catalogue"] .product-grid>.product{
   display:grid;grid-template-rows:subgrid;grid-row:span 13;row-gap:0;
  }
  .fusion-site[data-page="catalogue"] .product-grid>.product>*{min-width:0;align-self:start}
  .fusion-site[data-page="catalogue"] .product-grid>.product>.product-details{grid-row:13;align-self:start;margin-top:0}
  .fusion-site[data-page="catalogue"] .product-illustration img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
  .fusion-site[data-page="catalogue"] .product-grid>.product.card-ready>table{
   display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:subgrid;
   grid-row:7 / span 6;gap:10px 12px;align-self:stretch;align-items:start;
  }
  .fusion-site[data-page="catalogue"] .product.card-ready :is(tbody,tr:not([hidden]),td:last-child){display:contents}
  .fusion-site[data-page="catalogue"] .product.card-ready td:first-child{grid-column:1;grid-row:1;justify-self:start;max-width:none}
  .fusion-site[data-page="catalogue"] .product.card-ready td:nth-child(2){grid-column:2;grid-row:1;justify-self:end}
  .fusion-site[data-page="catalogue"] .product.card-ready .pen-kit-included{grid-column:1/-1;grid-row:2}
  .fusion-site[data-page="catalogue"] .product.card-ready .strength-control{grid-column:1/-1;grid-row:3;margin:0}
  .fusion-site[data-page="catalogue"] .product.card-ready .quantity-field{grid-column:1/-1;grid-row:4;margin:0}
  .fusion-site[data-page="catalogue"] .product.card-ready .add-vial{grid-column:1/-1;grid-row:5}
  .fusion-site[data-page="catalogue"] .product.card-ready .restock-trigger{grid-column:1/-1;grid-row:6}
 }
}
