.products-page { min-height: 100vh; }
.products-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 60px; }
.products-top, .products-heading, .products-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.products-top { margin-bottom: 32px; color: var(--muted); font-size: .75rem; }
.products-top a { color: var(--accent); text-decoration: none; }
.products-heading { margin-bottom: 22px; }
.products-heading h1 { margin: 0 0 7px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.products-heading p, .products-list-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.products-heading > strong { color: var(--accent); white-space: nowrap; }
.products-card { margin-bottom: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.products-card h2 { margin: 0 0 14px; font-size: 1.05rem; }
.new-product-form { display: grid; grid-template-columns: minmax(220px, 2fr) 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.new-product-form label, .product-edit label { margin: 0; }
.new-product-form .button { min-height: 44px; margin: 0; white-space: nowrap; }
.products-list-heading { margin-bottom: 16px; }
.products-list-heading h2 { margin-bottom: 4px; }
.products-list-heading input { width: min(310px, 100%); }
.product-record { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 14px; align-items: end; padding: 13px 0; border-top: 1px solid var(--border); }
.product-record[hidden] { display: none; }
.product-record.is-inactive { opacity: .55; }
.product-identity strong, .product-identity small { display: block; }
.product-identity strong { font-size: .78rem; }
.product-identity small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.product-edit { display: flex; align-items: end; gap: 8px; }
.product-edit input { width: 105px; padding: 10px; }
.product-edit .button { min-height: 39px; }
.product-toggle button { padding: 9px 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.products-alert, .products-success { padding: 12px 15px; border-radius: 8px; font-size: .8rem; }
.products-alert { background: #6f2929; color: #fff; }
.products-success { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--text); }
@media (max-width: 920px) { .new-product-form { grid-template-columns: repeat(2, 1fr); } .new-product-form .button { width: 100%; } .product-record { grid-template-columns: 1fr; } .product-edit { flex-wrap: wrap; } }
@media (max-width: 560px) { .new-product-form { grid-template-columns: 1fr; } .products-list-heading { align-items: stretch; flex-direction: column; } }
