/* Scoped product editor. Existing application field IDs and business rules remain unchanged. */
#page-product .product-lookup { display: block; position: relative; min-width: 0; }
#page-product .product-lookup > input { padding-right: 42px; width: 100%; }
#page-product .product-lookup-toggle { position: absolute; right: 2px; top: 2px; width: 36px; height: 32px; min-height: 0; padding: 0; border: 0; background: transparent; color: #253b5a; box-shadow: none; }
#page-product .product-lookup-popup { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #c8d0e4; border-radius: 10px; box-shadow: 0 8px 24px #1e2f5426; overflow: hidden; font-weight: 400; }
#page-product .product-lookup-popup[hidden] { display: none !important; }
#page-product .product-lookup-popup [role=listbox] { display: block; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
#page-product .product-lookup-popup [role=option] { display: block; padding: 10px 12px; cursor: pointer; color: #243b5a; overflow-wrap: anywhere; }
#page-product .product-lookup-popup [role=option]:hover, #page-product .product-lookup-popup [aria-selected=true] { background: #eee8ff; color: #5026d4; }
#page-product .product-lookup-hint { display: block; padding: 10px 12px; border-top: 1px solid #e1e6f0; color: #52617b; font-size: 11px; line-height: 1.5; }
#page-product.product-entry-sectioned .product-layout { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); align-items: start; }
#page-product.product-entry-sectioned .product-form { gap: 14px; }
#page-product .product-section-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid #dfe5f1; border-radius: 14px; background: #f4f6fb; }
#page-product .product-section-tabs button { width: auto; min-width: 0; text-align: left; padding: 12px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #425675; display: flex; flex-direction: column; gap: 5px; box-shadow: none; white-space: normal; }
#page-product .product-section-tabs button small { color: inherit; font-size: 11px; font-weight: 400; line-height: 1.4; }
#page-product .product-section-tabs button[aria-selected=true] { background: #fff; color: #5429de; border-color: #d7cafa; box-shadow: 0 2px 8px #2435500a; }
#page-product .product-section-tabs button:focus-visible, #page-product summary:focus-visible { outline: 3px solid #7147ed; outline-offset: 2px; }
#page-product .product-section-content { display: grid; gap: 14px; min-width: 0; }
#page-product .product-section-content[hidden], #page-product .product-recipe-intro[hidden] { display: none !important; }
#page-product.product-entry-sectioned .form-grid, #page-product.product-entry-sectioned .form-grid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#page-product .product-section-hint { color: #52617b; line-height: 1.6; font-size: 12px; margin: 8px 0 16px; }
#page-product .product-optional-details { padding: 16px 18px; background: #fff; border: 1px solid #dfe5f1; border-radius: 12px; }
#page-product .product-optional-details summary { font-weight: 600; color: #243b5a; cursor: pointer; }
#page-product .product-optional-details[open] summary { margin-bottom: 16px; }
#page-product .product-section-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#page-product .product-section-footer button { width: auto; flex: 0 0 auto; }
#page-product .product-section-footer span { font-size: 12px; color: #536581; text-align: center; }
#page-product .product-image-panel { min-height: 0; padding: 22px; }
#page-product .product-image-preview { max-width: 360px; width: 100%; margin-inline: auto; }
#page-product .product-recipe-intro p { line-height: 1.7; color: #52617b; max-width: 70ch; }
#page-product #manufacturingProductRecipe .panel-title { align-items: start; flex-wrap: wrap; gap: 8px; }
#page-product #manufacturingProductRecipe .panel-title small { max-width: 65ch; line-height: 1.6; }
#page-product .variant-shelf { padding: 16px; }
#page-product .product-shelf-panel { padding: 12px; box-shadow: none; }
#page-product .product-shelf-panel h2 { font-size: 14px; }
@media (max-width: 1100px) {
  #page-product.product-entry-sectioned .product-layout { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); }
  #page-product.product-entry-sectioned .form-grid, #page-product.product-entry-sectioned .form-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-product .product-section-tabs button { padding: 10px 7px; font-size: 12px; }
  #page-product .product-section-tabs button small { display: none; }
}
@media (max-width: 760px) {
  #page-product.product-entry-sectioned .product-layout { grid-template-columns: minmax(0, 1fr); }
  #page-product .product-form { order: -1; }
  #page-product .product-section-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #page-product .product-section-footer { flex-wrap: wrap; }
  #page-product .product-section-footer span { order: -1; width: 100%; }
}
@media (max-width: 460px) {
  #page-product.product-entry-sectioned .form-grid, #page-product.product-entry-sectioned .form-grid.wide { grid-template-columns: minmax(0, 1fr); }
}
