.detail-main { padding-top: 27px; padding-bottom: 95px; min-height: 70vh; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; color: #777b72; font-size: 14px; }
.breadcrumbs a:hover { color: #9d5e17; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs strong { color: #30332d; font-weight: 700; }
.detail-loading, .detail-error { min-height: 420px; padding: 70px 0; }
.detail-loading { color: #6b6d64; font-size: 13px; }
.detail-error h1 { margin: 0 0 12px; font-size: 32px; }
.detail-error p { color: #666963; font-size: 13px; }
#detail-content[hidden], #detail-error[hidden], #detail-loading[hidden] { display: none; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; gap: clamp(35px, 6vw, 90px); }
.detail-gallery { position: sticky; top: 18px; min-width: 0; }
.detail-main-image { aspect-ratio: 1.2 / 1; overflow: hidden; border-radius: 15px; background: #e9e6df; }
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbnails { display: flex; gap: 12px; margin-top: 13px; }
.detail-thumbnails[hidden] { display: none; }
.detail-thumbnails button { width: 83px; height: 83px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #e9e6df; }
.detail-thumbnails button.is-active { border-color: #a96317; }
.detail-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding-top: 15px; }
.detail-type { display: inline-block; margin-bottom: 16px; padding: 7px 10px; border-radius: 5px; background: #fff0d3; color: #7f4911; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.detail-info h1 { max-width: 580px; margin: 0 0 15px; font-size: clamp(35px, 3.8vw, 58px); font-weight: 800; line-height: 1.16; letter-spacing: -.04em; }
.detail-description { max-width: 480px; margin: 0; color: #60655c; font-size: 16px; line-height: 1.7; }
.detail-divider { height: 1px; margin: 27px 0; background: #dfe0d9; }
.detail-price { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 20px 21px; border: 1px solid #e9dabc; border-radius: 11px; background: #fff6e6; }
.detail-price span, .detail-pack > span { color: #6d6f65; font-size: 14px; font-weight: 600; }
.detail-price strong { color: #22241e; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.detail-price small { color: #7b766c; font-size: 14px; line-height: 1.5; }
.wholesale-prices { margin-top: 16px; border: 1px solid #e2e3d9; border-radius: 10px; background: #fff; }
.wholesale-prices[hidden] { display: none; }
.wholesale-prices summary { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 19px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.wholesale-prices summary::-webkit-details-marker { display: none; }
.wholesale-prices summary:hover { background: #fafaf7; }
.wholesale-disclosure { display: flex; align-items: center; gap: 5px; color: #955612; font-size: 13px; font-weight: 600; white-space: nowrap; }
.wholesale-disclosure svg { width: 17px; height: 17px; transition: transform .2s ease; }
.wholesale-prices[open] .wholesale-disclosure svg { transform: rotate(180deg); }
.wholesale-tier-list { padding: 0 19px 14px; }
.wholesale-tier-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eceee7; font-size: 14px; }
.wholesale-tier-list > div.is-active { color: #9b5810; }
.wholesale-tier-list p { margin: 10px 0 0; color: #6e7269; font-size: 12px; line-height: 1.5; }
.detail-pack { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; padding: 17px 0; border-bottom: 1px solid #dedfd7; }
.detail-pack strong { font-size: 16px; font-weight: 600; }
.detail-purchase { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; }
.detail-quantity { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.detail-quantity label { color: #575a52; font-size: 16px; font-weight: 600; }
.detail-stepper { height: 45px; display: flex; align-items: center; overflow: hidden; border: 1px solid #d9dad2; border-radius: 8px; background: #fff; }
.detail-stepper button { width: 43px; height: 43px; display: grid; place-items: center; border: 0; background: transparent; padding: 0; font-size: 20px; line-height: 1; }
.detail-stepper button:hover { background: #f3f1eb; }
.detail-stepper input { width: 50px; height: 43px; border: 0; outline: 0; background: transparent; text-align: center; font-size: 12px; font-weight: 800; appearance: textfield; }
.detail-stepper input::-webkit-inner-spin-button, .detail-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.detail-stepper:focus-within { outline: 2px solid #d37c13; outline-offset: 2px; }
.detail-add { flex: 1; min-width: 0; min-height: 45px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; padding: 0 17px; background: #1d201c; color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; }
.detail-add:hover { background: #41463a; }
.detail-add .detail-add-mobile, .detail-add .detail-add-compact { display: none; }
.detail-add .detail-add-symbol { font-size: 23px; font-weight: 400; }
.detail-helper { margin: 10px 0 32px; color: #7d8177; font-size: 14px; }
.detail-facts { padding-top: 20px; border-top: 1px solid #dedfd7; }
.detail-facts h2 { margin: 0 0 13px; font-size: 15px; font-weight: 800; }
.detail-facts dl { margin: 0; }
.detail-facts dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #e6e7e1; font-size: 16px; }
.detail-facts dt { color: #73776e; }
.detail-facts dd { margin: 0; font-weight: 700; text-align: right; text-transform: capitalize; }
.detail-narrative { padding-top: 25px; }
.detail-narrative h3 { margin: 0 0 12px; font-size: 17px; letter-spacing: -.02em; }
.detail-narrative p { max-width: 67ch; margin: 0 0 13px; color: #555b51; font-size: 15px; font-weight: 500; line-height: 1.75; }
.product-notes { margin-top: 28px; border-top: 1px solid #dedfd7; }
.product-notes h2 { margin: 0; padding: 21px 0 15px; font-size: 16px; font-weight: 700; text-align: center; }
.product-notes details { border-top: 1px solid #dedfd7; }
.product-notes details:last-child { border-bottom: 1px solid #dedfd7; }
.product-notes summary { min-height: 57px; display: flex; align-items: center; gap: 11px; padding: 10px 0; color: #22241f; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.product-notes summary::-webkit-details-marker { display: none; }
.product-notes summary:hover { color: #8b5214; }
.product-notes summary:focus-visible { outline: 3px solid #d37c13; outline-offset: -3px; }
.product-notes-check { flex: none; width: 18px; height: 18px; color: #777c72; }
.product-notes-chevron { flex: none; width: 17px; height: 17px; margin-left: auto; color: #777c72; transition: transform .18s ease; }
.product-notes details:not([open]) .product-notes-chevron { transform: rotate(180deg); }
.product-notes p { margin: 0; padding: 0 0 17px; color: #555b51; font-size: 14px; font-weight: 500; line-height: 1.6; }
.related { margin-top: 25px; border-top: 1px solid #dedfd7; padding-top: 19px; }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.related-heading h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.related-controls { display: flex; gap: 7px; }
.related-controls button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #d7d9d0; border-radius: 50%; background: #fff; color: #30342c; font-size: 18px; }
.related-controls button:hover:not(:disabled) { border-color: #8d9285; background: #f2f2ed; }
.related-controls button:disabled { opacity: .35; cursor: default; }
.related-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-color: #b8bcb2 transparent; scrollbar-width: thin; }
.related-card { flex: 0 0 calc((100% - 12px) / 2); min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e5e6df; border-radius: 10px; background: #fff; scroll-snap-align: start; }
.related-card:hover { border-color: #b5b9ae; }
.related-card img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.related-card span { margin: 10px 12px 5px; color: #87500f; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.related-card strong { margin: 0 12px 13px; font-size: 14px; line-height: 1.35; }

@media (max-width: 900px) {
  .detail-layout { gap: 29px; }
  .detail-info { padding-top: 2px; }
  .detail-info h1 { font-size: clamp(30px, 4vw, 43px); }
}
@media (max-width: 700px) {
  .detail-main { padding-top: 17px; padding-bottom: 75px; }
  .breadcrumbs { margin-bottom: 16px; font-size: 13px; }
  .detail-layout { display: flex; flex-direction: column; gap: 0; }
  .detail-gallery { display: contents; }
  .detail-main-image { order: 0; width: 100%; aspect-ratio: 1 / 1; border-radius: 11px; }
  .detail-thumbnails { gap: 9px; margin-top: 10px; }
  .detail-thumbnails button { width: 65px; height: 65px; border-radius: 7px; }
  .detail-thumbnails { order: 1; }
  .detail-info { order: 2; width: 100%; padding-top: 25px; }
  .detail-type { margin-bottom: 11px; font-size: 9px; }
  .detail-info h1 { max-width: 550px; margin-bottom: 10px; font-size: clamp(30px, 7vw, 42px); }
  .detail-description { font-size: 16px; }
  .detail-divider { margin: 20px 0; }
  .detail-price { padding: 17px; }
  .detail-price strong { font-size: 18px; }
  .detail-helper { margin-bottom: 24px; }
  .related { order: 3; width: 100%; margin-top: 32px; }
  .related-card { flex-basis: min(46%, 220px); }
}
@media (max-width: 620px) {
  .detail-main { padding-bottom: 110px; }
  .detail-purchase { position: fixed; z-index: 45; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); left: 16px; gap: 8px; margin: 0; }
  .detail-quantity { flex: none; }
  .detail-quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .detail-stepper { height: 52px; border-radius: 999px; box-shadow: 0 12px 30px rgba(22,24,18,.14); }
  .detail-stepper button { width: 40px; height: 50px; }
  .detail-stepper input { width: 39px; height: 50px; font-size: 14px; }
  .detail-add { min-height: 52px; justify-content: center; border-radius: 999px; padding-inline: 9px; box-shadow: 0 12px 30px rgba(22,24,18,.22); font-size: 15px; }
  .detail-add .detail-add-desktop, .detail-add .detail-add-symbol { display: none; }
  .detail-add .detail-add-mobile { display: inline; }
  .detail-helper { display: none; }
  .site-footer { padding-bottom: 65px; }
  .floating-cart { bottom: calc(82px + env(safe-area-inset-bottom)); }
}
@media (max-width: 365px) {
  .detail-add .detail-add-mobile { display: none; }
  .detail-add .detail-add-compact { display: inline; }
}
