/* oak-product.css – single product page. Scoped to .ob-product. */
.ob-product { background: var(--paper); color: var(--ink); font-family: var(--ff-body); }
.ob-product__inner { max-width: var(--ob-max); margin: 0 auto; padding: 1.5rem var(--ob-pad) 4rem; }

.ob-product__crumbs { font-size: .8rem; color: var(--walnut); margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ob-product__crumbs a { color: var(--walnut); text-decoration: none; }
.ob-product__crumbs a:hover { color: var(--brand); }

.ob-product__main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; }
.ob-product__cover { background: var(--oat); padding: 3rem; border-radius: 3px; display: flex; justify-content: center; }
.ob-product__img { width: 100%; max-width: 380px; height: auto; display: block; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(41,37,31,.14), 0 18px 36px rgba(41,37,31,.18); }
.ob-product__nocover { width: 100%; max-width: 380px; aspect-ratio: 3/4; background: var(--paper); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; font-family: var(--ff-head); font-size: 1.5rem; font-weight: 600; color: var(--walnut); border-radius: 2px; box-sizing: border-box; }

.ob-product__title { font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; line-height: 1.08; margin: 0 0 .5rem; }
.ob-product__author { font-size: 1rem; color: var(--walnut); margin: 0 0 1.25rem; }
.ob-product__price { font-family: var(--ff-head); font-size: 1.9rem; font-weight: 600; margin: 0 0 1.25rem; }
.ob-product__price del { opacity: .55; font-size: 1.2rem; }
.ob-product__price ins { text-decoration: none; }
.ob-product__short { line-height: 1.7; max-width: 52ch; margin-bottom: 1.5rem; }
.ob-product__short p { margin: 0 0 .75rem; }

.ob-product__buy form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin: 0 0 1.5rem; }
.ob-product__buy .quantity input.qty { width: 4.5rem; height: 100%; min-height: 44px; box-sizing: border-box; text-align: center;
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--oat); border-radius: 2px; }
.ob-product__buy .single_add_to_cart_button { background: var(--brand); color: var(--paper); border: 0; border-radius: 2px; padding: .75rem 2rem;
  font: 500 .95rem var(--ff-body); letter-spacing: .02em; cursor: pointer; transition: background .18s; }
.ob-product__buy .single_add_to_cart_button:hover { background: var(--brand-dark); }
.ob-product__buy .stock { margin: 0 0 .75rem; font-size: .9rem; color: var(--olive); }

.ob-product__meta { margin: 0; border-top: 1px solid var(--oat); }
.ob-product__meta > div { display: grid; grid-template-columns: 8rem 1fr; padding: .75rem 0; border-bottom: 1px solid var(--oat); font-size: .9rem; }
.ob-product__meta dt { color: var(--walnut); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; padding-top: .2rem; }
.ob-product__meta dd { margin: 0; }
.ob-product__meta a { color: var(--ink); }
.ob-product__meta a:hover { color: var(--brand); }

.ob-product__about { margin-top: 4rem; max-width: 72ch; }
.ob-product__about h2, .ob-product__related h2 { font-family: var(--ff-head); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; margin: 0 0 1rem; }
.ob-product__about div { line-height: 1.75; }

.ob-product__related { margin-top: 4rem; border-top: 1px solid var(--oat); padding-top: 3rem; }
.ob-product__related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.ob-product .ob-feat-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.ob-product .ob-feat-thumb { width: 100%; height: auto; display: block; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(41,37,31,.12), 0 10px 22px rgba(41,37,31,.12); }
.ob-product .ob-feat-body { padding-top: .6rem; }
.ob-product .ob-feat-title { font-family: var(--ff-head); font-size: 1rem; font-weight: 600; line-height: 1.25; margin: 0 0 .2rem; }
.ob-product .ob-feat-author { font-size: .775rem; color: var(--walnut); margin: 0 0 .3rem; }
.ob-product .ob-feat-price { font-size: .825rem; }
.ob-product .ob-feat-card:hover .ob-feat-title { color: var(--brand); }

@media (max-width: 900px) {
  .ob-product__main { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ob-product__cover { padding: 2rem; }
  .ob-product__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ob-product__meta > div { grid-template-columns: 6rem 1fr; }
  .ob-product__buy form.cart { flex-direction: column; }
  .ob-product__buy .single_add_to_cart_button { width: 100%; }
}
