#product-info.esnaf-detail { display: block; margin-inline: auto; padding: 14px clamp(14px, 2.5vw, 32px); color: var(--esnaf-ink,#192d23); font-family: var(--esnaf-font,system-ui,sans-serif); }
#product-info .esnaf-purchase-layout { align-items: start; }
#product-info .image > a { display: block; width: min(100%, 440px); margin-inline: auto; }
#product-info .image > a > img { display: block; width: 100%; aspect-ratio: 1; height: auto; padding: 0; border: 0; border-radius: 14px; object-fit: contain; }
#product-info h1 { margin: 0 0 6px; font-size: clamp(24px,3vw,38px); font-weight: 700; line-height: 1.15; }
#product-info h2:has(.price-new) { font-size: 19px; font-weight: 650; margin: 0; color: var(--esnaf-action,#0c8129); }
#product-info .price-new + small { color: var(--esnaf-muted,#526157); font-size: 13px; font-weight: 500; }
#product-info .esnaf-portion { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; align-items: end; margin: 10px 0; padding: 0; }
#product-info .esnaf-portion > label { grid-area: 1 / 1; font-size: 13px; color: var(--esnaf-muted,#526157); }
#product-info .esnaf-portion-controls { grid-area: 2 / 1; display: inline-flex; align-items: center; width: max-content; max-width: 100%; overflow: hidden; gap: 0; border: 1px solid var(--esnaf-line,#dce3da); border-radius: 10px; background: #f8faf7; }
#product-info .esnaf-portion-controls button { flex: none; min-width: 36px; min-height: 42px; border: 0; background: none; color: var(--esnaf-dark,#0c8129); font-size: 18px; }
#product-info .esnaf-portion-controls button:disabled { opacity: .45; }
#product-info .esnaf-portion-controls input { width: 46px; padding: 0; border: 0; font-size: 16px; text-align: end; appearance: textfield; background: none; color: #192d23; }
#product-info .esnaf-portion-controls input::-webkit-inner-spin-button { appearance: none; }
#product-info .esnaf-portion-controls span { padding-inline: 3px 5px; }
#product-info .esnaf-portion p { grid-area: 1 / 2 / 3; display: grid; justify-items: end; align-self: stretch; align-content: space-between; gap: 3px; margin: 0; padding: 0; border: 0; color: var(--esnaf-muted,#526157); font-size: 13px; }
#product-info .esnaf-portion p strong { color: var(--esnaf-ink,#192d23); font-size: 20px; font-variant-numeric: tabular-nums; }
#product-info #button-cart { min-height: 44px; margin-bottom: 10px; border: 0; border-radius: 10px; color: white; background: var(--esnaf-action,#0c8129); font-weight: 650; }
#product-info #button-cart:disabled { background: #69746e; }
#product-info .esnaf-detail-feedback { margin: 4px 0 8px; }
#product-info #product + .list-unstyled { border-top: 1px solid var(--esnaf-line,#dce3da); margin-top: 6px; padding-top: 12px; }
#product-info .esnaf-purchase-layout .list-unstyled { overflow-wrap: break-word; }
@media (max-width:767px) {
  #product-info .esnaf-purchase-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin: 0; }
  #product-info .esnaf-purchase-layout > .col-sm { width: auto; padding-inline: 0; min-width: 0; }
  #product-info .image > a { width: min(100%,clamp(175px,35svh,265px)); }
  #product-info .image > a > img { margin-bottom: 0 !important; }
  #product-info .esnaf-purchase-layout .list-unstyled { margin-bottom: 8px; }
}
.esnaf-product-preview-page #product-info h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

#product-info.is-sold-out :is(h2:has(.price-new), .esnaf-portion label, .esnaf-portion p, .esnaf-portion p strong, .esnaf-portion-controls button, .esnaf-portion-controls input) {
  color: #4c5650;
}
#product-info.is-sold-out .esnaf-portion-controls { background: #f0f2ef; border-color: #cdd2ce; }
#product-info.is-sold-out #button-cart:disabled { background: #e2e6e1; color: #445048; opacity: 1; }
