.product-panel {
    padding: 18px;
    margin-bottom: 18px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* 検索 */
.product-search {
    margin: 0 0 16px;
}

.product-search input {
    width: 100%;
    max-width: 520px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d9d3ce;
    border-radius: 9px;
    background: #fff;
    box-sizing: border-box;
}

/* 商品登録フォーム */
.product-form-row {
    display: grid;
    grid-template-columns:
        180px
        190px
        minmax(300px, 1fr)
        170px
        100px
        auto;
    gap: 12px;
    align-items: end;
}

.product-form-row .form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-form-row .form-field label {
    display: block;
    margin-bottom: 6px;
    color: #6f6863;
    font-size: 12px;
    font-weight: 700;
}

.product-form-row .form-field input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d8d1cb;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.product-form-row .form-submit {
    display: flex;
    align-items: end;
}

.product-form-row .form-submit .primary-button {
    height: 40px;
    padding: 0 18px;
    white-space: nowrap;
}

/* バリデーション */
.validation-summary {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff4f4;
    border-left: 4px solid #d93025;
    border-radius: 6px;
    color: #c62828;
    font-weight: 700;
}

.validation-summary ul {
    margin: 0;
    padding-left: 22px;
}

.validation-summary li {
    margin: 4px 0;
}

/* 在庫調整 */
.stock-adjust {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-adjust input {
    width: 68px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #d9d3ce;
    border-radius: 7px;
    box-sizing: border-box;
}

.stock-adjust button {
    width: 34px;
    height: 34px;
    border: 1px solid #cfc7c1;
    border-radius: 7px;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

.stock-adjust button:hover {
    background: #f7f3ef;
}

/* 在庫表示 */
.stock-negative {
    color: #bd2539;
    font-weight: 900;
}

.stock-zero {
    color: #b05c00;
    font-weight: 900;
}

/* 削除 */
.danger-button {
    border: 0;
    background: transparent;
    color: #bd2539;
    font-weight: 800;
    cursor: pointer;
}

.danger-button:hover {
    text-decoration: underline;
}

/* 小さい画面では2段にする */
@media (max-width: 1250px) {
    .product-form-row {
        grid-template-columns:
            minmax(160px, 1fr)
            minmax(170px, 1fr)
            minmax(260px, 2fr);
    }

    .product-form-row .form-submit {
        align-items: stretch;
    }

    .product-form-row .form-submit .primary-button {
        width: 100%;
    }
}