.hc-product-config {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  margin: 20px 0 40px;
}
.hc-product-gallery { position: sticky; top: 24px; min-width: 0; }
.hc-product-image { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--hc-line); border-radius: var(--hc-r-lg); background: var(--hc-surface); }
.hc-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hc-product-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.hc-product-thumbnails a { display: block; flex: 0 0 76px; width: 76px; height: 76px; overflow: hidden; border: 1px solid var(--hc-line); border-radius: var(--hc-r-md); background: var(--hc-surface); }
.hc-product-thumbnails a.is-active { border-color: var(--hc-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hc-accent) 18%, transparent); }
.hc-product-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hc-product-panel { min-width: 0; }
.hc-product-category { margin: 0 0 6px; color: var(--hc-muted); font-size: .875rem; }
.hc-product-title { margin: 0; font: 500 clamp(1.8rem, 1.35rem + 2vw, 2.8rem)/1.08 var(--hc-display, Georgia, serif); color: var(--hc-ink); }
.hc-product-description { margin: 12px 0 20px; color: var(--hc-ink-2); line-height: 1.6; }
.hc-product-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 12px; }
.hc-product-mode { display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 12px; border: 1px solid var(--hc-line); border-radius: var(--hc-r-md); background: var(--hc-surface); color: var(--hc-ink); text-align: left; cursor: pointer; }
.hc-product-mode.is-active { border-color: var(--hc-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hc-accent) 14%, transparent); }
.hc-product-mode-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hc-surface-2, #f2f6f2); color: var(--hc-accent); font-weight: 800; }
.hc-product-mode.is-active .hc-product-mode-icon { background: var(--hc-accent); color: #fff; }
.hc-product-mode strong, .hc-product-mode small { display: block; }
.hc-product-mode strong { font-size: .9rem; }
.hc-product-mode small { margin-top: 3px; color: var(--hc-muted); font-size: .76rem; }
.hc-prescription-panel { margin-top: 12px; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--hc-line); border-radius: var(--hc-r-lg); background: var(--hc-surface); box-shadow: var(--hc-shadow-1); }
.hc-prescription-panel[hidden], #manual-order-panel[hidden] { display: none; }
.hc-prescription-panel h2 { margin: 3px 0 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
.hc-prescription-form > .hc-btn { margin-top: 18px; }
.hc-prescription-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hc-prescription-fields .hc-field { min-width: 0; }
.hc-prescription-notes, .hc-prescription-upload { grid-column: 1 / -1; }
.hc-prescription-upload input[type="file"] { padding: 9px; }
.hc-prescription-upload small { display: block; margin-top: 5px; }
.hc-product-selector { margin-top: 20px; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--hc-line); border-radius: var(--hc-r-lg); background: var(--hc-surface); box-shadow: var(--hc-shadow-1); }
.hc-selector-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.hc-selector-head h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); }
.hc-eyebrow { margin: 0; color: var(--hc-accent); font-size: .7rem; font-weight: 750; letter-spacing: .11em; }
.hc-selector-price { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: var(--hc-surface-2, #f2f6f2); color: var(--hc-accent); font-size: .9rem; font-weight: 700; }
.hc-selector-help { margin: 8px 0 18px; color: var(--hc-muted); font-size: .9rem; }
.hc-selector-step { padding: 15px 0; border-top: 1px solid var(--hc-line); }
.hc-selector-step[hidden] { display: none; }
.hc-selector-step h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: .98rem; font-weight: 700; }
.hc-selector-step h3 span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--hc-accent); color: #fff; font-size: .77rem; }
.hc-selector-options { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-config-option { min-height: 40px; padding: 8px 13px; border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-bg, #fff); color: var(--hc-ink); cursor: pointer; font: inherit; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.hc-config-option:hover:not(:disabled) { border-color: var(--hc-accent); }
.hc-config-option[aria-pressed="true"] { border-color: var(--hc-accent); background: var(--hc-accent); color: #fff; }
.hc-config-option:disabled { cursor: not-allowed; opacity: .45; text-decoration: line-through; }
.hc-selector-summary { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--hc-line); }
.hc-selector-summary[hidden] { display: none; }
.hc-selector-exact-price { margin: 0; color: var(--hc-accent); font-size: 1.55rem; font-weight: 750; }
.hc-selector-stock { margin: 3px 0 0; color: var(--hc-success, #167444); font-size: .87rem; }
.hc-selector-stock.is-out-of-stock { color: var(--hc-danger, #b42318); }
.hc-selector-sku { margin: 3px 0 0; color: var(--hc-muted); font-size: .78rem; }
.hc-selector-cart { display: flex; align-items: end; gap: 10px; }
.hc-selector-quantity label { display: block; margin-bottom: 5px; color: var(--hc-muted); font-size: .78rem; }
.hc-selector-quantity input { width: 74px; min-height: 46px; }
.hc-selector-cart .hc-btn:disabled { cursor: not-allowed; opacity: .55; }
.hc-product-about { max-width: 850px; margin: 0 auto 48px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--hc-line); border-radius: var(--hc-r-lg); background: var(--hc-surface); }
.hc-product-about h2 { margin-top: 0; }
@media (max-width: 800px) {
  .hc-product-config { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hc-product-gallery { position: static; }
  .hc-product-image { max-height: min(88vw, 520px); }
}
@media (max-width: 520px) {
  .hc-product-modes { grid-template-columns: minmax(0, 1fr); }
  .hc-prescription-fields { grid-template-columns: minmax(0, 1fr); }
  .hc-prescription-notes, .hc-prescription-upload { grid-column: auto; }
  .hc-selector-head { display: block; }
  .hc-selector-price { display: inline-block; margin-top: 10px; }
  .hc-selector-summary { align-items: stretch; flex-direction: column; }
  .hc-selector-cart { align-items: end; }
  .hc-selector-cart .hc-btn { flex: 1; }
}
