/* Product photography, selection and product information. */
.product-wrap {
  --detail-ink: #223f38;
  --detail-border: #cbd5cc;
  --detail-paper: #fffdf8;
  width: min(100%, 1376px);
  margin-inline: auto;
  padding: clamp(20px, 3.3vw, 48px) clamp(18px, 4.5vw, 72px) clamp(48px, 7vw, 96px);
  color: var(--detail-ink);
}
.product-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 24px;
  font-size: 15px;
}
.product-crumb a, .product-details-link { text-decoration: underline; text-underline-offset: 4px; }
.product-crumb span { color: #6b796e; }
.product-wrap .product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(26px, 4.3vw, 70px);
  padding: 0;
  margin: 0;
  max-width: none;
  align-items: start;
}
.product-visual, .product-info, .product-heading, .product-details { min-width: 0; }
.product-wrap .product-gallery {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: none;
  margin: 0;
}
.product-wrap .product-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--detail-border);
  border-radius: 9px;
  background: var(--detail-paper);
}
.product-wrap .product-main-image img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.zoom-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--detail-paper);
  color: var(--detail-ink);
  font: 600 14px/1.45 'Barlow', sans-serif;
  box-shadow: 0 1px 4px #223f3821;
}
.product-wrap .thumbnails {
  display: flex;
  flex-flow: row nowrap;
  gap: 9px;
  padding: 3px 3px 9px;
  max-width: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #849488 transparent;
}
.product-wrap .thumbnail {
  flex: 0 0 66px;
  width: 66px;
  height: 58px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--detail-border);
  border-radius: 5px;
  background: var(--detail-paper);
  scroll-snap-align: start;
}
.product-wrap .thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-wrap .thumbnail[aria-pressed=true] { outline: 2px solid var(--detail-ink); outline-offset: 1px; }
.product-wrap .product-info { width: 100%; max-width: none; margin: 0; }
.product-heading h1 {
  margin: -0.09em 0 15px;
  color: var(--detail-ink);
  font: 600 clamp(35px, 3.5vw, 57px)/1.05 var(--display);
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
.product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.product-price-row .product-price { margin: 0; color: var(--detail-ink); font: 600 clamp(22px, 2.2vw, 32px)/1.25 'Barlow', sans-serif; }
.product-price-row .product-compare-price { margin: 0; font-size: 17px; }
.product-price-row .price-note { color: #526358; font-size: 15px; }
.product-details-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; }
.product-info #product-form {
  padding: clamp(18px, 2.4vw, 32px);
  margin-top: 22px;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: var(--detail-paper);
}
.product-info #product-form h2, .product-details > h2, .cart-page .cart-summary h2 {
  margin: 0 0 20px;
  font: 600 clamp(25px, 2.3vw, 34px)/1.15 var(--display);
  letter-spacing: -.01em;
}
.product-info .options { margin: 0; }
.product-info .option-group { min-width: 0; margin: 0 0 20px; }
.product-info .options legend, .product-info .custom-field, .product-info .qty-label {
  font: 600 16px/1.45 'Barlow', sans-serif;
}
.product-info .options fieldset .choices { gap: 7px; }
.product-info .options fieldset label.choice {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #9eaea2;
  border-radius: 4px;
  background: #fff;
  color: var(--detail-ink);
  font-size: 15px;
  text-align: left;
}
.product-info .options fieldset label.choice:has(input:checked) { color: #fff; border-color: var(--detail-ink); background: var(--detail-ink); }
.product-info .options fieldset label.choice.unavailable { opacity: .55; text-decoration: line-through; }
.product-info .custom-field input, .cart-page:has(#cart-content) .custom-field :is(input, textarea) {
  border: 1px solid #8c9b91;
  border-radius: 4px;
  color: #223f38;
  background: #fff;
  min-height: 46px;
  font: 16px/1.45 var(--body);
}
.product-info .quantity-row { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; }
.product-info .qty-label { margin: 0; }
.product-info .qty-control { min-height: 44px; margin: 0; overflow: visible; border: 1px solid #8c9b91; border-radius: 4px; }
.product-info .qty-control :is(button,input) { width: 44px; min-height: 44px; color: var(--detail-ink); }
.product-info .qty-control button:disabled { opacity: .38; }
.product-info #variant-status { margin: 12px 0; color: #4a5b50; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.product-info .buy-actions { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; margin: 16px 0 0; }
.product-info .buy-actions .button { min-height: 48px; padding: 10px 14px; border-radius: 4px; font: 600 16px/1.45 'Barlow', sans-serif; white-space: normal; }
.product-info .buy-actions > .button:not(.secondary), .cart-summary [data-quote-request] button[type=submit] { border-color: #29493e; background: #29493e; color: #fff; }
.product-info .buy-actions > .button:not(.secondary):hover, .cart-summary [data-quote-request] button[type=submit]:hover { background: #20392f; }
.product-info .buy-actions > .button.secondary { border-color: #748b7a; background: transparent; color: #29493e; }
.product-info .buy-actions > .button.secondary:hover { background: #eaf0e8; }
.product-info .buy-actions > .button:disabled { opacity: .55; cursor: not-allowed; }
.product-info .buy-actions .wishlist-button { min-width: 48px; width: 48px; border-radius: 4px; }
.product-wrap :is(button, a, input, summary):focus-visible, .product-wrap .choice:has(input:focus-visible), .cart-page:has(#cart-content) :is(button, a, input, textarea):focus-visible {
  outline: 3px solid #9c581d;
  outline-offset: 3px;
}
.product-details { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--detail-border); scroll-margin-top: 20px; }
.product-details .product-description, .product-details .info-sections details > div { font: 16px/1.65 var(--body); overflow-wrap: anywhere; }
.product-details .product-description table { width: 100%; border-collapse: collapse; }
.product-details .product-description td { padding: 8px 0; border-bottom: 1px solid var(--detail-border); }
.product-details .product-description p:empty { display: none; }
.product-details .info-sections:empty { display: none; }
.product-details .info-sections summary { align-items: center; min-height: 44px; font-weight: 600; }
.product-details .info-sections details { padding: 6px 0; }
.product-details .info-sections details[open] { padding-bottom: 18px; }

/* The visitor's selections and contact details stay visually distinct. */
.cart-page:has(#cart-content) {
  width: min(100%, 1232px);
  max-width: none;
  padding: clamp(30px, 5vw, 76px) clamp(18px, 4.5vw, 64px) 66px;
  color: #223f38;
}
.cart-page:has(#cart-content) > h1 { margin: 0 0 12px; font: 600 clamp(36px, 4.6vw, 60px)/1.08 var(--display); }
.cart-page .quote-intro { max-width: 68ch; font-size: 17px; }
#cart-content .cart-layout { grid-template-columns: minmax(0, 1.24fr) minmax(0, .96fr); gap: clamp(22px, 3.8vw, 58px); }
#cart-content .cart-items, #cart-content .cart-item-details { min-width: 0; }
#cart-content .cart-item { grid-template-columns: 86px minmax(0,1fr) auto; gap: 16px; }
#cart-content .cart-item img { width: 86px; height: 86px; object-fit: cover; border-radius: 5px; }
#cart-content .cart-item :is(h2, p), #cart-content .cart-summary { overflow-wrap: anywhere; }
#cart-content .cart-item h2 { font: 600 20px/1.25 'Barlow', sans-serif; }
#cart-content .cart-item p { font-size: 15px; line-height: 1.55; }
#cart-content .cart-item-controls input { min-width: 60px; min-height: 44px; border-radius: 4px; }
#cart-content .cart-item-controls button { min-height: 44px; }
#cart-content .cart-item > strong { white-space: nowrap; }
#cart-content .cart-summary { min-width: 0; border-radius: 8px; border-color: #cbd5cc; background: #fffdf8; }
#cart-content .cart-summary .summary-line.total { background: #edf2eb; padding: 12px 14px; border: 0; border-radius: 5px; font-size: 17px; }
#cart-content .cart-summary .summary-line.total strong { font-weight: 700; white-space: normal; }
#cart-content .cart-summary .button, #cart-content .empty-cart .button { border-radius: 4px; }
#cart-content .empty-cart { padding: clamp(28px, 5vw, 64px) 24px; border: 1px solid #cbd5cc; border-radius: 8px; background: #fffdf8; }
#cart-content .empty-cart p { margin-bottom: 14px; }
#cart-content .empty-cart .button { margin: 4px 0 18px; }

@media (max-width: 900px) {
  #cart-content .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  #cart-content .cart-item img { width: 72px; height: 72px; }
  #cart-content .cart-item > strong { grid-column: 2; }
}
@media (max-width: 750px) {
  .product-crumb { margin-bottom: 17px; }
  .product-wrap .product-layout { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .product-wrap .product-visual, .product-wrap .product-info { display: contents; }
  .product-heading { order: 1; }
  .product-wrap .product-gallery { order: 2; gap: 8px; }
  .product-wrap .product-info #product-form { order: 3; margin-top: 0; }
  .product-details { order: 4; margin: 0; }
  .product-heading h1 { margin-bottom: 9px; }
  .product-wrap .thumbnail { flex-basis: 56px; width: 56px; height: 50px; }
  #cart-content .cart-layout { grid-template-columns: minmax(0, 1fr); }
  #cart-content .cart-item > strong { margin-top: -8px; }
}
