/* Product pages and the quote basket share the existing site's colours and typography. */
.header-inner { gap: 20px; }
.desktop-nav { gap: 20px; }
.header-cart { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex-shrink: 0; font-size: 13px; font-weight: 700; }
.header-cart:hover { color: #59702e; }
.cart-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 11px; }
.product-photo-link { display: block; }
.product-info h3 a:hover, .material-product-link:hover, .cart-item-main a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-request { white-space: nowrap; }
.material-product-link { text-decoration: underline; text-decoration-color: #c1ccba; text-underline-offset: 5px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 58px; padding: 26px 0 68px; }
.product-detail-info { grid-column: 2; grid-row: 1; min-width: 0; }
.product-detail-media { grid-column: 1; grid-row: 1; min-width: 0; }
.product-detail-photo { position: relative; overflow: hidden; border-radius: 5px; background: #e1e5dc; }
.product-detail-photo img { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; }
.product-detail-photo > span { position: absolute; top: 20px; left: 20px; background: var(--paper); padding: 8px 13px; font-size: 12px; font-weight: 700; border-radius: 3px; }
.product-photo-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-detail-info .eyebrow { margin-bottom: 16px; }
.product-detail h1 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.14; letter-spacing: -1.8px; font-weight: 600; }
.product-detail-fraction { display: block; margin-top: 6px; font-size: .76em; letter-spacing: -.8px; }
.product-detail-intro { font-size: 15px; color: var(--muted); margin: 22px 0; }
.product-description-title { margin: 28px 0 12px; font-size: 20px; letter-spacing: -.3px; }
.product-description-title + .product-detail-intro { margin-top: 0; }
.product-facts-title { margin: 24px 0 12px; font-size: 18px; letter-spacing: -.3px; }
.product-facts { margin: 0 0 14px; font-size: 13px; }
.product-facts-note { margin: 0; font-size: 12px; color: var(--muted); }
.product-facts > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; font-weight: 700; text-align: right; }
.product-order-box { padding: 26px; margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.product-detail-price { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; margin-bottom: 24px; }
.product-detail-price span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.product-order-box label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.product-order-controls { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product-quantity-field { display: flex; align-items: center; gap: 12px; padding-right: 14px; border: 1px solid #bdc8b8; background: #fff; border-radius: 3px; }
.product-quantity-field:focus-within { outline: 2px solid #59702e; outline-offset: 2px; }
.product-quantity-field:has([aria-invalid="true"]) { border-color: #a53b2c; }
.product-quantity-field > span { flex-shrink: 0; font-size: 14px; font-weight: 700; }
.product-order-controls input { min-width: 0; width: 100%; min-height: 52px; border: 0; padding: 10px 14px; color: var(--ink); background: transparent; border-radius: 3px; font-size: 18px; }
.product-order-controls input:focus { outline: 0; }
.product-order-controls input::placeholder { font-size: 14px; }
.product-detail-estimate { margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.product-quantity-help { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 4px 0 12px; font-size: 13px; }
.product-quantity-help > a, .product-quantity-help > button, .product-detail-links > a, .product-detail-links > button { display: inline-flex; align-items: center; min-height: 44px; }
.product-quantity-help > button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; }
.product-order-note, .product-help-note p { font-size: 13px; color: var(--muted); margin: 0; }
.product-detail-links { display: flex; flex-wrap: wrap; gap: 15px 22px; margin-top: 22px; font-size: 13px; }
.product-detail-links button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; }
.product-help { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; }
.product-help p { color: var(--muted); }
.product-help .text-link { display: inline-block; font-size: 14px; }
.product-help-note { background: #e9eddf; padding: 30px; border-radius: 4px; }
.product-help-note h3 { margin-top: 0; font-size: 20px; }
.product-help-note ul { padding-left: 20px; margin-bottom: 24px; font-size: 15px; }
.product-help-note li + li { margin-top: 10px; }
.related-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-products article { padding-bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.related-products img { width: 100%; height: 180px; object-fit: cover; }
.related-products h3, .related-products p, .related-products .text-link { margin-left: 22px; margin-right: 22px; }
.related-products h3 { font-size: 18px; margin-top: 22px; margin-bottom: 12px; }
.related-products p { font-size: 17px; font-weight: 700; }
.related-products .text-link { font-size: 13px; }
.cart-section { padding-bottom: 80px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; align-items: start; padding: 12px 0 24px; }
.cart-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 22px; }
.cart-list-heading h2 { font-size: 23px; letter-spacing: -.5px; }
.cart-list-heading span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 18px 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 1px solid var(--line); }
.cart-item-photo { grid-row: 1 / 3; align-self: start; }
.cart-item-photo img { width: 80px; height: 92px; object-fit: cover; border-radius: 3px; }
.cart-item-main { align-self: center; }
.cart-item-main a { font-size: 16px; font-weight: 700; line-height: 1.4; }
.cart-item-main span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.cart-remove { align-self: start; justify-self: end; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; }
.cart-remove:hover { background: #e9eddf; color: var(--ink); }
.cart-quantity { display: flex; align-items: center; width: max-content; max-width: 100%; min-height: 44px; border: 1px solid #c3ccbe; background: #fff; border-radius: 3px; }
.cart-quantity button { flex-shrink: 0; width: 44px; height: 44px; padding: 0; font-size: 21px; border: 0; color: var(--ink); background: transparent; }
.cart-quantity input { width: 70px; min-width: 0; height: 44px; text-align: center; border: 0; color: var(--ink); background: transparent; font-weight: 700; appearance: textfield; }
.cart-quantity input::-webkit-inner-spin-button { appearance: none; }
.cart-quantity > span { white-space: nowrap; font-size: 12px; color: var(--muted); padding-right: 8px; }
.cart-item-price { align-self: center; justify-self: end; white-space: nowrap; font-size: 18px; font-weight: 700; }
.cart-line-error { grid-column: 2 / -1; margin: -6px 0 0; font-size: 12px; }
.cart-continue { display: inline-block; margin-top: 24px; font-size: 14px; }
.cart-summary { position: sticky; top: 124px; padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #a3ba77; border-radius: 4px; }
.cart-summary .eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 18px; }
.cart-summary h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.7px; }
.cart-summary output { display: block; font-size: 32px; font-weight: 800; line-height: 1.3; letter-spacing: -1px; margin: 22px 0 14px; }
#cart-total-note { font-size: 12px; color: var(--muted); }
.cart-conditions { padding-top: 18px; margin: 20px 0 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cart-contact-note { font-size: 11px; text-align: center; color: var(--muted); margin: 16px 0 0; }
.cart-empty { text-align: center; background: #fff; padding: 64px 28px; border: 1px solid var(--line); border-radius: 4px; }
.cart-empty .eyebrow { display: block; }
.cart-empty h2 { font-size: 36px; }
.cart-empty p { max-width: 540px; margin: 22px auto 30px; color: var(--muted); }
.cart-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cart-empty .button-outline { border-color: var(--line); color: var(--ink); }
.cart-storage-note { padding: 16px; background: #fff0ce; font-size: 13px; }
.cart-toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(440px, calc(100% - 40px)); padding: 22px 54px 12px 24px; border: 1px solid #b4c68c; border-radius: 5px; background: #f2f7e7; box-shadow: 0 12px 40px #1c302933; }
.cart-toast > span { display: block; font-size: 14px; font-weight: 600; }
.cart-toast > a, .cart-toast-action { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cart-toast > .cart-toast-close { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 24px; }
.cart-toast-error { background: #fff1e9; border-color: #d4a894; }
.request-cart-summary { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; margin: 20px 0; font-size: 13px; }
.request-cart-summary ul { padding-left: 20px; max-height: 180px; overflow: auto; margin: 12px 0; }
.request-cart-summary li + li { margin-top: 8px; }
.request-cart-summary p { margin: 0; font-weight: 700; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
@media (max-width: 1180px) {
  .header .desktop-nav { display: none; }
  .header-phone { margin-left: auto; }
  .menu-toggle { display: flex; width: 40px; height: 44px; padding: 10px 4px; border: 0; background: transparent; flex-direction: column; justify-content: center; gap: 7px; }
  .menu-toggle span { display: block; height: 2px; width: 27px; background: var(--ink); }
  .mobile-nav { padding: 8px 32px 20px; display: grid; gap: 14px; }
  .product-detail { gap: 32px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  .cart-summary { padding: 24px; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; }
  .cart-item-photo img { width: 64px; height: 80px; }
  .cart-quantity { grid-column: 2 / -1; grid-row: 2; }
  .cart-item-price { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
  .cart-item-photo { grid-row: 1 / 4; }
}
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .product-detail-info { grid-column: 1; grid-row: 2; }
  .product-detail-media { grid-column: 1; grid-row: 1; }
  .product-detail-photo img { aspect-ratio: 1.7; max-height: 360px; }
  .product-detail h1 { font-size: 32px; letter-spacing: -1px; }
  .product-order-box { padding: 22px; }
  .product-order-controls input { max-width: none; }
  .product-help { gap: 30px; }
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .cart-item-photo img { width: 80px; height: 92px; }
  .cart-quantity { grid-column: 2; grid-row: 2; }
  .cart-item-price { grid-column: 3; grid-row: 2; justify-self: end; }
  .cart-item-photo { grid-row: 1 / 3; }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .header-cart { gap: 5px; }
  .header-cart-label { display: none; }
  .header-cart svg { width: 21px; }
  .cart-count { min-width: 20px; height: 20px; font-size: 10px; }
  .menu-toggle { width: 27px; }
  .menu-toggle span { width: 21px; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; padding-top: 10px; padding-bottom: 42px; }
  .product-detail-photo img { aspect-ratio: 1.5; }
  .product-detail h1 { font-size: 35px; }
  .product-order-box { padding: 20px; }
  .product-order-controls { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
  .product-quantity-field { min-width: 0; gap: 4px; padding-right: 8px; }
  .product-order-controls input { padding: 10px 8px; font-size: 16px; }
  .product-order-controls input::placeholder { font-size: 14px; }
  .product-order-controls > .button { min-width: 0; padding: 10px 8px; font-size: 12px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
  .product-detail-intro { margin: 18px 0; }
  .product-help { grid-template-columns: 1fr; gap: 26px; }
  .product-help-note { padding: 24px; }
  .related-products { grid-template-columns: 1fr; gap: 18px; }
  .related-products img { height: 200px; }
  .cart-section { padding-bottom: 48px; }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 16px 12px; padding: 22px 0; }
  .cart-item-main a { font-size: 14px; }
  .cart-item-photo { grid-row: 1; }
  .cart-item-photo img { width: 56px; height: 66px; }
  .cart-quantity { grid-row: 2; grid-column: 1 / 3; }
  .cart-item-price { grid-row: 3; grid-column: 1 / -1; justify-self: start; font-size: 17px; }
  .cart-line-error { grid-column: 1 / -1; }
  .cart-list-heading h2 { font-size: 21px; }
  .cart-summary { padding: 24px; }
  .cart-summary output { font-size: 31px; }
  .cart-empty { padding: 42px 22px; }
  .cart-empty h2 { font-size: 29px; }
  .cart-empty p { font-size: 14px; }
  .cart-toast { right: 20px; bottom: 20px; }
}
@media (max-width: 480px) {
  .header-phone { font-size: 0; width: 36px; height: 44px; display: grid; place-items: center; }
  .header-phone span { display: none; }
  .header-phone::before { content: '☎'; font-family: Arial, sans-serif; font-size: 24px; }
  .product-detail-links { display: grid; }
}
